/* =====================================================================
   SENDEVI — thème premium clair (par défaut) et sombre
   Couleurs tirées du logo : noir, vert #00A82D, gris #9A9A9A, blanc.
   ===================================================================== */

:root {
  /* Constantes de marque */
  --green: #00A82D;
  --green-glow: #22D35B;
  --green-ink: #03140A;
  --gray: #9A9A9A;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-display: clamp(2.3rem, 5.4vw, 5rem);
  --fs-h1: clamp(2.1rem, 4.6vw, 4.1rem);
  --fs-h2: clamp(1.7rem, 3.3vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.4rem);
  --fs-lead: clamp(1.08rem, 1.4vw, 1.3rem);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --hdr-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: .18s;
  --dur-2: .35s;
  --dur-3: .7s;

  --z-header: 100;
  --z-menu: 90;
  --z-float: 80;
  --z-panel: 120;

  /* Thème clair (par défaut) */
  color-scheme: light;
  --bg: #F6F7F4;
  --bg-rgb: 246, 247, 244;
  --bg-2: #EEF1EC;
  --bg-deep: #E8ECE6;
  --surface: #FFFFFF;
  --surface-rgb: 255, 255, 255;
  --surface-2: #F1F4EF;
  --surface-3: #E6EAE4;
  --ink-rgb: 11, 17, 14;
  --line: rgba(11, 17, 14, .09);
  --line-2: rgba(11, 17, 14, .15);
  --line-3: rgba(11, 17, 14, .26);
  --text: #0B110E;
  --text-2: #3D4741;
  --text-3: #5E6862;
  --accent: #00852A;
  --accent-strong: #006B22;
  --accent-soft: rgba(0, 168, 45, .10);
  --btn-hover: #009A29;
  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 2px rgba(11, 17, 14, .04), 0 18px 40px -24px rgba(11, 17, 14, .22);
  --field-bg: #FFFFFF;
  --glass: rgba(246, 247, 244, .8);
  --danger: #C2362B;
  --danger-soft: rgba(194, 54, 43, .07);
  --danger-text: #A12A20;
  --success-text: #006B22;
  --noise-opacity: .022;
  --shadow-lg: 0 30px 80px -24px rgba(11, 17, 14, .28);
}

[data-theme="dark"], .theme-dark, .cine:not(.cine--light-ok) {
  color-scheme: dark;
  --bg: #050706;
  --bg-rgb: 5, 7, 6;
  --bg-2: #090C0B;
  --bg-deep: #020303;
  --surface: #0D1110;
  --surface-rgb: 13, 17, 16;
  --surface-2: #121816;
  --surface-3: #18201D;
  --ink-rgb: 242, 244, 243;
  --line: rgba(242, 244, 243, .08);
  --line-2: rgba(242, 244, 243, .14);
  --line-3: rgba(242, 244, 243, .24);
  --text: #F2F4F3;
  --text-2: #B9C0BD;
  --text-3: #868E8B;
  --accent: #22D35B;
  --accent-strong: #8CF5AB;
  --accent-soft: rgba(0, 168, 45, .12);
  --btn-hover: #22D35B;
  --card-bg: linear-gradient(180deg, rgba(242, 244, 243, .04), rgba(242, 244, 243, .012));
  --card-shadow: none;
  --field-bg: rgba(242, 244, 243, .03);
  --glass: rgba(5, 7, 6, .72);
  --danger: #FF6B6B;
  --danger-soft: rgba(255, 107, 107, .08);
  --danger-text: #FFB3B3;
  --success-text: #8CF5AB;
  --noise-opacity: .035;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.theme-dark, .cine { color: var(--text); }

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color var(--dur-2), color var(--dur-2);
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, header { position: relative; z-index: 1; }
main:focus { outline: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.rot-up { transform: rotate(-90deg); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Logos selon le thème */
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-dark, .theme-dark .logo-on-dark { display: block; }
[data-theme="dark"] .logo-on-light, .theme-dark .logo-on-light { display: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px;
  background: var(--green); color: var(--green-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow--dark { color: var(--green-ink); opacity: .75; }

.display, .h1, .h2 { font-family: var(--font-display); letter-spacing: -.035em; font-weight: 600; }
.display { font-size: var(--fs-display); line-height: 1.02; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--text-2); }
.accent { color: var(--accent); }

.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
}
.sec-head .h2 { max-width: 18ch; }

/* -------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-2);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn .icon { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: var(--green-ink); }
.btn--primary:hover { background: var(--btn-hover); box-shadow: 0 10px 40px -10px rgba(34, 211, 91, .6); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(var(--ink-rgb), .03); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--dark { background: #050706; color: #F2F4F3; }
.btn--dark:hover { background: #000; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7); }
.btn--outline-dark { border-color: rgba(3, 20, 10, .35); color: var(--green-ink); }
.btn--outline-dark:hover { background: rgba(3, 20, 10, .1); border-color: var(--green-ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.02rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line-3); padding-bottom: 4px; transition: color var(--dur-1), border-color var(--dur-1), gap var(--dur-2) var(--ease-out); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); border: 1px solid rgba(34, 211, 91, .25);
}

/* ------------------------------------------------------- Barre de progression */

.page-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: calc(var(--z-header) + 1); pointer-events: none; }
.page-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green), var(--green-glow)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* --------------------------------------------------------------- En-tête */

.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  height: var(--hdr-h);
  color: var(--text);
  transition: background-color var(--dur-2), border-color var(--dur-2), transform var(--dur-3) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled, .hdr:not(.hdr--overlay) {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__icon { width: 38px; height: auto; }
.brand__word { width: 118px; height: auto; }
.brand__icon.logo-on-dark, .brand__word.logo-on-dark { display: none; }
[data-theme="dark"] .brand .logo-on-dark, .theme-dark .brand .logo-on-dark { display: block; }

.nav { display: none; }
@media (min-width: 1100px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px; border-radius: 16px;
  font-weight: 600; font-size: .93rem; color: var(--text-2);
  transition: color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-2);
}
.nav__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-3); transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.nav__ic .icon { width: 16px; height: 16px; }
.nav__link:hover { color: var(--text); background: rgba(var(--ink-rgb), .05); }
.nav__link:hover .nav__ic { color: var(--accent); transform: translateY(-1px); }
.nav__link[aria-current="page"] {
  color: var(--accent-strong); font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 168, 45, .16), rgba(34, 211, 91, .05));
  box-shadow: inset 0 0 0 1px rgba(0, 168, 45, .42), 0 10px 22px -14px rgba(0, 168, 45, .75);
}
.nav__link[aria-current="page"]::before {
  content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--green-glow), var(--green));
}
.nav__link[aria-current="page"] .nav__ic { background: var(--green); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 168, 45, .9); }
@media (max-width: 1279px) { .nav__link:not([aria-current="page"]) .nav__ic { display: none; } .nav__link:not([aria-current="page"]) { padding-left: 12px; } }

.nav__item { position: relative; display: flex; align-items: center; }
.has-sub .nav__link { padding-right: 8px; }
.sub-toggle { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1); }
.sub-toggle:hover { color: var(--text); }
.has-sub.is-open .sub-toggle, .has-sub:hover .sub-toggle { transform: rotate(180deg); color: var(--accent); }

.sub {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(640px, 90vw);
  transform: translate(-50%, 8px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
  padding-top: 8px;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 26px; }
.has-sub:hover .sub, .has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 10px; border-radius: var(--radius);
  background: rgba(var(--surface-rgb), .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.sub__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; transition: background-color var(--dur-1); }
.sub__item:hover { background: rgba(var(--ink-rgb), .05); }
.sub__item strong { display: block; font-size: .95rem; margin-bottom: 2px; color: var(--text); }
.sub__item small { display: block; color: var(--text-3); font-size: .82rem; line-height: 1.45; }
.sub__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34, 211, 91, .22); }
.sub__icon .icon { width: 20px; height: 20px; }
.sub__all { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 14px; font-weight: 700; font-size: .92rem; color: var(--accent); }
.sub__all:hover { background: var(--accent-soft); }

.hdr__actions { display: flex; align-items: center; gap: 8px; }
.hbtn {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2);
  transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-2);
}
.hbtn .icon { width: 18px; height: 18px; }
.hbtn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.hbtn[aria-pressed="true"] { color: var(--accent-strong); border-color: rgba(0, 168, 45, .55); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(34, 211, 91, .14); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.voice-btn .bars { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.voice-btn .bars i { width: 3px; border-radius: 2px; background: currentColor; animation: eq 1s var(--ease-in-out) infinite; }
.voice-btn .bars i:nth-child(2) { animation-delay: -.3s; }
.voice-btn .bars i:nth-child(3) { animation-delay: -.6s; }
.voice-btn.is-playing .bars { display: flex; }
.voice-btn.is-playing .icon { display: none; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb), .03); }
.lang a { display: grid; place-items: center; min-width: 38px; height: 34px; border-radius: 999px; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; color: var(--text-3); transition: color var(--dur-1), background-color var(--dur-1); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.hdr__cta { display: none; }
@media (min-width: 1500px) { .hdr__cta { display: inline-flex; } }
.voice-btn.is-on { color: var(--accent-strong); border-color: rgba(0, 168, 45, .5); }
.voice-btn.is-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-glow); box-shadow: 0 0 0 2px var(--bg); }
/* Mobile : voix off + thème visibles, langue réduite à une pastille (l'autre langue) */
@media (max-width: 640px) {
  .hdr__inner { gap: 10px; }
  .hdr__actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand__icon { width: 32px; }
  .brand__word { width: 96px; }
  .hbtn { width: 38px; height: 38px; }
  .hbtn .icon { width: 17px; height: 17px; }
  /* Langue : les deux codes restent visibles, la langue choisie est mise en avant */
  .lang { padding: 2px; }
  .lang a { min-width: 30px; height: 32px; font-size: .7rem; }
  .hdr .burger { width: 40px; height: 40px; }
  .hdr .burger span { left: 11px; right: 11px; }
  .hdr .burger span:first-child { top: 15px; }
  .hdr .burger span:last-child { top: 23px; right: 15px; }
  .hdr .burger[aria-expanded="true"] span:first-child, .hdr .burger[aria-expanded="true"] span:last-child { top: 19px; right: 11px; }
}
@media (max-width: 380px) {
  .brand__word { width: 78px; }
  .hdr__actions { gap: 4px; }
  .hbtn { width: 36px; height: 36px; }
}

/* --------------------------------------------------------------- Voix off */
.vo-toast {
  position: fixed; top: calc(var(--hdr-h) + 14px); left: 50%; z-index: calc(var(--z-header) - 1);
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, #0B7A2C, #04461A); color: #fff; font-weight: 700; font-size: .92rem;
  box-shadow: 0 16px 40px -14px rgba(0, 120, 35, .75), inset 0 0 0 1px rgba(140, 245, 171, .3);
  transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.vo-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.vo-toast__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
body.menu-open .vo-toast { display: none; }
.vo-lit { position: relative; border-radius: 8px; background: linear-gradient(90deg, rgba(34, 211, 91, .13), rgba(34, 211, 91, .04)); box-shadow: 0 0 0 6px rgba(34, 211, 91, .08); transition: background-color var(--dur-2), box-shadow var(--dur-2); }
.vo-lit--ring { background: none; box-shadow: 0 0 0 3px rgba(34, 211, 91, .5); }
/* Carte en cours de lecture : contour vert autour de toute la carte */
.vo-card { outline: 2px solid rgba(34, 211, 91, .6); outline-offset: 6px; border-radius: var(--radius-lg); }
.stat.vo-card, .case-meta > .vo-card { outline-offset: -4px; border-radius: 0; }

.burger { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--dur-2) var(--ease-out), top var(--dur-2) var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; right: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; right: 13px; transform: rotate(-45deg); }
@media (min-width: 1100px) { .burger { display: none; } }

/* ------------------------------------------------------------- Menu mobile */

.mnav {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(var(--bg-rgb), .97);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  overflow-y: auto;
  padding-top: calc(var(--hdr-h) + 24px);
  padding-bottom: 40px;
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.mnav.is-open { opacity: 1; }
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__list > li > a { display: flex; align-items: center; gap: 14px; padding: 16px 12px; margin: 4px 0; border-radius: 18px; font-family: var(--font-display); font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 600; letter-spacing: -.03em; }
.mnav__list > li > a .nav__ic { width: 36px; height: 36px; background: rgba(var(--ink-rgb), .05); }
.mnav__list > li > a .nav__ic .icon { width: 18px; height: 18px; }
.mnav__list > li > a[aria-current="page"] { color: var(--accent-strong); background: linear-gradient(135deg, rgba(0, 168, 45, .16), rgba(34, 211, 91, .04)); box-shadow: inset 0 0 0 1px rgba(0, 168, 45, .4); }
.mnav__list > li > a[aria-current="page"] .nav__ic { background: var(--green); color: #fff; }
.mnav__sub { display: grid; gap: 2px; padding: 0 0 14px 62px; }
.mnav__sub a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text-2); font-weight: 600; }
.mnav__sub .icon { color: var(--accent); }
.mnav__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.mnav__tools .btn { flex: 1 1 160px; }
.mnav__foot { display: grid; gap: 12px; margin-top: 16px; }
.mnav .mnav__list > li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.mnav.is-open .mnav__list > li { opacity: 1; transform: none; }
.mnav.is-open .mnav__list > li:nth-child(2) { transition-delay: .04s; }
.mnav.is-open .mnav__list > li:nth-child(3) { transition-delay: .08s; }
.mnav.is-open .mnav__list > li:nth-child(4) { transition-delay: .12s; }
.mnav.is-open .mnav__list > li:nth-child(5) { transition-delay: .16s; }
.mnav.is-open .mnav__list > li:nth-child(6) { transition-delay: .2s; }
body.menu-open { overflow: hidden; }

/* ======================================================= Vidéo cinématique */

.cine { position: relative; height: 560vh; background: var(--bg); }
.cine__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine__media { position: absolute; inset: 0; }
.cine__poster, .cine__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine__video { opacity: 0; transition: opacity .8s var(--ease-out); }
.cine.is-ready .cine__video { opacity: 1; }
.cine__fallback {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 60% 40%, rgba(0, 168, 45, .22), transparent 70%), radial-gradient(40% 40% at 20% 80%, rgba(154, 154, 154, .08), transparent 70%), var(--bg);
}
.cine__fallback img { position: absolute; left: 50%; top: 44%; width: min(360px, 52vw); transform: translate(-50%, -50%); opacity: .9; filter: drop-shadow(0 0 60px rgba(34, 211, 91, .25)); }
.cine__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .55) 28%, rgba(var(--bg-rgb), 0) 55%),
    linear-gradient(to bottom, rgba(var(--bg-rgb), .65) 0%, rgba(var(--bg-rgb), 0) 22%),
    radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(var(--bg-rgb), .7) 100%);
}
/* Images d'attente : la claire en thème clair (si la vidéo claire existe) */
.cine__pic--light { display: none; }
:root:not([data-theme="dark"]) .cine--light-ok .cine__pic--light { display: block; }
:root:not([data-theme="dark"]) .cine--light-ok .cine__pic--dark { display: none; }
:root:not([data-theme="dark"]) .cine--light-ok .cine__title,
:root:not([data-theme="dark"]) .cine--light-ok .cine__text { text-shadow: 0 2px 24px rgba(246, 247, 244, .9); }
.cine__caps { position: absolute; left: 0; right: 0; bottom: clamp(88px, 14vh, 150px); }
.cine__caps .container { position: relative; height: clamp(260px, 40vh, 380px); max-width: none; padding-inline: 0; }
.cine__cap {
  position: absolute; left: clamp(16px, 5vw, 96px); right: clamp(16px, 5vw, 96px); bottom: 0;
  max-width: 820px;
  opacity: 0; transform: translate3d(0, 30px, 0);
  will-change: opacity, transform;
  pointer-events: none;
}
.cine__cap.is-active { pointer-events: auto; }
@media (min-width: 900px) { .cine__cap { max-width: min(760px, 34vw); } }
.cine__cap:first-child { opacity: 1; transform: none; }
.cine__num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cine__num::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.cine__title { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; text-shadow: 0 4px 40px rgba(0, 0, 0, .55); }
.cine__title em { font-style: normal; color: var(--accent); }
.cine__text { margin-top: 20px; font-size: var(--fs-lead); color: var(--text-2); max-width: 46ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.cine__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 600px) {
  .cine .cine__hint { display: none; }
  .cine__caps { bottom: 84px; }
  .cine__hint, .cine__cap:last-child .cine__num { display: none; }
  .cine__title { font-size: 1.85rem; }
  .cine__num { margin-bottom: 12px; }
  .cine__text { font-size: 1rem; margin-top: 12px; }
  .cine__ctas { gap: 8px; margin-top: 16px; }
  .cine__ctas .btn { min-height: 48px; padding: 12px 18px; font-size: .92rem; }
}
/* Mobile portrait : la vidéo occupe le haut de l'écran et les textes le bas, ils ne se chevauchent plus */
@media (max-width: 600px) and (orientation: portrait) {
  .cine__media { bottom: auto; height: calc(100% - 250px); }
  .cine__poster, .cine__video { object-position: 50% 28%; }
  .cine__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 24%; background: linear-gradient(to top, var(--bg), rgba(var(--bg-rgb), 0)); pointer-events: none; }
  .cine__caps { bottom: 28px; }
  .cine__caps .container { height: 222px; }
  /* les boutons passent à la ligne au lieu de glisser sous la bulle de l'assistant */
  .cine__ctas { padding-right: 64px; }
  /* « Passer l'intro » s'efface dès que le film démarre, il ne recouvre plus le logo */
  .cine__skip { transition: opacity var(--dur-3); }
  .cine.is-scrolled .cine__skip { opacity: 0; pointer-events: none; }
}

.cine__rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: none; }
@media (min-width: 900px) { .cine__rail { display: block; } }
.cine__rail ol { display: grid; gap: 4px; position: relative; padding-left: 18px; }
.cine__rail ol::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); }
.cine__rail ol::after { content: ""; position: absolute; left: 0; top: 10px; width: 1px; height: calc((100% - 20px) * var(--p, 0)); background: var(--green-glow); box-shadow: 0 0 10px var(--green-glow); }
.cine__rail button { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); transition: color var(--dur-2); text-align: left; min-height: 32px; }
.cine__rail button span { color: var(--text-3); opacity: .6; }
.cine__rail button:hover { color: var(--text); }
.cine__rail button[aria-current="step"] { color: var(--text); }
.cine__rail button[aria-current="step"] span { color: var(--accent); opacity: 1; }

.cine__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); transition: opacity var(--dur-3); }
.cine__hint i { width: 1px; height: 44px; background: linear-gradient(var(--green-glow), transparent); position: relative; overflow: hidden; }
.cine__hint i::after { content: ""; position: absolute; left: -1px; top: -12px; width: 3px; height: 12px; border-radius: 2px; background: var(--green-glow); animation: hint 1.8s var(--ease-in-out) infinite; }
@keyframes hint { to { transform: translateY(60px); } }
.cine.is-scrolled .cine__hint { opacity: 0; }

.cine__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.cine__progress span { display: block; height: 100%; background: var(--green-glow); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--green-glow); }
.cine__loader { position: absolute; top: calc(var(--hdr-h) + 16px); right: var(--gutter); display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--bg-rgb), .7); border: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); transition: opacity var(--dur-3); }
.cine__loader b { color: var(--accent); font-weight: 500; min-width: 3ch; text-align: right; }
.cine.is-ready .cine__loader { opacity: 0; pointer-events: none; }
.cine__skip { position: absolute; left: var(--gutter); top: calc(var(--hdr-h) + 16px); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 8px 0; display: inline-flex; gap: 8px; align-items: center; }
.cine__skip:hover { color: var(--text); }

.no-js .cine { height: auto; }
.no-js .cine__sticky { position: relative; height: 100svh; }

/* Mise en page statique quand l'utilisateur réduit les animations */
.motion-reduce .cine { height: auto; }
.motion-reduce .cine__sticky { position: relative; height: auto; min-height: 100svh; padding: calc(var(--hdr-h) + 40px) 0 60px; display: flex; align-items: flex-end; }
.motion-reduce .cine__caps { position: relative; bottom: auto; }
.motion-reduce .cine__caps .container { height: auto; display: grid; gap: 28px; }
.motion-reduce .cine__cap { position: relative; left: auto; right: auto; opacity: 1 !important; transform: none !important; pointer-events: auto; padding-inline: var(--gutter); }
.motion-reduce .cine__cap:not(:first-child) .cine__title { font-size: var(--fs-h3); }
.motion-reduce .cine__cap:not(:first-child) .cine__text { font-size: 1rem; margin-top: 8px; }
.motion-reduce .cine__rail, .motion-reduce .cine__hint, .motion-reduce .cine__progress, .motion-reduce .cine__loader, .motion-reduce .cine__skip { display: none; }

/* ---------------------------------------------------------------- Manifeste */

.manifesto { padding-block: var(--section); position: relative; }
.manifesto__grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .manifesto__grid { grid-template-columns: 220px 1fr; gap: 48px; } }
.manifesto__text { font-family: var(--font-display); font-size: clamp(1.45rem, 3.1vw, 2.75rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 500; }
.manifesto__text .w { opacity: .16; transition: opacity .3s linear, color .3s linear; }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text em { font-style: normal; color: var(--accent); }
.no-js .manifesto__text .w, .manifesto__text.is-static .w { opacity: 1; }
.manifesto__aside { display: grid; gap: 22px; align-content: start; }

/* ---------------------------------------------------------------- Marquee */

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 26px; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__item { display: inline-flex; align-items: center; gap: 44px; font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; color: var(--text); }
.marquee__item:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px var(--text-3); }
.marquee__sep { width: 22px; height: 22px; border: 3px solid var(--green); border-radius: 6px; flex: none; transform: rotate(12deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------- Cartes de services */

.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(6, 1fr); }
  .svc-grid > :nth-child(1), .svc-grid > :nth-child(2) { grid-column: span 3; }
  .svc-grid > :nth-child(n+3) { grid-column: span 2; }
}
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--dur-2), transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 91, .13), transparent 60%);
  transition: opacity var(--dur-2);
}
.card:hover { border-color: rgba(0, 168, 45, .35); }
.card:hover::before { opacity: 1; }

.svc-card { display: flex; flex-direction: column; min-height: 100%; padding: clamp(24px, 3vw, 36px); }
.svc-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.svc-card__num { font-family: var(--font-mono); font-size: .78rem; color: var(--text-3); }
.svc-card__icon { position: relative; width: 60px; height: 60px; display: grid; place-items: center; color: var(--accent); }
.svc-card__icon::before, .svc-card__icon::after { content: ""; position: absolute; border-radius: 16px; transition: transform var(--dur-3) var(--ease-out); }
.svc-card__icon::before { inset: 0; border: 2px solid var(--green); }
.svc-card__icon::after { inset: 10px -10px -10px 10px; border: 2px solid var(--line-3); z-index: -1; }
.svc-card:hover .svc-card__icon::before { transform: rotate(-8deg); }
.svc-card:hover .svc-card__icon::after { transform: translate(4px, 4px) rotate(6deg); }
.svc-card__icon .icon { width: 26px; height: 26px; }
.svc-card__title { font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.65rem); letter-spacing: -.03em; margin-bottom: 14px; }
.svc-card__text { color: var(--text-2); margin-bottom: 24px; }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.svc-card__tags li { font-size: .8rem; line-height: 1.4; color: var(--text-2); padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line-2); }
.svc-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.svc-card__link .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2), transform var(--dur-2) var(--ease-out); }
.svc-card:hover .svc-card__link .icon { background: var(--green); color: var(--green-ink); border-color: var(--green); transform: rotate(-45deg); }
.svc-card__stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-card--featured { background: linear-gradient(160deg, rgba(0, 168, 45, .14), rgba(var(--ink-rgb), .012) 55%), var(--card-bg); border-color: rgba(0, 168, 45, .25); }

/* ------------------------------------------------------- Cartes réalisations */

.work-grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid--stagger > :nth-child(even) { margin-top: 96px; }
}
.pcard__link { display: block; }
.pcard__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; background: #0D1110; border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 7, 6, .35), transparent 50%); pointer-events: none; }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__body { padding: 22px 4px 0; }
.pcard__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.pcard__meta span:first-child { color: var(--accent); }
.pcard__title { font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.6rem); letter-spacing: -.03em; margin-bottom: 10px; transition: color var(--dur-1); }
.pcard:hover .pcard__title { color: var(--accent); }
.pcard__text { color: var(--text-2); max-width: 52ch; }
.pcard__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: .92rem; }
.pcard__cta .icon { transition: transform var(--dur-2) var(--ease-out); }
.pcard:hover .pcard__cta .icon { transform: translate(3px, -3px); }

/* ---------------------------------------------------------------- Méthode */

.process { display: grid; gap: 16px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step { padding: 28px; position: relative; }
.process__num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--line-3); margin-bottom: 36px; transition: -webkit-text-stroke-color var(--dur-3); }
.process__step:hover .process__num, .process__step.is-in .process__num { -webkit-text-stroke-color: var(--accent); }
.process__step h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 12px; }
.process__step p { color: var(--text-2); font-size: .98rem; }
.process__bar { position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.process__bar::after { content: ""; position: absolute; inset: 0; background: var(--green-glow); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-out); }
.process__step.is-in .process__bar::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- Chiffres */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat__value { order: -1; margin: 0; font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: .5em; color: var(--accent); letter-spacing: -.02em; margin-left: 2px; }
.stat__label { margin-top: 14px; color: var(--text-2); font-size: .95rem; }

/* ------------------------------------------------------------ Cartes blog */

.blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.bcard { height: 100%; }
.bcard__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--card-shadow); overflow: hidden; transition: border-color var(--dur-2), transform var(--dur-3) var(--ease-out); }
.bcard__link:hover { border-color: rgba(0, 168, 45, .35); transform: translateY(-4px); }
.bcard__media { aspect-ratio: 3 / 2; overflow: hidden; background: #0D1110; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.bcard__link:hover .bcard__media img { transform: scale(1.05); }
.bcard__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.bcard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: .85rem; color: var(--text-3); }
.bcard__title { font-family: var(--font-display); font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.25; margin-bottom: 12px; }
.bcard__text { color: var(--text-2); font-size: .97rem; margin-bottom: 22px; }
.bcard__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--accent); }
.bcard--featured .bcard__link { display: grid; }
@media (min-width: 900px) {
  .bcard--featured { grid-column: 1 / -1; }
  .bcard--featured .bcard__link { grid-template-columns: 1.25fr 1fr; }
  .bcard--featured .bcard__media { aspect-ratio: auto; min-height: 380px; }
  .bcard--featured .bcard__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
  .bcard--featured .bcard__title { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
}

/* --------------------------------------------------------------- Bande CTA */

.cta-band { padding-block: clamp(60px, 8vw, 110px); }
.cta-band__card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 88px);
  border-radius: clamp(24px, 3vw, 40px);
  background: radial-gradient(80% 120% at 100% 0%, #3AE272 0%, transparent 55%), linear-gradient(135deg, #00A82D 0%, #078a2a 100%);
  color: var(--green-ink);
  box-shadow: 0 40px 80px -40px rgba(0, 120, 35, .55);
}
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 4rem); letter-spacing: -.045em; line-height: 1.02; max-width: 15ch; }
.cta-band__text { margin-top: 20px; font-size: var(--fs-lead); max-width: 44ch; color: rgba(3, 20, 10, .8); font-weight: 500; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-band__squares { position: absolute; right: -40px; bottom: -60px; width: clamp(240px, 34vw, 460px); aspect-ratio: 1; z-index: -1; }
.cta-band__squares i { position: absolute; border: clamp(10px, 1.4vw, 18px) solid rgba(3, 20, 10, .9); border-radius: 18%; }
.cta-band__squares i:nth-child(1) { width: 52%; height: 52%; left: 24%; top: 0; }
.cta-band__squares i:nth-child(2) { width: 44%; height: 44%; left: 0; top: 26%; border-color: rgba(255, 255, 255, .92); }
.cta-band__squares i:nth-child(3) { width: 34%; height: 34%; left: 54%; top: 30%; border-color: rgba(3, 20, 10, .35); }
.cta-band__squares i:nth-child(4) { width: 14%; height: 14%; left: 72%; top: 8%; border-width: clamp(5px, .8vw, 9px); }

/* ---------------------------------------------------------------- Pied de page */

.ftr { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.ftr__top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .ftr__top { grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: 48px; } }
.ftr__brand img { width: 120px; margin-bottom: 22px; }
.ftr__brand p { color: var(--text-2); max-width: 36ch; font-size: .97rem; }
.ftr__social { display: flex; gap: 8px; margin-top: 22px; }
.ftr__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1); }
.ftr__social a:hover { color: var(--green-ink); background: var(--green-glow); border-color: var(--green-glow); }
.ftr__social .icon { width: 18px; height: 18px; }
.ftr__h { font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; }
.ftr__col ul { display: grid; gap: 4px; }
.ftr__col a, .ftr__col span { display: inline-flex; align-items: flex-start; gap: 12px; padding: 6px 0; color: var(--text-2); font-size: .97rem; transition: color var(--dur-1); }
.ftr__col a:hover { color: var(--text); }
.ftr__contact .icon { color: var(--accent); margin-top: 4px; }
.ftr__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ftr__big {
  margin-top: clamp(48px, 7vw, 96px);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 14.2vw, 14rem);
  line-height: .9; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px var(--line-3);
  text-align: center; user-select: none;
  white-space: nowrap;
  padding-bottom: .06em;
  margin-bottom: clamp(20px, 3vw, 40px);
}
.ftr__big span { -webkit-text-stroke: 1px rgba(0, 168, 45, .55); }
.ftr__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .88rem; background: var(--bg-deep); }
.ftr__top-link { display: inline-flex; align-items: center; gap: 8px; }
.ftr__top-link:hover { color: var(--text); }

/* -------------------------------------------------- Boutons flottants (dock) */

.dock { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-float); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-float {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #052e14;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float.is-away { opacity: 0; transform: scale(.7); pointer-events: none; visibility: hidden; transition: opacity var(--dur-2), transform var(--dur-2), visibility 0s var(--dur-2); }
.to-top {
  display: none; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-1), color var(--dur-1);
}
.to-top .icon { width: 22px; height: 22px; }
.to-top:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.dock.show-top .to-top { display: grid; animation: dockIn .35s var(--ease-out); }
@keyframes dockIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.ai-launcher {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 7px; border-radius: 999px;
  background: linear-gradient(135deg, #0B110E, #18241D); color: #F2F4F3;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(34, 211, 91, .35);
  font-weight: 700; font-size: .93rem;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2);
}
.ai-launcher:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px rgba(0, 120, 35, .6), inset 0 0 0 1px rgba(34, 211, 91, .6); }
.ai-launcher__av { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #00A82D, #22D35B); color: #03140A; }
.ai-launcher__av .icon { width: 20px; height: 20px; }
.ai-launcher__av::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #8CF5AB; border: 2px solid #0B110E; }
.ai-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 600px) { .ai-launcher__label { display: none; } .ai-launcher { padding: 0 7px; } }

/* -------------------------------------------------------- Assistant IA */

.ai-panel {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-panel);
  width: min(410px, calc(100vw - 32px)); height: min(640px, calc(100svh - 32px));
  display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.ai-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 600px) { .ai-panel { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; } }
.ai-panel__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #0B110E, #142019); color: #F2F4F3; }
.ai-panel__av { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #F2F4F3; flex: none; }
.ai-panel__av img { width: 30px; }
.ai-panel__av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #22D35B; border: 2px solid #0B110E; }
.ai-panel__title { flex: 1; min-width: 0; }
.ai-panel__title strong { display: block; font-size: .98rem; }
.ai-panel__title small { display: block; font-size: .78rem; color: #A9B3AE; }
.ai-panel__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #C9D0CC; }
.ai-panel__btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ai-panel__btn .icon { width: 18px; height: 18px; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.ai-msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--card-shadow); }
.ai-msg--user { align-self: flex-end; background: var(--green); color: var(--green-ink); border-bottom-right-radius: 6px; font-weight: 500; }
.ai-msg p + p, .ai-msg ul, .ai-msg ol, .ai-msg p + ul, .ai-msg ul + p { margin-top: 8px; }
.ai-msg ul, .ai-msg ol { padding-left: 20px; list-style: disc; }
.ai-msg ol { list-style: decimal; }
.ai-msg li + li { margin-top: 3px; }
.ai-msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.ai-msg--user a { color: inherit; }
.ai-msg code { font-family: var(--font-mono); font-size: .85em; background: rgba(var(--ink-rgb), .06); padding: 1px 5px; border-radius: 5px; }
.ai-msg--error { border-color: var(--danger); color: var(--danger-text); background: var(--danger-soft); }
.ai-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.ai-sugg button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(0, 168, 45, .35); background: var(--accent-soft); color: var(--accent-strong); font-size: .84rem; font-weight: 600; text-align: left; transition: background-color var(--dur-1), border-color var(--dur-1); }
.ai-sugg button:hover { background: rgba(0, 168, 45, .18); border-color: var(--accent); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--field-bg); color: var(--text); font: inherit; font-size: .95rem; line-height: 1.45; }
.ai-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 91, .16); }
.ai-form button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; transition: background-color var(--dur-1), opacity var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.ai-form .ai-send { background: var(--green); color: var(--green-ink); }
.ai-form .ai-send:hover { background: var(--btn-hover); }
.ai-form button:disabled { opacity: .45; cursor: not-allowed; }
.ai-form .ai-mic { position: relative; border: 1px solid var(--line-2); color: var(--text-2); background: var(--field-bg); }
.ai-form .ai-mic:hover { color: var(--accent); border-color: var(--accent); }
.ai-form .ai-mic .icon { width: 20px; height: 20px; position: relative; }
.ai-mic__wave { position: absolute; inset: -1px; border-radius: 14px; pointer-events: none; }
.ai-form.is-conv .ai-mic { color: var(--accent-strong); border-color: rgba(0, 168, 45, .5); }
.ai-form.is-listening .ai-mic { background: #D63B3B; border-color: #D63B3B; color: #fff; }
.ai-form.is-listening .ai-mic__wave { animation: micwave 1.3s var(--ease-out) infinite; }
.ai-form.is-listening textarea { border-color: #D63B3B; box-shadow: 0 0 0 3px rgba(214, 59, 59, .15); }
@keyframes micwave { 0% { box-shadow: 0 0 0 0 rgba(214, 59, 59, .55); } 100% { box-shadow: 0 0 0 12px rgba(214, 59, 59, 0); } }
.ai-listen { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .78rem; font-weight: 600; transition: color var(--dur-1), border-color var(--dur-1), background-color var(--dur-1); }
.ai-listen:hover, .ai-listen.is-on { color: var(--accent-strong); border-color: rgba(0, 168, 45, .5); background: var(--accent-soft); }
.ai-msg.is-speaking { border-color: rgba(0, 168, 45, .5); box-shadow: 0 0 0 3px rgba(34, 211, 91, .12); }
.ai-msg--note { background: var(--accent-soft); border-color: rgba(0, 168, 45, .3); font-size: .9rem; }
.ai-panel__btn.is-on { color: #8CF5AB; background: rgba(34, 211, 91, .16); }
.ai-note { padding: 0 14px 10px; background: var(--surface); font-size: .74rem; color: var(--text-3); text-align: center; }
.ai-note a { color: var(--accent); font-weight: 600; }

/* -------------------------------------------------------------- En-tête de page */

.phero { position: relative; padding: calc(var(--hdr-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 10%, rgba(0, 168, 45, .16), transparent 70%); }
.phero__bg { position: absolute; right: clamp(-120px, -4vw, -20px); top: calc(var(--hdr-h) + 20px); width: clamp(220px, 32vw, 460px); aspect-ratio: 1; pointer-events: none; opacity: .55; }
.phero__bg i { position: absolute; border: 2px solid var(--line-3); border-radius: 22%; animation: float 12s var(--ease-in-out) infinite alternate; }
.phero__bg i:nth-child(1) { width: 56%; height: 56%; left: 30%; top: 0; }
.phero__bg i:nth-child(2) { width: 48%; height: 48%; left: 0; top: 30%; border-color: var(--green); animation-delay: -4s; }
.phero__bg i:nth-child(3) { width: 30%; height: 30%; left: 62%; top: 38%; border-color: rgba(154, 154, 154, .5); animation-delay: -8s; }
@keyframes float { to { transform: translate(10px, -14px) rotate(4deg); } }
.phero__title { font-family: var(--font-display); font-size: var(--fs-h1); letter-spacing: -.045em; line-height: 1.04; max-width: 17ch; position: relative; }
.phero__intro { margin-top: 28px; font-size: var(--fs-lead); color: var(--text-2); max-width: 58ch; }

.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------------------------------------------------------------- À propos */

.about-story { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .about-story { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.about-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: radial-gradient(70% 60% at 50% 40%, rgba(0, 168, 45, .2), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); display: grid; place-items: center; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual img.is-logo { width: 62%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 60px rgba(34, 211, 91, .2)); }
.about-visual__badge { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: rgba(var(--surface-rgb), .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); font-size: .9rem; color: var(--text-2); }
.about-visual__badge .icon { color: var(--accent); }
.prose { color: var(--text-2); font-size: 1.08rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.3vw, 1.85rem); letter-spacing: -.03em; color: var(--text); margin-top: 2em; line-height: 1.2; }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); margin-top: 1.8em; letter-spacing: -.02em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 3px; }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; position: relative; padding-left: 34px; }
.prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: .85em; color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 16px 16px 0; color: var(--text); font-size: 1.12rem; font-weight: 500; }
.prose img { border-radius: 16px; margin-block: 1.6em; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: .9rem; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

.mv-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { padding: clamp(28px, 4vw, 48px); }
.mv-card h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.mv-card h3 .icon { color: var(--accent); width: 28px; height: 28px; }
.mv-card p { color: var(--text-2); font-size: 1.05rem; }

.values { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 28px; }
.value__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34, 211, 91, .22); margin-bottom: 26px; }
.value__icon .icon { width: 24px; height: 24px; }
.value h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -.02em; }
.value p { color: var(--text-2); font-size: .97rem; }

/* ---------------------------------------------------------------- Services */

.svc-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-row { display: grid; gap: 24px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 960px) { .svc-row { grid-template-columns: 90px 1.1fr 1fr; gap: 48px; align-items: start; } }
.svc-row__num { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; padding-top: 10px; }
.svc-row__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.7rem); letter-spacing: -.04em; line-height: 1.05; display: flex; gap: 18px; align-items: center; }
.svc-row__title .icon { width: clamp(30px, 3vw, 42px); height: clamp(30px, 3vw, 42px); color: var(--accent); flex: none; }
.svc-row__text { color: var(--text-2); margin-top: 18px; font-size: 1.05rem; max-width: 46ch; }
.svc-row__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.check-list .icon { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }

.svc-detail { display: grid; gap: 48px; }
@media (min-width: 1000px) { .svc-detail { grid-template-columns: 1.4fr 1fr; gap: 72px; } }
.svc-aside { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 16px; align-self: start; }
.svc-aside .card { padding: 28px; }
.svc-aside h2 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 20px; }
.svc-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 40px; aspect-ratio: 16 / 9; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--green); color: var(--green-ink); margin-bottom: 30px; box-shadow: 0 20px 60px -20px rgba(34, 211, 91, .7); }
.svc-hero-icon .icon { width: 36px; height: 36px; }
.mini-list { display: grid; gap: 4px; }
.mini-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text-2); font-weight: 600; transition: background-color var(--dur-1), color var(--dur-1); }
.mini-list a:hover { background: rgba(var(--ink-rgb), .05); color: var(--text); }
.mini-list a span { display: inline-flex; align-items: center; gap: 12px; }
.mini-list .icon { color: var(--accent); }
.svc-aside .card--cta { background: linear-gradient(160deg, rgba(0, 168, 45, .16), rgba(var(--ink-rgb), .02) 60%), var(--card-bg); border-color: rgba(0, 168, 45, .28); }

/* ------------------------------------------------------------ Filtres (chips) */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: .92rem; background: var(--surface); transition: all var(--dur-2) var(--ease-out); }
.chip:hover { border-color: var(--line-3); color: var(--text); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { font-family: var(--font-mono); font-size: .72rem; opacity: .7; }
.pcard.is-hidden { display: none; }
.empty { padding: 48px; text-align: center; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ------------------------------------------------------- Détail réalisation */

.case-hero-media { border-radius: clamp(20px, 3vw, 36px); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #0D1110; box-shadow: var(--card-shadow); }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.case-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
@media (min-width: 800px) { .case-meta { grid-template-columns: repeat(4, 1fr); } }
.case-meta div { background: var(--surface); padding: 22px 24px; }
.case-meta dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-weight: 600; }
.case-meta a { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.case-body { display: grid; gap: 48px; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 1000px) { .case-body { grid-template-columns: 1fr 2fr; } }
.case-body .lead { color: var(--text); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.025em; line-height: 1.35; }
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 64px; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); aspect-ratio: 3 / 2; }
.gallery a:hover img { transform: scale(1.03); }
.next-case { display: block; margin-top: clamp(64px, 9vw, 120px); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card-bg); box-shadow: var(--card-shadow); position: relative; overflow: hidden; transition: border-color var(--dur-2); }
.next-case:hover { border-color: rgba(0, 168, 45, .4); }
.next-case p { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.next-case h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 3.2rem); letter-spacing: -.045em; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.next-case .icon { width: 48px; height: 48px; flex: none; padding: 12px; border-radius: 50%; background: var(--green); color: var(--green-ink); transition: transform var(--dur-2) var(--ease-out); }
.next-case:hover .icon { transform: rotate(-45deg); }

/* ------------------------------------------------------------------ Article */

.article-head { padding: calc(var(--hdr-h) + clamp(48px, 8vw, 100px)) 0 40px; }
.article-head .container { max-width: calc(860px + var(--gutter) * 2); }
.article-title { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: -.045em; line-height: 1.06; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; color: var(--text-3); font-size: .92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { color: var(--accent); }
.article-cover { max-width: calc(1100px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.article-cover img { border-radius: clamp(20px, 3vw, 32px); border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 0; }
.article-body .prose { font-size: 1.12rem; }
.article-body .prose > p:first-child { font-size: 1.22rem; color: var(--text); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.share > span { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-right: 8px; }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); transition: all var(--dur-1); }
.share a:hover, .share button:hover { background: var(--green-glow); border-color: var(--green-glow); color: var(--green-ink); }
.share .icon { width: 18px; height: 18px; }
.share__status { font-size: .88rem; color: var(--accent); }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; }
.pager [aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ------------------------------------------------------------------ Contact */

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; } }
.form-card { padding: clamp(24px, 4vw, 48px); }
.form-card h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.035em; margin-bottom: 28px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field label .req { color: var(--accent); font-weight: 500; font-size: .8rem; margin-left: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--field-bg); color: var(--text);
  font: inherit; font-size: 1rem;
  transition: border-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23868E8B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.select option { background: var(--surface); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 91, .14); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--danger); }
.field__error { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--danger-text); font-size: .88rem; }
.field__error .icon { margin-top: 2px; }
.checkbox, .field .checkbox { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: .94rem; cursor: pointer; }
.checkbox input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1px solid var(--line-3); background: var(--field-bg); display: grid; place-items: center; cursor: pointer; transition: all var(--dur-1); }
.checkbox input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--green-ink); border-bottom: 2px solid var(--green-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--dur-1); }
.checkbox input:checked { background: var(--green-glow); border-color: var(--green-glow); }
.checkbox input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; margin-bottom: 28px; font-weight: 500; }
.alert .icon { flex: none; margin-top: 2px; }
.alert--success { background: var(--accent-soft); border: 1px solid rgba(34, 211, 91, .35); color: var(--success-text); }
.alert--error { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger-text); }
.alert ul { margin-top: 8px; display: grid; gap: 4px; }
.alert ul a { text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-note { flex: 1 1 260px; max-width: 46ch; font-size: .88rem; line-height: 1.5; color: var(--text-3); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.info-stack { display: grid; gap: 16px; }
.info-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.info-card__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(34, 211, 91, .22); }
.info-card__icon .icon { width: 24px; height: 24px; }
.info-card h3 { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }
.info-card p, .info-card a { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.info-card a:hover { color: var(--accent); }
.info-card small { display: block; margin-top: 4px; color: var(--text-3); font-weight: 500; font-size: .88rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.9); }

/* ------------------------------------------------------------- 404 */

.err { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr-h) + 40px) var(--gutter) 60px; }
.err__code { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 14rem); font-weight: 700; letter-spacing: -.07em; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--line-3); }
.err__code span { -webkit-text-stroke-color: var(--accent); }
.err h1 { font-family: var(--font-display); font-size: var(--fs-h2); margin: 20px 0 14px; letter-spacing: -.035em; }
.err p { color: var(--text-2); margin-bottom: 32px; }

/* --------------------------------------------------------------- Animations */

.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .split-reveal .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-reveal .line > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * .08s); }
.js .split-reveal.is-in .line > span { transform: none; }
.magnetic { will-change: transform; }

/* Animations « douces » : préférence système, sans choix explicite sur le site */
.motion-soft .marquee__track, .motion-soft .phero__bg i, .motion-soft .cine__hint i::after { animation: none; }

/* Animations réduites : choix explicite du visiteur */
.motion-reduce *, .motion-reduce *::before, .motion-reduce *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
.motion-reduce .reveal { opacity: 1 !important; transform: none !important; }
.motion-reduce .split-reveal .line > span { transform: none !important; }
.motion-reduce .marquee__track { animation: none; }

/* --------------------------------------------------------------- Divers */

.divider-squares { display: flex; gap: 10px; align-items: center; }
.divider-squares i { width: 12px; height: 12px; border: 2px solid var(--line-3); border-radius: 3px; }
.divider-squares i:nth-child(2) { border-color: var(--accent); }

.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); opacity: .6; }

.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }

@media print {
  .hdr, .dock, .cta-band, .ftr__big, .page-progress, .tour, .tour-invite, .ai-panel { display: none !important; }
  body { background: #fff; color: #000; }
}
