/**
 * Bloc: Team - Fiches équipe carousel
 * Design exact selon Figma node 3635-2742
 */

.team {
    padding: 80px 0 0 0;
    background-color: #FFFFFF;
    overflow: visible;
}

/* Header avec titre - FOND BLANC */
.team__header {
    max-width: var(--container-max-width);
    margin: 0 auto 60px;
    padding-left: var(--container-padding-x-fluid);
    padding-right: var(--container-padding-x-fluid);
    background-color: #FFFFFF;
}

.team__title {
    font-family: 'tt-commons-pro-thin', 'TT Commons Pro', sans-serif;
    font-size: 64px;
    font-weight: 100;
    line-height: 1.2;
    color: var(--color-noir);
    text-align: left;
    margin: 0;
}

/* Wrapper carousel avec navigation - FOND NOIR hauteur fixe */
.team__carousel-wrapper {
    position: relative;
    width: 100%;
    background-color: #000000;
    height: 740px;
}

/* Zone de scroll */
.team__carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}

.team__carousel::-webkit-scrollbar {
    display: none;
}

/* Grid horizontal - Hauteur fixe */
.team__grid {
    display: flex;
    gap: 20px;
    padding: 0 80px;
    min-width: min-content;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

/* Fiche membre - Hauteur FIXE 740px */
.team__member {
    flex: 0 0 450px;
    height: 740px;
    background-color: #000;
    transition: flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: flex-basis;
    overflow: hidden;
    position: relative;
}

.team__member:hover {
    flex: 0 0 900px;
}

/* Card - Position absolue pour éviter tout mouvement */
.team__card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    background-color: #000;
    color: #fff;
}

/* Partie gauche (photo + info fermée) - Position absolue */
.team__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Photo - Carrée 450x450px */
.team__photo {
    width: 450px;
    height: 450px;
    overflow: hidden;
    flex-shrink: 0;
}

.team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info fermée - Position et hauteur fixes */
.team__info--closed {
    position: absolute;
    top: 450px;
    left: 0;
    width: 450px;
    height: 290px;
    padding: 40px;
    background-color: #000;
    box-sizing: border-box;
    overflow: hidden;
}

.team__name {
    font-family: 'PP Neue Machina', sans-serif;
    font-size: 28.7px;
    font-weight: 300;
    color: #F0EFEF;
    margin: 0 0 10px 0;
    line-height: 31.46px;
    letter-spacing: -0.04em;
}

/* Séparateur */
.team__separator {
    width: 100%;
    height: 1px;
    background-color: rgba(240, 239, 239, 0.3);
    margin: 10px 0;
}

.team__position {
    font-family: 'PP Neue Machina', sans-serif;
    font-size: 16.6px;
    font-weight: 300;
    color: #F0EFEF;
    margin: 0;
    line-height: 19.23px;
    letter-spacing: 0;
    white-space: pre-line;
}

/* Partie droite (détails) - Position absolue à droite */
.team__right {
    position: absolute;
    top: 0;
    left: 450px;
    width: 450px;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    overflow-y: auto;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background-color: #000;
}

.team__member:hover .team__right {
    opacity: 1;
    pointer-events: auto;
}

/* Scrollbar partie droite */
.team__right::-webkit-scrollbar {
    width: 4px;
}

.team__right::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.team__right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Titres sections détails */
.team__right h4 {
    font-family: 'PP Neue Machina', sans-serif;
    font-size: 18.95px;
    font-weight: 300;
    color: #F0EFEF;
    margin: 0 0 5.66px 0;
    line-height: 30.69px;
    letter-spacing: -0.01em;
}

.team__right h4:not(:first-child) {
    margin-top: 20px;
}

/* Paragraphes détails */
.team__right p {
    font-family: 'tt-commons-pro', 'TT Commons Pro', sans-serif;
    font-size: 14.32px;
    font-weight: 300;
    color: #F0EFEF;
    line-height: 19.36px;
    margin: 0 0 5.66px 0;
    letter-spacing: -0.005em;
}

.team__right p:last-child {
    margin-bottom: 0;
}

/* Navigation flèches */
.team__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team__nav:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.team__nav--prev {
    left: 20px;
}

.team__nav--next {
    right: 20px;
}

.team__nav svg {
    width: 24px;
    height: 24px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .team {
        padding: 60px 0 0 0;
    }
    
    .team__header {
        margin-bottom: 40px;
    }
    
    .team__title {
        font-size: 32px;
    }
    
    .team__carousel-wrapper {
        height: auto;
    }
    
    .team__grid {
        padding: 0 20px;
        height: auto;
    }
    
    .team__member {
        flex: 0 0 320px;
        height: auto;
        position: static;
    }
    
    .team__member:hover {
        flex: 0 0 320px;
    }
    
    .team__card {
        position: static;
        flex-direction: column;
        height: auto;
    }
    
    .team__left {
        position: static;
        flex: 0 0 100%;
        width: 100%;
        height: auto;
    }
    
    .team__photo {
        width: 100%;
        height: 320px;
    }
    
    .team__info--closed {
        position: static;
        width: 100%;
        padding: 20px;
        height: auto;
    }
    
    .team__name {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .team__position {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .team__right {
        position: static;
        width: 100%;
        padding: 20px;
        opacity: 1;
        pointer-events: auto;
        height: auto;
    }
    
    .team__nav {
        width: 40px;
        height: 40px;
    }
    
    .team__nav--prev {
        left: 10px;
    }
    
    .team__nav--next {
        right: 10px;
    }
}
