/* Variables de la charte graphique */
:root {
    --primary-dark: #1c396f;
    --primary-light: #6aa2db;
    --bg-light: #f8fafc;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
}

/* Styles pour le carré bleu avec la croix "+" */
.overlay-plus {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: #1c396f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 4px;
}

.teamMember__thumb:hover .overlay-plus {
    opacity: 1;
}

.plus-icon {
    font-size: 24px;
    font-weight: bold;
}

/* Styles pour le popup modal */
.message-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.message-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 80%;
    max-width: 900px;
    position: relative;
    animation: modalFadeIn 0.3s;
    box-shadow: 0 10px 40px rgba(28, 57, 111, 0.1);
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.message-close:hover {
    color: #1c396f;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Styles pour la carte bio */
.bio-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(28, 57, 111, 0.1);
    overflow: hidden;
}

/* Photo section */
.bio-photo-wrapper {
    position: relative;
    padding: 40px;
    background: linear-gradient(
        180deg,
        var(--primary-dark) 50%,
        var(--white) 50%
    );
}

.bio-photo-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.bio-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(28, 57, 111, 0.3);
    border: 5px solid var(--white);
}

.bio-photo-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-light);
    border-radius: 15px;
    top: 15px;
    left: 15px;
    z-index: -1;
}

/* Info section */
.bio-info {
    padding: 40px;
}

.bio-name {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.bio-title {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-title::before {
    content: "";
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.bio-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    margin: 25px 0;
}

.bio-description {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.bio-description p {
    margin-bottom: 15px;
}

/* Style pour la barre de défilement */
.bio-description::-webkit-scrollbar {
    width: 8px;
}

.bio-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.bio-description::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.bio-description::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Styles pour les boutons de navigation */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 57, 111, 0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 18px;
}

.nav-btn:hover {
    background: rgba(28, 57, 111, 1);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn-prev {
    left: 20px;
}

.nav-btn-next {
    right: 20px;
}

.position-indicator {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .message-modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .bio-card {
        flex-direction: column;
    }

    .bio-photo-wrapper {
        padding: 30px;
    }

    .bio-photo-container {
        max-width: 250px;
    }

    .bio-description {
        max-height: 200px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .nav-btn-prev {
        left: 10px;
    }

    .nav-btn-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .message-modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .bio-info {
        padding: 25px;
    }

    .bio-name {
        font-size: 1.5rem;
    }

    .bio-description {
        max-height: 180px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }
}

/* additional CSS */
.teamMember__content {
    min-height: 8em;
}
