/* ==========================================================================
   FUSION GROUPE — Design system "éditorial premium"
   --------------------------------------------------------------------------
   1. Polices            6. Accueil (hero, bandeau, grille, chiffres…)
   2. Variables          7. Pages intérieures (hero, onglets, process…)
   3. Base               8. Formulaire, prose, 404
   4. Composants         9. Pied de page
   5. En-tête & menu    10. Animations & responsive
   ========================================================================== */

/* 1. Polices (hébergées en local) ---------------------------------------- */
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/figtree-800.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/figtree-900.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/newsreader-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/newsreader-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/newsreader-400-italic.woff2") format("woff2"); }

/* 2. Variables — la charte se modifie ici --------------------------------- */
:root {
  --ink: #001551;            /* marine du logo : titres et texte fort */
  --text: #3b4266;           /* texte courant */
  --muted: #8a8fa8;
  --night: #070d2e;          /* sections sombres */
  --night-2: #0d1640;
  --blue-d: #1d3aa6;
  --blue: #3f7bd9;
  --blue-l: #5390d9;         /* bleu historique FUSION GROUPE */
  --cyan: #36c2f0;
  --lime: #adc611;           /* accent du "O" du logo */
  --line: #d9dce6;
  --line-dark: rgba(255, 255, 255, .14);
  --soft: #f3f4f8;
  --white: #ffffff;
  --grad: linear-gradient(90deg, #1d3aa6 0%, #3f7bd9 45%, #36c2f0 100%);
  --grad-v: linear-gradient(160deg, #1d3aa6 0%, #3f7bd9 55%, #36c2f0 100%);
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --container: 1360px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* 4. Composants ---------------------------------------------------------- */
/* Libellé de section avec pastille */
.label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .95rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(173, 198, 17, .2); }
.on-dark .label, .label--light { color: #fff; }

/* Titres */
.display { display: block; font-size: clamp(3.1rem, 9vw, 8.2rem); font-weight: 900; line-height: .9; letter-spacing: -.045em; }
.title-xl { font-size: clamp(2.6rem, 6.2vw, 5.6rem); font-weight: 900; line-height: .95; letter-spacing: -.04em; }
.title-l { font-size: clamp(2.1rem, 4.4vw, 3.8rem); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.title-m { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; }
.serif-l { font-family: var(--serif); font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s ease-in-out infinite alternate; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: rgba(255, 255, 255, .72); }
.strike { position: relative; display: inline-block; }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: .09em; background: currentColor; transform: rotate(-4deg); }

/* Lien "→ DÉCOUVRIR" avec soulignement dégradé */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: linear-gradient(var(--grad-c, #3f7bd9), var(--grad-c, #3f7bd9)) left bottom / 100% 1px no-repeat, var(--grad) left bottom / 0 2px no-repeat; transition: background-size .45s var(--ease), color .2s; }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover { background-size: 100% 1px, 100% 2px; }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: #fff; --grad-c: rgba(255, 255, 255, .5); }

/* Boutons pilule */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 32px; border: 2px solid transparent; border-radius: 999px; font: 800 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; color: var(--ink); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; transition: color .3s, background .3s, transform .3s var(--ease), box-shadow .3s; }
.btn:hover { color: #fff; background: var(--grad) padding-box, var(--grad) border-box; box-shadow: 0 14px 34px rgba(29, 58, 166, .3); transform: translateY(-2px); }
.btn--solid { color: #fff; background: var(--grad) padding-box, var(--grad) border-box; }
.btn--solid:hover { background: linear-gradient(90deg, #142c86, #2f69c9) padding-box, var(--grad) border-box; }
.btn--light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--light:hover { color: var(--ink); background: #fff; border-color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: .68rem; }
.btn-round { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: 0 0 60px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s; }
.btn-round:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-round { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.on-dark .btn-round:hover { background: #fff; color: var(--ink); }

/* Étiquettes */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--blue); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tag--fill { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.on-dark .tag { color: #fff; border-color: rgba(255, 255, 255, .5); }
.on-dark .tag--fill { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Listes à puces pastille */
.dot-list li { position: relative; padding-left: 20px; margin-bottom: .7em; line-height: 1.55; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.on-dark .dot-list li::before { background: var(--lime); }

/* Sections */
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--night); color: rgba(255, 255, 255, .72); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--center { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.section-head p { max-width: 640px; margin-top: 24px; }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* Fil d'Ariane */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* 5. En-tête & menu ------------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 108px; transition: height .4s var(--ease); }
.logo { position: relative; display: block; width: 214px; flex-shrink: 0; margin-right: auto; }
.logo img { width: 100%; height: auto; transition: opacity .3s; }
.logo .logo-white { position: absolute; inset: 0; opacity: 0; }
.shortcuts { display: flex; align-items: center; gap: 30px; }
.shortcut { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; background: none; cursor: pointer; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.shortcut::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.shortcut:hover::after, .shortcut[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-social { display: inline-flex; color: var(--ink); }
.header-social:hover { color: var(--blue); }
.burger { position: relative; width: 60px; height: 60px; flex: 0 0 60px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.burger:hover { transform: scale(1.06); }
.burger span, .burger span::before { position: absolute; left: 19px; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span { top: 25px; }
.burger span::before { content: ""; left: 0; top: 8px; }
.menu-open .burger span { top: 29px; transform: rotate(45deg); }
.menu-open .burger span::before { top: 0; transform: rotate(-90deg); }

/* Méga-menu "Solutions" */
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 18px); left: 50%; width: min(760px, 80vw); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(7, 13, 46, .18); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s, transform .4s var(--ease), visibility .3s; }
.mega::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: block; padding: 18px 20px; border-radius: 14px; text-decoration: none; transition: background .25s; }
.mega a:hover, .mega a[aria-current] { background: var(--soft); }
.mega strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.mega span { display: block; margin-top: 4px; font-size: .84rem; line-height: 1.45; color: var(--text); }
.mega .shortcut-chev { transition: transform .3s; }

/* En-tête transparent sur fond sombre (accueil, 404) */
.header-dark .site-header:not(.is-scrolled) .logo-color { opacity: 0; }
.header-dark .site-header:not(.is-scrolled) .logo-white { opacity: 1; }
.header-dark .site-header:not(.is-scrolled) .shortcut,
.header-dark .site-header:not(.is-scrolled) .header-social { color: #fff; }
.header-dark .site-header:not(.is-scrolled) .burger { background: #fff; }
.header-dark .site-header:not(.is-scrolled) .burger span, .header-dark .site-header:not(.is-scrolled) .burger span::before { background: var(--ink); }
.header-dark .site-header:not(.is-scrolled) .btn--header { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
.site-header.is-scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 rgba(10, 20, 64, .08); }
.site-header.is-scrolled .header-inner { height: 82px; }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .site-header .logo-color { opacity: 0; }
.menu-open .site-header .logo-white { opacity: 1; }
.menu-open .site-header .shortcuts, .menu-open .site-header .btn--header { opacity: 0; pointer-events: none; }
.menu-open .burger { background: #fff; }
.menu-open .burger span, .menu-open .burger span::before { background: var(--ink); }

/* Menu plein écran */
.menu-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; background: var(--night); color: #fff; clip-path: circle(0 at calc(100% - 78px) 54px); visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s; overflow-y: auto; }
.menu-open .menu-overlay { clip-path: circle(150% at calc(100% - 78px) 54px); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-overlay .menu-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.menu-inner { position: relative; width: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-top: 140px; padding-bottom: 56px; }
.menu-main a { display: inline-block; font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 900; line-height: 1.08; letter-spacing: -.04em; text-decoration: none; color: #fff; transition: color .3s; }
.menu-main a:hover, .menu-main a[aria-current] { background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-main li, .menu-sol li { overflow: hidden; }
.menu-main li > *, .menu-sol li > * { transform: translateY(110%); transition: transform .8s var(--ease); }
.menu-open .menu-main li > *, .menu-open .menu-sol li > * { transform: none; }
.menu-sol .label { color: #fff; }
.menu-sol a { display: inline-block; padding: 6px 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.25; text-decoration: none; color: rgba(255, 255, 255, .8); transition: color .25s, transform .3s var(--ease); }
.menu-sol a:hover { color: #fff; transform: translateX(6px); }
.menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: rgba(255, 255, 255, .6); }

/* 6. Accueil ------------------------------------------------------------- */
.hero-xl { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; animation: kenburns 28s ease-in-out infinite alternate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-xl.has-video .hero-bg { z-index: -4; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .5; mix-blend-mode: screen; }   /* vidéo incrustée à 50 % */
.hero-xl.has-video .hero-canvas { opacity: .75; }
.hero-xl::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 46, .25) 0%, rgba(7, 13, 46, 0) 35%, rgba(7, 13, 46, .75) 100%); }
.hero-content { position: relative; width: 100%; padding-top: 160px; padding-bottom: clamp(110px, 12vh, 150px); }
.hero-xl h1 { color: #fff; }
.hero-sub { display: block; max-width: 640px; margin-top: 32px; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.5; letter-spacing: 0; color: rgba(255, 255, 255, .82); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: clamp(110px, 12vh, 150px); }
.hero-scroll svg { animation: nudge 2.2s var(--ease) infinite; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 0; border-top: 1px solid var(--line-dark); overflow: hidden; white-space: nowrap; font-size: .74rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ticker-track { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee 38s linear infinite; }
.ticker-track span::after { content: "✦"; margin-left: 48px; color: var(--lime); }

/* Bandeau sombre "réalisations" (défilement horizontal) */
.band { position: relative; padding: clamp(56px, 7vw, 96px) 0; background: var(--night); overflow: hidden; }
.band-grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 40px; align-items: start; }
.band-intro .title-m { color: #fff; }
.band-intro p { margin-top: 18px; color: rgba(255, 255, 255, .65); font-size: .95rem; }
.band-intro .btn { margin-top: 18px; }
.rail-wrap { position: relative; min-width: 0; margin-right: calc(-1 * var(--gutter)); }
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-card { flex: 0 0 clamp(270px, 30vw, 380px); scroll-snap-align: start; color: #fff; text-decoration: none; }
.rail-card figure { margin: 0 0 18px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--night-2); }
.rail-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rail-card:hover img { transform: scale(1.06); }
.rail-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.005em; color: #fff; margin-bottom: 14px; }
.rail-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; padding-right: var(--gutter); }

/* Grille d'expertises à filets */
.xgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.xcell { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.2vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .4s; }
.xcell:hover { background: var(--soft); }
.xcell .num { display: block; margin-bottom: 26px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--blue); }
.xcell h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.3vw, 2.15rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 22px; }
.xcell p { flex: 1; font-size: .95rem; }
.xcell .links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }
.xtile { position: relative; grid-column: span 2; min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px; overflow: hidden; text-align: center; color: #fff; isolation: isolate; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.xtile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 46, .25), rgba(7, 13, 46, .7)); }
.xtile:hover img { transform: scale(1.05); }
.xtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: grayscale(1) brightness(1.35) contrast(1.05); transition: transform 1.4s var(--ease); }
.xtile .tint { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, #1d3aa6, #3f7bd9); mix-blend-mode: color; }
.xtile:hover video { transform: scale(1.05); }
.xtile .title-l { color: #fff; max-width: 560px; }

/* Bandeau artistique plein écran */
.art-banner { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; min-height: clamp(480px, 70vh, 720px); padding: 80px var(--gutter); overflow: hidden; text-align: center; color: #fff; isolation: isolate; }
.art-banner img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; z-index: -1; will-change: transform; }
.art-banner .display { color: #fff; font-size: clamp(2.8rem, 8vw, 7.4rem); }

/* Section partagée (esprit / valeurs) */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > * { padding: clamp(56px, 7vw, 110px) var(--gutter); }
.split-left { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.split-right { background: var(--soft); padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.split-right .title-m { font-weight: 900; color: var(--ink); }
.values-list { margin-top: 44px; }
.values-list li { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1.25; color: #c8cbd8; cursor: default; transition: color .45s; }
.values-list li svg { width: 26px; flex: 0 0 26px; opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .5s var(--ease); color: var(--blue); }
.values-list li.active { color: var(--ink); }
.values-list li.active svg { opacity: 1; transform: none; }
.cols-2 { columns: 2 260px; column-gap: 40px; font-size: .95rem; }
.cols-2 p { break-inside: avoid; }

/* Chiffres clés */
.stats-dark { position: relative; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 44px 32px 8px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.stat-value { display: block; font-size: clamp(3rem, 6.6vw, 6rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; background: linear-gradient(90deg, #fff 0%, var(--cyan) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin: 18px 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.stat p { font-size: .92rem; }

/* Défilement de logos partenaires */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 20px; }
.marquee-track { display: flex; width: max-content; gap: 20px; animation: marquee 42s linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; justify-content: center; width: 220px; height: 120px; padding: 26px 34px; border: 1px solid var(--line); background: #fff; }
.marquee img { max-height: 58px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s; }
.marquee li:hover img { filter: none; opacity: 1; }

/* 7. Pages intérieures --------------------------------------------------- */
.page-hero { padding-top: clamp(150px, 18vh, 200px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero-inner { max-width: 920px; margin-left: clamp(0px, 12vw, 220px); }
.page-hero h1 { margin: 28px 0 36px; font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: .93; letter-spacing: -.045em; }
.page-hero .serif-l { margin-bottom: 28px; }
.page-hero .body { max-width: 720px; }
.page-hero .hero-actions { margin-top: 32px; }
.share-rail { position: fixed; left: var(--gutter); top: 50%; z-index: 20; display: flex; flex-direction: column; gap: 12px; transform: translateY(-50%); }
.share-rail a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1.5px solid transparent; transition: color .3s, background .3s; }
.share-rail a:hover { color: #fff; background: var(--grad) padding-box, var(--grad) border-box; }

.media-wide { position: relative; height: clamp(320px, 46vw, 640px); overflow: hidden; background: var(--night); }
.media-wide img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }

/* Onglets sur fond sombre */
.tabs-dark .section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.01em; line-height: 1.2; }
.tabs { display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.tab-list { display: flex; flex-direction: column; }
.tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line-dark); background: none; text-align: left; cursor: pointer; font-size: 1.12rem; font-weight: 800; color: rgba(255, 255, 255, .32); transition: color .3s; }
.tab::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--lime); transform: scale(0); transition: transform .35s var(--ease); }
.tab:hover { color: rgba(255, 255, 255, .7); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::before { transform: scale(1); }
.tab-panel { animation: fadeUp .6s var(--ease); }
.tab-panel[hidden] { display: none; }
.tab-panel .dot-list li { color: rgba(255, 255, 255, .85); font-size: 1rem; }
.tab-side h3 { font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 22px; }
.tab-side .dot-list li { color: rgba(255, 255, 255, .7); font-size: .95rem; margin-bottom: .55em; }

/* Process (prestations) */
.process { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: step; }
.process li { position: relative; padding: clamp(28px, 3.4vw, 52px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.process li:hover { background: var(--soft); }
.process .step-num { display: block; margin-bottom: 26px; font-size: clamp(3.4rem, 5vw, 4.6rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--blue); transition: color .4s; }
.process li:hover .step-num { color: var(--blue); -webkit-text-stroke-color: var(--blue); }
.process h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.85rem); letter-spacing: -.01em; line-height: 1.15; margin-bottom: 14px; }
.process p { margin: 0; font-size: .95rem; }

/* Bloc mis en avant (CII, teaser projets) */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.feature-split .fs-text { padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 80px); background: var(--soft); display: flex; flex-direction: column; justify-content: center; }
.feature-split .fs-text .title-l { margin-bottom: 28px; }
.feature-split .fs-media { position: relative; min-height: 420px; overflow: hidden; background: var(--night); }
.feature-split .fs-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature-split:hover .fs-media img { transform: scale(1.04); }
.badge-cii { width: 132px; margin-bottom: 28px; border-radius: 50%; }

/* Tuiles "autres solutions" */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; padding: 26px; overflow: hidden; color: #fff; text-decoration: none; background: var(--night); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; transition: transform 1.2s var(--ease), opacity .5s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 46, 0) 30%, rgba(7, 13, 46, .9) 100%); }
.tile:hover img { transform: scale(1.07); opacity: .95; }
.tile span { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; width: 100%; font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.tile svg { flex-shrink: 0; transition: transform .4s var(--ease); }
.tile:hover svg { transform: translate(4px, -4px); }

/* Projets (page Nos projets) */
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.case:hover .case-media img { transform: scale(1.04); }
.case h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.015em; margin: 22px 0 24px; }
.case .dot-list { margin-bottom: 1.1em; }

/* Cellules texte à filets (raisons, engagements, sujets) */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells > li, .cells > article { padding: clamp(28px, 3.2vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.cells > li:hover, .cells > article:hover { background: var(--soft); }
.cells--2 { --cols: 2; }
.cells--4 { --cols: 4; }
.cells .num { display: block; margin-bottom: 22px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--blue); }
.cells h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.8vw, 1.65rem); letter-spacing: -.01em; line-height: 1.25; }
.cells p { margin-top: 14px; font-size: .95rem; }
.on-dark .cells, .on-dark .cells > li, .on-dark .cells > article { border-color: var(--line-dark); }
.on-dark .cells > li:hover, .on-dark .cells > article:hover { background: rgba(255, 255, 255, .04); }

/* Coaching : avant / après */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.versus > div { padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px) 0 0; }
.versus > div + div { padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid var(--line-dark); }
.versus .stat-value { font-size: clamp(4rem, 10vw, 8.5rem); }
.versus .before .stat-value { background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; }
.versus h3 { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.versus .dot-list { margin-top: 28px; }
.versus .before .dot-list li::before { background: rgba(255, 255, 255, .4); }

/* 8. Formulaire, prose, 404 --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-aside .serif-l { margin: 0 0 32px; }
.contact-card { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-card strong { color: var(--ink); }
.contact-form { position: relative; padding: clamp(32px, 4vw, 56px); background: var(--soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; margin-bottom: 30px; }
.field label { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1.5px solid #c3c7d6; border-radius: 0; background: transparent; font: 400 1.05rem/1.5 var(--sans); color: var(--ink); transition: border-color .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field input:focus ~ .bar, .field textarea:focus ~ .bar { transform: scaleX(1); }
.field-consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 30px; font-size: .88rem; line-height: 1.55; }
.field-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue-d); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin: 22px 0 0; padding: 14px 18px; font-size: .92rem; }
.form-status.ok { display: block; background: #e7f6ec; color: #136c3a; }
.form-status.err { display: block; background: #fdecec; color: #9b1c1c; }
.req { color: var(--blue); }
.form-note { margin: 18px 0 0; font-size: .8rem; color: var(--muted); }

.prose { max-width: 820px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.01em; line-height: 1.2; margin: 2em 0 .7em; }
.prose ul { margin-bottom: 1.2em; }
.prose a { color: var(--blue-d); }
.to-complete { padding: 0 4px; background: #fff3b0; }

.footer-cta--empty { padding: 32px 0 0; }
.error-hero .hero-content { padding-bottom: clamp(56px, 8vh, 96px); }
.error-hero .display { margin: 8px 0 18px; font-size: clamp(6rem, 17vw, 14rem); background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* 9. Pied de page -------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; color: rgba(255, 255, 255, .7); background: var(--night); isolation: isolate; }
.footer-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 13, 46, .2) 0%, rgba(7, 13, 46, .55) 45%, rgba(4, 8, 32, .96) 100%); }
.footer-cta { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); text-align: center; }
.footer-cta .display { color: #fff; font-size: clamp(3rem, 8.6vw, 7.6rem); }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 40px; padding: 56px 0; border-top: 1px solid var(--line-dark); }
.footer-socials { display: flex; gap: 12px; }
.footer-title { margin: 0 0 18px; font-size: 1.15rem; font-weight: 600; color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, .62); text-decoration: none; font-size: .95rem; transition: color .25s; }
.footer-links a:hover { color: #fff; }
.footer-brand { display: grid; grid-template-columns: 1.2fr 3fr; gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line-dark); }
.footer-brand img { width: 250px; }
.footer-brand p { margin: 0; max-width: 680px; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.2; color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 26px 0 34px; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.footer-legal a { color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* 10. Animations --------------------------------------------------------- */
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -2%, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }
.js .img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s ease both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js [data-split] .w > span, .js .img-reveal { opacity: 1; transform: none; clip-path: none; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .shortcuts .shortcut:not(.keep) { display: none; }
  .share-rail { display: none; }
  .page-hero-inner { margin-left: 0; }
  .xgrid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-inner { height: 84px; gap: 14px; }
  .site-header.is-scrolled .header-inner { height: 72px; }
  .logo { width: 168px; }
  .shortcuts, .btn--header, .header-social { display: none; }
  .burger { width: 52px; height: 52px; flex-basis: 52px; }
  .burger span { left: 15px; }
  .burger span { top: 21px; }
  .menu-open .burger span { top: 25px; }
  .menu-overlay { clip-path: circle(0 at calc(100% - 46px) 42px); align-items: flex-start; }
  .menu-open .menu-overlay { clip-path: circle(150% at calc(100% - 46px) 42px); }
  .menu-inner { grid-template-columns: 1fr; padding-top: 110px; gap: 36px; }
  .band-grid, .split, .tabs, .feature-split, .case, .contact-grid, .versus, .footer-brand { grid-template-columns: 1fr; }
  .split-left, .split-right { padding-left: var(--gutter); padding-right: var(--gutter); }
  .case:nth-child(even) .case-media { order: 0; }
  .process, .cells { grid-template-columns: 1fr 1fr; }
  .xtile { grid-column: span 2; min-height: 380px; }
  .versus > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 40px; }
  .hero-scroll { display: none; }
  .feature-split .fs-media { min-height: 320px; order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .xgrid, .tiles, .process, .cells, .stats-grid, .footer-main, .form-row { grid-template-columns: 1fr; }
  .xtile { grid-column: auto; }
  .stat + .stat, .stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .tile { aspect-ratio: 16 / 10; }
  .rail-card { flex-basis: 78vw; }
  .marquee li { width: 160px; height: 96px; padding: 20px 24px; }
  .btn { min-height: 52px; padding: 0 24px; }
  .hero-actions .btn { width: 100%; }
}
