/* ==========================================================================
   NextGen Securix — feuille de style
   Organisation : 1. Jetons  2. Base  3. Composants  4. Sections  5. Pages
   annexes  6. Animations  7. Responsive  8. Préférences utilisateur
   ========================================================================== */

/* 1. Jetons de design ---------------------------------------------------- */
:root {
  /* Couleurs — l'orange #EC7C30 est celui du logo */
  --ink: #0B1219;
  --ink-2: #111B26;
  --ink-3: #18242F;
  --line-d: #223041;
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --line: #DEDCD6;
  --text: #121A23;
  --muted: #59636F;
  --muted-d: #9AA6B4;
  --orange: #EC7C30;
  --orange-hi: #F59A5A;
  --orange-ink: #A94D16;   /* orange lisible sur fond clair (contraste AA) */
  --danger: #F0563C;
  --ok: #4CC38A;

  /* Typographie */
  --f-sans: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-h1: clamp(2.5rem, 1.6rem + 2.9vw, 4.1rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.1rem, 1rem + .4vw, 1.3rem);

  /* Espacements & formes */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 7vw + 40px, 160px);
  --r-sm: 8px;
  --r: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-variation-settings: "wdth" 108; letter-spacing: -0.02em; line-height: 1.05; font-weight: 760; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--text); }
img, svg { display: block; max-width: 100%; }
abbr[title] { text-decoration: none; color: var(--orange-ink); }
::selection { background: var(--orange); color: var(--ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 650; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
#top { position: absolute; top: 0; }

/* 3. Composants ---------------------------------------------------------- */
.btn {
  --bg: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 650; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-o:hover { --bg: var(--orange-hi); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(236,124,48,.65); }
.btn:active { transform: translateY(1px); }
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { --bg: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; font-variation-settings: "wdth" 118; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--orange); }
.brand:hover { color: #fff; }

.kicker { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 20px; }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 5vw, 80px); }
.sec-lead { margin-top: 22px; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* 4. Sections ------------------------------------------------------------ */

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.menu { display: flex; align-items: center; gap: 34px; font-size: .95rem; font-weight: 500; }
.menu a:not(.btn) { position: relative; color: #C9D1DA; text-decoration: none; padding: 6px 0; transition: color .2s; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.menu a:not(.btn):hover, .menu a[aria-current="true"] { color: #fff; }
.menu a:not(.btn):hover::after, .menu a[aria-current="true"]::after { transform: scaleX(1); }
.menu .menu-tel { font-family: var(--f-mono); font-size: .85rem; color: var(--muted-d); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { /* halo discret derrière l'illustration */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, rgba(236,124,48,.14), rgba(236,124,48,0));
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 5.5vw, 88px); padding-bottom: clamp(64px, 7vw, 112px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); padding: 7px 14px 7px 12px; border: 1px solid var(--line-d); border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76,195,138,.15); }
.hero h1 { margin-top: 30px; font-size: var(--fs-h1); font-variation-settings: "wdth" 116; font-weight: 780; line-height: 1; letter-spacing: -0.03em; max-width: 15ch; font-variation-settings: "wdth" 110; }
.hero .lead { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted-d); max-width: 40ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line-d); font-size: .92rem; color: var(--muted-d); }
.hero-facts b { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 750; font-variation-settings: "wdth" 115; color: #fff; margin-bottom: 4px; }

.hero-visual { position: relative; }
.topo { width: 100%; height: auto; overflow: visible; }
.g-dot { fill: #1D2A37; }
.perim { fill: rgba(236,124,48,.035); stroke: var(--orange); stroke-width: 1.2; stroke-dasharray: 5 6; opacity: .75; }
.link { fill: none; stroke: #2B3B4D; stroke-width: 1.5; }
.link-in { stroke: #34465A; }
.node rect { fill: var(--ink-3); stroke: #2E3E50; stroke-width: 1; }
.node-fw rect { fill: #1B1712; stroke: var(--orange); stroke-width: 1.4; }
.node-soc rect { stroke: var(--ok); stroke-opacity: .7; }
.fw-ico { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; }
.fw-pulse { fill: none; stroke: var(--danger); stroke-width: 1.5; opacity: 0; }
.t-node { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; fill: #D5DCE4; text-anchor: middle; }
.t-left { text-anchor: start; }
.t-sub { font-family: var(--f-mono); font-size: 9.5px; fill: var(--muted-d); }
.t-lab { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; }
.t-or { fill: var(--orange); }
.pk { fill: #fff; }
.pk-soc { fill: var(--ok); }
.pk-bad { fill: var(--danger); }

.log {
  position: relative; width: min(100%, 290px); margin: -36px 0 0 auto;
  padding: 14px 18px 16px; border-radius: var(--r);
  background: rgba(17,27,38,.88); border: 1px solid var(--line-d);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  font-family: var(--f-mono); font-size: .78rem; line-height: 1.9; color: #C4CDD7;
}
.log-h { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line-d); }
.led { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.log p span:not(.led) { display: inline-block; width: 44px; color: var(--danger); font-weight: 600; }
.log p span.ok:not(.led) { color: var(--ok); }

/* Domaines */
.domains { padding: var(--section) 0; }
.dom-list { border-top: 1px solid var(--line); counter-reset: none; }
.dom {
  position: relative;
  display: grid; grid-template-columns: 56px 64px minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 38px 8px; border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.dom::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.dom:hover { background: var(--white); }
.dom:hover::before { transform: scaleX(1); }
.dom-num { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.dom-ico { width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center; background: #FBE6D6; transition: background-color .3s, transform .4s var(--ease-out); }
.dom-ico svg, .sector-list svg, .assets svg { fill: none; stroke: var(--orange-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dom-ico svg { width: 26px; height: 26px; }
.dom:hover .dom-ico { background: var(--orange); transform: rotate(-4deg); }
.dom:hover .dom-ico svg { stroke: var(--ink); }
.dom-body p { margin-top: 8px; color: var(--muted); max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .82rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); }
.dom-cta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--text); }
.dom-cta svg { width: 18px; height: 18px; fill: none; stroke: var(--orange-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.dom-cta:hover { color: var(--orange-ink); }
.dom-cta:hover svg { transform: translateX(4px); }

/* Déclaration */
.statement { background: var(--ink); color: #fff; padding: clamp(110px, 12vw, 200px) 0; }
.statement-txt { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.04; font-weight: 760; font-variation-settings: "wdth" 114; letter-spacing: -0.03em; max-width: 18ch; }
.statement-txt .w { color: #33414F; transition: color .5s var(--ease); }
.statement-txt .w.on { color: #fff; }
.statement-txt .w.acc.on { color: var(--orange); }

/* Méthode */
.method { padding: var(--section) 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 7px; left: 0; height: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .2s; }
.steps.in::after { transform: scaleX(1); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -40px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
.step-n { display: block; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.steps p { margin-top: 10px; color: var(--muted); }

/* Secteurs */
.sectors { background: var(--ink); color: #fff; padding: var(--section) 0; }
.sectors .kicker { color: var(--orange); }
.sector-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.sector-list li { display: flex; flex-direction: column; gap: 56px; padding: 36px 28px 40px; font-size: 1.35rem; font-weight: 700; font-variation-settings: "wdth" 110; line-height: 1.2; transition: background-color .35s var(--ease); }
.sector-list li + li { border-left: 1px solid var(--line-d); }
.sector-list li:hover { background: var(--ink-2); }
.sector-list svg { width: 30px; height: 30px; stroke: var(--orange); }

/* Entreprise */
.about { padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: end; }
.about-text h2 { max-width: 14ch; }
.about-text > p:last-child { margin-top: 26px; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.vision { position: relative; padding-left: 28px; border-left: 2px solid var(--orange); }
.vision p { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.25; font-weight: 650; font-variation-settings: "wdth" 106; letter-spacing: -0.01em; }
.vision p::before { content: "« "; color: var(--orange-ink); }
.vision p::after { content: " »"; color: var(--orange-ink); }
.vision footer { margin-top: 18px; font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 7vw, 110px); border-top: 1px solid var(--line); }
.facts > div { padding: 28px 24px 0 0; }
.facts dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 10px; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem); font-weight: 760; font-variation-settings: "wdth" 116; letter-spacing: -0.02em; line-height: 1; }

.assets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 5vw, 72px); }
.assets li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); font-weight: 650; font-size: 1.02rem; line-height: 1.3; transition: border-color .3s, transform .4s var(--ease-out); }
.assets li:hover { border-color: var(--orange); transform: translateY(-2px); }
.assets svg { width: 24px; height: 24px; flex-shrink: 0; }

/* Technologies */
.brands { border-top: 1px solid var(--line); padding: 56px 0; }
.brands-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; align-items: center; }
.brands h2 { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.5; font-variation-settings: normal; }
.brands ul { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.brands li { font-size: 1.4rem; font-weight: 750; font-variation-settings: "wdth" 122; letter-spacing: -0.01em; color: #6A737E; transition: color .25s; }
.brands li:hover { color: var(--text); }

/* Contact */
.contact { padding: var(--section) 0; background: var(--ink); color: #fff; }
.contact .kicker { color: var(--orange); }
.contact .sec-lead { color: var(--muted-d); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.coords { margin-top: 48px; }
.coords li { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line-d); }
.coords span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.coords a, .coords b { font-size: 1.15rem; font-weight: 600; color: #fff; text-decoration: none; width: fit-content; }
.coords a:hover { color: var(--orange-hi); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; padding: clamp(24px, 3.4vw, 44px); background: var(--white); color: var(--text); border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form-intro { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; }
.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid #CFCCC4; border-radius: 10px; padding: 13px 15px;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A9A59B; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(236,124,48,.18); }
.field textarea { resize: vertical; min-height: 140px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field [aria-invalid="true"] { border-color: #C0392B; background: #FFF6F4; }
.err { min-height: 0; font-size: .85rem; color: #B42318; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.privacy { font-size: .85rem; color: var(--muted); max-width: 40ch; }
.status { font-size: .95rem; font-weight: 600; }
.status:empty { display: none; }
.status.ok { color: #18794E; padding: 14px 16px; background: #E9F7EF; border-radius: 10px; }
.status.ko { color: #B42318; padding: 14px 16px; background: #FDECEA; border-radius: 10px; }

/* Pied de page */
.foot { background: #070C11; color: var(--muted-d); padding: 80px 0 32px; font-size: .95rem; }
.f-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.f-id p:last-child { margin-top: 16px; max-width: 32ch; }
.brand-lg { font-size: 1.5rem; }
.foot h2 { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-variation-settings: normal; }
.foot li { padding: 4px 0; }
.foot a { color: var(--muted-d); text-decoration: none; transition: color .2s; }
.foot a:hover { color: #fff; }
.f-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* 5. Pages annexes (mentions légales, 404) -------------------------------- */
.page { padding: clamp(56px, 7vw, 110px) 0 var(--section); }
.page .wrap { max-width: 860px; }
.page h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); margin-bottom: 24px; }
.page h2 { font-size: 1.4rem; margin: 48px 0 14px; letter-spacing: -0.01em; }
.page p, .page li { color: #35404C; }
.page p + p { margin-top: 12px; }
.page ul { list-style: disc; padding-left: 1.2em; margin-top: 10px; }
.page .meta { color: var(--muted); }
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: #fff; padding: 80px 0; }
.lost .code { font-family: var(--f-mono); color: var(--orange); letter-spacing: .1em; }
.lost h1 { margin: 18px 0; font-size: var(--fs-h2); }
.lost p { color: var(--muted-d); margin-bottom: 32px; }

/* 6. Animations ---------------------------------------------------------- */
/* Les éléments ne sont masqués que si JavaScript est actif (classe .js) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .dom.reveal:nth-child(2) { transition-delay: .06s; }
.js .dom.reveal:nth-child(3) { transition-delay: .12s; }
.js .dom.reveal:nth-child(4) { transition-delay: .18s; }

.hero-text > * { animation: rise 1s var(--ease-out) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: fade 1.4s var(--ease-out) .25s both; }
.log p:not(.log-h) { animation: fade .6s var(--ease) both; }
.log p:nth-child(2) { animation-delay: 1.2s; }
.log p:nth-child(3) { animation-delay: 1.8s; }
.log p:nth-child(4) { animation-delay: 2.4s; }
.led { animation: blink 2.4s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: .3; } }

/* 7. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .dom { grid-template-columns: 40px 56px minmax(0, 1fr) auto; row-gap: 18px; }
  .dom .tags { grid-column: 3 / 4; grid-row: 2; }
  .dom-cta { grid-row: 1 / 3; grid-column: 4; }
  .menu { gap: 26px; }
  .menu .menu-tel { display: none; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
    background: none; border: 0; border-radius: 10px; color: #fff; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), background-color .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink); border-bottom: 1px solid var(--line-d);
    font-size: 1.15rem;
  }
  .js .menu { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .3s var(--ease-out), visibility 0s .3s; }
  .js .menu.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-d); }
  .menu a:not(.btn)::after { display: none; }
  .menu .menu-tel { display: block; font-size: 1rem; }
  .menu .btn { margin-top: 22px; min-height: 52px; }
  .no-js .nav-toggle { display: none; }
  .no-js .menu { position: static; padding: 0 0 16px; }
  .no-js .nav-in { flex-wrap: wrap; height: auto; padding-top: 14px; }

  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; margin-top: 8px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .steps li { padding-top: 0; }
  .steps li::before { position: static; display: block; margin-bottom: 18px; }

  .sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-list li:nth-child(3) { border-left: 0; }
  .sector-list li:nth-child(n+3) { border-top: 1px solid var(--line-d); }

  .about-grid, .contact-grid, .brands-in { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(n+3) { padding-top: 36px; }
  .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .dom { grid-template-columns: 48px minmax(0, 1fr); gap: 16px 18px; padding: 30px 0; }
  .dom-num { display: none; }
  .dom-ico { width: 48px; height: 48px; grid-row: 1; }
  .dom-body { grid-column: 2; }
  .dom .tags { grid-column: 1 / -1; grid-row: auto; }
  .dom-cta { grid-column: 1 / -1; grid-row: auto; }
  .hero-facts { gap: 18px 28px; }
  .log { width: 100%; margin-top: -12px; }
  .dom-ico { align-self: start; }
  .sector-list { grid-template-columns: minmax(0, 1fr); }
  .sector-list li { flex-direction: row; align-items: center; gap: 20px; padding: 22px 4px; }
  .sector-list li + li { border-left: 0; border-top: 1px solid var(--line-d); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .assets, .form, .f-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .ctas { flex-direction: column; }
  .menu .btn { width: 100%; }
}

/* 8. Préférences utilisateur ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement-txt .w { color: #fff; }
  .statement-txt .w.acc { color: var(--orange); }
  .steps::after { transform: scaleX(1); }
  .pk, .fw-pulse { display: none; }
}
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .perim, .link { stroke: CanvasText; }
}
@media print {
  .nav, .hero-visual, .form, .statement { display: none; }
  body { background: #fff; }
  .hero, .sectors, .contact, .foot { background: #fff; color: #000; }
}
