/* ========================================================
   Apple Team Widget - Styles
   Design inspiré iOS pour Elementor
   ======================================================== */

/* Container principal */
.apple-team-widget {
    position: relative;
    width: 100%;
}

/* Grille de base */
.apple-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
    gap: 30px;
    padding: 10px;
    justify-content: center;
}

/* Colonnes responsive - grille auto-ajustable */
.apple-team-grid[data-columns="1"] { grid-template-columns: repeat(1, minmax(0, max-content)); }
.apple-team-grid[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, max-content)); }
.apple-team-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, max-content)); }
.apple-team-grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, max-content)); }
.apple-team-grid[data-columns="5"] { grid-template-columns: repeat(5, minmax(0, max-content)); }
.apple-team-grid[data-columns="6"] { grid-template-columns: repeat(6, minmax(0, max-content)); }
.apple-team-grid[data-columns="auto"] { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); }

/* Carte individuelle */
.apple-team-card {
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --rotation: 1.5deg;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    margin: 0 auto;
}

.apple-team-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Container de l'image */
.apple-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    margin: 0 auto;
}

.apple-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   Effets de survol
   ======================================================== */

.apple-team-card:hover .apple-image-wrapper {
    transform: scale(1.05) rotate(var(--rotation)) translateY(-8px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.apple-team-card:hover .apple-image-wrapper img {
    transform: scale(1.1);
}

/* ========================================================
   Informations texte - Version sous l'image
   ======================================================== */

.apple-member-info {
    padding: 24px 8px 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, transform .4s, opacity .4s;
    transition-delay: 0.1s;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--image-width, 100%);
    pointer-events: none;
}

.apple-team-card:hover .apple-member-info {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.apple-member-name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.apple-member-position {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #86868b;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ========================================================
   Version Overlay
   ======================================================== */

.apple-overlay .apple-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    border-radius: 0 0 24px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apple-overlay:hover .apple-overlay-info {
    opacity: 1;
    transform: translateY(0);
}

.apple-overlay-info .apple-member-name {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.apple-overlay-info .apple-member-position {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================================
   Effet de brillance
   ======================================================== */

.apple-shine .apple-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.apple-shine:hover .apple-image-wrapper::before {
    transform: rotate(45deg) translateX(100%);
}

/* ========================================================
   Effet Focus
   ======================================================== */

.apple-focus-container:has(.apple-team-card:hover) .apple-team-card:not(:hover) {
    opacity: 0.6;
    filter: blur(2px);
    transform: scale(0.95);
}

/* ========================================================
   Tablette (768px - 1024px)
   ======================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    /* Transformation en carrousel horizontal sur tablette */
    .apple-team-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        gap: 2px;
        padding: 40px 20px;
        margin: 0;
        /* Masquer la scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .apple-team-grid::-webkit-scrollbar {
        display: none;
    }

    /* Cartes en mode carrousel */
    .apple-team-grid .apple-team-card {
        flex: 0 0 auto;
        width: 280px;
        transition: filter 0.3s ease, opacity 0.3s ease;
    }

    /* Marges pour le début et fin */
    .apple-team-grid .apple-team-card:first-child {
        margin-left: 40px;
    }

    .apple-team-grid .apple-team-card:last-child {
        margin-right: 40px;
    }

    /* Infos toujours visibles sur tablette */
    .apple-member-info {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .apple-member-name {
        font-size: 18px;
    }

    .apple-member-position {
        font-size: 14px;
    }

    /* Effet de flou progressif basé sur la visibilité */
    .apple-team-card {
        transition: filter 0.2s ease, opacity 0.2s ease;
    }
}

/* ========================================================
   Mobile - Carrousel horizontal
   ======================================================== */

@media (max-width: 768px) {
    /* Transformation en carrousel fluide */
    .apple-team-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
        gap: 2px;
        padding: 30px 0;
        margin: 0;
        justify-content: flex-start !important; /* Forcer alignement à gauche */
        align-items: center;
        /* Masquer la scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .apple-team-grid::-webkit-scrollbar {
        display: none;
    }

    /* Cartes en mode carrousel */
    .apple-team-grid .apple-team-card {
        flex: 0 0 auto;
        width: 16em;
        margin: 0 !important; /* Enlever le centrage auto */
        transition: filter 0.3s ease, opacity 0.3s ease;
    }

    /* Centrage de la première carte sur mobile */
    .apple-team-grid .apple-team-card:first-child {
        margin-left: calc(1850px - 128px); /* Centrage de la première carte */
    }

    .apple-team-grid .apple-team-card:last-child {
        margin-right: calc(1850px - 128px);
    }
    
    /* Effet de flou progressif basé sur la visibilité sur mobile */
    .apple-team-card {
        transition: filter 0.2s ease, opacity 0.2s ease;
    }
    
    /* Ajustements visuels */
    .apple-image-wrapper {
        border-radius: 20px;
    }
    
    .apple-image-wrapper img {
        border-radius: 20px;
        aspect-ratio: 3/4;
    }
    
    /* Infos toujours visibles sur mobile */
    .apple-member-info {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    
    /* Effet hover réduit sur mobile */
    .apple-team-card:hover .apple-image-wrapper {
        transform: scale(1.02) rotate(0.5deg);
    }
    
    .apple-team-card:hover .apple-image-wrapper img {
        transform: scale(1.05);
    }
    
    /* Focus effect désactivé */
    .apple-focus-container:hover .apple-team-card:not(:hover) {
        opacity: 1;
        filter: none;
        transform: none;
    }
    
    .apple-member-name {
        font-size: 17px;
    }
    
    .apple-member-position {
        font-size: 14px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .apple-team-grid .apple-team-card {
        width: 14em;
    }

    .apple-team-grid .apple-team-card:first-child {
        margin-left: calc(1850px - 112px); /* Centrage adapté aux petits écrans */
    }

    .apple-team-grid .apple-team-card:last-child {
        margin-right: calc(1850px - 112px);
    }
}


/* ========================================================
   Animations d'entrée
   ======================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apple-team-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apple-team-card:nth-child(1) { animation-delay: 0.1s; }
.apple-team-card:nth-child(2) { animation-delay: 0.2s; }
.apple-team-card:nth-child(3) { animation-delay: 0.3s; }
.apple-team-card:nth-child(4) { animation-delay: 0.4s; }
.apple-team-card:nth-child(5) { animation-delay: 0.5s; }
.apple-team-card:nth-child(6) { animation-delay: 0.6s; }
.apple-team-card:nth-child(7) { animation-delay: 0.7s; }
.apple-team-card:nth-child(8) { animation-delay: 0.8s; }

/* ========================================================
   Effet cartes photo empilées
   ======================================================== */

.apple-team-stacked-layout {
    --card-r: 18px;
    --bg: #F4E5D6;
    --shadow: 0 14px 34px rgba(0,0,0,.18);
    --hover-scale: 1.06;
}

.apple-team-faces {
    --card-w: 220px;
    --overlap: -24px;
    --rotation-intensity: 3;
    display: flex;
    align-items: flex-end;
    perspective: 1200px;
    padding: 50px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.apple-stacked-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: var(--overlap, -24px);
    position: relative;
}

.apple-stacked-container:first-child {
    margin-left: 0;
}

.apple-stacked-card {
    position: relative;
    width: var(--card-w, 220px);
    aspect-ratio: 3/4;
    border-radius: var(--card-r);
    background: var(--bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-origin: var(--transform-origin-x, 50%) var(--transform-origin-y, 85%);
    transition: transform .35s ease, box-shadow .35s ease, z-index .35s;
    cursor: pointer;
    flex-shrink: 0;
}

.apple-stacked-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.apple-stacked-card::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
                rgba(0, 0, 0, 0.22) 0%,
                rgba(0, 0, 0, 0) 70%);
    filter: blur(8px);
    transform: scaleY(.35);
    pointer-events: none;
}

.apple-stacked-container:nth-child(1) .apple-stacked-card {
    transform: rotate(calc(-1deg * var(--rotation-intensity))) translateY(6px) rotateY(calc(-0.66deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(1) {
    z-index: 1;
}
.apple-stacked-container:nth-child(2) .apple-stacked-card {
    transform: rotate(calc(-0.33deg * var(--rotation-intensity))) translateY(2px) rotateY(calc(-0.33deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(2) {
    z-index: 2;
}
.apple-stacked-container:nth-child(3) .apple-stacked-card {
    transform: rotate(calc(0.33deg * var(--rotation-intensity))) translateY(0) rotateY(calc(0.33deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(3) {
    z-index: 3;
}
.apple-stacked-container:nth-child(4) .apple-stacked-card {
    transform: rotate(calc(0.17deg * var(--rotation-intensity))) translateY(4px) rotateY(calc(0.66deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(4) {
    z-index: 4;
}
.apple-stacked-container:nth-child(5) .apple-stacked-card {
    transform: rotate(calc(-0.5deg * var(--rotation-intensity))) translateY(2px) rotateY(calc(-0.33deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(5) {
    z-index: 5;
}
.apple-stacked-container:nth-child(6) .apple-stacked-card {
    transform: rotate(calc(0.5deg * var(--rotation-intensity))) translateY(5px) rotateY(calc(0.33deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(6) {
    z-index: 6;
}
.apple-stacked-container:nth-child(n+7) .apple-stacked-card {
    transform: rotate(calc(0.66deg * var(--rotation-intensity))) translateY(3px) rotateY(calc(0.5deg * var(--rotation-intensity)));
}
.apple-stacked-container:nth-child(n+7) {
    z-index: 7;
}

.apple-stacked-container:hover .apple-stacked-card {
    transform: translateY(-6px) rotate(0deg) rotateY(0deg) scale(var(--hover-scale));
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.apple-stacked-container:hover {
    z-index: 10;
}

.apple-stacked-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    background: transparent;
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
}

.apple-stacked-caption .apple-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 24px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    border-radius: 0 0 var(--card-r) var(--card-r);
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apple-stacked-caption .apple-overlay-info .apple-member-name {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    margin: 0 0 4px 0;
}

.apple-stacked-caption .apple-overlay-info .apple-member-position {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin: 0;
}

.apple-stacked-card:hover .apple-stacked-caption {
    opacity: 1;
}

.apple-stacked-card:hover .apple-stacked-caption .apple-overlay-info {
    transform: translateY(0);
}

/* Texte sous les cartes empilées individuelles */
.apple-stacked-container .apple-member-info {
    padding: 24px 8px 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, transform .4s, opacity .4s;
    transition-delay: 0.1s;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--card-w, 220px);
    pointer-events: none;
}

.apple-stacked-container:hover .apple-member-info {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Preset transform origins */
.apple-team-stacked-layout[data-transform-origin="0% 0%"] .apple-stacked-card {
    transform-origin: 0% 0%;
}
.apple-team-stacked-layout[data-transform-origin="50% 0%"] .apple-stacked-card {
    transform-origin: 50% 0%;
}
.apple-team-stacked-layout[data-transform-origin="100% 0%"] .apple-stacked-card {
    transform-origin: 100% 0%;
}
.apple-team-stacked-layout[data-transform-origin="0% 50%"] .apple-stacked-card {
    transform-origin: 0% 50%;
}
.apple-team-stacked-layout[data-transform-origin="50% 50%"] .apple-stacked-card {
    transform-origin: 50% 50%;
}
.apple-team-stacked-layout[data-transform-origin="100% 50%"] .apple-stacked-card {
    transform-origin: 100% 50%;
}
.apple-team-stacked-layout[data-transform-origin="0% 100%"] .apple-stacked-card {
    transform-origin: 0% 100%;
}
.apple-team-stacked-layout[data-transform-origin="50% 100%"] .apple-stacked-card {
    transform-origin: 50% 100%;
}
.apple-team-stacked-layout[data-transform-origin="100% 100%"] .apple-stacked-card {
    transform-origin: 100% 100%;
}
.apple-team-stacked-layout[data-transform-origin="50% 85%"] .apple-stacked-card {
    transform-origin: 50% 85%;
}

/* Focus automatique pour cartes empilées sur mobile/tablette */
@media (max-width: 1024px) {
    .apple-stacked-container {
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .apple-stacked-container .apple-stacked-card {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    }

    .apple-stacked-container .apple-member-info {
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Désactiver l'effet hover sur mobile pour éviter les conflits */
    .apple-stacked-container:hover .apple-stacked-card {
        transform: none;
        box-shadow: var(--shadow);
    }

    .apple-stacked-container:hover {
        z-index: initial;
    }

    .apple-stacked-container:hover .apple-member-info {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
}

/* Responsive pour cartes empilées */
@media (max-width: 900px) {
    .apple-team-faces {
        --card-w: 180px;
        --overlap: -18px;
    }
}

@media (max-width: 640px) {
    .apple-team-faces {
        overflow-x: auto;
        gap: 16px;
        justify-content: flex-start;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .apple-team-faces::-webkit-scrollbar {
        display: none;
    }

    .apple-stacked-container {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .apple-stacked-container:not(:first-child) {
        margin-left: 16px;
    }

    .apple-stacked-container .apple-member-info {
        padding: 12px 8px 8px;
    }
}

/* ========================================================
   Support du mode sombre (optionnel)
   ======================================================== */

@media (prefers-color-scheme: dark) {
    .elementor-editor-active .apple-team-widget {
        /* Désactivé dans l'éditeur Elementor */
    }

    body:not(.elementor-editor-active) .apple-member-name {
        color: #f5f5f7;
    }

    body:not(.elementor-editor-active) .apple-member-position {
        color: #a1a1a6;
    }

    body:not(.elementor-editor-active) .apple-scroll-dot {
        background: #48484a;
    }

    body:not(.elementor-editor-active) .apple-scroll-dot.active {
        background: #f5f5f7;
    }

    body:not(.elementor-editor-active) .apple-stacked-caption {
        background: #1d1d1f;
        color: #f5f5f7;
    }
}

/* ========================================================
   Popup Apple Style - Design Premium
   ======================================================== */

.apple-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.apple-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.apple-popup-container {
    position: relative;
    max-width: 980px;
    width: 92%;
    max-height: 88vh;
    margin: 20px;
    transform: scale(0.92) translateY(30px);
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.apple-popup-overlay.active .apple-popup-container {
    transform: scale(1) translateY(0);
}

.apple-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 28px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 48px 96px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

/* Subtle top highlight */
.apple-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%);
    z-index: 1;
}

.apple-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    color: #1d1d1f;
}

/* Croix en CSS pur */
.apple-popup-close::before,
.apple-popup-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
}

.apple-popup-close::before {
    transform: rotate(45deg);
}

.apple-popup-close::after {
    transform: rotate(-45deg);
}

.apple-popup-close svg {
    display: none;
}

.apple-popup-close path {
    pointer-events: none;
}

.apple-popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.apple-popup-close:active {
    transform: scale(0.95);
}

.apple-popup-body {
    display: flex;
    align-items: stretch;
    min-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.apple-popup-left {
    flex: 0 0 340px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(180deg, #f5f5f7 0%, #eaeaec 100%);
}

.apple-popup-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
                box-shadow 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.apple-popup-image:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 20px 48px rgba(0, 0, 0, 0.15);
}

.apple-popup-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.apple-popup-image:hover .apple-popup-member-image {
    transform: scale(1.05);
}

.apple-popup-details {
    flex: 1;
    padding: 48px 48px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    overflow-y: auto;
}

.apple-popup-name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.022em;
}

.apple-popup-position {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #86868b;
    margin: 4px 0 20px 0;
    line-height: 1.25;
    letter-spacing: -0.012em;
}

.apple-popup-description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #424245;
    margin: 0;
    text-align: left;
    letter-spacing: -0.008em;
}

.apple-popup-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    color: #6e6e73;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.apple-popup-email:hover {
    background: rgba(0, 0, 0, 0.08);
}

.apple-popup-youtube-container {
    height: 100%;
}

.apple-popup-youtube {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    aspect-ratio: 16/9;
    border-radius: 25px;
    overflow: hidden;
    background: #f0f0f0;
}

/* Styles pour le widget YouTube RGPD dans la popup */
.apple-popup-youtube .yt-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #000;
}

.apple-popup-youtube .yt-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.apple-popup-youtube .yt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apple-popup-youtube .yt-overlay:hover {
    background: rgba(0, 0, 0, 0.8);
}

.apple-popup-youtube .yt-chip {
    background: #BD977E;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.apple-popup-youtube .yt-note {
    color: white;
    font-size: 16px;
    margin: 10px 20px;
    text-align: center;
}

.apple-popup-youtube .yt-play {
    width: 68px;
    height: 68px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.apple-popup-youtube .yt-play:hover {
    transform: scale(1.1);
}

.apple-popup-youtube .yt-play svg {
    width: 100%;
    height: 100%;
}

.apple-popup-youtube .yt-play circle {
    fill: rgba(255, 255, 255, 0.95);
}

.apple-popup-youtube .yt-play polygon {
    fill: #1a1a1a;
}

.apple-popup-youtube .yt-bottom-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 10px 20px 0;
    text-align: center;
}

.apple-popup-youtube iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
}

.apple-popup-button {
    position: relative;
    background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
    color: #ffffff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 980px;
    padding: 14px 28px;
    cursor: pointer;
    align-self: flex-start;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Shine effect on button */
.apple-popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.apple-popup-button:hover::before {
    left: 100%;
}

.apple-popup-button:hover {
    background: linear-gradient(135deg, #2d2d2f 0%, #4a4a4c 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.apple-popup-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Arrow icon animation */
.apple-popup-button svg,
.apple-popup-button .button-arrow {
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.apple-popup-button:hover svg,
.apple-popup-button:hover .button-arrow {
    transform: translateX(3px);
}

/* Responsive pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .apple-popup-overlay {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .apple-popup-container {
        max-width: 750px;
        width: 90%;
        max-height: 90vh;
        overflow: hidden;
    }

    .apple-popup-content {
        border-radius: 20px;
        max-height: 90vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .apple-popup-body {
        flex-direction: column;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
    }

    .apple-popup-left {
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
        max-width: 100%;
    }

    .apple-popup-image {
        width: 200px;
        height: 250px;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .apple-popup-member-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .apple-popup-youtube-container {
        flex: 1;
        min-width: 0;
    }

    .apple-popup-youtube {
        width: 100%;
        min-height: 250px;
        aspect-ratio: 16/9;
        border-radius: 14px;
    }

    .apple-popup-details {
        flex: none;
        padding: 20px 0 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .apple-popup-name {
        font-size: 26px;
        font-weight: 600;
    }

    .apple-popup-position {
        font-size: 15px;
        margin: 2px 0 16px 0;
    }

    .apple-popup-description {
        font-size: 15px;
        line-height: 1.55;
    }

    .apple-popup-email {
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 10px;
        background: rgba(134, 134, 139, 0.1);
        text-align: center;
        align-self: center;
        max-width: 100%;
    }

    .apple-popup-button {
        font-size: 16px;
        padding: 14px 24px;
        border-radius: 14px;
    }

    .apple-popup-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
    }

    .apple-popup-close:hover {
        transform: scale(1.08);
    }
}

/* Responsive pour mobile - Style iOS Sheet */
@media (max-width: 768px) {
    .apple-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .apple-popup-container {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        margin: 0;
        transform: translateY(100%);
    }

    .apple-popup-overlay.active .apple-popup-container {
        transform: translateY(0);
    }

    .apple-popup-content {
        border-radius: 20px 20px 0 0;
        background: #ffffff;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
    }

    /* Barre de handle iOS */
    .apple-popup-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 5px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 100px;
        z-index: 1;
    }

    .apple-popup-body {
        flex-direction: column;
        min-height: auto;
        max-height: calc(92vh - 40px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 20px;
    }

    /* Conteneur principal pour photo et infos */
    .apple-popup-header-section {
        display: flex;
        gap: 16px;
        padding: 0 20px;
        margin-bottom: 16px;
    }

    /* Conteneur pour la photo seule */
    .apple-popup-photo-section {
        flex: 0 0 120px;
    }

    /* Image */
    .apple-popup-image {
        width: 120px;
        height: 150px;
        border-radius: 12px;
        overflow: hidden;
    }

    .apple-popup-member-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: auto;
    }

    /* Conteneur pour nom, fonction et email */
    .apple-popup-name-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    /* Email dans la section nom */
    .apple-popup-name-section .apple-popup-email {
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 8px;
        background: #f2f2f7;
        text-align: center;
        margin: 0;
        align-self: flex-start;
        max-width: 100%;
        word-break: break-all;
    }

    /* Styles pour nom et fonction dans la section header */
    .apple-popup-header-section .apple-popup-name {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
        color: #527068;
    }

    .apple-popup-header-section .apple-popup-position {
        font-size: 14px;
        color: #6e6e73;
        margin: 0;
    }

    /* On cache l'ancienne structure */
    .apple-popup-left {
        display: none;
    }

    /* Vidéo YouTube en pleine largeur après le contenu */
    .apple-popup-youtube-container {
        width: calc(100% + 40px);
        margin: 20px -20px 0;
        padding: 0 20px;
        order: 10;
    }

    .apple-popup-youtube {
        width: 100%;
        min-height: 300px;
        aspect-ratio: 16/9;
        border-radius: 12px;
    }

    .apple-popup-youtube .yt-card {
        border-radius: 12px;
        aspect-ratio: 16/9;
    }

    .apple-popup-youtube .yt-poster {
        border-radius: 12px;
    }

    .apple-popup-youtube .yt-overlay {
        border-radius: 12px;
    }

    .apple-popup-youtube iframe {
        border-radius: 12px;
    }

    /* Ajustements pour les contrôles YouTube */
    .apple-popup-youtube .yt-chip {
        padding: 6px 14px;
        font-size: 12px;
    }

    .apple-popup-youtube .yt-note {
        font-size: 13px;
        margin: 8px 15px;
    }

    .apple-popup-youtube .yt-play {
        width: 56px;
        height: 56px;
        margin: 16px 0;
    }

    .apple-popup-youtube .yt-bottom-text {
        font-size: 11px;
        margin: 8px 15px 0;
    }

    .apple-popup-details {
        padding: 0 20px 20px;
        gap: 12px;
        flex: none;
    }

    /* On cache nom et fonction dans details car ils sont dans header-section */
    .apple-popup-details .apple-popup-name,
    .apple-popup-details .apple-popup-position {
        display: none;
    }

    .apple-popup-description {
        font-size: 15px;
        line-height: 1.5;
        color: #1d1d1f;
        text-align: justify;
        margin-bottom: 12px;
    }

    .apple-popup-email {
        font-size: 14px;
        padding: 10px;
        border-radius: 12px;
        background: #f2f2f7;
    }

    .apple-popup-button {
        font-size: 16px;
        padding: 14px 20px;
        border-radius: 12px;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .apple-popup-close {
        position: absolute;
        top: 20px;
        right: 20px;
        bottom: auto;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: none;
        color: #1d1d1f;
    }

    .apple-popup-close::before,
    .apple-popup-close::after {
        width: 12px;
        height: 1.5px;
    }

    .apple-popup-close:hover {
        transform: scale(1.1);
        background: rgba(0, 0, 0, 0.15);
    }

    /* Fix images Elementor sur mobile */
    .elementor img {
        height: 100%;
        object-fit: cover;
    }
}

/* Mode sombre pour la popup */
@media (prefers-color-scheme: dark) {
    body:not(.elementor-editor-active) .apple-popup-content {
        background: #FAFBFA;
    }

    body:not(.elementor-editor-active) .apple-popup-name {
        color: #527068;
    }

    body:not(.elementor-editor-active) .apple-popup-position {
        color: #a1a1a6;
    }

    body:not(.elementor-editor-active) .apple-popup-description {
        color: #d2d2d7;
    }

    body:not(.elementor-editor-active) .apple-popup-email {
        color: #a1a1a6;
    }

    body:not(.elementor-editor-active) .apple-popup-close {
        background: rgba(58, 58, 60, 0.9);
        color: #f5f5f7;
    }

    body:not(.elementor-editor-active) .apple-popup-close:hover {
        background: rgba(58, 58, 60, 1);
    }
}

/* ========================================================
   LAYOUT 1 - Cercles Organiques
   ======================================================== */

:root {
    --transition-fast: 200ms;
    --transition-normal: 350ms;
    --transition-slow: 500ms;
    --easing-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --gap-sm: 16px;
    --gap-md: 24px;
    --gap-lg: 40px;
    --shadow-subtle: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-elevated: 0 16px 48px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

.team-organic {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    --organic-offset: 10px;
}

.team-organic__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--gap-md);
    min-height: 500px;
    padding: 40px 20px;
    position: relative;
}

.team-organic__member {
    position: relative;
    cursor: pointer;
    transition:
        transform var(--transition-normal) var(--easing-smooth),
        filter var(--transition-normal) var(--easing-smooth),
        z-index 0ms;
}

.team-organic__member:nth-child(odd) {
    transform: translateY(calc(var(--organic-offset) * -1));
}

.team-organic__member:nth-child(even) {
    transform: translateY(var(--organic-offset));
}

.team-organic__member:nth-child(3n) {
    transform: translateY(calc(var(--organic-offset) * 0.5)) translateX(calc(var(--organic-offset) * -0.5));
}

.team-organic__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition:
        box-shadow var(--transition-normal) var(--easing-smooth),
        transform var(--transition-normal) var(--easing-smooth);
}

.team-organic__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition-normal) var(--easing-smooth);
}

.team-organic--grayscale .team-organic__photo img {
    filter: grayscale(100%);
}

.team-organic__info {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    text-align: center;
    opacity: 0;
    white-space: nowrap;
    transition:
        opacity var(--transition-fast) var(--easing-smooth),
        transform var(--transition-fast) var(--easing-smooth);
}

.team-organic__name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1d1d1f;
}

.team-organic__role {
    display: block;
    font-size: 13px;
    color: #86868b;
    margin-top: 2px;
}

/* Hover effects */
.team-organic__member:hover {
    z-index: 100;
    transform: scale(1.08) translateY(0);
}

.team-organic__member:hover .team-organic__photo {
    box-shadow: var(--shadow-elevated);
}

.team-organic--grayscale .team-organic__member:hover .team-organic__photo img {
    filter: grayscale(0%);
}

.team-organic__member:hover .team-organic__info {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Focus effect */
.team-organic--focus:hover .team-organic__member:not(:hover) {
    opacity: 0.4;
    filter: blur(2px);
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .team-organic__container {
        min-height: auto;
        gap: var(--gap-sm);
    }

    .team-organic__photo {
        width: 100px;
        height: 100px;
    }

    .team-organic__member:nth-child(odd),
    .team-organic__member:nth-child(even),
    .team-organic__member:nth-child(3n) {
        transform: none;
    }
}

@media (max-width: 480px) {
    .team-organic__container {
        flex-direction: column;
    }

    .team-organic__photo {
        width: 80px;
        height: 80px;
    }

    .team-organic__info {
        position: static;
        transform: none;
        opacity: 1;
        margin-top: 10px;
    }

    .team-organic__member:hover .team-organic__info {
        transform: none;
    }
}

/* ========================================================
   LAYOUT 2 - Cartes Pilules Colorées
   ======================================================== */

.team-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--gap-lg);
    padding: 60px 20px;
}

.team-pills__member {
    width: 220px;
    height: 480px;
    border-radius: 110px;
    background: linear-gradient(
        135deg,
        var(--accent-color, #1a365d) 0%,
        var(--accent-secondary, #4a5568) 100%
    );
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform var(--transition-normal) var(--easing-smooth),
        box-shadow var(--transition-normal) var(--easing-smooth);
}

.team-pills__content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-pills__header {
    padding: 70px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: opacity var(--transition-normal) var(--easing-smooth);
}

.team-pills__name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.team-pills__role {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.team-pills__photo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 65%;
    border-radius: 110px 110px 0 0;
    overflow: hidden;
    transition:
        height var(--transition-slow) var(--easing-smooth),
        border-radius var(--transition-slow) var(--easing-smooth);
}

.team-pills__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-slow) var(--easing-smooth);
}

/* Hover effects - Photo prend toute la pilule */
.team-pills__member:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-pills__member:hover .team-pills__photo {
    height: 100%;
    border-radius: 110px;
}

.team-pills__member:hover .team-pills__photo img {
    transform: scale(1.08);
}

.team-pills__member:hover .team-pills__header {
    opacity: 0;
}

/* Overlay gradient au survol pour lisibilité optionnelle */
.team-pills__photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.4) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal) var(--easing-smooth);
    pointer-events: none;
    border-radius: 0 0 110px 110px;
}

.team-pills__member:hover .team-pills__photo::after {
    opacity: 1;
    border-radius: 110px;
}

/* Shine effect */
.team-pills--shine .team-pills__member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.team-pills--shine .team-pills__member:hover::before {
    transform: translateX(100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .team-pills__member {
        width: 180px;
        height: 400px;
        border-radius: 90px;
    }

    .team-pills__photo {
        border-radius: 90px 90px 0 0;
    }

    .team-pills__member:hover .team-pills__photo {
        border-radius: 90px;
    }

    .team-pills__photo::after {
        border-radius: 0 0 90px 90px;
    }

    .team-pills__member:hover .team-pills__photo::after {
        border-radius: 90px;
    }
}

@media (max-width: 768px) {
    .team-pills {
        gap: var(--gap-md);
    }

    .team-pills__member {
        width: 160px;
        height: 360px;
        border-radius: 80px;
    }

    .team-pills__name {
        font-size: 17px;
    }

    .team-pills__role {
        font-size: 12px;
    }

    .team-pills__header {
        padding-top: 50px;
    }

    .team-pills__photo {
        border-radius: 80px 80px 0 0;
    }

    .team-pills__member:hover .team-pills__photo {
        border-radius: 80px;
    }

    .team-pills__photo::after {
        border-radius: 0 0 80px 80px;
    }

    .team-pills__member:hover .team-pills__photo::after {
        border-radius: 80px;
    }
}

@media (max-width: 480px) {
    .team-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 40px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .team-pills::-webkit-scrollbar {
        display: none;
    }

    .team-pills__member {
        flex-shrink: 0;
        width: 200px;
        height: 420px;
        scroll-snap-align: center;
    }
}

/* ========================================================
   LAYOUT 3 - Cartes Photo Lifestyle (Minimalist Apple Design)
   ======================================================== */

.team-lifestyle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.team-lifestyle__card {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.team-lifestyle__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f7;
}

.team-lifestyle__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition:
        filter 0.8s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Ligne de révélation au survol */
.team-lifestyle__photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d1d1f;
    transition: width 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.team-lifestyle__content {
    padding: 20px 0 0 0;
}

.team-lifestyle__name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.team-lifestyle__role {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
    letter-spacing: -0.016em;
    transform: translateY(0);
    opacity: 1;
    transition:
        transform 0.5s cubic-bezier(0.32, 0.72, 0, 1) 0.05s,
        opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1) 0.05s;
}

/* Masquer les éléments non utilisés */
.team-lifestyle__overlay,
.team-lifestyle__desc,
.team-lifestyle__link {
    display: none;
}

/* ===== Hover Effects ===== */
.team-lifestyle__card:hover .team-lifestyle__photo img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.team-lifestyle__card:hover .team-lifestyle__photo::after {
    width: 100%;
}

.team-lifestyle__card:hover .team-lifestyle__name {
    transform: translateY(-2px);
}

.team-lifestyle__card:hover .team-lifestyle__role {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* ===== Animation d'entrée séquentielle ===== */
.team-lifestyle__card {
    opacity: 0;
    transform: translateY(30px);
    animation: lifestyleFadeIn 0.8s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.team-lifestyle__card:nth-child(1) { animation-delay: 0s; }
.team-lifestyle__card:nth-child(2) { animation-delay: 0.1s; }
.team-lifestyle__card:nth-child(3) { animation-delay: 0.2s; }
.team-lifestyle__card:nth-child(4) { animation-delay: 0.3s; }
.team-lifestyle__card:nth-child(5) { animation-delay: 0.4s; }
.team-lifestyle__card:nth-child(6) { animation-delay: 0.5s; }
.team-lifestyle__card:nth-child(7) { animation-delay: 0.6s; }
.team-lifestyle__card:nth-child(8) { animation-delay: 0.7s; }

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

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .team-lifestyle {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 28px;
        padding: 50px 32px;
    }
}

@media (max-width: 900px) {
    .team-lifestyle {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
        padding: 40px 24px;
    }

    .team-lifestyle__name {
        font-size: 16px;
    }

    .team-lifestyle__role {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .team-lifestyle {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
        padding: 32px 20px;
    }

    .team-lifestyle__content {
        padding: 14px 0 0 0;
    }

    .team-lifestyle__name {
        font-size: 15px;
    }

    .team-lifestyle__role {
        font-size: 12px;
    }

    /* Sur mobile, photos en couleur par défaut */
    .team-lifestyle__photo img {
        filter: grayscale(0%);
    }

    .team-lifestyle__photo::after {
        display: none;
    }
}

/* ========================================================
   LAYOUT 5 - Carrousel Minimaliste
   ======================================================== */

.team-carousel {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.team-carousel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-carousel__title {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.team-carousel__subtitle {
    font-size: 16px;
    color: #86868b;
    margin: 0;
    flex-basis: 100%;
}

.team-carousel__nav {
    display: flex;
    gap: 8px;
}

.team-carousel__prev,
.team-carousel__next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d1d1d6;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: all var(--transition-fast) var(--easing-smooth);
}

.team-carousel__prev:hover,
.team-carousel__next:hover {
    background: #1d1d1f;
    border-color: #1d1d1f;
    color: #ffffff;
}

.team-carousel__track {
    display: flex;
    gap: var(--gap-lg);
    padding: 20px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.team-carousel__track::-webkit-scrollbar {
    display: none;
}

.team-carousel__slide {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
    cursor: pointer;
}

.team-carousel__photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.team-carousel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        filter var(--transition-normal) var(--easing-smooth),
        transform var(--transition-normal) var(--easing-smooth);
}

.team-carousel--grayscale .team-carousel__photo img {
    filter: grayscale(100%);
}

.team-carousel__info {
    margin-top: 16px;
}

.team-carousel__name {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: #1d1d1f;
    position: relative;
}

.team-carousel__role {
    display: block;
    font-size: 14px;
    color: #86868b;
    margin-top: 4px;
}

/* Hover effects */
.team-carousel__slide:hover .team-carousel__photo img {
    transform: scale(1.03);
}

.team-carousel--grayscale .team-carousel__slide:hover .team-carousel__photo img {
    filter: grayscale(0%);
}

/* Underline effect */
.team-carousel--underline .team-carousel__name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary, #1d1d1f);
    transition: width var(--transition-normal) var(--easing-smooth);
}

.team-carousel--underline .team-carousel__slide:hover .team-carousel__name::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-carousel__slide {
        width: 240px;
    }

    .team-carousel__header {
        padding: 0 20px 20px;
    }

    .team-carousel__track {
        padding: 20px;
        gap: var(--gap-md);
    }
}

@media (max-width: 768px) {
    .team-carousel__slide {
        width: 200px;
    }

    .team-carousel__title {
        font-size: 24px;
    }

    .team-carousel__track {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .team-carousel__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-carousel__nav {
        display: none;
    }

    .team-carousel__slide {
        width: calc(100vw - 60px);
        scroll-snap-align: center;
    }

    .team-carousel__track {
        padding: 20px 30px;
    }
}

/* ========================================================
   Accessibilité - Reduced Motion
   ======================================================== */

@media (prefers-reduced-motion: reduce) {
    .team-organic__member,
    .team-organic__photo,
    .team-organic__photo img,
    .team-organic__info,
    .team-pills__member,
    .team-pills__photo img,
    .team-pills--shine .team-pills__member::before,
    .team-lifestyle__card,
    .team-lifestyle__photo img,
    .team-lifestyle__desc,
    .team-lifestyle__link,
    .team-carousel__photo img,
    .team-carousel--underline .team-carousel__name::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================================
   LAYOUT 6 - Glassmorphism Cards (iOS Style)
   ======================================================== */

.team-glass {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.team-glass__card {
    position: relative;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #1d1d1f;
}

.team-glass__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.team-glass__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-glass__info {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-glass__text {
    flex: 1;
    min-width: 0;
}

.team-glass__name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-glass__role {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: -0.01em;
}

.team-glass__arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    color: #ffffff;
}

.team-glass__arrow svg {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== Hover Effects - Apple Style ===== */
.team-glass__card:hover .team-glass__bg img {
    transform: scale(1.05);
}

.team-glass__card:hover .team-glass__info {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.team-glass__card:hover .team-glass__arrow {
    background: #ffffff;
    border-color: #ffffff;
    color: #1d1d1f;
}

.team-glass__card:hover .team-glass__arrow svg {
    transform: rotate(-45deg);
}

/* ===== Animation d'entrée ===== */
.team-glass__card {
    opacity: 0;
    transform: translateY(30px);
    animation: glassCardFadeIn 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.team-glass__card:nth-child(1) { animation-delay: 0.1s; }
.team-glass__card:nth-child(2) { animation-delay: 0.2s; }
.team-glass__card:nth-child(3) { animation-delay: 0.3s; }
.team-glass__card:nth-child(4) { animation-delay: 0.4s; }
.team-glass__card:nth-child(5) { animation-delay: 0.5s; }
.team-glass__card:nth-child(6) { animation-delay: 0.6s; }

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

/* ===== Responsive Glassmorphism ===== */
@media (max-width: 1024px) {
    .team-glass {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-glass__card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    /* Mode slider horizontal sur mobile */
    .team-glass--mobile-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 30px 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .team-glass--mobile-slider::-webkit-scrollbar {
        display: none;
    }

    .team-glass--mobile-slider .team-glass__card {
        flex: 0 0 280px;
        height: 380px;
        scroll-snap-align: center;
    }

    .team-glass--mobile-slider .team-glass__card:first-child {
        margin-left: calc(50vw - 140px);
    }

    .team-glass--mobile-slider .team-glass__card:last-child {
        margin-right: calc(50vw - 140px);
    }

    /* Mode grille normale sur mobile */
    .team-glass:not(.team-glass--mobile-slider) {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .team-glass:not(.team-glass--mobile-slider) .team-glass__card {
        height: 350px;
    }

    .team-glass__info {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 16px;
    }

    .team-glass__name {
        font-size: 16px;
    }

    .team-glass__role {
        font-size: 13px;
    }

    .team-glass__arrow {
        width: 36px;
        height: 36px;
    }
}

/* ========================================================
   LAYOUT 7 - Interactive Accordion (Apple Style)
   ======================================================== */

.team-accordion {
    display: flex;
    height: 500px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
}

/* Section titre à gauche */
.team-accordion__title-section {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    padding: 48px 32px;
}

.team-accordion__section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* Container des images */
.team-accordion__images {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Chaque bande photo */
.team-accordion__item {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.team-accordion__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Overlay avec infos */
.team-accordion__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.team-accordion__overlay-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 200px;
}

.team-accordion__overlay-name {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.team-accordion__overlay-role {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #86868b;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.team-accordion__overlay-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1d1d1f;
    border: none;
    border-radius: 980px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.team-accordion__overlay-btn:hover {
    background: #424245;
    transform: scale(1.05);
}

/* Effet au survol - image en couleur + agrandie */
.team-accordion__item:hover {
    flex: 3;
}

.team-accordion__item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-accordion__item:hover .team-accordion__overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Version Mobile : Carrousel ===== */
.team-accordion-mobile {
    display: none;
}

@media (max-width: 900px) {
    /* Cacher l'accordéon desktop */
    .team-accordion {
        display: none;
    }

    /* Afficher le carrousel mobile */
    .team-accordion-mobile {
        display: block;
        width: 100%;
        overflow: hidden;
    }

    .team-accordion-mobile__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 20px;
    }

    .team-accordion-mobile__track::-webkit-scrollbar {
        display: none;
    }

    .team-accordion-mobile__slide {
        flex: 0 0 calc(100vw - 80px);
        max-width: 350px;
        scroll-snap-align: center;
        cursor: pointer;
    }

    .team-accordion-mobile__slide:first-child {
        margin-left: calc(50vw - 175px);
    }

    .team-accordion-mobile__slide:last-child {
        margin-right: calc(50vw - 175px);
    }

    .team-accordion-mobile__photo {
        width: 100%;
        aspect-ratio: 3/4;
        border-radius: 20px;
        overflow: hidden;
        background: #f5f5f7;
    }

    .team-accordion-mobile__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .team-accordion-mobile__info {
        padding: 16px 8px;
        text-align: center;
    }

    .team-accordion-mobile__name {
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 4px 0;
    }

    .team-accordion-mobile__role {
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
        font-size: 14px;
        color: #86868b;
        margin: 0;
    }
}

/* ===== Responsive Accordion ===== */
@media (max-width: 1200px) and (min-width: 901px) {
    .team-accordion__title-section {
        flex: 0 0 150px;
        padding: 32px 24px;
    }

    .team-accordion__section-title {
        font-size: 36px;
    }

    .team-accordion__overlay-content {
        padding: 16px 20px;
        min-width: 160px;
    }

    .team-accordion__overlay-name {
        font-size: 16px;
    }

    .team-accordion__overlay-role {
        font-size: 13px;
    }

    .team-accordion__overlay-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .team-glass__card,
    .team-glass__bg img,
    .team-glass__info,
    .team-glass__arrow,
    .team-glass__arrow svg,
    .team-accordion__item,
    .team-accordion__item img,
    .team-accordion__content {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}