/*****************************/
/*       STYLES GÉNÉRAUX    */
/*****************************/
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}


/*****************************/
/*     HEADER ET UPLOAD     */
/*****************************/
h1 {
    text-align: center;
    color: #1a237e;
    font-size: 2.5em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a237e;
}

/* Zone principale de drop */
.upload-area {
    background: white;
    padding: 40px 20px;
    border: 3px dashed #2196f3;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; /* Pour contenir les animations */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Texte de drop */
.upload-area p {
    font-size: 1.3em;
    color: #666;
    margin: 0;
    transition: all 0.3s ease;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}


/* Style du texte de nouvelle upload modifié */
.upload-text {
    font-size: 1.2em;
    color: #fff;
    margin: 0;
    transition: all 0.3s ease;
    z-index: 2;
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 25px;
    border-radius: 8px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) translateY(50px); /* Caché par défaut */
    opacity: 0;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.upload-text.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mode sombre - pas besoin de changer beaucoup puisque le texte est déjà sur fond sombre */
@media (prefers-color-scheme: dark) {
    .upload-text {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Hover effect pour le texte */
.upload-text:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateX(-50%) translateY(0) scale(1.05);
}


/* États interactifs */
.upload-area:hover {
    border-color: #1565c0;
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.15);
}

.upload-area.dragover {
    background: #e3f2fd;
    border-color: #1565c0;
    transform: scale(1.02);
}

/* Style du conteneur de prévisualisation modifié */
.preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 60px); /* Réduire la hauteur pour laisser de l'espace en bas */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.preview-container.visible {
    opacity: 1;
    visibility: visible;
}

/* Image prévisualisée */
#imagePreview {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    transform: scale(0.95);
}

.preview-container.visible #imagePreview {
    transform: scale(1);
}

/* Animation de chargement */
.loading-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.loading-animation.active {
    opacity: 1;
    visibility: visible;
}

/* Contenu du loading */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.loading-animation.active .loading-content {
    transform: translateY(0);
}

/* Icône de chargement */
.loading-icon {
    width: 70px;
    height: 70px;
    position: relative;
}

.loading-icon svg {
    width: 100%;
    height: 100%;
    animation: rotateIcon 2s linear infinite;
}

.loading-circle {
    fill: none;
    stroke: #2196f3;
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 3s ease-in-out infinite;
}

.loading-line {
    fill: none;
    stroke: #1565c0;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: drawLine 1.5s ease-in-out infinite;
}

/* Phrases de chargement */
.loading-phrases {
    height: 24px;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.loading-phrase {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #1565c0;
    font-weight: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes rotateIcon {
    to { transform: rotate(360deg); }
}

@keyframes drawCircle {
    0% { stroke-dashoffset: 283; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -283; }
}

@keyframes drawLine {
    0%, 100% { stroke-dashoffset: 80; opacity: 0.4; }
    50% { stroke-dashoffset: 0; opacity: 1; }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .upload-area {
        background: #1a1a1a;
        border-color: #2196f3;
    }
    
    .upload-area p {
        color: #fff;
        background: rgba(26, 26, 26, 0.9);
    }
    
    .loading-animation {
        background: rgba(26, 26, 26, 0.98);
    }
    
    .preview-container {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .loading-phrase {
        color: #64b5f6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .upload-area {
        height: 300px;
        padding: 20px;
    }
    
    .loading-icon {
        width: 50px;
        height: 50px;
    }
    
    .loading-phrase {
        font-size: 14px;
    }
    
    .upload-area p {
        font-size: 1.1em;
        padding: 10px 20px;
    }
}






/*****************************/
/*    SECTION PRINCIPALE    */
/*****************************/
.analyses-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.main-section-title {
    color: #1a237e;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196f3;
}

.section-title {
    color: #1565c0;
    font-size: 1.5em;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 4px solid #2196f3;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
}

/*****************************/
/*   1. BASIC INFORMATION   */
/*****************************/

.image-preview-container {
    max-width: 50vw; /* 50% de la largeur du viewport */
    max-height: 50vh; /* 50% de la hauteur du viewport */
    margin: 0 auto; /* Centrer horizontalement */
    overflow: hidden; /* Cacher le dépassement */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

#imagePreview {
    max-width: 100%; /* Largeur maximale dans le conteneur */
    max-height: 100%; /* Hauteur maximale dans le conteneur */
    object-fit: contain; /* Conserver les proportions */
    display: block; /* Enlever l'espace sous l'image */
}

#basicMetrics .metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#basicMetrics .metric-card:hover {
    transform: translateY(-5px);
}

#basicMetrics h3 {
    color: #1565c0;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

#basicMetrics .metric-value {
    font-size: 1.5em;
    color: #2196f3;
    margin: 10px 0;
    font-weight: bold;
}

#basicMetrics .metric-description {
    color: #666;
    font-size: 0.9em;
}


.metric-explanation {
    background-color: #f9f9fc;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.metric-card .metric-value + .metric-explanation {
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .metric-explanation {
        font-size: 0.9em;
        padding: 12px;
    }
}













/*****************************/
/*    2. COLOR ANALYSIS     */
/*****************************/
#colorMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
 }
 
 #colorMetrics .metric-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
 }
 
 #colorMetrics .metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.15);
 }
 
 #colorMetrics h3 {
    color: #1565c0;
    font-size: 1.2em;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
 }
 
 #colorMetrics .metric-value {
    font-size: 1.8em;
    color: #2196f3;
    margin: 15px 0;
    font-weight: 600;
    text-align: center;
 }
 
 #colorMetrics .metric-description {
    color: #757575;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
 }
 
 /* Styles spécifiques pour chaque carte de métrique */
 #colorMetrics .metric-card:nth-child(1) {
    border-top: 4px solid #f44336; /* Rouge pour RGB */
 }
 
 #colorMetrics .metric-card:nth-child(2) {
    border-top: 4px solid #ffd700; /* Jaune pour Brightness */
 }
 
 #colorMetrics .metric-card:nth-child(3) {
    border-top: 4px solid #4caf50; /* Vert pour Saturation */
 }
 
 /* Animations au survol */
 #colorMetrics .metric-card:hover .metric-value {
    color: #1565c0;
 }
 
 /* Style pour les valeurs en pourcentage */
 #colorMetrics .metric-value[data-unit="%"]::after {
    content: "%";
    font-size: 0.7em;
    margin-left: 2px;
    opacity: 0.8;
 }
 
 /* Conteneur pour les distributions de couleur */
 .color-distribution {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 6px;
 }
 
 .color-channel {
    text-align: center;
    padding: 8px;
 }
 
 .channel-value {
    font-weight: bold;
    color: #1565c0;
 }


/*****************************/
/*    3. DESIGN ANALYSIS    */
/*****************************/
#designMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
 }
 
 #designMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
 }
 
 #designMetrics .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #2196f3;
    opacity: 0.7;
 }
 
 /* Styles spécifiques pour chaque type d'analyse */
 #designMetrics .metric-card:nth-child(1)::before {
    background: #9c27b0; /* Violet pour Color Harmony */
 }
 
 #designMetrics .metric-card:nth-child(2)::before {
    background: #ff9800; /* Orange pour Contrast Ratio */
 }
 
 #designMetrics .metric-card:nth-child(3)::before {
    background: #4caf50; /* Vert pour Visual Weight */
 }
 
 #designMetrics h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
 }
 
 #designMetrics .metric-value {
    font-size: 2em;
    color: #2196f3;
    margin: 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
 }
 
 #designMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
 }
 
 /* Effets au survol */
 #designMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.2);
 }
 
 #designMetrics .metric-card:hover::before {
    opacity: 1;
 }
 
 /* Styles spécifiques pour les différents types de valeurs */
 #designMetrics .metric-card[data-type="ratio"] .metric-value {
    font-family: 'Consolas', monospace;
 }
 
 #designMetrics .metric-card[data-type="harmony"] .metric-value {
    font-size: 1.6em;
    text-transform: capitalize;
 }
 
 #designMetrics .metric-card[data-type="weight"] .metric-value {
    font-size: 1.8em;
    font-weight: 600;
 }
 
 /* Indicateurs visuels */
 .design-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
 }
 
 /* Responsive adjustments */
 @media (max-width: 768px) {
    #designMetrics {
        grid-template-columns: 1fr;
    }
 
    #designMetrics .metric-value {
        font-size: 1.6em;
        min-height: 50px;
    }
 }





/*****************************/
/*  4. COMPOSITION ANALYSIS */
/*****************************/
#compositionMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
 }
 
 #compositionMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #e0e0e0;
 }
 
 /* Styles de mise en page spécifiques */
 #compositionMetrics .metric-card h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
 }
 
 /* Icônes pour chaque métrique */
 #compositionMetrics .metric-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
 }
 
 /* Icônes spécifiques par type de métrique */
 #compositionMetrics .metric-card:nth-child(1) h3::before {
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="%232196f3"><path d="M4 4h4v4H4zm6 0h4v4h-4zm6 0h4v4h-4zM4 10h4v4H4zm6 0h4v4h-4zm6 0h4v4h-4zM4 16h4v4H4zm6 0h4v4h-4zm6 0h4v4h-4z"/></svg>');
 }
 
 /* Valeurs et descriptions */
 #compositionMetrics .metric-value {
    font-size: 2.2em;
    color: #2196f3;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
 }
 
 #compositionMetrics .metric-description {
    color: #757575;
    font-size: 0.95em;
    text-align: center;
    line-height: 1.5;
    margin-top: 15px;
 }
 
 /* Barres de progression pour les scores */
 .progress-container {
    background: #e3f2fd;
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
 }
 
 .progress-bar {
    height: 100%;
    background: #2196f3;
    border-radius: 4px;
    transition: width 0.6s ease;
 }
 
 /* Styles spécifiques pour chaque type de métrique */
 #compositionMetrics .metric-card[data-type="rule-thirds"] .progress-bar {
    background: linear-gradient(90deg, #2196f3 0%, #1565c0 100%);
 }
 
 #compositionMetrics .metric-card[data-type="symmetry"] .progress-bar {
    background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
 }
 
 #compositionMetrics .metric-card[data-type="balance"] .progress-bar {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
 }
 
 /* Effets au survol */
 #compositionMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.15);
 }
 
 /* Styles responsifs */
 @media (max-width: 768px) {
    #compositionMetrics {
        grid-template-columns: 1fr;
    }
    
    #compositionMetrics .metric-value {
        font-size: 1.8em;
    }
 }
 
 /* Animation des valeurs lors du chargement */
 @keyframes valueAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
 }
 
 #compositionMetrics .metric-value {
    animation: valueAppear 0.5s ease-out;
 }




/*****************************/
/*    5. VISUALIZATIONS + 11 ADDITIONAL VISUALIZATIONS   */
/*****************************/

.visualizations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* Container principal */
.canvas-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

/* En-têtes */
.canvas-container h3 {
    color: #1a237e;
    font-size: 1.4em;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3f2fd;
    display: flex;
    align-items: center;
}

/* Wrapper pour maintenir le ratio */
.canvas-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* Ratio 5:3 */
    height: 0;
    overflow: hidden;
    background: linear-gradient(45deg, #f9f9f9, #f0f0f0);
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Style des canvas */
.canvas-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    animation: canvasFadeIn 0.5s ease-out;
}

/* Styles spécifiques pour chaque type de canvas */
#histogramCanvas {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

#edgeCanvas {
    background: #000;
    opacity: 0.9;
}

#textureCanvas, #emotionCanvas {
    background: transparent;
}

/* Légende de la Texture Heatmap */
.canvas-container.texture-heatmap .visualization-legend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.canvas-container.texture-heatmap .legend-gradient {
    width: 100%;
    max-width: 400px;
}

.canvas-container.texture-heatmap .legend-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    font-size: 0.9em;
    color: #666;
}

.canvas-container.texture-heatmap .legend-item {
    display: flex;
    align-items: center;
}

.canvas-container.texture-heatmap .legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

.visualization-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}






/* Informations */
.visualization-info {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 0.9em;
    color: #1565c0;
    line-height: 1.5;
}

/* Contrôles */
.visualization-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.control-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: #2196f3;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

/* États de chargement */
.canvas-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1565c0;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Animations */
@keyframes canvasFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .canvas-container {
        background: #1a1a1a;
    }

    .canvas-container h3 {
        color: #64b5f6;
        border-bottom-color: #2196f3;
    }

    .canvas-wrapper {
        background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    }

    .canvas-container.texture-heatmap .visualization-legend {
        background: #263238;
    }

    .canvas-container.texture-heatmap .legend-labels {
        color: #bbb;
    }

    .visualization-legend {
        background: #263238;
    }

    .legend-item {
        color: #bbb;
    }

    .visualization-info {
        background: #263238;
        color: #90caf9;
    }

    .canvas-container.loading::after {
        background: rgba(26, 26, 26, 0.9);
        color: #90caf9;
    }
}

/* Responsive */
@media (max-width: 960px) {
    .visualizations {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .canvas-wrapper {
        padding-bottom: 70%; /* Ratio légèrement différent sur mobile */
    }

    .canvas-container {
        padding: 15px;
    }

    .canvas-container.texture-heatmap .visualization-legend {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .visualization-legend {
        flex-wrap: wrap;
        justify-content: space-around;
    }
}



/*****************************/
/*    6. TEXTURE ANALYSIS   */
/*****************************/
#textureMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

#textureMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid #9b59b6; /* Violet pour les métriques de texture */
}

#textureMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(155, 89, 182, 0.2);
}

#textureMetrics h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#textureMetrics .metric-value {
    font-size: 2em;
    color: #9b59b6;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

#textureMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
}

/*****************************/
/*    7. EMOTIONAL ANALYSIS */
/*****************************/
#emotionalMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

#emotionalMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid #e74c3c; /* Rouge pour les métriques émotionnelles */
}

#emotionalMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.2);
}

#emotionalMetrics h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#emotionalMetrics .metric-value {
    font-size: 2em;
    color: #e74c3c;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

#emotionalMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
}

/*****************************/
/*  8. ADVANCED TECH METRICS*/
/*****************************/
#technicalMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

#technicalMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid #1abc9c; /* Vert pour les métriques techniques */
}

#technicalMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.2);
}

#technicalMetrics h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#technicalMetrics .metric-value {
    font-size: 2em;
    color: #1abc9c;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

#technicalMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
}

/*****************************/
/*   9. GEOMETRIC ANALYSIS  */
/*****************************/
#geometricMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

#geometricMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid #f39c12; /* Orange pour les métriques géométriques */
}

#geometricMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.2);
}

#geometricMetrics h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#geometricMetrics .metric-value {
    font-size: 2em;
    color: #f39c12;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

#geometricMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
}

/*****************************/
/*    10. AI-POWERED ANALYSIS*/
/*****************************/
#aiMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

#aiMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid #3498db; /* Bleu pour les métriques IA */
}

#aiMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.2);
}

#aiMetrics h3 {
    color: #1a237e;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#aiMetrics .metric-value {
    font-size: 2em;
    color: #3498db;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
}

#aiMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
}







/*****************************/
/*  11. ADDITIONAL VISUALIZATIONS  =====>>> 5. Visualizations */
/*****************************/



/*****************************/
/*    12. UI/UX METRICS     */
/*****************************/


.metric-value {
    font-size: 1.2em;
    padding: 10px;
}

.confidence-score {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.characteristics {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

.high-confidence {
    color: #2e7d32;
}

.medium-confidence {
    color: #f57c00;
}

.low-confidence {
    color: #c62828;
}






#uiuxMetrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

#uiuxMetrics .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid #7c4dff; /* Purple for UI/UX metrics */
    overflow: hidden;
}

/* Gradient overlay effect */
#uiuxMetrics .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(124, 77, 255, 0) 100%);
    border-radius: 0 15px 0 50%;
}

#uiuxMetrics .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.2);
}

#uiuxMetrics h3 {
    color: #303f9f;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

#uiuxMetrics .metric-value {
    font-size: 1.8em;
    color: #7c4dff;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

#uiuxMetrics .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 10px 0;
    padding: 10px;
    background: rgba(124, 77, 255, 0.05);
    border-radius: 8px;
}

#uiuxMetrics .metric-explanation {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(124, 77, 255, 0.2);
    display: none; /* Hidden by default */
}

/* Show explanation on hover */
#uiuxMetrics .metric-card:hover .metric-explanation {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Specific styles for different metric types */
#uiuxMetrics .metric-card[data-type="tool"] {
    border-left-color: #e91e63;
}

#uiuxMetrics .metric-card[data-type="palette"] {
    border-left-color: #2196f3;
}

#uiuxMetrics .metric-card[data-type="system"] {
    border-left-color: #4caf50;
}

/* Score indicators */
.score-indicator {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.score-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.score-dot.active {
    background: #7c4dff;
}

/* Progress bars */
.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c4dff 0%, #b388ff 100%);
    transition: width 0.5s ease;
}

/* Tags for categorization */
.metric-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.metric-tag {
    padding: 4px 8px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 4px;
    font-size: 0.8em;
    color: #7c4dff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #uiuxMetrics {
        grid-template-columns: 1fr;
    }

    #uiuxMetrics .metric-card {
        padding: 20px;
    }

    #uiuxMetrics .metric-value {
        font-size: 1.6em;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #uiuxMetrics .metric-card {
        background: #1e1e1e;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    #uiuxMetrics h3 {
        color: #b388ff;
    }

    #uiuxMetrics .metric-description {
        background: rgba(124, 77, 255, 0.1);
        color: #bbb;
    }

    #uiuxMetrics .metric-explanation {
        color: #aaa;
        border-top-color: rgba(124, 77, 255, 0.3);
    }

    .metric-tag {
        background: rgba(124, 77, 255, 0.2);
    }
}

/* Loading states */
#uiuxMetrics .metric-card.loading {
    position: relative;
}

#uiuxMetrics .metric-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #7c4dff;
}

/* Print styles */
@media print {
    #uiuxMetrics {
        display: block;
    }

    #uiuxMetrics .metric-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
        margin-bottom: 20px;
    }

    #uiuxMetrics .metric-explanation {
        display: block;
    }
}


/* Common styles for standalone metric cards */
#uiuxMetrics + .metric-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 25px;
    border-left: 4px solid #7c4dff;
}

/* Typography Analysis Card */
.metric-card:has(h3:contains("Typography Analysis")) {
    border-left-color: #ff4081; /* Pink for typography */
}

/* Visual Hierarchy Score Card */
.metric-card:has(h3:contains("Visual Hierarchy")) {
    border-left-color: #00bcd4; /* Cyan for hierarchy */
}

/* Grid System Alignment Card */
.metric-card:has(h3:contains("Grid System")) {
    border-left-color: #ffd740; /* Amber for grid systems */
}

/* Design Trend Card */
.metric-card:has(h3:contains("Design Trend")) {
    border-left-color: #64dd17; /* Light green for trends */
}

/* Accessibility Card */
.metric-card:has(h3:contains("Accessibility")) {
    border-left-color: #aa00ff; /* Purple for accessibility */
}

/* Emotional Design Card */
.metric-card:has(h3:contains("Emotional Design")) {
    border-left-color: #f50057; /* Pink for emotional */
}

/* Creative Complexity Card */
.metric-card:has(h3:contains("Creative Complexity")) {
    border-left-color: #304ffe; /* Indigo for complexity */
}

/* Digital Reproduction Card */
.metric-card:has(h3:contains("Digital Reproduction")) {
    border-left-color: #00bfa5; /* Teal for digital */
}

/* Cognitive Load Card */
.metric-card:has(h3:contains("Cognitive Load")) {
    border-left-color: #ff6d00; /* Orange for cognitive */
}

/* Brand Consistency Card */
.metric-card:has(h3:contains("Brand Consistency")) {
    border-left-color: #2962ff; /* Blue for brand */
}

/* Interactive Potential Card */
.metric-card:has(h3:contains("Interactive Potential")) {
    border-left-color: #00c853; /* Green for interactive */
}

/* Cultural Design Card */
.metric-card:has(h3:contains("Cultural Design")) {
    border-left-color: #d50000; /* Red for cultural */
}

/* Common heading styles */
#uiuxMetrics + .metric-card h3 {
    color: #303f9f;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Common value styles */
#uiuxMetrics + .metric-card .metric-value {
    font-size: 1.8em;
    font-weight: 500;
    text-align: center;
    margin: 15px 0;
    transition: color 0.3s ease;
}

/* Common description styles */
#uiuxMetrics + .metric-card .metric-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 10px 0;
    padding: 10px;
    background: rgba(124, 77, 255, 0.05);
    border-radius: 8px;
}

/* Common explanation styles */
#uiuxMetrics + .metric-card .metric-explanation {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(124, 77, 255, 0.2);
}

/* Hover effects */
#uiuxMetrics + .metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(124, 77, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    #uiuxMetrics + .metric-card {
        padding: 20px;
    }

    #uiuxMetrics + .metric-card .metric-value {
        font-size: 1.6em;
    }

    #uiuxMetrics + .metric-card .metric-explanation {
        font-size: 0.85em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #uiuxMetrics + .metric-card {
        background: #1e1e1e;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    #uiuxMetrics + .metric-card h3 {
        color: #b388ff;
    }

    #uiuxMetrics + .metric-card .metric-description {
        background: rgba(124, 77, 255, 0.1);
        color: #bbb;
    }

    #uiuxMetrics + .metric-card .metric-explanation {
        color: #aaa;
    }
}

/* Print styles */
@media print {
    #uiuxMetrics + .metric-card {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
        margin-bottom: 20px;
    }
}





























/*****************************/
/*    CONTACT SECTION       */
/*****************************/
.contact-section {
    padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 40px);
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: min(1200px, 90vw);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-card {
    background: white;
    padding: clamp(30px, 5vw, 50px);
    border-radius: clamp(10px, 2vw, 15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    max-width: min(600px, 95%);
    width: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #2196f3;
    margin: 0 auto;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.15);
}

.contact-card h2 {
    color: #1a237e;
    font-size: clamp(1.5em, 4vw, 2em);
    margin-bottom: clamp(15px, 3vw, 25px);
    font-weight: 600;
    line-height: 1.2;
}

.contact-card p {
    color: #666;
    font-size: clamp(1em, 2.5vw, 1.1em);
    line-height: 1.6;
    margin-bottom: clamp(20px, 4vw, 30px);
    max-width: 45ch;
    margin-left: auto;
    margin-right: auto;
}

.buttons-wrapper {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.back-btn, .connect-btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 10px);
    padding: clamp(10px, 2vw, 12px) clamp(20px, 3vw, 24px);
    border-radius: 8px;
    font-size: clamp(0.9em, 2.5vw, 1.1em);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.back-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.connect-btn {
    background: #2196f3;
    color: white;
    border: 1px solid #1976d2;
}

.back-btn:hover, .connect-btn:hover {
    transform: scale(1.05);
}

.back-btn svg, .connect-btn svg {
    width: clamp(16px, 3vw, 20px);
    height: clamp(16px, 3vw, 20px);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Tablette */
@media (max-width: 1024px) {
    .contact-card {
        padding: 35px 25px;
    }
    

}

/* Mobile Large */
@media (max-width: 768px) {
    .contact-section {
        padding: 30px 15px;
        min-height: 40vh;
    }

    .contact-card {
        padding: 25px 20px;
        border-left-width: 3px;
    }

    .buttons-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .back-btn, .connect-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .contact-section {
        padding: 25px 12px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .back-btn, .connect-btn {
        font-size: 0.95em;
        padding: 10px 16px;
    }

    .back-btn svg, .connect-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 320px) {
    .contact-card h2 {
        font-size: 1.3em;
    }

    .contact-card p {
        font-size: 0.9em;
    }

    .back-btn, .connect-btn {
        font-size: 0.9em;
        padding: 8px 14px;
        min-width: auto;
    }
}

/* Support tactile */
@media (hover: none) {
    .contact-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .back-btn:active, .connect-btn:active {
        transform: scale(0.98);
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .contact-card {
        background: #1e1e1e;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .contact-card h2 {
        color: #90caf9;
    }

    .contact-card p {
        color: #bbb;
    }

    .back-btn {
        background: #2d2d2d;
        color: #fff;
        border-color: #404040;
    }

    .back-btn:hover {
        background: #404040;
    }
}

/* Support d'impression */
@media print {
    .contact-section {
        padding: 20px;
        min-height: auto;
    }

    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .buttons-wrapper {
        display: none;
    }
}







/* Footer Styles */
footer {
    background: white;
    padding: clamp(30px, 5vh, 50px) clamp(20px, 5vw, 40px);
    text-align: center;
    position: relative;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Style gradient subtil en haut du footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        to right,
        rgba(33, 150, 243, 0),
        rgba(33, 150, 243, 0.5),
        rgba(33, 150, 243, 0)
    );
}

footer p {
    color: #1a237e;
    font-size: clamp(1em, 2.5vw, 1.2em);
    font-weight: 500;
    margin-bottom: clamp(8px, 1.5vh, 12px);
}

footer small {
    color: #666;
    font-size: clamp(0.8em, 2vw, 0.9em);
    display: block;
    position: relative;
    padding-top: clamp(10px, 2vh, 15px);
}

/* Ligne décorative au-dessus du copyright */
footer small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(33, 150, 243, 0.3);
    border-radius: 2px;
}

/* Animation hover */
footer:hover {
    box-shadow: 0 -4px 20px rgba(33, 150, 243, 0.05);
}

/* Animation pour le texte au hover */
footer:hover p {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Transition de base pour tous les éléments */
footer, footer p, footer small {
    transition: all 0.3s ease;
}


































/*****************************/
/*      METHODOLOGY         */
/*****************************/
.methodology-section {
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
 }
 
 /* En-tête de la méthodologie */
 .methodology-section h2 {
    color: #1a237e;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2196f3;
 }
 
 /* Conteneur d'accordéon */
 .accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
 }
 
 /* Style des boutons d'accordéon */
 .accordion-btn {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    text-align: left;
    font-size: 1.2em;
    color: #1565c0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
 }
 
 .accordion-btn::after {
    content: '+';
    font-size: 1.5em;
    color: #2196f3;
    transition: transform 0.3s ease;
 }
 
 .accordion-btn.active::after {
    content: '−';
    transform: rotate(180deg);
 }
 
 /* Contenu de l'accordéon */
 .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: white;
    border-radius: 0 0 8px 8px;
 }
 
 .accordion-content.active {
    max-height: 2000px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
 }
 
 /* Bloc de méthodologie */
 .methodology-block {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
 }
 
 /* Explications des métriques */
 .metric-explanation h4 {
    color: #1565c0;
    margin: 20px 0 15px;
    font-size: 1.1em;
 }
 
 .formula-block {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
    margin: 15px 0;
 }
 
 .formula-title {
    color: #1565c0;
    font-weight: bold;
    margin-bottom: 10px;
 }
 
 code {
    display: block;
    background: #f1f3f5;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: #333;
    white-space: pre-wrap;
    margin: 10px 0;
 }
 
 /* Listes et éléments */
 .formula-list, 
 .visualization-details {
    list-style: none;
    padding-left: 0;
 }
 
 .formula-list li, 
 .visualization-details li {
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
 }
 
 .formula-list li::before,
 .visualization-details li::before {
    content: "•";
    color: #2196f3;
    position: absolute;
    left: 0;
 }
 
 /* Bloc d'exemple */
 .example-block {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
 }
 
 /* Animations */
 @keyframes accordionSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
 }
 
 .accordion-content.active {
    animation: accordionSlide 0.3s ease-out;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
    .methodology-section {
        padding: 20px;
    }
 
    .accordion-btn {
        padding: 15px;
        font-size: 1.1em;
    }
 
    code {
        font-size: 0.8em;
    }
 }


/*****************************/
/*    INTERACTION STATES    */
/*****************************/
/* Hover states améliorés */
.accordion-btn:hover {
    background: #e3f2fd;
    padding-left: 25px;
}

.formula-block:hover {
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

code:hover {
    background: #e8eaf6;
    transition: background 0.3s ease;
}

/*****************************/
/*     UTILITY CLASSES      */
/*****************************/
/* Classes d'aide pour les espacements et alignements */
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.p-2 { padding: 20px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Classes pour les couleurs de texte */
.text-primary { color: #2196f3; }
.text-secondary { color: #757575; }
.text-success { color: #4caf50; }
.text-warning { color: #ff9800; }
.text-danger { color: #f44336; }

/*****************************/
/*      PRINT STYLES        */
/*****************************/
@media print {
    body {
        background: white;
    }

    .methodology-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .accordion-content {
        max-height: none !important;
        display: block !important;
        page-break-inside: avoid;
    }

    .accordion-btn::after {
        display: none;
    }

    code {
        border: 1px solid #ddd;
    }
}

/*****************************/
/*     DARK MODE STYLES     */
/*****************************/
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #fff;
    }

    .methodology-section {
        background: #1e1e1e;
    }

    .accordion-btn {
        background: #2d2d2d;
        color: #90caf9;
    }

    .accordion-content {
        background: #1e1e1e;
    }

    code {
        background: #2d2d2d;
        color: #fff;
    }

    .formula-block {
        background: #2d2d2d;
    }

    .example-block {
        background: #263238;
    }
}

/*****************************/
/*     ANIMATIONS EXTRAS    */
/*****************************/
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.methodology-section h2:hover {
    animation: pulse 1s infinite;
}

/*****************************/
/*    LOADING STATES        */
/*****************************/
.loading {
    position: relative;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

