.top-height {
    height: 7rem; /* Hauteur de la barre supérieure */
}
@media screen and (max-width: 61rem) {
    .top-height {
        height: 4rem;
    }
}

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

.result-detail-main-section {
    padding: 20px 35px;
    background-color: #e9edf9;
    border-radius: 12px;
    margin-bottom: 3rem;
}

/* Section principale avec titre et description */
.result-detail-main-content {
    display: flex;
    margin-bottom: 3rem;
}

.result-detail-content-left {
    width: 100%; /* 75% de la largeur comme demandé */
}

.result-detail-content-right {
    width: 0%; /* 25% réservés pour le futur bouton PDF */
}

/* Styles du titre */
.result-detail-main-title {
    /* font-size: 36px; */
    margin-bottom: 2rem;
}

/* Styles de la description */
.result-detail-description {
    font-weight: var(--font-weight-regular);
}

/* Section des chercheurs */
.result-detail-researchers {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    width: 100%; /* Prend toute la largeur comme demandé */
    font-size: 1.4rem;
}

.result-detail-researcher {
    display: flex;
    align-items: center;
}

.result-detail-researcher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 1.5rem;
}

.result-detail-researcher-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 50%;
}

.result-detail-researcher-info {
    display: flex;
    flex-direction: column;
}

.result-detail-researcher-name {
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.3rem;
}

.result-detail-researcher-role {
    font-weight: var(--font-weight-light);
}

/* Media queries pour la responsivité */

/* Écrans de taille moyenne (tablettes et petits ordinateurs) */
@media screen and (max-width: 1250px) {
    .result-detail-main-content {
        flex-direction: column;
    }
    
    .result-detail-content-left {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .result-detail-content-right {
        width: 100%;
        /* On peut ajouter ici des styles pour repositionner le bouton PDF */
        /* Par exemple, aligner à droite */
        display: flex;
        justify-content: flex-end;
    }
}

/* Écrans de taille moyenne à petite */
@media screen and (max-width: 768px) {
    .result-detail-main-section {
        padding: 15px 20px;
        margin-bottom: 5rem;
    }
    
    .result-detail-main-title {
        /* font-size: 2.4rem; Ajustez selon votre système de taille */
        margin-bottom: 1.5rem;
    }
    

    .result-detail-researchers {
        gap: 2rem;
    }
}

/* Petits écrans (smartphones) */
@media screen and (max-width: 480px) {
    .result-detail-main-section {
        padding: 15px;
        margin-bottom: 3rem;
        border-radius: 8px;
    }
    
    
    .result-detail-researchers {
        gap: 1.5rem;
    }
    
    /* Ajustement pour que les chercheurs prennent plus d'espace sur mobile */
    .result-detail-researcher {
        width: 100%; /* Chaque chercheur prend toute la largeur sur mobile */
    }
    
    .result-detail-researcher-avatar {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }
}

/* Très petits écrans */
@media screen and (max-width: 320px) {
    .result-detail-main-section {
        padding: 10px;
    }
    
    .result-detail-main-title {
        font-size: 2rem;
    }
    
}

/* Section des visualisations */
.result-detail-visualizations-title {
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 2rem;
}

.viz-buttons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    }

.viz-button {
    background-color: #e9e9e9;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 5px 10px 5px 10px;
    font-size: 16px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-button.active {
    background-color: #2350e5;
    color: white;
    font-weight: 500;
}


/* VIZZZZ */

/* Layout en grille */
/* Layout en grille - modifié pour permettre des hauteurs différentes */
.viz-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start; /* Important: empêche l'alignement en hauteur */
    margin-bottom: 3rem; /* Ajout d'une marge en bas pour espacer des autres sections */
}


/* Panneau de gauche */
.viz-left-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.viz-title {
    display: none;
}

.viz-title.active {
    display: block;
    margin-bottom: 1rem;
}


.viz-graph-container {
    height: 43rem;
    margin-bottom: 1rem;
    position: relative;
}

.viz-graph {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    display: none;
}

.viz-graph.active {
    display: block;
}

/* Style pour les descriptions */
.viz-description {
    padding: 10px 0;
    line-height: 1.6;
    display: none; /* Toutes les descriptions sont cachées par défaut */
}

.viz-description.active {
    margin-top: 4rem;
    display: block; /* Seule la description active est affichée */
}


/* Panneau de droite - hauteur automatique */
.viz-right-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    height: auto; /* Hauteur automatique basée sur le contenu */
    align-self: flex-start; /* Empêche l'étirement vertical */
}

.viz-metadata-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.viz-metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.viz-metadata-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.viz-metadata-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.viz-metadata-value {
    font-weight: bold;
}

.viz-metadata-full-width {
    grid-column: 1 / span 2;
}

.viz-institution {
    display: flex;
    align-items: center;
    gap: 10px;
}

.viz-institution-logo {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsivité pour mobile */
@media (max-width: 768px) {
    .viz-content-grid {
        grid-template-columns: 1fr;
    }

    .viz-buttons-container {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .viz-button {
        white-space: nowrap;
    }


    .viz-metadata-grid {
        grid-template-columns: 1fr;
    }

    .viz-metadata-full-width {
        grid-column: auto;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
}


/* Titre principal */
.result-main-title {
    margin-top: 3rem;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Layout en grille */
.result-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Panneau de gauche */
.result-main-left-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

/* Style de la liste ordonnée */
.result-main-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    counter-reset: result-counter;
}

.result-main-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.result-main-item::before {
    content: counter(result-counter);
    counter-increment: result-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: #c7d1f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.result-main-item-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
}

.results-section-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
}

.result-main-item-description {
    font-size: 16px;
    margin: 0;
}

/* Section conclusion */
.result-main-conclusion {
    margin-top: 30px;
}

.result-main-conclusion-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-main-conclusion-text {
    font-size: 16px;
}

/* Panneau de droite */
.result-main-right-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.result-main-citation-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
}

.result-main-citation-text {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    .result-main-grid {
        grid-template-columns: 1fr;
    }
    
    .result-main-left-panel,
    .result-main-right-panel {
        padding: 20px;
    }
    
    .result-main-item {
        padding-left: 60px;
    }
    
    .result-main-item::before {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .result-main-container {
        padding: 15px;
    }
    
    .result-main-left-panel,
    .result-main-right-panel {
        padding: 15px;
    }
    
    .result-main-item {
        padding-left: 50px;
    }
    
    .result-main-item::before {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .result-main-item-title {
        font-size: 16px;
    }
    
    .result-main-item-description,
    .result-main-conclusion-text,
    .result-main-citation-text {
        font-size: 14px;
    }
}

/* Titre principal */
.methodology-title {
    margin-top: 2rem;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Layout en grille avec ratio 2:1 */
.methodology-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Ratio 2:1 comme demandé */
    gap: 20px;
    align-items: start;
}

/* Panneau de gauche */
.methodology-left-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.methodology-intro {
    margin-bottom: 30px;
}



.methodology-section-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Style de la liste ordonnée */
/* .methodology-protocol-text {
} */

.methodology-protocol-text ol {
        padding-left: 20px;
    margin-bottom: 30px;

}

.methodology-protocol-text li {
    padding-left: 20px;
    margin-bottom: 15px;

}

/* .methodology-list-item {
    margin-bottom: 15px;
} */

/* Ligne séparatrice */
.limitations-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 30px 0;
}

.results-limitations {
    margin-top: 30px;
}

/* Panneau de droite */
.methodology-right-panel {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.results-questions-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
}

.results-questions-text {
    font-size: 16px;
}

/* Media queries pour la responsivité */
@media screen and (max-width: 1024px) {
    .methodology-grid {
        gap: 15px;
    }
    
    .methodology-left-panel,
    .methodology-right-panel {
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr; /* Passe à une colonne sur tablette */
    }
    
    .methodology-left-panel,
    .methodology-right-panel {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .methodology-container {
        padding: 15px;
    }
    
    .methodology-title {
        font-size: 24px;
    }
    
    .methodology-left-panel,
    .methodology-right-panel {
        padding: 15px;
    }
    
    .methodology-section-title,
    .results-questions-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .methodology-divider {
        margin: 20px 0;
    }
}