/* =========================================================
   NCIA · Design system
   Graphite + vert NCIA, une seule famille (Archivo variable).
   Rayons : scènes sombres 20px · médias et panneaux 14px ·
            boutons, champs et tuiles d'icônes 10px.
   ========================================================= */

/* ---------- Fonts (auto-hébergées) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --green: #0E7A3B;
  --green-700: #0A5F2D;
  --green-300: #6CC48F;
  --green-50: #EAF3ED;

  --ink: #12171D;
  --ink-2: #2B333D;
  --muted: #59626E;
  --line: #E2E6EA;
  --line-strong: #C9D0D7;

  --bg: #FAFBFB;
  --bg-2: #F1F3F4;
  --surface: #FFFFFF;

  --night: #11161C;
  --night-3: #1C232B;
  --night-line: rgba(255, 255, 255, .1);
  --night-text: #C3CBD3;

  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 10px;

  --shadow-1: 0 1px 2px rgba(18, 23, 29, .05), 0 2px 10px rgba(18, 23, 29, .04);
  --shadow-2: 0 24px 48px -24px rgba(18, 23, 29, .28);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* échelle de z-index */
  --z-media: 1;
  --z-overlay: 2;
  --z-header: 40;
  --z-nav: 45;
  --z-skip: 60;

  --f: "Archivo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* NB : pas d'overflow-x:hidden sur html/body, ça casse le header sticky sur mobile. */
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f); color: var(--ink); margin: 0;
  font-weight: 620; font-stretch: 106%; letter-spacing: -.02em; line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--green); color: #fff; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .stage :focus-visible { outline-color: var(--green-300); }

.ico-svg { width: 1em; height: 1em; flex: none; fill: currentColor; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--r-md);
  font-weight: 600; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block; font-size: .8125rem; font-weight: 600; font-stretch: 100%;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green);
  margin-bottom: 1.1rem; line-height: 1.3;
}
.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .h2 {
  font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.06; font-stretch: 108%; letter-spacing: -.025em;
}
.section-head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.0625rem; max-width: 58ch; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 50px; padding: 0 1.35rem; border-radius: var(--r-md);
  font-family: var(--f); font-weight: 600; font-size: .975rem; font-stretch: 102%; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ico-svg { font-size: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ico-svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 18px -8px rgba(14, 122, 59, .6); }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #F3F5F6; color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--line-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .24); }
.btn--line-dark:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--sm { height: 42px; padding: 0 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--ink); font-stretch: 102%;
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.link .ico-svg { transition: transform .25s var(--ease); }
.link:hover { color: var(--green); text-decoration-color: currentColor; }
.link:hover .ico-svg { transform: translateX(3px); }
.link--on-dark { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.link--on-dark:hover { color: #fff; text-decoration-color: #fff; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250, 251, 251, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 251, 251, .94); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; margin-right: auto; flex: 0 0 auto; }

/* ---------- Logo animé (calques découpés dans le logo d'origine) ---------- */
.logo-anim { position: relative; display: block; height: 40px; aspect-ratio: 788 / 208; }
.logo-anim > * { position: absolute; display: block; }
.logo-anim > img { height: auto; max-width: none; }
.lg-gear {
  left: -2.157%; top: -7.692%; width: 30.457%; aspect-ratio: 1;
  /* l'engrenage tourne derrière une fenêtre fixe : le côté droit reste ouvert pour les pistes */
  -webkit-mask-image: conic-gradient(#000 0deg 41deg, transparent 43deg 113deg, #000 115deg);
          mask-image: conic-gradient(#000 0deg 41deg, transparent 43deg 113deg, #000 115deg);
}
.lg-rotor { position: absolute; inset: 0; }
/* lumière fixe (ne tourne pas avec l'engrenage) : éclaircit le haut de l'anneau comme sur le logo d'origine */
.lg-light {
  left: -2.157%; top: -7.692%; width: 30.457%; aspect-ratio: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(62% 62% at 34% 16%, rgb(96, 128, 18), rgba(96, 128, 18, 0));
  -webkit-mask-image: conic-gradient(#000 0deg 41deg, transparent 43deg 113deg, #000 115deg),
                      radial-gradient(closest-side, transparent 57.4%, #000 58%, #000 84.4%, transparent 85%);
          mask-image: conic-gradient(#000 0deg 41deg, transparent 43deg 113deg, #000 115deg),
                      radial-gradient(closest-side, transparent 57.4%, #000 58%, #000 84.4%, transparent 85%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.lg-gear img { width: 100%; height: 100%; max-width: none; transition: transform .9s var(--ease); }
.lg-circuits { left: 20.051%; top: 12.981%; width: 15.355%; }
.lg-letters { left: 2.538%; top: 9.135%; width: 24.492%; }
.lg-word-n { left: 38.071%; top: 25.481%; width: 15.736%; }
.lg-word-c { left: 54.315%; top: 25.962%; width: 18.655%; }
.lg-word-i { left: 73.477%; top: 24.519%; width: 4.061%; }
.lg-word-a { left: 78.046%; top: 24.519%; width: 21.954%; }
.lg-tagline { left: 38.071%; top: 73.558%; width: 61.548%; }
/* impulsions lumineuses qui parcourent les pistes (coordonnées du logo 788×208) */
.lg-flow {
  inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  fill: none; stroke: #E8FFB8; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 14 200; stroke-dashoffset: 14;
  filter: drop-shadow(0 0 1.5px rgba(150, 255, 90, .95));
}
.lg-flow path:nth-child(1) { --d: 0ms; }
.lg-flow path:nth-child(2) { --d: 60ms; }
.lg-flow path:nth-child(3) { --d: 120ms; }
.lg-flow path:nth-child(4) { --d: 180ms; }
.lg-flow path:nth-child(5) { --d: 240ms; }
.lg-pads { inset: 0; pointer-events: none; }
.lg-pads i {
  position: absolute; width: 4.6%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 255, 160, .95) 0 20%, rgba(126, 214, 84, .55) 45%, rgba(126, 214, 84, 0) 70%);
  transform: translate(-50%, -50%); opacity: 0;
}
.lg-pads i:nth-child(1) { left: 28.371%; top: 22.566%; --d: 0ms; }
.lg-pads i:nth-child(2) { left: 31.438%; top: 32.647%; --d: 60ms; }
.lg-pads i:nth-child(3) { left: 33.945%; top: 44.68%; --d: 120ms; }
.lg-pads i:nth-child(4) { left: 33.419%; top: 55.619%; --d: 180ms; }
.lg-pads i:nth-child(5) { left: 32.45%; top: 66.834%; --d: 240ms; }
.lg-shine {
  left: 38.071%; top: 24.519%; width: 61.929%; aspect-ratio: 488 / 85; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 62%) no-repeat 100% 0 / 250% 100%;
  -webkit-mask: url("../assets/img/logo/word-mask.png") 0 0 / 100% 100% no-repeat;
          mask: url("../assets/img/logo/word-mask.png") 0 0 / 100% 100% no-repeat;
}

/* Intro : jouée une fois par session, quand les calques sont chargés (main.js) */
.js.logo-intro .logo-anim:not(.is-intro) > * { opacity: 0; }
.logo-anim.is-intro .lg-gear,
.logo-anim.is-intro .lg-light { animation: lg-gear-in 1s var(--ease) both; }
.logo-anim.is-intro .lg-gear img { animation: lg-spin 1.6s cubic-bezier(.22, .9, .24, 1) both; }
.logo-anim.is-intro .lg-letters { animation: lg-pop .8s var(--ease) .15s both; }
.logo-anim.is-intro .lg-circuits { animation: lg-wipe .6s cubic-bezier(.5, 0, .2, 1) .5s both; }
.logo-anim.is-intro .lg-pads i { animation: lg-pad .8s ease-out both; animation-delay: calc(1s + var(--d)); }
.logo-anim.is-intro .lg-word-n { animation: lg-rise .7s var(--ease) .8s both; }
.logo-anim.is-intro .lg-word-c { animation: lg-rise .7s var(--ease) .87s both; }
.logo-anim.is-intro .lg-word-i { animation: lg-rise .7s var(--ease) .94s both; }
.logo-anim.is-intro .lg-word-a { animation: lg-rise .7s var(--ease) 1.01s both; }
.logo-anim.is-intro .lg-tagline { animation: lg-rise .7s var(--ease) 1.2s both; }
.logo-anim.is-intro .lg-shine { animation: lg-shine 1.1s ease-in-out 1.8s; }

/* En continu après l'intro (main.js ajoute .is-live) : l'engrenage tourne sans arrêt (10 s par tour),
   une impulsion parcourt chaque piste toutes les 1,8 s (pistes décalées) et allume sa pastille, reflet toutes les 5 s */
.lg-flow path:nth-child(1), .lg-pads i:nth-child(1) { --n: 0; }
.lg-flow path:nth-child(2), .lg-pads i:nth-child(2) { --n: 2; }
.lg-flow path:nth-child(3), .lg-pads i:nth-child(3) { --n: 4; }
.lg-flow path:nth-child(4), .lg-pads i:nth-child(4) { --n: 1; }
.lg-flow path:nth-child(5), .lg-pads i:nth-child(5) { --n: 3; }
.logo-anim.is-live .lg-rotor { animation: lg-turn 10s linear infinite; }
.logo-anim.is-live .lg-flow path { animation: lg-pulse 1.8s linear infinite; animation-delay: calc(var(--n) * -.36s); }
.logo-anim.is-live .lg-pads i { animation: lg-pad-loop 1.8s linear infinite; animation-delay: calc(var(--n) * -.36s); }
.logo-anim.is-live .lg-shine { animation: lg-shine-loop 5s ease-in-out infinite; }

/* Survol : l'engrenage avance d'une dent (12 dents, 30°), les pistes s'allument, reflet sur NCIA */
.brand:focus-visible .lg-gear img { transform: rotate(30deg); }
@media (hover: hover) {
  .brand:hover .lg-gear img { transform: rotate(30deg); }
  .brand:hover .lg-pads i { animation: lg-pad .7s ease-out both; animation-delay: var(--d); }
  .brand:hover .lg-shine { animation: lg-shine .9s ease-in-out; }
}

@keyframes lg-gear-in { 0% { opacity: 0; transform: scale(.82); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes lg-spin { from { transform: rotate(-60deg); } to { transform: none; } }
@keyframes lg-pop { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes lg-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes lg-pad {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
@keyframes lg-turn { to { transform: rotate(360deg); } }
@keyframes lg-pulse { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -100; } }
@keyframes lg-pad-loop {
  0%, 80% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  88% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
@keyframes lg-shine-loop {
  0% { opacity: 1; background-position: 100% 0; }
  22% { opacity: 1; background-position: 0 0; }
  22.01%, 100% { opacity: 0; background-position: 0 0; }
}
@keyframes lg-shine { from { opacity: 1; background-position: 100% 0; } to { opacity: 1; background-position: 0 0; } }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li > a:not(.btn),
.nav-links > li > .nav-trigger {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 500; font-size: .95rem; color: var(--ink-2);
  padding: .55rem .8rem; border-radius: 8px; background: none; border: 0; cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links > li > a:not(.btn):hover,
.nav-links > li > .nav-trigger:hover { color: var(--ink); background: var(--bg-2); }
.nav-links > li > a:not(.btn).is-active,
.nav-links > li > .nav-trigger.is-active { color: var(--ink); font-weight: 600; }
.nav-links > li > a:not(.btn).is-active::after,
.nav-links > li > .nav-trigger.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 2px; height: 2px;
  background: var(--green); border-radius: 2px;
}
.nav-trigger .chev { font-size: .8rem; transition: transform .25s var(--ease); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 330px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .nav-trigger .chev { transform: rotate(180deg); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md);
  color: var(--ink-2); transition: background-color .15s ease;
}
.dropdown a:hover { background: var(--bg-2); }
.dropdown .di {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-md);
  background: var(--green-50); color: var(--green); display: grid; place-items: center; font-size: 1.1rem;
}
.dropdown strong { display: block; font-weight: 600; font-size: .925rem; color: var(--ink); line-height: 1.3; }
.dropdown small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; margin-top: 2px; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang button {
  background: none; border: 0; cursor: pointer; padding: .3rem .55rem; border-radius: 6px;
  color: var(--muted); font-weight: 600; font-size: .8125rem; letter-spacing: .02em;
  transition: color .15s ease, background-color .15s ease;
}
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--ink); background: var(--bg-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--r-md);
  background: none; border: 1px solid var(--line); cursor: pointer; color: var(--ink); font-size: 1.35rem;
}
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

/* =========================================================
   Hero (accueil)
   ========================================================= */
.hero { padding: 0 12px; }
.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(110% 90% at 0% 0%, #1B242D 0%, rgba(27, 36, 45, 0) 60%),
    var(--night);
  border-radius: var(--r-xl); color: #fff;
  min-height: calc(100dvh - var(--header-h) - 12px);
  display: flex; flex-direction: column;
}
.hero-grid {
  flex: 1; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(28px, 3.4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 80px); align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.hero h1 {
  color: #fff; font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1.0;
  font-stretch: 110%; font-weight: 640; letter-spacing: -.035em; max-width: 12.5ch;
}
.hero-lead { color: var(--night-text); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; max-width: 42ch; margin: 1.6rem 0 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---------- Photos réelles (diaporama) ---------- */
.hero-visual { position: relative; display: flex; min-height: 0; }
.hero-media {
  flex: 1; position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg); background: var(--night-3); min-height: 360px;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  background: linear-gradient(to top, rgba(17, 22, 28, .5), rgba(17, 22, 28, 0) 34%);
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-prev { opacity: 1; transition: none; }
.hero-slide.is-active { opacity: 1; z-index: var(--z-media); animation: kenburns 9s cubic-bezier(.3, .1, .3, 1) both; }
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(0, 1.5%, 0); }
  to   { transform: scale(1) translate3d(0, 0, 0); }
}

/* Progression + pause (WCAG 2.2.2 : tout mouvement de plus de 5 s doit pouvoir être arrêté) */
.hero-ctrl {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-ctrl[hidden] { display: none; }
.hero-steps { display: flex; gap: 6px; }
.hero-steps i {
  display: block; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(var(--green-300), var(--green-300)) no-repeat 0 0 / 0% 100%, rgba(255, 255, 255, .28);
}
.hero-steps i.is-done { background-size: 100% 100%, auto; }
.hero-steps i.is-current { animation: step-fill 6s linear forwards; }
@keyframes step-fill { to { background-size: 100% 100%, auto; } }
.hero-pause {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(17, 22, 28, .62); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}
.hero-pause:hover { background: rgba(17, 22, 28, .85); border-color: rgba(255, 255, 255, .45); }
.hero-pause .ico-svg { width: 14px; height: 14px; }
.hero-pause .i-pause { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: inline; }
.is-paused .hero-slide.is-active, .is-paused .hero-steps i,
.is-idle .hero-slide.is-active, .is-idle .hero-steps i { animation-play-state: paused; }

/* ---------- Ligne d'alimentation : le schéma se trace, puis chaque départ s'allume ---------- */
.hero-rail {
  width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto;
  padding: 0 var(--gutter) clamp(28px, 4vw, 44px);
}
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hf { --n: 0; position: relative; padding: 24px 24px 0 0; }
.hf:nth-child(2) { --n: 1; }
.hf:nth-child(3) { --n: 2; }
.hf:nth-child(4) { --n: 3; }
.hf::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(108, 196, 143, .5); transform-origin: 0 50%;
}
.hf::after {
  content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-300); box-shadow: 0 0 0 3px rgba(108, 196, 143, .16), 0 0 12px rgba(108, 196, 143, .55);
}
.hf b {
  display: block; font-size: clamp(1.3rem, 1.9vw, 1.65rem); line-height: 1; font-weight: 640;
  font-stretch: 112%; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums;
}
.hf span { display: block; margin-top: .55rem; color: var(--night-text); font-size: .9rem; line-height: 1.45; max-width: 30ch; }

/* Impulsion qui parcourt la ligne toutes les 7 s ; chaque voyant scintille à son passage */
.hero-facts::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(108, 196, 143, 0), #B8F0CD 50%, rgba(108, 196, 143, 0)) no-repeat -12.5% 0 / 20% 100%;
  opacity: 0;
}

.js .hf::before { transform: scaleX(0); animation: rail-draw .5s linear forwards; animation-delay: calc(.6s + var(--n) * .5s); }
.js .hf::after {
  background: var(--night); box-shadow: inset 0 0 0 1.5px rgba(108, 196, 143, .6);
  animation: led-on .35s ease-out calc(.6s + var(--n) * .5s) forwards, led-flash 7s linear calc(3.4s + var(--n) * .525s) infinite;
}
.js .hf > * { opacity: 0; transform: translateY(8px); animation: rise .6s var(--ease) forwards; animation-delay: calc(.75s + var(--n) * .5s); }
.js .hero-facts::after { animation: rail-pulse 7s linear 3.4s infinite; }
.is-idle .hero-facts::after, .is-idle .hf::after,
.rail-wait .hf::before, .rail-wait .hf::after, .rail-wait .hf > *, .rail-wait .hero-facts::after { animation-play-state: paused; }
@keyframes rail-draw { to { transform: scaleX(1); } }
@keyframes led-on {
  to { background: var(--green-300); box-shadow: 0 0 0 3px rgba(108, 196, 143, .16), 0 0 12px rgba(108, 196, 143, .55); }
}
@keyframes rail-pulse {
  0% { opacity: 1; background-position: -12.5% 0; }
  30% { opacity: 1; background-position: 112.5% 0; }
  30.1%, 100% { opacity: 0; background-position: 112.5% 0; }
}
@keyframes led-flash {
  0%, 100% { background: var(--green-300); box-shadow: 0 0 0 3px rgba(108, 196, 143, .16), 0 0 12px rgba(108, 196, 143, .55); }
  3% { background: #DDFBE8; box-shadow: 0 0 0 5px rgba(108, 196, 143, .28), 0 0 22px rgba(160, 240, 190, .9); }
  9% { background: var(--green-300); box-shadow: 0 0 0 3px rgba(108, 196, 143, .16), 0 0 12px rgba(108, 196, 143, .55); }
}

/* Entrée du texte du hero */
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .12s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .22s; }
.js .hero-media { animation: fade-in 1.2s ease .1s both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--alt { background: var(--bg-2); }
.section--flush-top { padding-top: 0; }
section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Services explorer (accueil) ---------- */
.svc-explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-item > a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 4px 20px; align-items: start;
  padding: 26px 4px; color: inherit;
}
.svc-item .tile {
  grid-row: span 2; width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--green-50); color: var(--green);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.svc-item h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 600; font-stretch: 104%; letter-spacing: -.015em; transition: color .3s var(--ease); }
.svc-item p { grid-column: 2; color: var(--muted); font-size: .975rem; line-height: 1.55; max-width: 56ch; }
.svc-item .arrow { grid-column: 3; grid-row: 1; align-self: center; font-size: 1.25rem; color: var(--line-strong); transition: transform .3s var(--ease), color .3s var(--ease); }
.svc-item.is-active .tile { background: var(--green); color: #fff; }
.svc-item.is-active .arrow { color: var(--green); transform: translateX(4px); }
.svc-item > a:hover h3 { color: var(--green); }

.svc-stage {
  position: sticky; top: calc(var(--header-h) + 28px);
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow-2);
}
.svc-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s var(--ease);
}
.svc-stage img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Sectors ---------- */
.sectors { --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.sector {
  position: relative; overflow: hidden;
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  display: flex; flex-direction: column; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.js .sector.reveal {
  transition: opacity .8s var(--ease), transform .9s var(--ease), border-color .3s ease, box-shadow .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}
.sector::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.sector .tile {
  width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.35rem;
  background: var(--green-50); color: var(--green);
  transition: background-color .3s ease, color .3s ease;
}
.sector h3 { font-size: 1.3rem; font-weight: 600; font-stretch: 104%; margin-top: 56px; }
.sector p { margin-top: .5rem; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.sector:hover { border-color: #D5E7DC; box-shadow: 0 18px 40px -24px rgba(17, 22, 28, .28); }
.sector:hover::after { transform: scaleX(1); }
.sector:hover .tile { background: var(--green); color: #fff; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-media .main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.about-media .inset {
  position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-lg); border: 6px solid var(--bg); box-shadow: var(--shadow-2);
}
.about-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; font-stretch: 108%; letter-spacing: -.025em; }
.about-body > p { margin-top: 1.2rem; color: var(--muted); max-width: 58ch; }
.about-body > p + p { margin-top: .9rem; }
.checks { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: .975rem; color: var(--ink-2); line-height: 1.45; }
.checks .ico-svg { color: var(--green); font-size: 1.15rem; margin-top: 1px; }

/* ---------- Mission statement ---------- */
.statement { max-width: 1040px; margin: 0; }
.statement blockquote {
  margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.65rem); line-height: 1.22; font-weight: 520;
  font-stretch: 104%; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.statement blockquote .hl { color: var(--green); }

/* ---------- Values (colonnes à filet) ---------- */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.value { position: relative; padding-top: 26px; }
.value::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: 0 50%; }
.value .ico-svg { font-size: 1.6rem; color: var(--green); }
.value h3 { margin-top: 1.1rem; font-size: 1.2rem; font-weight: 600; font-stretch: 104%; }
.value p { margin-top: .55rem; color: var(--muted); font-size: .95rem; }

/* =========================================================
   Stage sombre de fin de page (CTA)
   ========================================================= */
.closing { padding: 0 12px 12px; }
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 100%, #1B242D 0%, rgba(27, 36, 45, 0) 60%),
    var(--night);
  border-radius: var(--r-xl); color: #fff;
}
.stage-inner {
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center;
}
.stage h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; font-stretch: 108%; letter-spacing: -.03em; max-width: 18ch; }
.stage p { margin-top: 1.1rem; color: var(--night-text); max-width: 48ch; }
.stage-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; justify-self: end; }
.stage-actions .btn { height: 56px; padding: 0 1.75rem; font-size: 1.05rem; }

/* =========================================================
   Page head (pages internes)
   ========================================================= */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: var(--muted); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.0; font-stretch: 110%; font-weight: 640; letter-spacing: -.035em; }
.page-head p { margin-top: 1.3rem; color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.chips a {
  display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
  transition: border-color .2s ease, color .2s ease;
}
.chips a .ico-svg { color: var(--green); font-size: 1.05rem; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }

/* =========================================================
   Services page · sommaire collant + fiches
   ========================================================= */
.svc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.svc-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-toc h2 { font-size: .8125rem; font-weight: 600; font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.svc-toc ol { border-left: 1px solid var(--line); }
.svc-toc a {
  display: block; padding: .55rem 0 .55rem 1rem; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); font-size: .95rem; line-height: 1.35; transition: color .2s ease, border-color .2s ease;
}
.svc-toc a:hover { color: var(--ink); }
.svc-toc a.is-current { color: var(--ink); font-weight: 600; border-left-color: var(--green); }
.toc-help { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.toc-help p { font-size: .9rem; color: var(--muted); }
.toc-help a { padding: 0; margin-left: 0; border-left: 0; display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.toc-help a .ico-svg { color: var(--green); }
.toc-help a:hover { color: var(--green); }

.svc-entry + .svc-entry { margin-top: clamp(64px, 8vw, 112px); }
.svc-entry header { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.svc-entry header .tile {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  font-size: 1.5rem; background: var(--green-50); color: var(--green);
}
.svc-entry h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.08; font-stretch: 108%; letter-spacing: -.025em; }
.svc-entry header p { margin-top: .3rem; color: var(--muted); font-size: 1rem; }
.svc-entry .media { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-2); }
.svc-entry .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; margin-top: 32px; }
.svc-entry .cols > p { color: var(--ink-2); }
.svc-entry .checks { margin-top: 0; grid-template-columns: 1fr; }
.svc-entry .checks li:first-child { border-top: 0; padding-top: 0; }
.svc-entry .entry-cta { margin-top: 28px; }

/* ---------- Why NCIA (grille 2x2 à filets) ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.why-item { padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 20px; }
.why-item:nth-child(odd) { border-right: 1px solid var(--line); }
.why-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.why-item .tile { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.4rem; background: var(--green-50); color: var(--green); }
.why-item h3 { font-size: 1.25rem; font-weight: 600; font-stretch: 104%; }
.why-item p { color: var(--muted); font-size: .975rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-1); }
.panel h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-stretch: 106%; }
.panel > p.lead { color: var(--muted); margin-top: .5rem; font-size: .975rem; }

.form { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--green); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #737C88; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2359626E'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9B2BC; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 122, 59, .14);
}
.field .err { display: none; align-items: center; gap: .4rem; color: #B42318; font-size: .875rem; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: #B42318; }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.field.has-error .err { display: flex; }
.form-foot { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; gap: .6rem; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: .925rem; line-height: 1.5; }
.form-status .ico-svg { font-size: 1.2rem; margin-top: 1px; }
.form-status.is-ok { display: flex; background: var(--green-50); color: #0A4F26; }
.form-status.is-error { display: flex; background: #FDF0EE; color: #8F1D13; }

.details { display: grid; gap: 0; }
.detail { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 8px; }
.detail .tile { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.2rem; background: var(--green-50); color: var(--green); }
.detail h3 { font-size: .9rem; font-weight: 600; font-stretch: 100%; color: var(--muted); letter-spacing: 0; }
.detail p { margin-top: .25rem; color: var(--ink); font-size: 1rem; }
.detail a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.detail a:hover { color: var(--green); text-decoration-color: currentColor; }
.detail .muted { color: var(--muted); font-weight: 400; }

.urgent { margin-top: 16px; background: var(--night); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); }
.urgent h3 { color: #fff; font-size: 1.25rem; font-stretch: 106%; }
.urgent p { margin-top: .5rem; color: var(--night-text); font-size: .95rem; }
.urgent .btn { margin-top: 1.25rem; font-variant-numeric: tabular-nums; }
.urgent .btn .ico-svg { color: var(--green); }
.urgent .btn:hover .ico-svg { transform: none; }

.map { margin-top: clamp(48px, 6vw, 80px); }
/* Carte statique hébergée (tuiles OpenStreetMap) : s'affiche toujours, sans cookies ni service tiers */
.map-card {
  --cx: 64%;
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #E4E6E4;
}
.map-view { position: relative; display: block; height: clamp(380px, 40vw, 480px); overflow: hidden; }
.map-view img {
  position: absolute; left: min(var(--cx), 700px); top: 50%; width: 1400px; height: 720px; max-width: none;
  transform: translate(-50%, -50%);
}
.map-pin {
  position: absolute; left: min(var(--cx), 700px); top: 50%; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%); margin-top: 11px; pointer-events: none;
}
.map-pin b {
  position: relative; background: var(--night); color: #fff; font-size: .8rem; font-weight: 650; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 8px; box-shadow: 0 8px 20px -8px rgba(17, 22, 28, .55);
  transition: background-color .2s ease;
}
.map-pin b::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; transform: rotate(45deg); border-radius: 2px;
}
.map-pin i {
  display: block; width: 22px; height: 22px; margin-top: 10px; border-radius: 50%;
  background: var(--green); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(17, 22, 28, .35);
  animation: map-ping 2.4s ease-out infinite;
}
@keyframes map-ping {
  0% { box-shadow: 0 2px 6px rgba(17, 22, 28, .35), 0 0 0 0 rgba(14, 122, 59, .45); }
  70%, 100% { box-shadow: 0 2px 6px rgba(17, 22, 28, .35), 0 0 0 16px rgba(14, 122, 59, 0); }
}
.map-view:hover .map-pin b, .map-view:focus-visible .map-pin b { background: var(--green); }
/* Carte interactive (Leaflet) posée sur l'image statique, visible dès que les tuiles sont chargées */
.map-live { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s ease; background: #E4E6E4; font: inherit; }
.map-view.is-live .map-live { opacity: 1; }
.map-view.is-live ~ .map-credit { display: none; }
.map-live .leaflet-tile-pane { filter: saturate(.5); }
.map-marker { background: none; border: 0; }
.map-marker .map-pin { left: 0; top: 0; }
.map-live .leaflet-bar { border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.map-live .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; color: var(--ink); font-size: 1.15rem; border-bottom-color: var(--line); }
.map-live .leaflet-bar a:hover { background: var(--green-50); color: var(--green); }
.map-recenter a { display: grid; place-items: center; }
.map-recenter .ico-svg { font-size: 1.1rem; color: var(--green); }
.map-live .leaflet-control-attribution { font-size: .7rem; background: rgba(255, 255, 255, .85); }
.map-live .leaflet-control-attribution a { color: var(--ink-2); }
.map-credit {
  position: absolute; top: 0; right: 0; z-index: 2; padding: 3px 9px; font-size: .72rem; color: var(--muted);
  background: rgba(255, 255, 255, .85); border-bottom-left-radius: 8px;
}
.map-credit a { color: inherit; text-decoration: underline; }

.map-info {
  position: absolute; left: 24px; bottom: 24px; z-index: 2; width: min(430px, calc(100% - 48px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-2);
}
.map-addr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.map-addr .tile { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 1.2rem; background: var(--green); color: #fff; }
.map-addr h2 { font-size: 1.1rem; font-weight: 650; font-stretch: 104%; letter-spacing: -.01em; }
.map-addr address { margin-top: .3rem; font-style: normal; color: var(--ink-2); line-height: 1.45; }
.map-copy {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; margin-top: .4rem; padding: 0;
  background: none; border: 0; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; color: var(--green);
}
.map-copy:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 4px; }
.map-copy.is-done { color: var(--green-700); }
.map-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.map-actions-label { display: block; font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.map-apps { display: flex; flex-wrap: wrap; gap: 8px; }

.panel-socials { margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-socials h3 { font-size: .9rem; font-weight: 600; font-stretch: 100%; color: var(--muted); letter-spacing: 0; }
.panel-socials .socials { margin-top: .75rem; }

/* =========================================================
   404
   ========================================================= */
.nf { min-height: calc(100dvh - var(--header-h) - 24px); display: flex; align-items: center; padding: 64px 0; }
.nf h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; font-stretch: 110%; letter-spacing: -.035em; }
.nf p { margin-top: 1.2rem; color: var(--muted); font-size: 1.125rem; max-width: 46ch; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 2.2rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 1.2rem; font-size: .95rem; color: var(--muted); max-width: 38ch; }
.socials { display: flex; gap: 8px; margin-top: 1.4rem; }
.socials a {
  width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink); font-size: 1.35rem; background: var(--surface);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.socials a:hover, .socials a:focus-visible { background: var(--green); border-color: var(--green); color: #fff; }
.footer-col h2 { font-size: .8125rem; font-weight: 600; font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a { color: var(--ink-2); font-size: .95rem; }
.footer-col a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.footer-contact .ico-svg { color: var(--green); font-size: 1.1rem; margin-top: 2px; }
.footer-contact a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .875rem; color: var(--muted);
}

/* =========================================================
   Révélation au scroll (JS + mouvement autorisé uniquement)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Animations de détail (au scroll, une seule fois) ---------- */
/* Mission : le passage clé se surligne au moment où il apparaît */
.statement blockquote .hl {
  background: linear-gradient(transparent 64%, rgba(14, 122, 59, .14) 64%) no-repeat 0 0 / 100% 100%;
  transition: background-size 1.2s var(--ease) .45s;
}
.js .statement.reveal:not(.is-in) .hl { background-size: 0% 100%; }

/* Valeurs : le filet se trace de gauche à droite, l'un après l'autre */
.value::before { transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + .15s); }
.js .value.reveal:not(.is-in)::before { transform: scaleX(0); }

/* Photos : levée de rideau du bas vers le haut */
.about-media .main, .about-media .inset { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease); }
.svc-entry .media { clip-path: inset(0 0 0 0); transition: opacity .8s var(--ease), transform .9s var(--ease), clip-path 1.1s var(--ease); }
.about-media .inset { transition-delay: .25s; }
.js .about-media.reveal:not(.is-in) .main,
.js .about-media.reveal:not(.is-in) .inset,
.js .svc-entry .media.reveal:not(.is-in) { clip-path: inset(18% 0 0 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .svc-layout { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero-stage { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: var(--gutter); }
  .hero-copy { padding: 32px 0 28px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .svc-explorer { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  .svc-item .arrow { color: var(--green); }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 640px; }
  .stage-inner { grid-template-columns: 1fr; align-items: start; }
  .stage-actions { justify-self: start; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-toc { display: none; }
}
@media (max-width: 820px), (max-width: 1000px) and (max-height: 500px) {
  .sector { flex-basis: calc((100% - var(--gap)) / 2); }
  :root { --header-h: 64px; }
  .logo-anim { height: 34px; }
  .nav { gap: 12px; }
  .nav-toggle { display: inline-grid; order: 3; }
  .nav-right { display: none; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-nav);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
    box-shadow: var(--shadow-2); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  body.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links > li > a:not(.btn), .nav-links > li > .nav-trigger { width: 100%; justify-content: space-between; padding: .9rem .5rem; font-size: 1.05rem; }
  .nav-links > li > a:not(.btn).is-active::after, .nav-links > li > .nav-trigger.is-active::after { display: none; }
  .nav-links > li > a:not(.btn).is-active, .nav-links > li > .nav-trigger.is-active { color: var(--green); }
  .nav-links .nav-trigger .chev { padding: 12px; margin: -12px -6px -12px 0; box-sizing: content-box; font-size: .95rem; }
  .dropdown {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 4px; display: none;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .nav-trigger .chev { transform: none; }
  .has-dropdown.open > .nav-trigger .chev { transform: rotate(180deg); }
  .nav-mobile-cta { display: block; padding: 16px 0 0; margin-top: 8px; border-top: 1px solid var(--line); }
  .nav-mobile-cta .btn { width: 100%; }
  .nav-mobile-lang { display: flex; gap: 8px; padding-top: 12px; }
  .nav-mobile-lang button {
    flex: 1; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
    font-weight: 600; color: var(--muted); cursor: pointer;
  }
  .nav-mobile-lang button.is-active { border-color: var(--ink); color: var(--ink); }

  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hf { padding-right: 16px; }
  .hf span { font-size: .875rem; }
  .js .hero-facts::after { display: none; animation: none; }
  .js .hf::after { animation: led-on .35s ease-out calc(.6s + var(--n) * .5s) forwards; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 821px) and (min-height: 501px), (min-width: 1001px) { .nav-mobile-lang, .nav-mobile-cta { display: none; } }
@media (max-width: 640px) {
  .hero { padding: 0 8px; }
  .closing { padding: 0 8px 8px; }
  .hero-media { aspect-ratio: 1 / 1; }
  .hero-actions .btn { width: 100%; }
  .sectors { --gap: 12px; }
  .sector { flex-basis: 100%; padding: 24px; }
  .sector h3 { margin-top: 20px; }
  .hero h1 { max-width: none; font-size: clamp(2rem, 10.4vw, 2.7rem); }
  .checks { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .svc-entry .cols { grid-template-columns: 1fr; }
  .svc-entry .media { aspect-ratio: 4 / 3; }
  .why { grid-template-columns: 1fr; }
  .why-item:nth-child(odd) { border-right: 0; }
  .why-item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
  .about-media { padding: 0 10% 16% 0; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; scroll-snap-align: start; }
}
@media (max-width: 380px) {
  .logo-anim { height: 30px; }
  .btn { padding: 0 1.05rem; font-size: .925rem; }
}

/* ---------- Mobile et tablette : mise en page dédiée ---------- */
/* Tablette verticale : photo de la hero en paysage pour garder le texte et la ligne visibles */
@media (min-width: 641px) and (max-width: 960px) {
  .hero-media { aspect-ratio: 3 / 2; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 820px) {
  .sector h3 { margin-top: 28px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 24px; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .page-head p { font-size: 1.05rem; }

  /* Services (accueil) : icône et titre sur une ligne, description sur toute la largeur */
  .svc-item > a { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 10px 14px; align-items: center; padding: 20px 0; }
  .svc-item .tile { grid-row: auto; width: 40px; height: 40px; font-size: 1.2rem; }
  .svc-item h3 { font-size: 1.12rem; }
  .svc-item p { grid-column: 1 / -1; font-size: .95rem; }

  /* Secteurs : cartes horizontales compactes */
  .sector { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; padding: 18px 20px; align-items: center; }
  .sector .tile { grid-row: span 2; width: 44px; height: 44px; font-size: 1.25rem; }
  .sector h3 { margin-top: 0; font-size: 1.1rem; align-self: end; }
  .sector p { margin-top: 0; font-size: .9rem; align-self: start; }

  /* Valeurs : icône et titre alignés */
  .values { gap: 28px; }
  .value { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding-top: 20px; }
  .value .ico-svg { font-size: 1.4rem; }
  .value h3 { margin-top: 0; font-size: 1.12rem; }
  .value p { grid-column: 1 / -1; }

  .statement blockquote { font-size: 1.42rem; line-height: 1.28; }

  /* Bandeau final : boutons pleine largeur comme dans la hero */
  .stage-inner { padding: 48px 22px; gap: 28px; }
  .stage-actions { align-items: stretch; }
  .stage-actions .btn { width: 100%; }

  .svc-entry header { gap: 14px; margin-bottom: 20px; }
  .svc-entry .cols { margin-top: 24px; }
  .why-item { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 24px 20px; }
  .why-item .tile { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* Hero sur téléphone et tablette verticale : la photo réelle remplit l'écran,
   le texte est posé en bas sur un dégradé sombre */
@media (max-width: 960px) and (orientation: portrait) {
  .hero-grid {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
    min-height: calc(100vh - var(--header-h) - 8px);
    min-height: calc(100svh - var(--header-h) - 8px);
    padding: 0 var(--gutter) 32px;
  }
  .hero-visual { position: absolute; inset: 0; z-index: -1; }
  .hero-media { aspect-ratio: auto; min-height: 0; border-radius: 0; }
  .hero-media::after {
    box-shadow: none;
    background: linear-gradient(to top, var(--night) 0%, rgba(17, 22, 28, .94) 30%, rgba(17, 22, 28, .62) 54%, rgba(17, 22, 28, .12) 78%, rgba(17, 22, 28, .45) 100%);
  }
  .hero-ctrl { top: 16px; bottom: auto; left: var(--gutter); right: 16px; }
  .hero-copy { padding: 0; }
  .hero h1 { text-shadow: 0 2px 24px rgba(17, 22, 28, .45); }
  .hero-lead { color: #D3D9DF; }
  .hero-rail { padding-top: 8px; }
}
@media (min-width: 641px) and (max-width: 960px) and (orientation: portrait) {
  .hero h1 { font-size: clamp(2.8rem, 7.6vw, 4.4rem); max-width: 13ch; }
  .hero-lead { font-size: 1.15rem; max-width: 46ch; }
  .hero-grid { padding-bottom: 44px; }
}

/* Carte : sur petit écran, l'adresse passe sous le plan */
@media (max-width: 900px) {
  .map-card { --cx: 50%; }
  .map-view { height: clamp(280px, 52vw, 400px); }
  .map-info { position: static; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px; }
  .map-apps .btn { flex: 1 1 auto; }
  .map-copy { min-height: 44px; }
}

/* Téléphone à l'horizontale : hero en deux colonnes, sans perdre le titre */
@media (max-width: 1000px) and (max-height: 500px) and (orientation: landscape) {
  .hero-stage { min-height: calc(100dvh - var(--header-h) - 8px); }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; padding-top: 22px; padding-bottom: 22px; }
  .hero-copy { padding: 4px 0; }
  .hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.5rem); max-width: 14ch; }
  .hero-lead { font-size: 1rem; margin: .9rem 0 1.3rem; }
  .hero-actions .btn { width: auto; }
  .hero-media { aspect-ratio: auto; min-height: 0; }
}

/* Écrans tactiles et mobiles : zones de toucher d'au moins 44 px */
@media (pointer: coarse), (max-width: 820px) {
  .link { min-height: 44px; }
  .brand { padding: 5px 0; }
  .hero-pause { width: 44px; height: 44px; }
  .lang button { min-height: 40px; min-width: 40px; }
}

/* ---------- Mouvement réduit ---------- */
@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 .hero-copy > *, .js .hero-media, .js .hf > * { opacity: 1; transform: none; animation: none; }
  .js .hf::before { transform: none; animation: none; }
  .js .hf::after { background: var(--green-300); box-shadow: 0 0 0 3px rgba(108, 196, 143, .16); animation: none; }
  .js .hero-facts::after { display: none; }
  .hero-slide.is-active { animation: none; }
  .lg-gear img, .lg-rotor { transform: none !important; animation: none !important; }
  .lg-flow { display: none; }
}
