/* ==========================================================================
   DYMERYS Industrie — V1
   Direction artistique inspirée du style « constellation sur velours noir » :
   noir pur, typographie monumentale en graisse 400, texte courant ultra-léger (200),
   un seul accent saturé pour l'action (ici l'orange DYMERYS à la place du violet),
   étincelles ambre pour les labels, champ de particules triangulaires.
   ========================================================================== */

/* Polices hébergées sur le site (licence SIL Open Font License) : aucun appel à un service tiers */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 200 600; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); 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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); 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; }

:root {
  color-scheme: dark;         /* design volontairement sombre, quel que soit le thème du visiteur */
  /* Couleurs */
  --void: #000000;
  --bone: #ffffff;
  --ash: #9a9a9a;
  --silver: #bdbdbd;
  --dim: #262626;
  --accent: #dc5400;          /* Orange DYMERYS (logo) — action principale */
  --accent-hi: #ff6a14;
  --spark: #dc5400;           /* labels et mots mis en avant : orange du logo (remplace le jaune) */
  --accent-soft: #ff9a5c;     /* orange clair, quand il faut distinguer deux niveaux */
  --verdant: #15846e;
  --hair: rgba(255, 255, 255, 0.14);

  /* Typographie */
  --font-display: "Archivo", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-display: clamp(2.5rem, 6.4vw, 5.75rem);   /* ~92px, Archivo étendu */
  --text-h1: clamp(2rem, 4.3vw, 3.75rem);          /* ~60px */
  --text-h2: clamp(1.65rem, 2.8vw, 2.5rem);        /* ~40px */
  --text-h3: clamp(1.5rem, 2.3vw, 2.1rem);         /* ~34px */
  --text-body: 1.125rem;                           /* 18px  */

  /* Espacements (base 6px) */
  --s6: 6px; --s12: 12px; --s18: 18px; --s24: 24px; --s30: 30px;
  --s36: 36px; --s60: 60px; --s96: 96px; --s120: 120px;

  --radius: 24px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--void);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2b2b2b #000;
  scrollbar-width: thin;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  font-family: var(--font-body);
  font-weight: 200;
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.is-loading body { overflow: hidden; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--bone); color: #000; font-weight: 600; text-decoration: none;
  transition: top .3s;
}
.skip-link:focus { top: 16px; }

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

main, .footer { position: relative; z-index: 2; }

/* ---------- Typographie ---------- */
/* Archivo : grotesque industriel ; largeur 125 % (étendue) pour l'impact, 112 % pour les titres de section */
.t-display, .t-h1, .t-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
}
.t-display { font-size: var(--text-display); font-stretch: 125%; line-height: 0.98; letter-spacing: -0.035em; }
.t-h1 { font-size: var(--text-h1); font-stretch: 112%; line-height: 1.04; letter-spacing: -0.03em; }
.t-h2 { font-size: var(--text-h2); font-stretch: 112%; line-height: 1.1; letter-spacing: -0.025em; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 var(--s30);
  font-family: var(--font-body);
  font-weight: 600; font-size: 14px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.025em;
  color: var(--spark);
}
.label::before {
  content: ""; flex: none; width: 1.2em; height: 0.92em;
  background: url("../img/brand/d-mark-sm.png") center / contain no-repeat;
}
.label .sep { color: var(--ash); }

.body { font-weight: 200; font-size: var(--text-body); line-height: 1.5; margin: 0; max-width: 31em; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400; font-size: 12px; line-height: 1.4;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ash);
}
.muted { color: var(--ash); }

/* Découpage des titres en mots (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wi {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.is-in .wi { transform: none; }
.ch { display: inline-block; }

/* Effet « pression » : graisse variable au survol (JS) */
[data-press] .ch { font-variation-settings: "wght" var(--wg, 500); }

/* Effet de roulement des liens */
.roll { position: relative; display: inline-flex; overflow: hidden; line-height: 1.25; vertical-align: top; }
.roll__chars { display: inline-flex; }
.roll .rc {
  display: inline-block; white-space: pre;
  text-shadow: 0 1.25em var(--roll-c, currentColor);
  transition: transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 16ms);
}
.roll:hover .rc, a:hover > .roll .rc, .ghost:hover .roll .rc { transform: translateY(-1.25em); }

/* ---------- Apparitions ---------- */
html.anim [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
html.anim [data-reveal].is-in { opacity: 1; transform: none; }

.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;
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  clip-path: inset(0 round 999px);
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #000; }
.btn__label, .btn__icon { position: relative; z-index: 1; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
/* Remplissage « fluide » : un carré arrondi qui tourne et monte = vague */
.btn__fill {
  position: absolute; z-index: 0;
  left: -15%; width: 130%; aspect-ratio: 1;
  top: 140%;
  border-radius: 43%;
  background: #ffffff;
  animation: btn-spin 5s linear infinite;
  transition: top 0.9s var(--ease-out);
  pointer-events: none;
}
.btn:hover .btn__fill, .btn:focus-visible .btn__fill { top: -45%; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bone); text-decoration: none;
  font: 600 14px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
}
.ghost svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.ghost:hover svg { transform: translateY(3px); }
.footer .ghost:hover svg { transform: translateY(-3px); }

/* ---------- Préchargeur ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: var(--void);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.15s var(--ease-in-out), visibility 0s linear 1.2s;
}
html.is-loading .loader, html.is-ready .loader { display: grid; }
html.is-ready .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader__mark { width: 58px; height: auto; margin-bottom: 8px; animation: mark-breathe 1.6s ease-in-out infinite; }
@keyframes mark-breathe { 50% { transform: scale(0.92); opacity: 0.75; } }
.loader__count {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-stretch: 125%; font-size: 56px; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.loader__count small { font: 400 12px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--spark); }
.loader__bar { width: 180px; height: 2px; background: var(--hair); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.loader__label { margin: 0; font: 400 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }

/* ---------- Canvas, grain, curseur ---------- */
.field-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
html.no-webgl .field-canvas { display: none; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  width: 200%; height: 200%;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor [tabindex] { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; transition: opacity .3s; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { font: 600 11px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.is-link .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- Manomètre de défilement ---------- */
.scroll-gauge {
  position: fixed; right: max(14px, calc(var(--gutter) / 2 - 7px)); top: 50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: translateY(-50%);
  font: 400 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash);
  opacity: 0; transition: opacity .6s;
  pointer-events: none;
}
.scroll-gauge.is-visible { opacity: 1; }
.scroll-gauge__label { color: var(--spark); }
.scroll-gauge__track { position: relative; width: 2px; height: 120px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.scroll-gauge__fill { position: absolute; inset: 0; background: linear-gradient(var(--accent-soft), var(--accent)); transform-origin: top; transform: scaleY(0); }
.scroll-gauge__value { writing-mode: vertical-rl; font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .7s var(--ease-out);
}
.header::before {
  content: ""; position: absolute; inset: 0 0 -48px; pointer-events: none;
  background: linear-gradient(#000 0%, rgba(0, 0, 0, 0.78) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0; transition: opacity .5s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-110%); }
html.is-loading .header { transform: translateY(-110%); }
.header__inner {
  position: relative;
  display: flex; align-items: center; gap: 36px;
  height: var(--header-h);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto; padding-inline: var(--gutter);
}
.header__logo img { height: 26px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav a {
  --roll-c: var(--bone);
  font: 600 14px var(--font-body); letter-spacing: 0.025em; text-transform: uppercase;
  color: var(--ash); text-decoration: none;
}
.nav a.is-active { color: var(--bone); }
.header__cta { height: 44px; padding: 0 20px; }

.burger {
  display: none; position: relative; width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--bone); transition: transform .6s var(--ease-out), top .6s var(--ease-out); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  background: var(--void);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-weight: 500; font-stretch: 112%; font-size: clamp(2.2rem, 10vw, 3.4rem);
  line-height: 1.1; letter-spacing: -0.03em; color: var(--bone); text-decoration: none;
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
}
.menu__nav small { font: 400 12px var(--font-mono); letter-spacing: .06em; color: var(--spark); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .32s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .39s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .46s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
}
.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.hero__content { padding-block: 48px; }
.hero__title { margin: 0 0 var(--s36); }
.hero__title .line { display: block; white-space: nowrap; }
.hero__body { margin-bottom: 42px; max-width: 30em; }
.hero__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.readouts {
  display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 0; list-style: none;
  font: 400 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash);
}
.readouts li { display: flex; align-items: baseline; gap: 8px; }
.readouts__k { color: var(--spark); }
.readouts__v { min-width: 3.2ch; text-align: right; color: var(--bone); font-size: 14px; font-variant-numeric: tabular-nums; }
.readouts__status { align-items: center !important; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--spark); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--spark); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 400 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ash); text-decoration: none;
}
.scroll-cue__tube { position: relative; width: 1px; height: 64px; background: var(--hair); overflow: hidden; }
.scroll-cue__tube span { position: absolute; left: 0; top: -45%; width: 100%; height: 45%; background: linear-gradient(transparent, var(--accent)); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

[data-hero-item] { transition: opacity 1.3s var(--ease-out), transform 1.4s var(--ease-out); }
html.is-loading [data-hero-item] { opacity: 0; transform: translateY(28px); }
.hero__label { transition-delay: .15s; }
.hero__body { transition-delay: .55s; }
.hero__actions { transition-delay: .7s; }
.readouts { transition-delay: .9s; }
.scroll-cue { transition-delay: 1.05s; }

/* ---------- Bandeau défilant ---------- */
.marquee-block { position: relative; padding-block: clamp(36px, 7vw, 90px); overflow: hidden; }
.marquee { display: flex; width: max-content; user-select: none; will-change: transform; }
.marquee__track {
  display: flex; align-items: center; gap: 0.42em; padding-right: 0.42em; flex: none;
  font-family: var(--font-display); font-weight: 600; font-stretch: 125%;
  font-size: clamp(2.4rem, 6.6vw, 6rem); line-height: 1.1; letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__track .is-ghost { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5); }
.dmark {
  display: inline-block; flex: none; width: 0.62em; height: 0.48em;
  background: url("../img/brand/d-mark-sm.png") center / contain no-repeat;
}

/* ---------- Manifeste ---------- */
.manifesto { padding-block: clamp(120px, 16vw, 220px) clamp(140px, 18vw, 260px); }
.manifesto__text {
  margin: 0; max-width: 22em;
  font-family: var(--font-display); font-weight: 400; font-stretch: 100%;
  font-size: clamp(1.7rem, 3.4vw, 3.05rem); line-height: 1.16; letter-spacing: -0.025em;
}
.manifesto__text em { font-style: normal; }
.sw { transition: color .25s linear; color: var(--dim); }
.sw.is-lit { color: var(--bone); }
em .sw.is-lit, .sw.is-em.is-lit { color: var(--spark); }
.manifesto__sign { margin: 56px 0 0; }

/* ---------- En-têtes de section ---------- */
.section-head { max-width: 1000px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head__intro { margin-top: var(--s30); color: var(--silver); }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 60px; align-items: end; }
.section-head--split .section-head__intro { margin: 0 0 8px; }

/* ---------- Expertises ---------- */
.services { padding-top: clamp(80px, 10vw, 140px); }
.services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.services__list { margin: 0; padding: 0 0 18vh; list-style: none; }
.service {
  min-height: 64vh; padding: 8vh 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0.2;
  transition: opacity .7s var(--ease-out);
}
.service.is-active { opacity: 1; }
.service__num { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--spark); }
.service__num::after { content: ""; width: 0; height: 1px; background: currentColor; transition: width .9s var(--ease-out); }
.service.is-active .service__num::after { width: 72px; }
.service__title {
  margin: 0 0 var(--s24);
  font-family: var(--font-display); font-weight: 500; font-stretch: 112%;
  font-size: var(--text-h2); line-height: 1.08; letter-spacing: -0.025em;
  transition: transform .8s var(--ease-out);
}
.service:not(.is-active) .service__title { transform: translateX(-12px); }
.service__text { margin: 0 0 22px; max-width: 28em; color: var(--silver); }
.service.is-active .service__text { color: var(--bone); }
.service__tags { margin: 0; font: 400 11px/1.8 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.service__tags i { font-style: normal; color: var(--accent); padding: 0 6px; }

.services__visual { position: relative; }
.services__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 18px) 0 36px;
}
.services__hud { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.services__counter { color: var(--bone); }
.services__counter span { color: var(--spark); }
.services__fig, .services__spec { transition: opacity .35s; }
.services__fig.is-swapping, .services__spec.is-swapping { opacity: 0; }
.services__frame { position: absolute; inset: 17% 4% 15%; pointer-events: none; }
.services__frame i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, 0.3); }
.services__frame i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.services__frame i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.services__frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.services__frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.services__dots { display: flex; gap: 8px; }
.services__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: background .4s, transform .4s var(--ease-out); }
.services__dots i.is-active { background: var(--accent); transform: scale(1.35); }

/* ---------- Sur le terrain ---------- */
.terrain { position: relative; height: 230vh; }
.terrain__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.terrain__media {
  position: absolute; inset: 0; margin: 0;
  clip-path: inset(var(--ci-y, 32%) var(--ci-x, 30%) round var(--ci-r, 24px));
  will-change: clip-path;
}
.terrain__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--sc, 1.35));
  filter: grayscale(var(--gs, 1)) contrast(1.06) brightness(0.72);
  will-change: transform;
}
.terrain__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.9) 100%);
}
.terrain__copy {
  position: relative; z-index: 1; padding-bottom: clamp(40px, 9vh, 96px);
  opacity: var(--co, 0);
  transform: translateY(calc((1 - var(--co, 0)) * 48px));
}
.terrain__title { margin: 0 0 var(--s24); }
.terrain__text { color: var(--bone); }

/* ---------- Pourquoi ---------- */
.why { padding-block: clamp(120px, 15vw, 210px) clamp(80px, 10vw, 140px); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.why__main .t-h1 { max-width: 11em; }
.why__stats { display: grid; gap: 34px; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.why__stat { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; padding-top: 22px; }
.why__stat::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s .35s var(--ease-out); }
.why__stat.is-in::before { transform: none; }
.why__stat:nth-child(2) { --rd: 90ms; } .why__stat:nth-child(3) { --rd: 180ms; }
.why__value {
  display: flex; align-items: baseline; gap: 6px; min-width: 2.9em; margin: 0;
  font-family: var(--font-display); font-weight: 500; font-stretch: 125%;
  font-size: clamp(2.9rem, 5.6vw, 5.2rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.why__value small { font-size: 0.42em; letter-spacing: 0; color: var(--spark); }
.why__label { margin: 0; max-width: 15em; font-size: 20px; line-height: 1.35; color: var(--silver); }
.why__label strong { font-weight: 400; color: var(--spark); }
.why__visual { position: relative; align-self: stretch; min-height: 60vh; }
.why__visual .mono { position: absolute; right: 0; bottom: 0; }
.why__costs { margin-top: clamp(80px, 10vw, 140px); }
.why__costs-title { margin: 0 0 clamp(36px, 4vw, 56px); max-width: 16em; }
.why__list, .vision__list { display: grid; margin: 0; padding: 0; list-style: none; }
.why__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.why__list h3, .vision__list h4 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 500; font-stretch: 108%; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em;
}
/* goutte d'huile en guise de puce */
.why__list h3::before, .vision__list h4::before {
  content: ""; flex: none; width: 9px; height: 9px;
  background: var(--accent); border-radius: 0 50% 50% 50%; transform: rotate(45deg);
}
.why__list p, .vision__list p { margin: 0; font-size: 16px; color: var(--silver); }

/* ---------- Équipe & vision ---------- */
.team { padding-block: clamp(120px, 14vw, 200px); }
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 60px); max-width: 900px; }
.member { display: grid; gap: 10px; align-content: start; }
.member__photo { position: relative; max-width: 100%; aspect-ratio: 4 / 5; margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; background: #0c0c0c; }
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.9);
  transform: scale(1.04);
  transition: filter 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.member:hover .member__photo img { filter: none; transform: scale(1); }
.member__role { margin: 0; color: var(--spark); }
.member__name { margin: 0; font-family: var(--font-display); font-weight: 500; font-stretch: 112%; font-size: var(--text-h3); line-height: 1.08; letter-spacing: -0.025em; }
.member__facts { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--silver); }
.member__facts strong { font-weight: 400; color: var(--bone); }
.vision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 60px; align-items: start; margin-top: clamp(96px, 12vw, 160px); }
.vision__head .label { margin-bottom: 22px; }
.vision__head .t-h2 { max-width: 11em; }
.vision__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }

/* ---------- Zone d'intervention ---------- */
.zone { padding-block: clamp(110px, 13vw, 190px); }
.zone__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.zone__main .t-h1 { max-width: 9em; }
.zone__text { margin-top: var(--s30); color: var(--silver); }
.zone__areas { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s36) 0 0; padding: 0; list-style: none; }
.zone__areas li {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  font-size: 14px; font-weight: 400; color: var(--silver);
}
.zone__visual { position: relative; align-self: stretch; min-height: 64vh; }
.zone__visual .mono { position: absolute; right: 0; bottom: 0; }

/* ---------- Méthode (horizontal) ---------- */
.process { position: relative; }
.process__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px);
  padding-top: calc(var(--header-h) - 16px);
}
.process__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.process__head .label { margin-bottom: 18px; }
.process__head h2 { font-size: clamp(2rem, 4.4vw, 4rem); max-width: 12em; }
.process__meter { color: var(--ash); white-space: nowrap; }
.process__meter b { color: var(--spark); font-weight: 400; }
.process__viewport { width: 100%; }
.process__track {
  display: flex; gap: clamp(20px, 3vw, 44px); margin: 0; list-style: none;
  width: max-content;
  padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  will-change: transform;
}
.step { flex: none; width: clamp(220px, min(24vw, 31vh), 330px); }
.step__media { position: relative; margin: 0 0 20px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #0c0c0c; }
.step__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.78);
  transform: scale(1.14);
  transition: filter 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.step.is-active .step__media img, .step:hover .step__media img { filter: grayscale(0) brightness(.95); transform: scale(1.02); }
.step__media--art {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #070707;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  transition: border-color .6s var(--ease-out);
}
.step.is-active .step__media--art, .step:hover .step__media--art { border-color: rgba(255, 106, 20, 0.45); }

/* Illustrations techniques (SVG) */
.art { display: block; width: 100%; height: 100%; }
.art * { vector-effect: non-scaling-stroke; }
.art text { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; fill: rgba(255, 255, 255, 0.5); stroke: none; }
.art .art__cap { fill: var(--spark); font-size: 13px; }
.art .art__lbl--r { text-anchor: end; }
.art .art__lbl--c { text-anchor: middle; }
.art .art__lbl--acc { fill: var(--accent-hi); }
.art .art__lbl--amb { fill: var(--spark); }
.art__ln, .art__ln * { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.art__acc * { fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art__solid { fill: var(--accent-hi); stroke: none; }
.art__lens { transform: translate(212px, 104px); animation: art-scan 11s var(--ease-in-out) infinite; }
.art__lens circle { fill: rgba(255, 106, 20, 0.08); stroke: var(--accent-hi); stroke-width: 2.4; }
.art__lens line { stroke: var(--accent-hi); stroke-width: 6; stroke-linecap: round; }
@keyframes art-scan {
  0%, 12% { transform: translate(212px, 104px); }
  28%, 40% { transform: translate(200px, 236px); }
  56%, 68% { transform: translate(182px, 378px); }
  82%, 90% { transform: translate(250px, 322px); }
  100% { transform: translate(212px, 104px); }
}
.art__link path { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; stroke-dasharray: 5 6; animation: art-flow 1.4s linear infinite; }
@keyframes art-flow { to { stroke-dashoffset: -22; } }
.art__node rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.4; }
.art__node text { fill: #fff; font-size: 14px; }
.art__node .art__sub { fill: rgba(255, 255, 255, 0.45); font-size: 10.5px; }
.art__node--hot rect { stroke: var(--accent-hi); fill: rgba(255, 106, 20, 0.1); animation: art-glow 2.4s ease-in-out infinite; }
@keyframes art-glow { 50% { fill: rgba(255, 106, 20, 0.24); } }
.art__nfc rect { fill: none; stroke: var(--spark); stroke-width: 1.6; }
.art__nfc path { fill: none; stroke: var(--spark); stroke-width: 1.8; stroke-linecap: round; animation: art-wave 1.8s ease-in-out infinite; }
.art__nfc .art__w2 { animation-delay: .2s; }
.art__nfc .art__w3 { animation-delay: .4s; }
@keyframes art-wave { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.art__grid line { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.art__area { fill: rgba(220, 84, 0, 0.13); stroke: none; }
.art__dim { fill: none; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1.4; stroke-dasharray: 3 4; }
.art__event { stroke: var(--accent-hi); stroke-width: 1.2; stroke-dasharray: 2 4; }
.art__curve { fill: none; stroke: var(--accent-hi); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: art-draw 7s var(--ease-in-out) infinite; }
@keyframes art-draw { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
.art__dots circle { fill: #ffffff; stroke: #070707; stroke-width: 2; }
.art__readout rect { fill: #070707; stroke: var(--spark); stroke-width: 1.4; }
.art__readout text { fill: var(--spark); font-size: 13px; }
.art__months text { text-anchor: middle; font-size: 11px; }
.art__seg { fill: none; stroke-width: 12; }
.art__seg--ok { stroke: rgba(255, 255, 255, 0.22); }
.art__seg--warn { stroke: var(--accent-soft); }
.art__seg--crit { stroke: var(--accent); }
.art__ticks { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.4; }
.art__needle { transform-box: view-box; transform-origin: 200px 250px; animation: art-needle 3.4s ease-in-out infinite alternate; }
.art__needle line { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.art__needle circle { fill: #fff; }
@keyframes art-needle { from { transform: rotate(-14deg); } to { transform: rotate(24deg); } }
.art__alert { animation: art-alert 3.4s ease-in-out infinite alternate; }
.art__alert path { fill: rgba(255, 106, 20, 0.15); stroke: var(--accent-hi); stroke-width: 1.8; stroke-linejoin: round; }
.art__alert line { stroke: var(--accent-hi); stroke-width: 2.2; stroke-linecap: round; }
.art__alert circle { fill: var(--accent-hi); }
@keyframes art-alert { from { opacity: 0.15; } to { opacity: 1; } }
.art__frame { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.4; stroke-linecap: round; }
.art__cell { fill: rgba(255, 255, 255, 0.12); }
.art__day { fill: rgba(255, 106, 20, 0.12); stroke: var(--accent-hi); stroke-width: 2; animation: art-glow 2.4s ease-in-out infinite; }
.art__check { fill: none; stroke: var(--accent-hi); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step__label { margin: 0; color: var(--spark); }
.step__title { margin: 6px 0 10px; font-family: var(--font-display); font-weight: 500; font-stretch: 112%; font-size: var(--text-h3); line-height: 1.05; letter-spacing: -0.025em; }
.step__text { margin: 0; max-width: 22em; font-size: 16px; color: var(--silver); }
.step--end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 30px; width: clamp(300px, 34vw, 500px); padding-right: 4vw; }
.step--end .t-h2 { max-width: 13em; font-size: clamp(1.7rem, 2.5vw, 2.4rem); }

.process__pipe { width: 100%; }
.pipe { position: relative; height: 3px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.pipe__fluid { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.pipe__fluid::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 14px, rgba(0,0,0,.45) 14px 22px);
  animation: flow .9s linear infinite;
}
@keyframes flow { to { background-position: 22px 0; } }

/* ---------- Références ---------- */
.refs { position: relative; padding-block: clamp(120px, 14vw, 200px); }
.refs__list { margin: 0; padding: 0; list-style: none; }
.ref {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 36px; align-items: center; gap: 24px;
  padding: 14px 0;
  transition: opacity .5s var(--ease-out);
  outline-offset: 6px;
}
.refs__list.is-hovering .ref { opacity: 0.28; }
.refs__list.is-hovering .ref.is-hover { opacity: 1; }
.ref__idx { color: var(--ash); }
.ref__name {
  font-family: var(--font-display); font-weight: 500; font-stretch: 118%;
  font-size: clamp(1.75rem, 4.3vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em;
  transition: transform .8s var(--ease-out);
}
.ref.is-hover .ref__name { transform: translateX(26px); }
.ref__sector { font: 400 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); transition: color .4s; }
.ref.is-hover .ref__sector { color: var(--spark); }
.ref__arrow { font-size: 26px; color: var(--accent); opacity: 0; transform: translate(-10px, 10px); transition: opacity .5s, transform .7s var(--ease-out); font-weight: 300; }
.ref.is-hover .ref__arrow { opacity: 1; transform: none; }
.ref::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease-out); }
.ref.is-hover::after { transform: scaleX(1); transform-origin: left; }
.ref__thumb { display: none; }

.refs__float {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: clamp(220px, 20vw, 300px); aspect-ratio: 4 / 3;
  margin: calc(clamp(220px, 20vw, 300px) * -0.375) 0 0 36px;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
  will-change: transform;
}
.refs__float.is-visible { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
.refs__float-inner {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; padding: 13% 12%;
  border-radius: var(--radius); overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: scale(.55); transition: transform .8s var(--ease-out);
}
.refs__float.is-visible .refs__float-inner { transform: scale(1); }
.refs__float img { width: 100%; height: 100%; object-fit: contain; transform: scale(0.9); transition: transform 1.2s var(--ease-out); }
.refs__float.is-visible img { transform: scale(1); }
.refs__float-name { font-family: var(--font-display); font-weight: 600; font-stretch: 118%; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.02em; text-transform: uppercase; color: #111111; }
.refs__float.has-name img, .refs__float:not(.has-name) .refs__float-name { display: none; }
.refs__float.is-swap img, .refs__float.is-swap .refs__float-name { animation: swap .6s var(--ease-out); }
@keyframes swap { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(120px, 14vw, 200px) clamp(80px, 10vw, 140px); }
.contact__head { max-width: 1100px; }
.contact__title { max-width: none; }
.contact__sub { margin-top: 20px; color: var(--ash); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); margin-top: clamp(64px, 8vw, 120px); }
.contact__info { display: grid; gap: 32px; align-content: start; }
.contact__info p { margin: 0; }
.contact__info .mono { margin-bottom: 8px; }
.contact__big { font-family: var(--font-display); font-weight: 500; font-stretch: 105%; font-size: 25px; line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.person { display: grid; gap: 2px; }
.person__name { margin-bottom: 4px !important; font-family: var(--font-display); font-weight: 500; font-stretch: 108%; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.person a, .contact__block p:not(.mono):not(.contact__big) { font-size: 17px; font-weight: 300; overflow-wrap: anywhere; }
.contact__info a { color: var(--bone); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.contact__info a:hover { background-size: 100% 1px; }

.form { display: grid; gap: 30px; --rd: 120ms; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { position: relative; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 26px 0 10px;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0;
  background: transparent; color: var(--bone);
  font: 300 18px/1.4 var(--font-body);
  outline: none; resize: vertical;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field label {
  position: absolute; left: 0; top: 26px;
  font-size: 16px; font-weight: 300; color: var(--ash);
  pointer-events: none; transform-origin: 0 0;
  transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); color: var(--spark); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field--area::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid::after { transform: scaleX(1); background: #ff5a4f; }
.field.is-invalid label { color: #ff7b72; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  font-size: 14px; font-weight: 400; color: var(--silver);
  cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.chip span:hover { border-color: rgba(255, 255, 255, 0.55); color: var(--bone); }
.chip input:checked + span { background: var(--bone); border-color: var(--bone); color: #000; }
.chip input:focus-visible + span { outline: 2px solid var(--spark); outline-offset: 3px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.form__note { margin: 0; max-width: 28em; font-size: 13px; line-height: 1.5; color: var(--ash); }
.form__status { margin: 0; min-height: 1.4em; font: 400 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--spark); }
.form__status:empty { display: none; }
.form__done { display: grid; justify-items: start; gap: 16px; }
.form__done-text { margin: 0; max-width: 34em; font-size: 16px; font-weight: 300; color: var(--bone); }
.form__done strong { font-weight: 500; color: var(--spark); user-select: all; }
button.ghost { padding: 0; border: 0; background: none; cursor: pointer; }
.form__fallback {
  width: 100%; min-height: 180px; padding: 14px 16px;
  border: 1px solid var(--hair); border-radius: 12px;
  background: transparent; color: var(--silver);
  font: 400 13px/1.55 var(--font-mono); resize: vertical;
}

/* ---------- Pied de page ---------- */
.footer { padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { margin: 20px 0 0; color: var(--ash); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col .mono { margin: 0 0 8px; }
.footer__col a { --roll-c: var(--bone); color: var(--silver); text-decoration: none; font-size: 15px; font-weight: 300; }

.footer__logo { position: relative; width: min(860px, 86vw); margin: clamp(64px, 9vw, 120px) auto 0; }
.footer__logo img { width: 100%; height: auto; }
/* le dévoilement s'applique aux enfants : l'élément observé reste visible pour l'IntersectionObserver */
html.anim .footer__logo img, html.anim .footer__logo .footer__shine { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease-out); }
html.anim .footer__logo.is-in img, html.anim .footer__logo.is-in .footer__shine { clip-path: inset(0 0 0 0); }
/* reflet qui balaie le logo */
.footer__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/brand/logo-dymerys-light.png") center / 100% 100% no-repeat;
          mask: url("../img/brand/logo-dymerys-light.png") center / 100% 100% no-repeat;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62% 100%) no-repeat;
  background-size: 50% 100%; background-position: -110% 0;
}
.footer__logo.is-in .footer__shine { animation: shine-in 2.2s 1.2s var(--ease-in-out); }
.footer__logo:hover .footer__shine { animation: shine-hover 1.4s var(--ease-in-out); }
@keyframes shine-in { from { background-position: -110% 0; } to { background-position: 210% 0; } }
@keyframes shine-hover { from { background-position: -110% 0; } to { background-position: 210% 0; } }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 34px; color: var(--ash); font-size: 14px; }
.footer__bottom p { margin: 0; }

/* Champ piège anti-spam : hors de l'écran, ignoré par les visiteurs et les lecteurs d'écran */
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"]:disabled { opacity: .6; cursor: progress; }

/* Coordonnées masquées aux robots : texte inversé dans la page, affiché à l'endroit même sans JavaScript */
.obf { unicode-bidi: bidi-override; direction: rtl; }

/* ---------- Pages de texte : mentions légales, confidentialité ---------- */
.page-text main { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }
.legal { padding-bottom: clamp(80px, 10vw, 140px); }
.legal__head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.legal__updated { margin: 22px 0 0; }
.legal__intro { margin-top: 26px; color: var(--silver); max-width: 38em; }
.legal__body { display: grid; gap: clamp(40px, 4.5vw, 60px); max-width: 780px; }
.legal__block h2 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 500; font-stretch: 112%;
  font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em;
}
.legal__block h2::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--accent); border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
.legal__block p, .legal__block li { margin: 0 0 12px; font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--silver); }
.legal__block ul { margin: 0 0 12px; padding-left: 1.1em; }
.legal__block li::marker { color: var(--accent); }
.legal__block strong { font-weight: 500; color: var(--bone); }
.legal__block a, .form__note a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal__dl { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 12px 28px; margin: 0; }
.legal__dl dt { padding-top: 4px; font: 400 12px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.legal__dl dd { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.5; color: var(--bone); overflow-wrap: anywhere; }
.todo { color: var(--accent); border-bottom: 1px dashed var(--accent); }

/* ---------- Page 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 40px) 80px; }
.lost__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.lost__title { margin: 0 0 var(--s30); }
.lost__text { margin-bottom: 40px; color: var(--silver); }
.lost__actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.lost__readouts { margin-top: clamp(48px, 7vw, 84px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav ul { gap: 24px; }
  .header__inner { gap: 24px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.55fr); }
}

@media (max-width: 960px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero__grid { grid-template-columns: 1fr; align-items: end; }
  .hero__content { padding-block: 32px 24px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .scroll-gauge { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .services__visual { display: none; }
  .services__list { padding-bottom: 0; }
  .service { min-height: 0; padding: 44px 0; opacity: 1; }
  .service:not(.is-active) .service__title { transform: none; }
  .service__text { color: var(--bone); }

  .section-head--split { grid-template-columns: 1fr; gap: 0; }
  .section-head--split .section-head__intro { margin-top: var(--s30); }

  .why__grid, .zone__grid, .vision { grid-template-columns: 1fr; }
  .why__visual, .zone__visual { display: none; }
  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .vision { gap: 36px; }

  /* Méthode : carrousel natif glissable */
  .process { height: auto !important; }
  .process__sticky { position: relative; height: auto; overflow: visible; padding-block: 96px 40px; }
  .process__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .process__viewport::-webkit-scrollbar { display: none; }
  .process__track { transform: none !important; padding-left: var(--gutter); }
  .step { width: min(74vw, 320px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .step .step__media img { filter: grayscale(0) brightness(.92); transform: none; }
  .process__meter { display: none; }

  .ref { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 16px; padding: 18px 0; }
  .ref__idx { display: none; }
  .ref__sector { grid-column: 1; grid-row: 2; }
  .ref__name { grid-column: 1; grid-row: 1; }
  .ref__arrow { display: none; }
  .ref__thumb {
    display: flex; align-items: center; justify-content: center; grid-column: 2; grid-row: 1 / span 2;
    width: 76px; height: 56px; padding: 8px; border-radius: 12px; background: #ffffff;
    font: 600 9px/1.1 var(--font-display); font-stretch: 112%; text-transform: uppercase; text-align: center; color: #111111;
  }
  .ref__thumb img { width: 100%; height: 40px; object-fit: contain; }
  .refs__float { display: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .legal__dl { grid-template-columns: 1fr; gap: 2px; }
  .legal__dl dd { margin-bottom: 14px; }
  .lost__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { gap: 22px; }
  .hero__actions .btn { width: 100%; }
  .readouts { gap: 10px 22px; }
  .readouts__status { display: none !important; }
  .why__list, .vision__list, .team__grid { grid-template-columns: 1fr; }
  .why__stat { gap: 18px; }
  .why__label { font-size: 17px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .terrain { height: 190vh; }
}

/* Hover-only effects */
@media (hover: none) {
  .refs__list.is-hovering .ref { opacity: 1; }
  .member__photo img { filter: none; transform: none; }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], .wi { opacity: 1 !important; transform: none !important; }
  .footer__logo img, .footer__logo .footer__shine { clip-path: none !important; }
  .grain { display: none; }
}
