/* 🛠 IMPORTATION DE LA POLICE INTERNATIONALE Titillium Web */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&display=swap');

/* --- REGLAGES DE BASE --- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: 'Titillium Web', sans-serif; background-color: #001400; color: #FFFFFF; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img { user-select: none; -webkit-user-drag: none; pointer-events: none; }
*, *::before, *::after { cursor: none !important; }

/* --- LE CURSEUR FIXE --- */
.cursor { width: 8px; height: 8px; background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F); border-radius: 50%; position: fixed; pointer-events: none; transform: translate(-50%, -50%); z-index: 999999 !important; transition: opacity 0.2s ease; }
.cursor.grow { opacity: 0; }
.cursor-ring { width: 30px; height: 30px; border: 1px solid #B38728; border-radius: 50%; position: fixed; pointer-events: none; transform: translate(-50%, -50%); z-index: 999998 !important; transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, filter 0.2s ease, background-image 0s; }
.cursor-ring.grow { width: 70px; height: 70px; border-color: transparent; background-color: transparent; background-image: none; transform: translate(-50%, -50%) !important; filter: none; }
.cursor-ring .cursor-headset { display: none; width: 100%; height: 100%; transition: opacity 0.2s ease; }
.cursor-ring.grow .cursor-headset { display: block; opacity: 0.7; }

/* --- NAVIGATION --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0 60px; background-color: rgba(1, 36, 0, 0.95); position: fixed; width: 100%; box-sizing: border-box; backdrop-filter: blur(15px); z-index: 1000; height: 80px; transition: transform 0.3s ease; }
.logo { font-size: 19px; font-weight: 800; letter-spacing: 1px; text-decoration: none; color: #FFFFFF; display: flex; align-items: center; }
.logo-navbar-icone {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
    margin-left: -20px;
    opacity: 0.9;
    position: relative;
    vertical-align: middle;
}
.onglets { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; position: absolute; left: 50%; transform: translateX(-50%); }
.onglets a { color: #FFFFFF; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; transition: color 0.3s ease; font-weight: 600; white-space: nowrap; }
.onglets a:hover { color: #F3C13A; }
.header-social { display: flex; align-items: center; gap: 15px; justify-content: flex-end; }
.texte-fin-blanc { color: #FFFFFF; font-weight: 300; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }
.linkedin-icon { display: flex; align-items: center; transition: transform 0.3s ease; }
.menu-hamburger { display: none; }
.linkedin-icon:hover { transform: scale(1.15); }
.bouton-outline { display: inline-block; padding: 10px 24px; border: 1px solid #F3C13A; color: #F3C13A; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 50px; transition: all 0.3s ease; }
.bouton-outline:hover { background-color: #F3C13A; color: #b99e3a; }

/* --- ACCUEIL --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 8%; background: linear-gradient(rgba(0, 20, 0, 0.4), rgba(0, 20, 0, 0.4)), url('fond_accueil.jpg') no-repeat top center/cover; overflow: hidden; }
.hero-container { display: flex; align-items: center; justify-content: center; gap: 60px; width: 100%; max-width: 1400px; }
.hero-logo-box { flex-shrink: 0; }
.parallax-element { width: 350px; height: auto; opacity: 0.9; }

@keyframes logoReveal {
    0% { opacity: 0; filter: blur(20px) brightness(3); transform: scale(1.2); }
    40% { opacity: 0.6; filter: blur(5px) brightness(1.5); transform: scale(1.05); }
    100% { opacity: 0.9; filter: blur(0px) brightness(1); transform: scale(1); }
}
.hero-text-box { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero h1.hero-title { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-size: 100px;
line-height: 1.1;
letter-spacing: 2px;
font-weight: 700;
text-transform: uppercase; margin: 0 0 25px 0; }
.hero h1.hero-title span { display: inline-block; text-align: left; }
.accent { background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro-texte { max-width: 600px; margin: -15px 0 0 0; margin-left: 7px; text-align: left; color: #ffffff; font-size: 24px; line-height: 1.8; font-weight: 300; }
/* Le conteneur parent place les deux wagons côte à côte */
/* Le cadre de la fenêtre (Immobile) */
.marquee-wrap { 
    background: transparent; 
    overflow-x: hidden;
    overflow-y: visible;
    padding: 15px 0;
    white-space: nowrap; 
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    display: block; 
    width: 100%; 
    max-width: 100%;
    line-height: 1;
    box-sizing: border-box;
}

/* Le tapis roulant (Gère l'animation globale) */
.marquee-inner { 
    display: inline-block; 
    white-space: nowrap; 
    animation: scrollMarquee 80s linear infinite; 
    will-change: transform; 
}

/* Les morceaux de texte (Traités indépendamment par l'ordinateur) */
.marquee-inner span { 
    display: inline-block; 
    font-size: 40px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform;
    transform: translateZ(0);
    padding: 5px 0;
}

/* La boucle recule de 50% de la taille totale (Ce qui correspond exactement à la Phrase 1 !) */
@keyframes scrollMarquee { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(var(--marquee-move, -50%), 0, 0); } 
}

/* DIVISEURS PARALLAXE */
.parallax-divider { width: 100%; height: 25vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.parallax-divider::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 20, 0, 0.2); }
.divider-1 { background-image: url('001_image.jpg'); }
.divider-2 { background-image: url('002_image.jpg'); }
.divider-3 { background-image: url('003_image.jpg'); }

/* SECTIONS */
.section-padding { padding: 120px 20px; }
.fond-sombre { background-color: #001400; } 
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 55px; margin: 0 0 5px 0; font-weight: 300; letter-spacing: -1px;}
.section-title p { background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 26px; font-style: italic; margin: 0 auto; display: inline-block; position: relative; padding-bottom: 25px; }
.section-title p::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 250px; height: 1px; background: linear-gradient(to right, transparent, #B38728, #FBF5B7, #BF953F, transparent); }

/* --- CARROUSEL RÉFÉRENCES --- */
.carrousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.carrousel-viewport {
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    padding: 10px 3px;
    scroll-snap-type: x mandatory;        /* snap carte par carte */
    -webkit-overflow-scrolling: touch;    /* momentum iOS */
    overscroll-behavior-x: contain;      /* bloque le rebond de page en fin de track */
    scrollbar-width: none;               /* cache la scrollbar Firefox */
}
.carrousel-viewport::-webkit-scrollbar {
    display: none; /* cache la scrollbar Chrome / Safari / Edge */
}

.carrousel-track {
    display: flex;
    gap: 25px;
    user-select: none;        /* évite la sélection de texte pendant le swipe */
    -webkit-user-select: none;
}

.logo-carte {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: calc(25% - 20px);
    width: calc(25% - 20px);
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start; /* snap sur le bord gauche de chaque carte */
}

.logo-carte.carte-cliquable:hover {
    border-color: rgba(243, 193, 58, 0.6);
    background: rgba(243, 193, 58, 0.03);
    box-shadow: 0 0 25px rgba(243, 193, 58, 0.15);
}

.logo-placeholder {
    width: 150px;
    height: 100px;
    min-height: 100px;
    margin: 0 auto 25px auto;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-placeholder img { width: 100%; height: 100%; object-fit: contain; }

.logo-carte h3 {
    font-size: 16px;
    margin: 0;
    color: #FFFFFF;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrousel-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #FFFFFF;
    width: 35px;
    height: 70px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-family: inherit;
}

.carrousel-btn:hover {
    border-color: #F3C13A;
    color: #F3C13A;
    background: rgba(243,193,58,0.08);
}
/* 🛠 LE SECRET ANTI-SAUT EST ICI : On remplace le "lift" de 5px par une belle lueur dorée immobile ! */
.logo-carte.carte-cliquable { cursor: none; }
.logo-carte.carte-cliquable:hover { border-color: rgba(243, 193, 58, 0.6); background: rgba(243, 193, 58, 0.03); box-shadow: 0 0 25px rgba(243, 193, 58, 0.15); }

/* --- QUI SUIS-JE : ALIGNEMENT PARFAIT --- */
.a-propos-container { 
    max-width: 1200px !important; 
    margin: 0 auto !important; 
    /* 🎛️ L'alignement chirurgical avec le bloc "Références" (63px à gauche, 69px à droite) */
    padding: 0 69px 0 63px !important; 
    box-sizing: border-box !important;
    position: relative; 
}
/* Cette ligne empêche le carrousel de remonter dans le texte */
.a-propos-container::after { content: ""; display: table; clear: both; }

.photo-profil-petite { 
    float: left; /* Magie : le texte va contourner la photo ! */
    width: 160px; 
    height: auto; 
    object-fit: cover; 
    border-radius: 10px; 
    margin: 0 40px 20px 0; /* Espace autour de la photo */
}
.intro-block, .suite-texte { 
    padding-left: 0 !important; /* On annule les espacements qui cassaient tout */
}
.lead-text, .suite-texte p { 
    font-size: 18px !important; 
    font-weight: 300 !important; 
    line-height: 1.8 !important; 
    margin: 0 0 25px 0 !important; 
    text-align: justify; 
}

/* --- SECTION CONTACT & FORMULAIRE --- */
.contact-finale { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 60px; }
.contact-form { width: 100%; max-width: 600px; margin: 0 auto 60px auto; text-align: left; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: #FFFFFF; letter-spacing: 2px; text-transform: uppercase; font-weight: 300; }
.form-group input, .form-group textarea { width: 100%; padding: 16px 20px; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.30); border-radius: 12px; color: #ffffff; font-size: 16px; font-family: inherit; box-sizing: border-box; transition: all 0.3s ease; outline: none; font-weight: 300; }
.form-group textarea { resize: none; min-height: 120px; overflow-y: hidden; }
.form-group input::placeholder, .form-group textarea::placeholder { font-style: italic; opacity: 0.4; }
.form-group input:focus, .form-group textarea:focus { background: rgba(243, 193, 58, 0.02); border-color: #F3C13A; box-shadow: 0 0 15px rgba(243, 193, 58, 0.2); }
.bouton { display: inline-block; padding: 14px 32px; background: rgba(255, 255, 255, 0.10); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.30); font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; border-radius: 50px; transition: all 0.3s ease; cursor: none; box-shadow: none; }
.bouton:hover { background: rgba(255, 255, 255, 0.20); transform: translateY(-3px); color: #FFFFFF; border-color: #FFFFFF; }
.site-footer-inline { width: 100%; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 40px; margin-top: 40px; }
.site-footer-inline p { font-size: 13px; color: #FFFFFF; letter-spacing: 3px; text-transform: uppercase; font-weight: 300; margin: 0; }
.footer-separator { background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin: 0 15px; font-weight: 900; font-style: italic; letter-spacing: 2px; }
.footer-lien { color: #FFFFFF; text-decoration: none; transition: color 0.3s ease; }
.footer-lien:hover { color: #F3C13A; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   PANNEAU MODAL (RÉFÉRENCES VRAIE 3D)
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 10, 0, 0); backdrop-filter: blur(0px); display: flex; justify-content: center; align-items: center; z-index: 10000; pointer-events: none; transition: background 0.8s ease, backdrop-filter 0.8s ease; perspective: 2000px; }
.modal-overlay.active { background: rgba(0, 10, 0, 0.85); backdrop-filter: blur(8px); pointer-events: auto; transition: background 1.4s ease, backdrop-filter 1.4s ease; }
.modal-content { position: relative; width: var(--start-w, 300px); height: var(--start-h, 300px); opacity: 0; transform: translate(var(--start-x, 0px), var(--start-y, 0px)) rotateY(0deg); transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), width 0.8s cubic-bezier(0.25, 1, 0.5, 1), height 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s 0.6s; }
.modal-overlay.active .modal-content { opacity: 1; width: var(--target-w, 550px); height: var(--target-h, 550px); transform: translate(0px, 0px) rotateY(-180deg); transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), width 1.4s, height 1.4s, opacity 0s 0s; }
.modal-face { backface-visibility: hidden; border-radius: 15px; box-shadow: 0 15px 50px rgba(0,0,0,0.8); position: absolute; top: 50%; left: 50%; box-sizing: border-box; }
.modal-front { width: var(--start-w, 300px); height: var(--start-h, 300px); margin-top: calc(var(--start-h, 300px) / -2); margin-left: calc(var(--start-w, 300px) / -2); background: transparent; border: 1px solid rgba(255,255,255,0.30); padding: 40px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotateY(0deg); overflow: hidden; box-sizing: border-box; }
.modal-front .logo-placeholder { width: 150px; height: 100px; min-height: 100px; background: none; border-radius: 0; margin: 0 auto 25px auto; display: flex; align-items: center; justify-content: center; overflow: visible; flex-shrink: 0; }
.modal-front .logo-placeholder img { width: 100%; height: 100%; object-fit: contain; }
.modal-front h3 { font-size: 16px; margin: 0; color: #FFFFFF; font-weight: 400; line-height: 1.4; text-align: center; flex-shrink: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; width: 100%; }
.modal-back { width: var(--target-w, 550px); height: var(--target-h, 550px); margin-top: calc(var(--target-h, 550px) / -2); margin-left: calc(var(--target-w, 550px) / -2); background: #001400; border: 1px solid rgba(243,193,58,0.3); border-radius: 15px; padding: 50px; text-align: left; transform: rotateY(-180deg); display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; box-sizing: border-box; box-shadow: 0 25px 80px rgba(0,0,0,0.8); }
.modal-back::-webkit-scrollbar { width: 4px; }
.modal-back::-webkit-scrollbar-track { background: transparent; }
.modal-back::-webkit-scrollbar-thumb { background: rgba(191, 149, 63, 0.5); border-radius: 2px; }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 40px; font-weight: 300; color: #FFFFFF; transition: color 0.3s; line-height: 1; cursor: none; }
.close-modal:hover { color: #F3C13A; }
.modal-header { display: flex; align-items: center; gap: 25px; margin-bottom: 30px; padding-bottom: 25px; border-bottom: none; position: relative; margin-top: -15px; }
.modal-header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F); }
.modal-header img { width: 70px; height: 70px; object-fit: contain; }
.modal-header h2 { font-size: 22px; font-weight: 600; margin: 0; color: #FFFFFF; }
.modal-body p { font-size: 19px; font-weight: 300; line-height: 1.7; color: #FFFFFF; text-align: justify; margin: 0; }
.modal-body strong { font-weight: 600; color: #F3C13A; letter-spacing: 0.5px; }

/* --- PHRASE ACCROCHE (entre bandeau et Mes domaines) --- */
/* --- PHRASE ACCROCHE --- */
.phrase-accroche {
    background: linear-gradient(to bottom, #001400, #011f00);
    padding: 100px 8% 80px 8%;
    text-align: center;
    margin-top: 0;
    position: relative;
}
.phrase-accroche::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 140px;
    color: rgba(243, 193, 58, 0.08); /* Guillemet géant et discret en or */
    font-family: Georgia, serif;
    line-height: 1;
}
.phrase-accroche p {
    /* 1. Tes réglages de texte d'origine */
    font-size: 32px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    z-index: 1;

    /* 2. Le réglage pour les crochets */
    position: relative;
    display: block;
    margin: 0 auto;
    
    /* 🎛️ L'ESPACE ENTRE LE TEXTE ET LES CROCHETS EST ICI */
    padding: 20px 80px; /* Le texte est repoussé à 80px des crochets */

    /* 3. LE VERROUILLAGE FLUIDE */
    width: 95% !important; /* Souvent, les grilles de cartes utilisent 95% sur mobile */
    max-width: 1100px !important; /* 🎛️ AUGMENTE CE CHIFFRE (Essaie 1000px, 1100px ou 1200px) */
    box-sizing: border-box !important;
}
.phrase-accroche strong {
    font-weight: 700; /* Le mot-clé ressort en gras */
    background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CARTE INTRO RÉFÉRENCES --- */
.references-intro-card {
    max-width: 1200px;
    margin: 35px auto 50px auto;
    padding: 0 5px; /* même structure que .carrousel-wrapper */
}
.references-intro-inner {
    /* 🎛️ L'ALIGNEMENT CHIRURGICAL EST ICI : 0 en haut, 64px à droite, 0 en bas, 58px à gauche */
    margin: 0 64px 0 58px; 
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 15px;
    padding: 35px 40px;
    transition: border-color 0.3s ease;
}
.references-intro-inner:hover {
    border-color: rgba(243, 193, 58, 0.35);
}
.refs-p-visible {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    text-align: justify;
    margin: 0;
}
.references-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.references-more.ouvert {
    max-height: 800px;
}
.references-more p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    text-align: justify;
    margin: 20px 0 0 0;
}
.references-lire-plus {
    background: none;
    border: none;
    color: #F3C13A;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0;
    font-family: 'Titillium Web', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: gap 0.3s ease;
}
.references-lire-plus::after {
    content: '→';
    transition: transform 0.3s ease;
}
.references-lire-plus:hover::after {
    transform: translateX(5px);
}
.references-lire-plus.ouvert::after {
    content: '←';
    transform: none;
}

/* RESPONSIVE */
section { scroll-margin-top: 120px; }

/* ANIMATIONS */
@keyframes fadeInUpLoad { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typeWriterWipe { 0% { clip-path: inset(-50px 100% -50px -50px); opacity: 0; transform: translateX(-15px); } 10% { opacity: 1; } 100% { clip-path: inset(-50px -50px -50px -50px); opacity: 1; transform: translateX(0); } }
.load-animate { opacity: 0; animation-name: fadeInUpLoad; animation-duration: 0.8s; animation-timing-function: ease-out; animation-fill-mode: forwards; }
.hero-logo-box .load-animate { animation-name: logoReveal; animation-duration: 2s; animation-timing-function: ease; }
.hero h1.hero-title span.load-animate { clip-path: inset(-50px 100% -50px -50px); animation-name: typeWriterWipe; animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.1, 0.7, 0.1, 1); }
/* Nouveaux délais pour laisser le logo faire son show d'abord */
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.8s; } .delay-3 { animation-delay: 1.2s; } .delay-4 { animation-delay: 1.6s; } .delay-5 { animation-delay: 2.0s; }

/* =========================================
   SECTION MÉTIERS
   ========================================= */
.section-metiers {
    background-color: #011f00;
}

.metiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.metier-carte {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 35px 35px 30px 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 180px;
    min-height: unset;
    max-height: 180px;
}

.metier-carte { transition: border-color 0.15s ease !important; }
.metier-carte:hover { border-color: rgba(243, 193, 58, 0.8) !important; }

.metier-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metier-icone {
    position: absolute;
    bottom: -30px;
    right: -40px;
    width: 180px;
    height: 180px;
    object-fit: contain;
    opacity: 0.85;
    pointer-events: none;
}

.metier-titre {
    font-size: 40px;
    font-weight: 300;
    margin: 0;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.metier-texte {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.metier-lire-plus {
    background: none;
    border: none;
    color: #F3C13A;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0;
    font-family: 'Titillium Web', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 20px;
}

.metier-lire-plus::after {
    content: '→';
    transition: transform 0.3s ease;
}

.metier-lire-plus:hover::after {
    transform: translateX(5px);
}

/* PANNEAU */
.metier-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 10, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    pointer-events: none;
    transition: background 0.6s ease, backdrop-filter 0.6s ease;
}

.metier-overlay.ouvert {
    background: rgba(0, 10, 0, 0.75);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.metier-panneau {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 20px 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #011f00;
    border: 1px solid rgba(243, 193, 58, 0.3);
    border-radius: 15px;
    padding: 35px 40px;
    box-sizing: border-box;
    transform: translateY(-120vh);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.metier-overlay.ouvert .metier-panneau {
    transform: translateY(0);
    opacity: 1;
}

.metier-overlay:not(.ouvert) .metier-panneau {
    opacity: 0;
    transform: translateY(-120vh);
    transition: opacity 0.4s ease, transform 0s 0.4s;
}

.metier-croix {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 36px;
    font-weight: 300;
    color: #FFFFFF;
    transition: color 0.3s ease;
    line-height: 1;
    cursor: pointer;
}

.metier-croix:hover {
    color: #F3C13A;
}

#metier-panneau-titre {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 42px;
    font-weight: 300;
    margin: 0;
    background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#metier-panneau-texte {
    grid-column: 1 / span 2;
    grid-row: 2;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}
#metier-panneau-texte strong {
    font-weight: 300; /* On retire le gras, même finesse que le texte normal */
    background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-top: 15px;
    letter-spacing: 1px;
}
/* --- CORRECTION CHEVAUCHEMENT NAVBAR (Écrans moyens) --- */
@media (max-width: 1350px) and (min-width: 1101px) {
    .navbar {
        padding: 0 40px; /* On réduit un peu les marges pour donner de la place */
    }
    .onglets {
        position: static; /* On désactive le centrage forcé absolu */
        transform: none;
        gap: 25px; /* On resserre légèrement les liens entre eux */
    }
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* TABLETTE (max 1024px) */
@media (max-width: 1024px) {
    .navbar { padding: 0 30px; height: 70px; }
    .onglets.mobile-ouvert { top: 70px; } /* navbar 70px sur tablette */
    .onglets { gap: 15px; }
.onglets a { font-size: 10px; letter-spacing: 1px; }
    .hero h1.hero-title { font-size: 70px; }
    .parallax-element { width: 250px; }
    .metiers-grid { gap: 20px; padding: 0 20px; }
    .suite-texte { padding-left: 200px; }
.intro-block { padding-left: 200px; min-height: 200px; }
    .logo-carte { min-width: calc(33% - 20px); width: calc(33% - 20px); }
.logo-placeholder { width: 100px; height: 70px; }
}

/* HAMBURGER — apparaît dès que la fenêtre rétrécit */
@media (max-width: 1100px) {
    .onglets { display: none; }
    .menu-hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 5px; }
    .menu-hamburger span { display: block; width: 25px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: all 0.3s ease; }
    .menu-hamburger.ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-hamburger.ouvert span:nth-child(2) { opacity: 0; }
    .menu-hamburger.ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    /* Menu déroulant — fonctionne sur desktop rétréci ET mobile */
    .onglets.mobile-ouvert { display: flex; flex-direction: column; position: fixed; top: 80px; left: 0; width: 100%; background: rgba(1, 36, 0, 0.98); padding: 20px 0; gap: 0; transform: none; z-index: 999; }
    .onglets.mobile-ouvert li a { display: block; padding: 15px 30px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: normal; }
}

@media (max-width: 768px) {

    /* MODAL MOBILE - sans rotation 3D */
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 10, 0, 0); backdrop-filter: blur(0px); display: flex; align-items: center; justify-content: center; padding-top: 0; margin-top: -5px; z-index: 10000; pointer-events: none; transition: background 0.4s ease, backdrop-filter 0.4s ease; box-sizing: border-box; }
    .modal-overlay.active { background: rgba(0, 10, 0, 0.85) !important; backdrop-filter: blur(8px) !important; pointer-events: auto !important; }
    .modal-content { transform-style: flat !important; transform: none !important; width: 90vw !important; height: auto !important; opacity: 0; transition: opacity 0.4s ease !important; margin: 0 !important; top: auto !important; position: relative !important; }
    .modal-overlay.active .modal-content { opacity: 1 !important; transform: none !important; }
    .modal-front { display: none !important; }
    .modal-back { transform: none !important; backface-visibility: visible !important; width: 100% !important; height: auto !important; max-height: 80vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain !important; padding: 35px !important; position: relative !important; top: auto !important; left: auto !important; margin: 0 !important; }
    .close-modal { display: none !important; }
    .metier-panneau { display: grid !important; grid-template-columns: 1fr auto !important; grid-template-rows: auto auto !important; gap: 15px 15px !important; padding: 25px 25px !important; max-height: 85vh !important; overflow-y: auto !important; overscroll-behavior: contain !important; }
    .metier-croix { grid-column: 2 !important; grid-row: 1 !important; position: static !important; align-self: center !important; font-size: 36px !important; background: none !important; padding: 0 !important; }
    #metier-panneau-titre { grid-column: 1 !important; grid-row: 1 !important; font-size: 24px !important; margin: 0 !important; align-self: center !important; }
    #metier-panneau-texte { grid-column: 1 / span 2 !important; grid-row: 2 !important; font-size: 17px !important; line-height: 1.65 !important; border-top: 1px solid rgba(255,255,255,0.1) !important; padding-top: 12px !important; margin: 0 !important; }


    /* HAMBURGER mobile — top ajusté à 60px (hauteur navbar mobile) */
    .onglets.mobile-ouvert { top: 60px; }

    /* CURSEUR désactivé */
    .cursor, .cursor-ring, .cursor-headset { display: none !important; opacity: 0 !important; pointer-events: none !important; }
    .cursor-ring { background-image: none !important; }
    *, *::before, *::after { cursor: auto !important; }

    /* NAVBAR */
    .navbar { padding: 0 15px; height: 60px; }
    .logo-navbar-icone { width: 32px; height: 32px; margin-right: 8px; margin-left: 0; }
    .logo { font-size: 13px; }
    .onglets { display: none; }
    .texte-fin-blanc { display: none; }

    /* HERO */
    .hero { padding: 0 5%; justify-content: center; background-attachment: scroll; }
    .hero-container { flex-direction: column; gap: 15px; align-items: center; text-align: center; }
    .hero-logo-box { display: flex; justify-content: center; }
    .parallax-element { width: 160px; }
    .hero-text-box { align-items: center; }
    .hero h1.hero-title { font-size: 42px; letter-spacing: 1px; align-items: center; text-transform: uppercase; }
    .intro-texte { font-size: 14px; text-align: center; margin: 0 auto; }

    /* MARQUEE */
    .marquee-inner span { font-size: 22px; letter-spacing: 2px; }

    /* SECTIONS */
    .section-padding { padding: 60px 15px; }
    .section-title h2 { font-size: 32px; }
    .section-title p { font-size: 20px; }

    /* MON DOMAINE */
    .metiers-grid { grid-template-columns: 1fr; gap: 15px; padding: 0; grid-auto-rows: auto; }
    .metier-carte { height: 130px !important; max-height: 130px !important; padding: 20px 25px !important; gap: 8px !important; overflow: hidden !important; }
    .metier-lire-plus { margin-top: auto !important; padding-top: 0 !important; }
    .metier-titre { font-size: 30px; }
    .metier-icone { width: 150px; height: 150px; bottom: -20px; right: -20px; opacity: 0.85; }
    .metier-panneau { padding: 30px 20px; }
    #metier-panneau-titre { font-size: 26px; }

    /* CARROUSEL RÉFÉRENCES */
    .carrousel-wrapper { gap: 10px; padding: 0 3px; }
    .carrousel-btn { width: 28px; height: 55px; font-size: 14px; }
    .logo-carte { min-width: calc(50% - 15px); width: calc(50% - 15px); height: 200px; padding: 20px 15px; }
    .logo-placeholder { width: 90px; height: 65px; min-height: 65px; margin-bottom: 15px; }
    .logo-carte h3 { font-size: 12px; min-height: 35px; }

    /* MODAL RÉFÉRENCES */
    .modal-face { backface-visibility: visible !important; }
    .modal-header h2 { font-size: 20px; }
    .modal-header img { width: 45px; height: 45px; }
    .modal-body p { font-size: 16px; line-height: 1.65; }

    /* QUI SUIS-JE */
    .a-propos-container { padding: 0; }
    .intro-block { padding-left: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
    .photo-profil-petite { position: relative !important; width: 100% !important; max-width: 260px !important; height: 200px !important; margin: 0 auto 25px auto !important; display: block !important; float: none !important; }
    .lead-text { padding: 0 !important; font-size: 15px !important; }
    .suite-texte { padding-left: 0; }
    .suite-texte p { font-size: 15px !important; }

    /* PHRASE ACCROCHE */
    .phrase-accroche { padding: 50px 5% 35px 5%; }
    .phrase-accroche::before { font-size: 80px; top: 10px; }
    .phrase-accroche p { font-size: 18px; }

    /* CARTE INTRO RÉFÉRENCES — aligne avec le viewport mobile : 3px + 28px btn + 10px gap = 41px */
    .references-intro-card { margin: 25px auto 35px auto; padding: 0 41px; }
    .references-intro-inner { padding: 20px 22px; }
    .refs-p-visible { font-size: 16px; }
    .references-more p { font-size: 16px; }

    /* PARALLAXE désactivé sur mobile */
    .parallax-divider { background-attachment: scroll; height: 150px; }

    /* CONTACT */
    .form-row { flex-direction: column; gap: 0; }
    .contact-form { padding: 0; }
    .site-footer-inline p { font-size: 11px; letter-spacing: 1px; }
}

/* PETIT MOBILE (max 400px) */
@media (max-width: 400px) {
    .hero h1.hero-title { font-size: 34px; }
    .logo-carte { min-width: calc(100% - 10px); width: calc(100% - 10px); height: 200px; }
}

section { scroll-margin-top: 65px; }

.carrousel-btn-gauche.cache { opacity: 0; pointer-events: none; }
.carrousel-btn-droite.cache { opacity: 0; pointer-events: none; }
.carrousel-label {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 15px;
    color: #F3C13A;
    max-width: 1200px;
    margin: 0 auto 25px auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carrousel-label::before,
.carrousel-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #F3C13A);
}

.carrousel-label::after {
    background: linear-gradient(to left, transparent, #F3C13A);
}

@media (min-width: 1101px) {
    .menu-hamburger { display: none !important; }
    .onglets { display: flex !important; }
    .onglets.mobile-ouvert { position: absolute; flex-direction: row; top: auto; left: 50%; width: auto; background: none; padding: 0; transform: translateX(-50%); gap: 40px; border: none; }
    .onglets.mobile-ouvert li a { padding: 0; border: none; font-size: 13px; }
}

@media (max-width: 1000px) and (orientation: landscape) {
    .cursor, .cursor-ring, .cursor-headset { display: none !important; opacity: 0 !important; pointer-events: none !important; }
    .cursor-ring { background-image: none !important; }
    *, *::before, *::after { cursor: none !important; }
    .navbar { padding: 0 20px; height: 60px; overflow: visible; }
    .logo-navbar-icone { width: 40px; height: 40px; margin-right: 10px; margin-left: 0 !important; }
    .logo { font-size: 14px; }
    .onglets { display: none; }
    .menu-hamburger { display: flex !important; }
    .menu-hamburger span { display: block; width: 25px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: all 0.3s ease; }
    .menu-hamburger.ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-hamburger.ouvert span:nth-child(2) { opacity: 0; }
    .menu-hamburger.ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .onglets.mobile-ouvert { display: flex !important; flex-direction: column; position: fixed; top: 60px; left: 0; width: 100%; background: rgba(1, 36, 0, 0.98); padding: 20px 0; gap: 0; transform: none; z-index: 999; }
    .onglets.mobile-ouvert li a { display: block; padding: 15px 30px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .texte-fin-blanc { display: none; }

    /* HERO — contenu centré dans la hauteur de l'écran */
    /* 🎛️ 1. HAUTEUR : J'ai passé le padding du haut de 60px à 20px pour remonter tout le bloc */
    .hero { height: 100vh; box-sizing: border-box; padding: 20px 5% 15px; background-attachment: scroll; background-position: top center; overflow: visible; }
    .hero-container { flex-direction: row !important; gap: 20px; align-items: center; text-align: left !important; }
    .hero-text-box { align-items: flex-start !important; text-align: left !important; }
    
    /* 🎛️ 2. TAILLE DU TEXTE : On agrandit l'accueil en paysage */
    .hero h1.hero-title { 
        font-size: 42px !important; 
        align-items: flex-start !important; 
        margin-bottom: 5px !important; /* 🎛️ On annule la grosse marge invisible du bas */
    }
    .intro-texte { 
        text-align: left !important; 
        font-size: 13px !important; 
        margin: 0 !important; /* 🎛️ On colle le petit texte juste sous le titre */
    }
    .parallax-element { width: 150px; }

    /* DIVIDERS photos — plus hauts pour qu'on voie les photos */
    .parallax-divider { background-attachment: scroll; height: 360px; }

    /* SECTIONS */
    .section-padding { padding: 50px 15px; }
    .section-title { margin-bottom: 35px; }
    .section-title h2 { font-size: 36px; }

    /* MON DOMAINE */
    .metiers-grid { grid-template-columns: repeat(3, 1fr); }
    .metier-carte { height: 155px !important; box-sizing: border-box !important; padding: 20px 20px 18px !important; overflow: hidden !important; }
    .metier-icone { width: 120px !important; height: 120px !important; bottom: -10px !important; right: -30px !important; }
    .metier-panneau { display: grid !important; grid-template-columns: 1fr auto !important; grid-template-rows: auto auto !important; gap: 10px 12px !important; padding: 15px 20px 18px !important; max-height: 80vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain !important; width: 88% !important; }
    .metier-croix { display: none !important; }
    #metier-panneau-titre { grid-column: 1 !important; grid-row: 1 !important; font-size: 26px !important; margin: 0 !important; align-self: center !important; }
    #metier-panneau-texte { grid-column: 1 / span 2 !important; grid-row: 2 !important; font-size: 17px !important; line-height: 1.6 !important; border-top: 1px solid rgba(255,255,255,0.1) !important; padding-top: 8px !important; margin: 0 !important; }

    /* RÉFÉRENCES — cartes plus grandes */
    .logo-carte { min-width: calc(33% - 15px); width: calc(33% - 15px); height: 200px; padding: 20px 15px; }
    .logo-placeholder { width: 110px; height: 75px; min-height: 75px; }
    .logo-carte h3 { font-size: 13px; }

    /* QUI SUIS-JE — Correction du bug des colonnes en paysage */
    .intro-block { 
        position: relative !important;
        display: block !important; 
        padding-left: 175px !important; 
        margin-bottom: 20px !important;
        min-height: 150px !important;
    }
    
    .photo-profil-petite { 
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 150px !important; 
        height: 100% !important;
        object-fit: cover !important;
        margin: 0 !important; 
    }
    .suite-texte { padding-left: 0 !important; }
    .lead-text { font-size: 21px !important; line-height: 1.7 !important; text-align: justify !important; }
    .suite-texte p { font-size: 21px !important; margin-bottom: 12px !important; text-align: justify !important; }

    /* PHRASE ACCROCHE */
    .phrase-accroche { padding: 40px 5% 25px 5%; }
    .phrase-accroche::before { font-size: 60px; top: 5px; }
    .phrase-accroche p { font-size: 22px; }

    /* CARTE INTRO RÉFÉRENCES — même offset que desktop (boutons 35px + gap 20px + padding 5px = 60px) */
    .references-intro-card { margin: 20px auto 30px auto; padding: 0 60px; }
    .references-intro-inner { padding: 15px 18px; }
    .refs-p-visible { font-size: 16px; line-height: 1.6; }
    .references-more p { font-size: 16px; line-height: 1.6; }

    /* MODAL RÉFÉRENCES */
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding-top: 60px; box-sizing: border-box; pointer-events: none; }
    .modal-overlay.active { background: rgba(0,10,0,0.85) !important; backdrop-filter: blur(8px) !important; pointer-events: auto !important; }
    .modal-content { transform-style: flat !important; transform: none !important; width: 80vw !important; height: auto !important; opacity: 0; transition: opacity 0.4s ease !important; margin: 0 !important; position: relative !important; }
    .modal-overlay.active .modal-content { opacity: 1 !important; transform: none !important; }
    .modal-front { display: none !important; }
    .modal-back { transform: none !important; backface-visibility: visible !important; width: 100% !important; height: auto !important; max-height: 70vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain !important; padding: 35px 20px !important; position: relative !important; top: auto !important; left: auto !important; margin: 0 !important; }
    .close-modal { position: sticky !important; top: 0 !important; right: auto !important; display: block !important; text-align: right !important; background: #001400 !important; z-index: 10 !important; padding: 2px 0 5px !important; font-size: 28px !important; line-height: 1 !important; }
    .modal-header { gap: 12px !important; margin-bottom: 12px !important; padding-bottom: 12px !important; }
    .modal-header img { width: 40px !important; height: 40px !important; }
    .modal-header h2 { font-size: 18px !important; }
    .modal-body p { font-size: 16px !important; line-height: 1.6 !important; }
    .close-modal { display: none !important; }
}

/* --- EFFET CROCHETS ARRONDIS POUR LA PHRASE D'ACCROCHE --- */
/* (Le texte principal est déjà géré plus haut, on laisse ce bloc vide pour éviter les conflits) */

/* Base des deux contours */
.phrase-accroche p::before,
.phrase-accroche p::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px; /* La longueur du petit bout de trait en haut et en bas */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Couleur et épaisseur du trait (ici blanc un peu transparent) */
}

/* Le contour Gauche */
.phrase-accroche p::before {
    left: 0;
    border-right: none; /* On enlève le trait de droite */
    border-radius: 20px 0 0 20px; /* On arrondit uniquement à gauche */
}

/* Le contour Droit */
.phrase-accroche p::after {
    right: 0;
    border-left: none; /* On enlève le trait de gauche */
    border-radius: 0 20px 20px 0; /* On arrondit uniquement à droite */
}

/* ===================================================
   HARMONISATION ABSOLUE DE TOUS LES CONTOURS
   =================================================== */

/* 1. PANNEAUX RÉFÉRENCES, CARTES DOMAINES ET PANNEAU MÉTIERS */
.modal-face,
.domaine-carte,
#metier-panneau {
    border: 1px solid rgba(255, 255, 255, 0.35) !important; /* 1px pour la finesse, 0.35 pour être bien visible */
    border-radius: 16px !important;
}
/* .metier-carte séparé pour permettre au hover jaune de fonctionner */
.metier-carte {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
}

/* 2. CROCHETS DE LA PHRASE D'ACCROCHE */
.phrase-accroche p::before,
.phrase-accroche p::after {
    border: 1px solid rgba(255, 255, 255, 0.35) !important; /* Exactement le même trait */
    width: 35px;
}

.phrase-accroche p::before {
    border-right: none !important;
    border-radius: 16px 0 0 16px !important;
}

.phrase-accroche p::after {
    border-left: none !important;
    border-radius: 0 16px 16px 0 !important;
}

/* =========================================
   ALIGNEMENT FINAL — PORTRAIT & PAYSAGE
   ========================================= */

/* PORTRAIT MOBILE (≤768px) */
@media (max-width: 768px) {
    /* Phrase accroche : alignement parfait et optimisation pour 6 lignes */
    .phrase-accroche { padding: 50px 15px 35px !important; }
    .phrase-accroche p { 
        width: 100% !important; 
        margin: 0 auto !important; 
        padding: 15px 10px !important; 
        font-size: 16px !important; 
        line-height: 1.5 !important; 
    }

    /* Carte refs : pleine largeur sur mobile */
    .references-intro-card { padding: 0; }
    .references-intro-inner { margin: 0; }
    .refs-p-visible { font-size: 16px; line-height: 1.75; }
    .references-more p { font-size: 16px; line-height: 1.75; }

    /* Carrousel photo en bas du texte (Qui suis-je) */
    .suite-texte { display: flex; flex-direction: column; }
    #galerie-coulisses { order: 99; }
    
    /* 🎛️ Qui suis-je : aligné sur les références (Pleine largeur sur Portrait) */
    .a-propos-container { padding: 0 !important; }
    .media-bas-container { gap: 20px !important; margin-top: 20px !important; }
    .metier-croix { display: none !important; }
}

/* PAYSAGE MOBILE (≤1000px + landscape) */
@media (max-width: 1000px) and (orientation: landscape) {
    /* Phrase accroche : marge de 60px et texte ajusté pour 4 lignes */
    .phrase-accroche { padding: 30px 60px 20px !important; }
    .phrase-accroche p { width: 100%; margin: 0 auto !important; padding: 10px 15px; font-size: 22px !important; line-height: 1.6 !important; }

    /* Metiers grid : alignement parfait avec la largeur des références */
    .metiers-grid { padding: 0 60px !important; }

    /* Carte refs : alignement avec le carrousel */
    .references-intro-card { padding: 0 60px !important; }
    .references-intro-inner { margin: 0 auto; padding: 10px 15px !important; }

    /* Carrousel photo en bas du texte (Qui suis-je) */
    .suite-texte { display: flex; flex-direction: column; padding-left: 0 !important; }
    #galerie-coulisses { order: 99; }
    
    /* 🎛️ Qui suis-je : aligné sur les références (Marge de 60px sur Paysage) */
    .a-propos-container { padding: 0 60px !important; }
    .intro-block { display: block !important; padding-left: 0 !important; }
.bloc-gauche-profil { float: left !important; width: 150px !important; margin: 0 20px 15px 0 !important; }
.photo-profil-petite { width: 150px !important; height: 200px !important; object-fit: cover !important; position: relative !important; top: auto !important; left: auto !important; }
#metier-panneau-texte { font-size: 16px !important; line-height: 1.6 !important; }
}

/* =========================================
   REVEAL PLUS RAPIDE SUR MOBILE
   ========================================= */
@media (max-width: 1100px) {
    .reveal { transition: all 0.4s ease; }
}

/* =========================================
   RÉGLAGE DE LA TAILLE DU TEXTE DE LA BIO
   ========================================= */
#qui-suis-je p {
    font-size: 19px !important; 
    line-height: 1.8 !important;
    font-weight: 300 !important;
    text-align: justify;
}

/* 🎛️ On force le texte en gras à bien s'afficher ! */
#qui-suis-je p strong {
    font-weight: 700 !important;
}

/* Taille sur Téléphone Portable (Mode normal) */
@media (max-width: 768px) {
    #qui-suis-je p {
        font-size: 16px !important; 
    }
}

/* Taille sur Téléphone Portable (Mode paysage) */
@media (max-width: 1000px) and (orientation: landscape) {
    #qui-suis-je p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}

/* ===================================================
   CARROUSEL PHOTOS (En mode Magazine à droite)
   =================================================== */

/* 1. On annule l'ancien réglage du coussin d'air */
section:has(+ #galerie-coulisses) {
    padding-bottom: 0 !important;
}

/* 2. Le conteneur est centré sous le texte */
/* =========================================
   NOUVELLE DISPOSITION BAS DE BIO (ORDI)
   ========================================= */
.media-bas-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Force la colonne des vidéos à avoir la même hauteur que la galerie */
    gap: 30px; /* Espace entre les vidéos et la galerie */
    margin: 60px auto 20px auto;
    max-width: 800px; /* Largeur totale du double bloc */
    clear: both; /* Force le passage sous le texte */
}

/* La colonne qui contient les 2 vidéos */
.videos-colonne {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 260px; /* 🎛️ J'ai mis 260px pour que ça respire un peu mieux */
    flex-shrink: 0;
}

/* Les panneaux s'étirent verticalement */
.videos-colonne .panneau-ordi {
    margin: 0 !important;
    height: calc(50% - 15px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    box-sizing: border-box;
    padding: 15px !important;
}

/* 🎛️ TAILLE DU TITRE DES VIDÉOS */
.videos-colonne .panneau-ordi h3 {
    font-size: 14px !important; /* 👈 C'EST ICI QUE TU CHANGES LA TAILLE DU TITRE (12px, 13px, 14px...) */
    line-height: 1.4 !important;
    margin: 0 0 15px 0 !important;
    text-align: center;
}

/* 🎛️ BOUTON "EXTRAIT" (Épaisseur normale, mais largeur ajustée au texte) */
.videos-colonne .panneau-ordi .bouton-video {
    font-size: 11px !important; /* Retour à la taille de texte normale du bouton */
    padding: 10px 24px !important; /* Retour à l'épaisseur normale du bouton */
    width: auto !important; /* 👈 C'est cette commande qui l'empêche de prendre toute la largeur ! */
    display: inline-block !important;
}

/* La galerie prend sa place à droite */
#galerie-coulisses {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 420px !important; /* On garde ta taille idéale */
    padding: 0 !important;
}

/* 📱 ADAPTATION AUTOMATIQUE POUR MOBILE / TABLETTE */
@media (max-width: 1000px) {
    .media-bas-container {
        display: block; 
        margin: -0px auto -50px auto !important;
        width: 100%;
    }
    .videos-colonne {
        display: none !important; 
    }
    #galerie-coulisses {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 420px !important;
        display: block !important;
    }
    .carousel-container {
        min-height: 250px !important; /* 🎛️ La sécurité qui empêche la galerie de s'écraser */
        width: 100% !important;
    }
}

/* 3. La boîte du carrousel s'adapte à son nouveau conteneur */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 4 / 3; 
    border: 1px solid transparent; /* 🎛️ Épaisseur du cadre passée à 1px ! */
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(#000, #000) padding-box, 
                linear-gradient(to right, #B38728, #FBF5B7, #BF953F) border-box; 
    box-sizing: border-box !important;
}

/* 4. On annule le flottement sur téléphone pour éviter d'écraser le texte */
@media (max-width: 900px) {
    #galerie-coulisses {
        float: none;
        margin: 40px auto 60px auto !important; /* Se recentre sagement en dessous */
    }
}

/* Le conteneur des diapositives */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Chaque diapositive (cachée par défaut) */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Effet de fondu très doux */
    z-index: 0;
}

/* La diapositive visible */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* L'image elle-même */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer l'image */
    pointer-events: none; /* PROTECTION : Rend l'image intouchable (pas de clic droit / drag) */
}

/* Protection globale contre la sélection */
.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Les flèches de navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #FFFFFF; /* Flèches en blanc */
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    padding: 15px;
    transition: all 0.3s ease;
    opacity: 0.5; /* 🎛️ Visibles à 50% en permanence */
}

/* Placement des flèches */
.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

/* Illumination au survol du carrousel (passe à 80% quand on lit la photo) */
.carousel-container:hover .carousel-arrow {
    opacity: 0.8;
}

/* Changement de couleur quand on frôle la flèche */
.carousel-arrow:hover {
    color: #BF953F; /* L'or de ta charte */
    opacity: 1; /* Pleine puissance au survol */
    text-shadow: 0 0 10px rgba(191, 149, 63, 0.5);
}

/* =========================================
   PANNEAU VIDÉO EXTRAIT
   ========================================= */
.panneau-video-extrait {
    text-align: center;
    margin: 40px auto 30px auto;
    clear: both;
    order: 100;
    width: 100%;
    max-width: 320px; /* 🎛️ Beaucoup plus étroit et discret ! */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px; /* 🎛️ Arrondi légèrement adouci pour un petit bloc */
    padding: 20px 15px; /* 🎛️ Espace vide réduit au minimum */
    box-sizing: border-box;
}

.panneau-video-extrait h3 {
    font-size: 13px; /* 🎛️ Typo légèrement réduite pour tenir joliment */
    font-weight: 300;
    color: #FFFFFF;
    margin: 0 0 15px 0; /* 🎛️ On rapproche le titre du bouton */
    line-height: 1.4;
}

/* 🎛️ Bouton réajusté pour la nouvelle taille miniature */
.bouton-video {
    background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F) !important;
    border: none !important;
    color: #001400 !important;
    font-weight: 700 !important;
    font-size: 12px !important; 
    padding: 10px 24px !important; 
    box-shadow: 0 0 15px rgba(243, 193, 58, 0.3) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    display: inline-block;
}

.bouton-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(243, 193, 58, 0.5) !important;
}

/* 📱 ADAPTATION SUR MESURE POUR LE PAYSAGE TÉLÉPHONE */
@media (max-width: 1000px) and (orientation: landscape) {
    .panneau-video-extrait {
        max-width: 420px !important; /* Même taille que la galerie */
        padding: 20px 15px;
        margin: 10px auto 30px auto;
    }
    
    .panneau-video-extrait h3 {
        font-size: 14px; /* On baisse d'un tout petit pixel pour être sûr que ça rentre sur 2 lignes */
        line-height: 1.4;
        margin: 0 0 15px 0;
    }
    
    .bouton-video {
        font-size: 13px !important;
        padding: 12px 25px !important;
    }
}
/* =========================================
   ADAPTATION PANNEAU VIDÉO (ORDI vs MOBILE)
   ========================================= */

/* 💻 1. LA BOÎTE GAUCHE (PHOTO + PANNEAU ORDI) */
.bloc-gauche-profil {
    float: left;
    width: 145px; /* 🎛️ La largeur parfaite pour la photo ET le panneau */
    margin: 0 40px 15px 0; /* 🎛️ L'espace pour repousser le texte bien droit ! */
}

.bloc-gauche-profil .photo-profil-petite {
    float: none !important;
    width: 100% !important; /* S'adapte exactement à la largeur de la boîte */
    margin: 0 !important;
    display: block;
}

.panneau-ordi {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0 0 0 !important; /* L'espace entre la photo et le panneau */
    padding: 15px 10px !important;
    box-sizing: border-box;
}

.panneau-ordi h3 {
    font-size: 12px !important; /* Typo lisible mais ajustée */
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
}

.panneau-ordi .bouton-video {
    font-size: 11px !important;
    padding: 8px 0 !important;
    width: 100%; 
    box-sizing: border-box;
    display: block; 
    text-align: center;
}

/* 📱 2. GESTION DE L'AFFICHAGE SELON L'ÉCRAN */
.panneau-mobile {
        display: block !important; /* On réaffiche les grands panneaux en bas */
        margin: 12px auto !important; /* 🎛️ La magie opère ici : on réduit la marge à 12px ! */
    }

@media (max-width: 1000px) {
    .bloc-gauche-profil {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
        text-align: center; /* Sur téléphone, on recentre tout ! */
    }
    
    .bloc-gauche-profil .photo-profil-petite {
        width: 150px !important; /* La taille de la photo sur téléphone */
        display: inline-block !important;
    }

    .panneau-ordi {
        display: none !important; /* On cache le petit panneau sous la photo */
    }
    
    .panneau-mobile {
        display: block !important; 
        margin: 12px auto !important; /* 🎛️ Espace hyper serré avec la galerie et entre les deux vidéos ! */
    }
}

/* =========================================
   FOOTER FINAL : DESIGN ET POSITIONNEMENT
   ========================================= */

/* 🔴 Les icônes avec tes marges idéales */
.footer-contact-circles {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: -60px !important;   /* Ton réglage qui remonte tout */
    margin-bottom: 50px !important; /* Espace entre les icônes et le texte */
}

/* 🔴 Le style de base du bouton rond (Dégradé conservé !) */
.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Le dégradé qui traverse les boutons */
    background-image: linear-gradient(to right, #B38728, #FBF5B7, #BF953F) !important;
    background-size: 300% 100% !important; 
    color: #001400 !important;
    box-shadow: 0 0 15px rgba(243, 193, 58, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 🔴 Découpage du dégradé */
.icon-tel  { background-position: 0% 50% !important; }
.icon-wa   { background-position: 50% 50% !important; }
.icon-mail { background-position: 100% 50% !important; }

/* 🔴 Le texte en dessous */
.footer-text-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 0px !important;
    margin-bottom: -20px !important; /* 🎛️ Passe de 40px à 15px (ou moins) pour remonter le bas de page */
}

/* 💻 Masquer le bouton de téléphone et les vidéos mobile sur Ordinateur */
@media (min-width: 1001px) {
    .icon-tel { display: none !important; }
    .icon-circle { background-size: 200% 100% !important; }
    .icon-wa   { background-position: 0% 50% !important; }
    .icon-mail { background-position: 100% 50% !important; }
    
    /* 🎛️ Disparition des gros panneaux vidéo sur ordinateur */
    .panneau-mobile { display: none !important; }
}

/* =========================================
   CADRES EN DÉGRADÉ OR (PHOTO & VIDÉOS)
   ========================================= */

/* 1. Cadre or autour de la photo de profil */
.photo-profil-petite {
    padding: 1px !important; /* L'épaisseur du cadre doré (2px comme la galerie) */
    background: linear-gradient(to right, #B38728, #FBF5B7, #BF953F) !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

/* 2. Cadre or autour des panneaux vidéos (Ordi et Mobile) */
.panneau-video-extrait {
    border: 1px solid transparent !important; /* L'épaisseur du cadre doré */
    background: linear-gradient(#0a1e0a, #0a1e0a) padding-box, 
                linear-gradient(to right, #B38728, #FBF5B7, #BF953F) border-box !important;
    border-radius: 12px !important;
}