/* For profile list */
.profile-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.profile-card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 40px 40px 0 40px;
}

.profile-card:hover {
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}



.profil-container-wrapper {
    max-width: 1200px; 
    margin: 0 auto;
    margin-top: 8rem;
}

/* Section profil - Design amélioré */
.profile-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
    position: relative;
}

/* Layout pour photo et infos */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 1rem;
    width: 100%;
    position: relative;
    padding-bottom: 1rem;
    /* border-bottom: 1px solid #e0e0e0; */
}

.profile-image {
    width: clamp(100px, 15vw, 150px);
    height: clamp(100px, 15vw, 150px);
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}


.profile-photo {
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.profile-name {
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: #222;
}

.profile-position {
    font-size: var(--font-size-description);
    color: #333;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.profile-position::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--color-primary); /* Utilisation de la variable */
    border-radius: 2px;
}

/* Affiliations avec deux logos */
.affiliations {
    display: flex;
    gap: 35px;
    margin-top: 5px;
    margin-bottom: 25px;
}

.affiliation-item {
    display: flex;
    align-items: center;
}

.affiliation-logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.affiliation-text {
    display: flex;
    flex-direction: column;
}

.affiliation-name {
    font-weight: var(--font-weight-bold);
    font-size:  1.6rem;
}

.affiliation-role {
    font-size: 14px;
    color: #555;
    margin-top: 3px;
}

/* Thèmes - Style amélioré et déplacé */
.themes-section {
    margin-top: 1rem;
}

/* Suppression de la classe section-title */
.bio-section h4 {
    color: #222;
    margin-bottom: 1rem;
}

.themes {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.theme-label {
    background-color: #f5f5f5;
    color: #333;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: var(--font-size-detail-categories-label);
}


@media (max-width: 1000px) {
    .affiliations {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        width: 100%;
    }

    .affiliation-item {
        flex-direction: row;
        width: 100%;
    }

}

@media (max-width: 500px) {
    .profil-container-wrapper {
        margin-top: 4rem;
    }
    
    .profile-container {
        margin-bottom: 2rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info {
        align-items: center;
    }
    
    .profile-position::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .affiliations {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        width: 100%;
    }

    .affiliation-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .affiliation-logo {
        margin-right: 0;
        margin-bottom: 10px;
        width: 50px;
        height: 50px;
    }
    
    .affiliation-text {
        align-items: center;
        width: 100%;
    }
    
    h3 {
        text-align: center;
    }
    
    .themes {
        display: none;
    }

    .lab-section {
        display: none;
    }
    
    .profile-image {
        margin-bottom: 1rem;
    }
    
    .profile-name {
        font-size: 2.4rem;
    }
}

.researcher-detail-navbar-wrapper {
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 2rem;
}
  
.researcher-detail-navbar {
    display: flex;
    justify-content: left;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 2rem;
  
}
  
.researcher-detail-navbar li {
    position: relative;
}
  
.researcher-detail-navbar a {
    display: block;
    padding: 1rem 0.75rem;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s, background-color 0.3s;
    position: relative;
    white-space: nowrap;
    font-size: 1.6rem;
    font-weight: var(--font-weight-light);
}
  
.researcher-detail-navbar a:hover {
    border-radius: 3px;
    color: #4f46e5;
    background-color: #f0f4ff;
  }
  
.researcher-detail-navbar a.active {
    color: #4f46e5;
    font-weight: 500;
    border-bottom: 2px solid #4f46e5;
}

  

      
@media (max-width: 480px) {
        
    .researcher-detail-navbar a {
        padding: 0.75rem 0.2rem;
    }

    .researcher-section{
        min-height: 10rem;
    }
    
}

.researcher-detail-section {
    display: none;
    margin-bottom: 5rem;
    background-color: #f2f2f3;
    border-radius: 12px;
    padding: 25px 40px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 175px;
}

.researcher-detail-section.active {
  display: block; /* Seule la section active est affichée */
}


.researcher-detail-section ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.researcher-detail-section li {
  margin-bottom: 1rem;
}

.researcher-detail-section h4 {
    margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
    .researcher-detail-section {
        padding: 20px 20px;
    }
}

