:root {
            --fond: #ffffff;
            --adn-jaune: #F2E24D;
            --neutre-bleu: #5C82B5;
            --neutre-bordeaux: #713643;
            --adn-jaune-rgb: 242, 226, 77;
            --neutre-bleu-rgb: 92, 130, 181;
            --neutre-bordeaux-rgb: 113, 54, 67;
            --texte: #2B2132;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            background: var(--fond);
            color: var(--texte);
            font-family: 'Manrope', sans-serif;
            display: flex;
            flex-direction: column;
        }

        .agence-page {
            width: min(1200px, calc(100% - 40px));
            margin: clamp(10px, 2.6vh, 28px) auto clamp(70px, 10vh, 120px);
            flex: 1;
        }

        .intro {
            margin: 0 0 22px;
            line-height: 1.7;
            font-size: clamp(15px, 1.2vw, 18px);
            color: var(--neutre-bleu);
            max-width: 120ch;
        }

        .org-shell {
            margin-top: 0;
            position: relative;
            padding: clamp(10px, 2.2vw, 18px) 0;
        }

        /* --- LE SYSTÈME 100% AUTOMATISÉ --- */
        .timeline {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            position: relative;
            padding-top: 0px;
        }

        .timeline-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .person-row {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            position: relative;
            z-index: 2;
        }

        .person {
            width: min(300px, 100vw);
            transition: box-shadow 0.3s ease;
        }

        .person:hover {
            z-index: 10;
        }

        @media (min-width: 769px) {
            .person-row+.person-row { margin-top: -180px; }
            .person-row:nth-of-type(5n + 1) .person { transform: translate(-350px, 0px); }
            .person-row:nth-of-type(5n + 2) .person { transform: translate(0px, -160px); }
            .person-row:nth-of-type(5n + 3) .person { transform: translate(350px, -320px); }
            .person-row:nth-of-type(5n + 4) .person { transform: translate(-350px, -50px); }
            .person-row:nth-of-type(5n + 5) .person { transform: translate(0px, -210px); }
            .person-row:nth-of-type(5n + 6) .person { transform: translate(350px, -370px); }
    
        }

        /* --- STYLE DE LA CARTE --- */
        .card {
            background: rgba(255, 255, 255, 0.85);
            border: 2px solid rgba(92, 130, 181, 0.28);
            border-radius: 16px;
            padding: 14px 14px 12px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
            text-align: center;
            height: 100%;
            width: 92%;
            margin: 0 auto;
            min-height: 340px;
            position: relative;
            overflow: hidden;

            /* CRUCIAL : On ajoute la transition sur la couleur de la bordure */
            transition: border-color 0.4s ease, box-shadow 0.3s ease, min-height 0.35s ease, width 0.35s ease;
        }

        .card:hover {
            /* La bordure devient jaune au survol */
            border: 2px solid;
            border-color: var(--adn-jaune);
            /* Optionnel : tu peux aussi intensifier l'ombre pour plus de profondeur */
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
            min-height: 460px;
            width: 100%;
        }

        /* --- L'ANIMATION "WOW" DE LA PHOTO --- */
        .portrait {
            width: clamp(118px, 12vw, 144px);
            height: clamp(118px, 12vw, 144px);
            border-radius: 50%;
            overflow: hidden;
            margin: 0 auto 10px;
            border: 3px solid rgba(255, 255, 255, 0.55);
            background: var(--fond);
            
            /* L'astuce z-index : la photo reste au-dessus de l'overlay de texte */
            position: relative;
            z-index: 20; 
            
            /* Animation d'élévation du bloc photo */
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
        }

        .portrait img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Animation de zoom interne de la photo */
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        }

        /* Au survol de la carte, on anime la photo */
        .card:hover .portrait {
            opacity: 0;
            transform: scale(0.7);
            height: 0;
            margin-bottom: 0;
            border-width: 0;
            box-shadow: none;
        }

        .card:hover .portrait img {
            transform: scale(1.15);
        }

        .name {
            margin: 0;
            font-family: 'Oswald', sans-serif;
            text-transform: uppercase;
            font-size: clamp(18px, 2vw, 22px);
            color: var(--neutre-bleu);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(43, 33, 50, 0.18);
        }

        .role {
            margin: 18px 0 0;
            font-weight: 400;
            font-size: clamp(13px, 1.2vw, 17px);
            color: var(--neutre-bleu);
        }

        /* --- OVERLAY DE SURVOL (BIO) --- */
        .card-bio-overlay {
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(4px);
            
            padding: 18px 20px 20px;
            
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(15px);
            transition: opacity 0.35s ease, transform 0.35s ease;
            
            /* L'overlay reste sous la photo (z-index 10 contre 20 pour la photo) */
            z-index: 10;
        }

        .card-bio-overlay .highlight
        {
        color: var(--neutre-bleu);
        font-size: 12px;
        letter-spacing: -0.2px;
        word-spacing: 0.2px;
        line-height: 1.3;
        margin: 0;        /* Supprime les marges extérieures */
        padding: 0;       /* Supprime les marges intérieures */
        display: block;   /* Force les spans à se comporter comme des blocs empilés */
        }


        .card:hover .card-bio-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .card-bio-overlay p {
            margin: 0;
            font-size: clamp(12px, 1.2vw, 15px);
            line-height: 1.55;
            color: var(--texte);
            font-weight: 500;
            text-align: center;
        }

        /* --- SECTION DES ANCIENS COLLÈGUES --- */
        .anciens-section {
            margin-top: 20px;
            padding-top: 40px;
            border-top: 2px dashed rgba(92, 130, 181, 0.2);
            text-align: left;
            max-width: 900px;
            margin-left: auto;
            margin-right: auto;
            position: relative;
            z-index: 10;
        }

        .anciens-title {
            font-family: 'Oswald', sans-serif;
            color: var(--neutre-bordeaux);
            font-size: 22px;
            text-transform: uppercase;
            margin-bottom: 24px;
            text-align: center;
        }

        .anciens-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
            gap: 10px 0;
            align-items: baseline;
        }

        .ancien-item {
            display: inline-flex;
            align-items: center;
            color: var(--neutre-bordeaux);
            font-size: 0.95rem;
            font-weight: 700;
            background: none;
            border: none;
            border-radius: 0;
            padding: 0;
            text-decoration: none;
            line-height: 1.3;
            letter-spacing: 0.01em;
            position: relative;
            margin-right: 8px;
        }

        .ancien-item::after {
            content: '·';
            color: var(--neutre-bordeaux);
            font-size: 1rem;
            line-height: 1;
            margin: 0 12px;
        }

        .ancien-item:last-child::after {
            content: '';
        }

        .ancien-item span {
            font-weight: 400;
            font-style: normal;
            opacity: 0.8;
            font-size: 0.88rem;
            margin-left: 0;
        }

        /* --- SECTION ENGAGEMENTS (NOUVEAU) --- */
        .engagement-section {
        /* La marge négative (ici -100px) va "aspirer" le bloc vers le haut */
        margin: -80px auto 40px auto !important; 
        padding: 20px; /* Réduit un peu le padding interne pour compacter */
        background: rgba(242, 226, 77, 0.08);
        border-radius: 16px;
        text-align: center;
        max-width: 800px;
        border: 1px solid rgba(242, 226, 77, 0.3);
        position: relative; /* Pour éviter les problèmes d'empilement */
        z-index: 5; /* Assure qu'il reste lisible par rapport au reste */
        }

        .engagement-title {
            font-family: 'Oswald', sans-serif;
            color: var(--neutre-bleu);
            font-size: 18px;
            text-transform: uppercase;
            margin-bottom: 15px;
        }

        .engagement-list {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            font-weight: 600;
            color: var(--neutre-bordeaux);
        }

        /* --- SÉCURITÉ MOBILE --- */
        /* --- SÉCURITÉ MOBILE --- */
        @media (max-width: 768px) {
            .person { 
                transform: translate(0, 0) !important; 
            }
            
            .person-row { 
                margin-bottom: 24px !important; 
                height: auto !important;
            }

            /* ✅ CORRECTION : On annule l'aspiration des marges négatives sur mobile */
            .engagement-section {
                margin: 40px auto 30px auto !important;
                width: 92% !important;
            }

            /* ✅ OPTIMISATION : On empile les engagements s'ils manquent de place */
            .engagement-list {
                flex-direction: column !important;
                gap: 12px !important;
            }

            .anciens-section {
                margin-top: 40px;
                padding: 0 16px;
            }

            .anciens-list {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 10px !important;
            }

            .ancien-item {
                display: block !important;
                margin-right: 0 !important;
                padding-right: 0 !important;
            }

            .ancien-item::after {
                content: none !important;
            }
        }
