/* ==========================================================================
   D2A — Digital to Analog · landing page
   Recette : une couleur de marque appliquée sans compromis, un trio typographique
   (grotesque / serif italique / mono), une grille éditoriale, des scènes épinglées.
   Règle maison : le rouge, c’est le « 2 » du logo — la conversion, le passage.
   ========================================================================== */

:root {
  --paper: #f3f1ec;
  --paper-2: #e9e5de;
  --ink: #111111;
  --ink-2: rgba(17, 17, 17, 0.6);
  --line: rgba(17, 17, 17, 0.16);
  --red: #d0222a;
  --red-a: #be2026;
  --red-b: #ed2526;
  --red-grad: linear-gradient(90deg, var(--red-a), var(--red-b));
  --red-on-dark: #f23a3b;
  --night: #0b0b0c;

  --f-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(16px, 1.4vw, 24px);
  --fs-h1: clamp(34px, 3.65vw, 58px);
  --fs-h2: clamp(56px, 8.4vw, 132px);
  --fs-stmt: clamp(30px, 3.75vw, 60px);
  --fs-h3: clamp(24px, 2.1vw, 32px);
  --fs-body: 16px;
  --fs-mono: 12px;

  --ease-out: cubic-bezier(0.22, 0.8, 0.2, 1);
  --line-y: 64vh;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.3 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--red); color: #fff; }

em, .ital {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
em { color: var(--red); font-size: 1.08em; line-height: 0.9; }
[data-theme="dark"] em, .on-dark em { color: var(--red-on-dark); }

.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}
.red { color: var(--red); }
.container { padding-inline: var(--pad); }
.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.led {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-b);
  box-shadow: 0 0 0 0 rgba(237, 37, 38, 0.6);
  animation: led 1.8s ease-out infinite;
  vertical-align: 1px;
  margin-right: 8px;
}
@keyframes led {
  0% { box-shadow: 0 0 0 0 rgba(237, 37, 38, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(237, 37, 38, 0); }
}

/* ovale « étiquette » tracé à la main (repris du modèle) */
.pill {
  display: inline-block;
  padding: 0.32em 1.15em 0.38em;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}
.pill--light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }

/* soulignement animé des liens texte */
.u-link, .menu__foot a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.u-link:hover, .menu__foot a:hover { background-size: 100% 1px; }

/* liens de navigation : index, flèche de direction — on voit où ils mènent ; soulignés au survol seulement */
.anchor { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.anchor__num { font-size: 10px; color: var(--ink-2); transition: color 0.3s; }
.anchor__label {
  padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.3s, background-size 0.45s var(--ease-out);
}
.anchor__arrow { font-family: var(--f-mono); font-size: 0.92em; color: var(--red); transition: transform 0.45s var(--ease-out); }
.anchor:hover .anchor__num, .anchor:hover .anchor__label { color: var(--red); }
.anchor:hover .anchor__label { background-size: 100% 1px; }
.anchor:hover .anchor__arrow { transform: var(--nudge, translateY(3px)); }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 100; color: #fff; pointer-events: auto; }
html:not(.js) .loader, html.reduced .loader, .loader.is-done { display: none; }
.loader__panel { position: absolute; left: 0; right: 0; background: var(--red-grad); }
.loader__panel--top { top: 0; height: var(--line-y); clip-path: inset(0 0 0 0); }
.loader__panel--bottom { top: var(--line-y); bottom: 0; clip-path: inset(0 0 0 0); }
.wordmark--loader { position: absolute; left: var(--pad); right: var(--pad); top: 0; color: #fff; }
.wordmark--loader em { color: #fff; }
.wordmark--loader .wordmark__line { opacity: 0; }
.loader__symbol {
  position: absolute;
  left: 50%; top: calc(var(--line-y) * 0.64);
  width: clamp(180px, 24vw, 420px);
  transform: translate(-50%, -50%);
  transform-origin: 0 0;
}
.loader__symbol svg { width: 100%; height: auto; overflow: visible; }
.loader__signal { position: absolute; left: 0; right: 0; top: var(--line-y); height: 0; }
.loader__meta {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 18px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.loader__arrows { letter-spacing: -0.1em; margin-left: 6px; }
.loader__wave { position: absolute; left: 0; top: -24px; width: 100%; height: 48px; overflow: visible; }
.loader__wave-path { fill: none; stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.loader__cursor {
  position: absolute; left: 0; top: 0;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 1.5px solid #fff; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 2.5px, transparent 3px);
}
.odometer { display: inline-flex; height: 1em; overflow: hidden; line-height: 1; }
.odometer__digit { display: block; width: 0.66em; height: 1em; overflow: hidden; }
.odometer__strip { display: block; }
.odometer__strip span { display: block; height: 1em; text-align: center; }

/* ==========================================================================
   UI FIXE (heure locale, statut, menu)
   ========================================================================== */
.fixed-ui p {
  position: fixed; bottom: 16px; z-index: 50;
  color: var(--ui, var(--ink));
  transition: color 0.35s, opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.fixed-ui__time { left: var(--pad); }
.fixed-ui__status { right: var(--pad); }
html.js:not(.is-ready) .fixed-ui p, html.footer-in .fixed-ui p { opacity: 0; transform: translateY(14px); }
body[data-ui="dark"], body[data-ui="red"] { --ui: #fff; }
body[data-ui-top="dark"], body[data-ui-top="red"] { --ui-top: #fff; }
body[data-ui="red"] .fixed-ui .led { background: #fff; }

.menu-btn {
  position: fixed; top: 14px; right: var(--pad); z-index: 75;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: 1px solid currentColor; border-radius: 99px;
  color: var(--ui-top, var(--ink));
  background: transparent;
  transition: color 0.35s, background-color 0.35s, opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
}
.menu-btn__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 0.35s; }
html.show-menu-btn .menu-btn, html.menu-open .menu-btn { opacity: 1; transform: none; pointer-events: auto; }
.menu-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
html.menu-open .menu-btn { color: #fff; }
html.menu-open .menu-btn__dot { transform: scale(1.6); }

.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--red-grad); color: #fff;
  clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 18px var(--pad) 20px; }
.menu__links { display: grid; gap: 0.1em; font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -0.045em; font-weight: 300; }
.menu__links a { display: inline-flex; align-items: baseline; gap: 0.35em; transition: transform 0.5s var(--ease-out); }
.menu__links a .mono { font-size: 12px; letter-spacing: 0.04em; transform: translateY(-1.6em); }
.menu__links a em { color: #fff; }
.menu__links a:hover { transform: translateX(0.18em); }
.menu__foot { display: flex; justify-content: space-between; gap: 20px; }

/* ==========================================================================
   HERO + EXPANSION « DIGITAL → ANALOG »
   ========================================================================== */
.intro { position: relative; height: 360vh; background: var(--paper); }
.intro__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero { position: absolute; inset: 0; padding: 0 var(--pad); }

.wordmark {
  margin: 0;
  padding-top: 0.04em;
  font-weight: 400;
  font-size: 12.3vw;
  line-height: 0.82;
  letter-spacing: -0.052em;
  white-space: nowrap;
}
.wordmark__line { display: inline-block; padding-bottom: 0.14em; padding-right: 0.06em; }
.wordmark em { font-size: 1.12em; letter-spacing: -0.03em; margin: 0 0.02em 0 -0.01em; }
.wordmark .char { display: inline-block; will-change: transform; }

.nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: start;
  gap: 20px;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.2;
}
.nav-row__brand { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; }
.nav-logo { width: 62px; height: auto; }
.nav-row__links { grid-column: 3; display: grid; grid-template-columns: auto auto; justify-content: start; gap: 5px 28px; }
.nav-row__end { grid-column: 4; justify-self: end; display: flex; align-items: baseline; gap: 18px; }
.nav-row__contact { font-size: 19px; color: var(--red); }
.nav-row__contact:hover { color: var(--ink); }
.nav-row__lang:hover { color: var(--red); }
.nav-row__menu { display: none; height: 30px; padding: 0 13px; border: 1px solid currentColor; border-radius: 99px; }

.hero__title {
  margin: clamp(48px, 12vh, 140px) 0 0 50%;
  max-width: 11.5em;
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.038em;
}
.hero__title em { display: inline; }
/* bandeau vidéo centré, posé sur le bas de l’écran ; la hauteur est ajustée en JS à la place libre sous le titre */
.hero__thumb-slot {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: clamp(300px, 40vw, 760px);
  height: 28vh;
  margin-inline: auto;
  pointer-events: none;
}
/* « Défiler » se cale juste à gauche du bandeau */
.hero__scroll { position: absolute; right: calc(50% + clamp(150px, 20vw, 380px) + 24px); bottom: 16px; color: var(--ink-2); }
.hero__scroll span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

.intro__media {
  position: absolute; inset: 0;
  background: #000;
  color: #fff;
  clip-path: inset(66vh 30vw 0 30vw round 2px);
  will-change: clip-path;
}
.intro__layer { position: absolute; inset: 0; overflow: hidden; }
.intro__layer video, .intro__layer img { width: 100%; height: 100%; object-fit: cover; }
.intro__video { transform-origin: 62% 82%; }
.intro__layer--analog { clip-path: inset(0 100% 0 0); }
.intro__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 45%),
    linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0) 22%),
    rgba(0, 0, 0, var(--dim, 0));
}
.intro__scanline {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1px; z-index: 2;
  background: #fff; box-shadow: 0 0 18px 2px rgba(255,255,255,0.65);
  opacity: 0;
}
.intro__hud {
  position: absolute; top: 18px; left: var(--pad); right: calc(var(--pad) + 110px); z-index: 3;
  display: flex; justify-content: space-between;
}
.intro__channel { position: relative; display: inline-grid; }
.intro__channel > span { grid-area: 1 / 1; transition: opacity 0.4s; }
.intro__channel-b { opacity: 0; }
.intro__media.is-analog .intro__channel-a { opacity: 0; }
.intro__media.is-analog .intro__channel-b { opacity: 1; }
.intro__captions { position: absolute; left: var(--pad); bottom: 54px; z-index: 3; width: min(560px, 80vw); display: grid; }
.intro__caption { grid-area: 1 / 1; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.04; letter-spacing: -0.025em; }
.intro__caption em { color: #fff; }
.intro__quote {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: min(1180px, calc(100vw - 2 * var(--pad)));
  transform: translate(-50%, -50%);
  text-align: center;
}
.intro__quote p { font-size: clamp(30px, 4.3vw, 70px); line-height: 1; letter-spacing: -0.038em; text-wrap: balance; }
.intro__quote em { color: #fff; }
.intro__quote cite { display: block; margin-top: 28px; font-style: normal; opacity: 0.75; }

/* ==========================================================================
   NOTRE SOCIÉTÉ
   ========================================================================== */
.about { position: relative; z-index: 2; padding: clamp(90px, 12vh, 140px) 0 clamp(110px, 16vh, 180px); background: var(--paper); }
.equation { display: flex; justify-content: space-between; gap: 12px; margin-bottom: clamp(80px, 14vh, 150px); }
.equation .op { color: var(--red); }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 40px; align-items: start; }
.about__title { grid-column: 1 / span 6; font-size: var(--fs-stmt); font-weight: 400; line-height: 1; letter-spacing: -0.038em; }
.about__figure { grid-column: 7 / span 3; margin-top: 0.6em; }
.about__media { overflow: hidden; aspect-ratio: 16 / 10; }
.about__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.about__figure figcaption { margin-top: 10px; color: var(--ink-2); }
.about__intro { grid-column: 7 / span 4; font-size: 18px; line-height: 1.3; max-width: 30em; }
.about__intro strong { font-weight: 500; }
.about__statement {
  margin: clamp(90px, 16vh, 170px) 0 0 50%;
  max-width: 13em;
  font-size: var(--fs-stmt);
  line-height: 1;
  letter-spacing: -0.038em;
}
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(90px, 16vh, 170px); }
.sector { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.sector h3 { font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.sector p { color: var(--ink-2); font-size: 15px; }

/* ==========================================================================
   PRESTATIONS — cartes « barres » + onde qui passe du carré au sinus
   ========================================================================== */
.process { position: relative; height: 330vh; background: var(--paper); }
.process__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.process__head {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center;
  padding-top: clamp(56px, 9vh, 84px);
}
.d2a-motif { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.d2a-motif__line { position: relative; width: clamp(70px, 9vw, 150px); height: 1px; background: currentColor; transform-origin: 0 50%; }
.d2a-motif__line::after { content: ""; position: absolute; right: -1px; top: -3.5px; border: 4px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
.process__lede { grid-column: 3; font-size: 15px; line-height: 1.25; max-width: 22em; }
.process .pill { grid-column: 4; justify-self: end; }
.process__readout { position: absolute; left: var(--pad); top: calc(clamp(56px, 9vh, 84px) + 46px); color: var(--ink-2); }
.process__readout .process__mode { color: var(--red); }
.process__cards {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 44px;
  top: calc(clamp(56px, 9vh, 84px) + 96px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end;
}
.pcard {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.pcard__num { position: relative; z-index: 1; }
.pcard__body { position: relative; z-index: 1; }
.pcard h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 0.98; letter-spacing: -0.03em; }
.pcard h3 em { color: #fff; display: block; }
.pcard p { margin-top: 14px; font-size: 15px; line-height: 1.25; max-width: 21em; }
.process__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; mix-blend-mode: normal; }

/* ==========================================================================
   SOLUTIONS — liste + images révélées par masque
   ========================================================================== */
.solutions { position: relative; height: 420vh; background: var(--paper); }
.solutions__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: 5fr 7fr; gap: 20px;
  padding-block: 20px;
}
.solutions__aside { display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(30px, 6vh, 64px); padding-bottom: 26px; min-height: 0; }
.solutions__title { font-size: var(--fs-h2); font-weight: 400; line-height: 0.86; letter-spacing: -0.055em; }
.solutions__title em { letter-spacing: -0.035em; }
.solutions__lede { margin: 28px 0 0 auto; max-width: 17em; font-size: 15px; line-height: 1.25; }
.solutions__list { border-top: 1px solid var(--line); margin-top: auto; }
.sol {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px;
  padding: 14px 0 13px;
  border-bottom: 1px solid var(--line);
  opacity: 0.32;
  cursor: pointer;
  transition: opacity 0.45s var(--ease-out);
}
.sol:hover { opacity: 0.6; }
.sol.is-active { opacity: 1; }
.sol__name { font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -0.03em; line-height: 1; }
.sol.is-active .sol__name { color: var(--red); }
.sol__tags { color: var(--ink-2); text-align: right; font-size: 11px; }
.solutions__media { position: relative; overflow: hidden; background: var(--ink); min-height: 0; }
.smask { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%); }
.smask:first-of-type { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.smask img { width: 100%; height: 100%; object-fit: cover; transform-origin: 70% 60%; }
.smask::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 42%), linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0) 20%); pointer-events: none; }
.smask__cap {
  position: absolute; left: 20px; bottom: 20px; right: 160px; z-index: 1;
  display: grid; gap: 10px; max-width: 520px;
  color: #fff; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05; letter-spacing: -0.025em;
}
.smask__cap em { color: #fff; }
.solutions__count { position: absolute; top: 20px; left: 20px; z-index: 3; color: #fff; }
.explore {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background-color 0.4s, transform 0.6s var(--ease-out);
}
.explore svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.explore text { fill: currentColor; font-family: var(--f-mono); font-size: 10.6px; font-weight: 500; letter-spacing: 0.21em; text-transform: uppercase; }
.explore__arrow { font-size: 26px; transition: transform 0.5s var(--ease-out); }
.explore:hover { background: var(--red); transform: scale(1.06); }
.explore:hover .explore__arrow { transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   CERTIFICATIONS — fiches techniques qui retombent en 3D
   ========================================================================== */
.certs { position: relative; background: var(--night); color: #fff; }
.certs__pin { position: relative; height: 320vh; background: var(--paper); }
.certs__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1800px; }
.certs__bg {
  position: absolute; inset: 0; background: var(--night);
  clip-path: circle(0% at 50% 110%);
}
.certs__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; transform: scale(1.12); }
.certs__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(11,11,12,0.15), rgba(11,11,12,0.85) 80%); }
.certs__statement {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: calc(100% - 2 * var(--pad));
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(44px, 6.4vw, 104px); font-weight: 400; line-height: 0.95; letter-spacing: -0.05em;
  color: var(--ink);
}
.certs__statement em { color: var(--red); }
.certs__pill { position: absolute; left: 50%; top: clamp(56px, 10vh, 100px); transform: translateX(-50%); z-index: 2; opacity: 0; }
.certs__deck {
  position: absolute; left: 50%; top: 52%; z-index: 3;
  transform: translate(-50%, -50%);
  display: flex; gap: clamp(10px, 1vw, 16px);
  transform-style: preserve-3d;
}
.ccard {
  position: relative;
  width: clamp(196px, 16.4vw, 272px);
  aspect-ratio: 0.64;
  transform-style: preserve-3d;
  color: var(--ink);
}
.ccard__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}
.ccard__front {
  display: grid; grid-template-rows: 1fr auto;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.ccard__main { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ccard__brand { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 10.5px; }
.ccard__badge { position: relative; flex: 1 1 0; min-height: 64px; }
.ccard__badge img { position: absolute; inset: 4px 8%; width: 84%; height: calc(100% - 8px); object-fit: contain; }
.ccard__title { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 1.75vw, 28px); line-height: 0.95; color: var(--red); }
.ccard__title em { font-size: 1em; }
.ccard__tags { display: grid; gap: 3px; font-size: 13px; }
.ccard__tags li::before { content: "◆"; color: var(--red); font-size: 8px; margin-right: 7px; vertical-align: 2px; }
.ccard__stub {
  position: relative;
  padding: 12px 14px 12px;
  border-top: 1.5px dashed rgba(17,17,17,0.22);
  display: grid; gap: 8px;
}
.ccard__stub::before, .ccard__stub::after {
  content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--notch, #18181a);
}
.ccard__stub::before { left: -8px; }
.ccard__stub::after { right: -8px; }
.ccard__barcode { height: 30px; width: 100%; color: var(--red); }
.ccard__note { font-size: 9.5px; color: var(--ink-2); }
.ccard__back {
  transform: rotateY(180deg);
  background: var(--red-grad);
  color: #fff;
  padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ccard__back-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ccard__qr { width: 46%; aspect-ratio: 1; color: #fff; }
.ccard__cross { width: 18px; height: 18px; border: 1px solid #fff; border-radius: 50%; position: relative; }
.ccard__cross::before, .ccard__cross::after { content: ""; position: absolute; background: #fff; }
.ccard__cross::before { left: 50%; top: -5px; bottom: -5px; width: 1px; }
.ccard__cross::after { top: 50%; left: -5px; right: -5px; height: 1px; }
.ccard__code { font-family: var(--f-serif); font-style: italic; font-size: clamp(64px, 6vw, 96px); line-height: 0.8; }
.ccard__back .mono { font-size: 10px; }
.ccard__tear { display: flex; align-items: center; gap: 8px; font-size: 9px; opacity: 0.85; }
.ccard__tear::before, .ccard__tear::after { content: ""; flex: 1; border-top: 1px dashed rgba(255,255,255,0.6); }
.certs__note {
  position: absolute; left: 50%; bottom: clamp(48px, 7vh, 80px); z-index: 2;
  width: min(560px, calc(100% - 2 * var(--pad)));
  transform: translateX(-50%);
  text-align: center; font-size: 15px; line-height: 1.3; opacity: 0;
}
.certs__note em { color: #fff; }

/* marques : plaques d’interrupteur */
.brands { position: relative; padding: clamp(90px, 14vh, 150px) 0 clamp(110px, 16vh, 170px); background: var(--night); }
.brands__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.brands__title { font-size: var(--fs-stmt); font-weight: 400; line-height: 1; letter-spacing: -0.04em; }
.brands__head .mono { color: rgba(255,255,255,0.6); }
.marquee {
  margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.plate {
  position: relative; flex: none;
  width: clamp(170px, 15vw, 230px); aspect-ratio: 1.45;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(170deg, #1d1d1f, #111112);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 40px -24px rgba(0,0,0,0.8);
  transition: border-color 0.4s;
}
.plate::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 5px; height: 5px; border-radius: 50%;
  background: #3a3a3c; transition: background-color 0.3s, box-shadow 0.3s;
}
.plate:hover { border-color: rgba(255,255,255,0.18); }
.plate:hover::after { background: var(--red-b); box-shadow: 0 0 10px 2px rgba(237,37,38,0.7); }
.plate__logo {
  width: 64%; height: 44%;
  background: rgba(255,255,255,0.72);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  transition: background-color 0.3s;
}
.plate:hover .plate__logo { background: #fff; }

/* ==========================================================================
   DÉMO SCÈNES
   ========================================================================== */
.scene { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #000; color: #fff; }
.scene__room {
  position: absolute; inset: 0;
  --b: 1.02; --s: 1.04; --c: 1; --warm: 0; --cool: 0; --vig: 0.2; --glow: 0; --shade: 0; --light: 1;
}
.scene__room img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(calc(var(--b) * var(--light))) saturate(var(--s)) contrast(var(--c));
  transition: filter 1.4s var(--ease-out);
  transform: scale(1.04);
}
.scene__room > span { position: absolute; inset: 0; pointer-events: none; transition: opacity 1.4s var(--ease-out); }
/* stores : la lumière du jour (baies à droite) baisse */
.scene__shade {
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 12px, rgba(0,0,0,0.22) 12px 14px),
    linear-gradient(270deg, rgba(14,12,10,0.94) 0%, rgba(14,12,10,0.7) 32%, rgba(14,12,10,0.25) 70%, rgba(14,12,10,0.1));
  opacity: calc(var(--shade) / 100);
  transition-duration: 0.6s;
}
.scene__warm { background: radial-gradient(ellipse at 45% 40%, rgba(255,168,84,0.8), rgba(140,58,12,0.75)); mix-blend-mode: soft-light; opacity: var(--warm); }
.scene__cool { background: linear-gradient(rgba(25,45,120,0.82), rgba(6,10,40,0.92)); mix-blend-mode: multiply; opacity: var(--cool); }
.scene__glow { background: radial-gradient(ellipse 22% 26% at 31% 48%, rgba(120,170,255,0.55), rgba(120,170,255,0) 70%); mix-blend-mode: screen; opacity: var(--glow); }
.scene__vignette { background: radial-gradient(ellipse at 34% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.92) 85%); opacity: var(--vig); }
.scene::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 80% at 0% 0%, rgba(8,8,9,0.82), rgba(8,8,9,0.45) 45%, rgba(8,8,9,0) 75%), linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0) 30%); }
.scene__copy { position: relative; z-index: 2; padding: clamp(80px, 14vh, 140px) var(--pad) 0; max-width: 640px; }
.scene__kicker { opacity: 0.85; }
.scene__title { margin-top: 22px; font-size: clamp(44px, 5.4vw, 88px); font-weight: 400; line-height: 0.95; letter-spacing: -0.048em; }
.scene__text { margin-top: 24px; max-width: 24em; font-size: 16px; line-height: 1.3; opacity: 0.9; }
.scene__text em { color: #fff; }
.panel {
  position: absolute; z-index: 2; right: calc(var(--pad) * 2); bottom: clamp(56px, 9vh, 96px);
  width: min(370px, calc(100% - 2 * var(--pad)));
  padding: 16px;
  border-radius: 24px;
  background: rgba(18, 18, 20, 0.5);
  border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.panel__head { display: flex; justify-content: space-between; padding: 2px 4px 14px; }
.panel__scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scene-btn {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  height: 78px; padding: 12px 13px;
  border-radius: 15px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 18px; letter-spacing: -0.02em;
  transition: background-color 0.35s, color 0.35s, transform 0.2s;
}
.scene-btn .mono { font-size: 10px; opacity: 0.6; }
.scene-btn:hover { background: rgba(255,255,255,0.14); }
.scene-btn:active { transform: scale(0.97); }
.scene-btn.is-active { background: #fff; color: var(--ink); }
.scene-btn.is-active .mono { color: var(--red); opacity: 1; }
.slider { display: grid; gap: 9px; margin-top: 16px; padding: 0 4px; }
.slider .mono { display: flex; justify-content: space-between; opacity: 0.8; font-size: 10.5px; }
.slider .mono output { margin-left: auto; margin-right: 1px; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 0; --val: 100%; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--val), rgba(255,255,255,0.2) var(--val)); }
.slider input::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--val), rgba(255,255,255,0.2) var(--val)); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.15); }
.slider input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.panel__foot { margin-top: 14px; padding: 0 4px 2px; font-size: 10.5px; opacity: 0.75; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { position: relative; padding-top: clamp(110px, 18vh, 200px); background: var(--paper); text-align: center; }
.cta__inner { display: grid; justify-items: center; }
.cta__title { margin-top: 28px; font-size: clamp(54px, 7.4vw, 120px); font-weight: 400; line-height: 0.92; letter-spacing: -0.052em; }
.cta__text { margin-top: 28px; max-width: 22em; font-size: 16px; line-height: 1.3; }
.cta__line { position: relative; height: clamp(220px, 32vh, 300px); margin-top: clamp(40px, 8vh, 90px); }
.cta__line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(17,17,17,0.3); }
.tri-btn {
  position: absolute; left: var(--pad); top: 50%;
  width: clamp(150px, 13vw, 200px); height: calc(clamp(150px, 13vw, 200px) * 0.87);
  transform: translateY(-58%);
  color: #fff;
}
.tri-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red); transition: transform 0.7s var(--ease-out), fill 0.3s; }
.tri-btn .mono { position: absolute; left: 0; right: 0; bottom: 10%; text-align: center; font-size: 11.5px; letter-spacing: 0.06em; }
.tri-btn:hover svg { transform: rotate(-8deg) scale(1.05); fill: var(--red-b); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; overflow: hidden; background: var(--red-grad); color: #fff; padding: 20px var(--pad) 0; }
.footer em { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 0.5fr 0.5fr; gap: 20px; font-size: 15px; line-height: 1.3; }
.footer__mail { display: inline-block; font-size: 22px; margin-bottom: 14px; }
.footer__mail:hover { opacity: 0.75; }
.footer__links { display: grid; align-content: start; gap: 2px; }
.footer__links li { justify-self: start; }
.footer .anchor__num { color: rgba(255, 255, 255, 0.7); }
.footer .anchor__arrow, .footer .anchor:hover .anchor__num, .footer .anchor:hover .anchor__label { color: #fff; }
.footer .anchor[href^="#"] { --nudge: translateY(-3px); }
.footer .anchor[target="_blank"] { --nudge: translate(2px, -2px); }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(80px, 16vh, 160px); padding-bottom: 18px; opacity: 0.85; }
.footer__mark { position: relative; height: calc((100vw - 2 * var(--pad)) * 0.512 * 0.74); overflow: hidden; }
.footer__mark svg { width: 100%; height: auto; }

/* ==========================================================================
   TIROIR CONTACT
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%); padding: 22px clamp(20px, 3vw, 40px) 40px; background: var(--paper); overflow-y: auto; }
.drawer__close { display: block; margin-left: auto; margin-bottom: 40px; }
.drawer__close:hover { color: var(--red); }
.drawer__title { margin-top: 26px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 400; line-height: 0.98; letter-spacing: -0.045em; }
.form { margin-top: 28px; }
.form label { display: grid; gap: 6px; margin-top: 20px; }
.form label .mono { color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 8px 0 9px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; font: 400 19px/1.3 var(--f-sans); color: var(--ink); outline: none;
  transition: border-color 0.3s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); }
.btn { margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px; border-radius: 99px; background: var(--ink); color: #fff; transition: background-color 0.3s; }
.btn:hover { background: var(--red); }
.form__status { margin-top: 16px; min-height: 1.3em; color: var(--red); }

/* ==========================================================================
   RÉVÉLATIONS (états initiaux posés par JS uniquement)
   ========================================================================== */
.line-mask { display: block; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
  .ccard { width: clamp(170px, 18.4vw, 220px); }
  .ccard__tags { font-size: 12px; }
}

@media (max-width: 991px) {
  .nav-row { grid-template-columns: 1fr auto; }
  .nav-row__links { display: none; }
  .nav-row__end { grid-column: 2; }
  .nav-row__contact { display: none; }
  .nav-row__menu { display: inline-flex; align-items: center; }
  .nav-row__end { align-items: center; }
  .hero__title { margin-left: 33.33%; }
  .hero__scroll { display: none; }

  .about__title { grid-column: 1 / -1; }
  .about__figure { grid-column: 1 / span 6; margin-top: 0; }
  .about__intro { grid-column: 7 / -1; }
  .about__statement { margin-left: 25%; }

  .process__head { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .process__lede { grid-column: 1 / -1; grid-row: 2; }
  .process .pill { grid-column: 2; grid-row: 1; }
  .process__readout, .process__canvas { display: none; }
  .process__cards { top: auto; height: 62vh; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; }
  .pcard p { font-size: 14px; }

  .solutions { height: auto; }
  .solutions__stage { position: relative; height: auto; grid-template-columns: 1fr; padding-block: 90px 40px; }
  .solutions__aside { padding-top: 0; }
  .solutions__list { display: none; }
  .solutions__media { display: grid; gap: 12px; background: none; overflow: visible; }
  .smask, .smask:first-of-type { position: relative; inset: auto; aspect-ratio: 4 / 5; max-height: 86vh; width: 100%; clip-path: none; }
  .smask__cap { right: 20px; }
  .explore, .solutions__count { display: none; }

  .certs__pin { height: auto; background: var(--night); }
  .certs__stage { position: relative; height: auto; padding: 110px 0 40px; perspective: none; }
  .certs__bg { clip-path: none; }
  .certs__statement, .certs__pill, .certs__note { position: relative; left: auto; top: auto; bottom: auto; transform: none; opacity: 1; color: #fff; }
  .certs__statement { margin: 0 auto; }
  .certs__statement em { color: var(--red-on-dark); }
  .certs__pill { display: table; margin: 0 auto 30px; }
  .certs__deck {
    position: relative; left: auto; top: auto; transform: none;
    margin-top: 50px; padding: 10px var(--pad) 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .certs__deck::-webkit-scrollbar { display: none; }
  .ccard { flex: none; width: min(250px, 66vw); scroll-snap-align: center; }
  .ccard__back { display: none; }
  .certs__note { margin: 26px auto 0; }

  .panel { position: relative; right: auto; bottom: auto; margin: 46px var(--pad) 40px auto; }
  .scene__copy { padding-top: 110px; }

  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 767px) {
  :root { --line-y: 66vh; }
  .wordmark { letter-spacing: -0.045em; }
  .nav-row { padding-top: 4px; }
  .nav-row__brand span { display: none; }
  .nav-logo { width: 54px; }
  .hero__title { margin: 15vh 0 0; max-width: 11em; }
  .hero__thumb-slot { width: calc(100% - 2 * var(--pad)); }
  .intro { height: 300vh; }
  .intro__captions { bottom: 64px; }
  .fixed-ui p { font-size: 10.5px; bottom: 14px; }

  .equation { flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; }
  .about__grid { row-gap: 26px; }
  .about__figure, .about__intro { grid-column: 1 / -1; }
  .about__statement { margin-left: 0; }
  .sectors { grid-template-columns: 1fr; }

  .process { height: auto; }
  .process__stage { position: relative; height: auto; overflow: visible; padding-bottom: 20px; }
  .process__cards { position: relative; inset: auto; height: auto; margin: 40px var(--pad) 0; grid-template-columns: 1fr; grid-template-rows: none; }
  .pcard { height: auto; min-height: 280px; gap: 80px; }
  .process__canvas { display: none; }

  .solutions__title { font-size: clamp(64px, 19vw, 96px); }
  .solutions__lede { margin-left: 0; }

  .brands__title { font-size: 40px; }
  .scene__title { font-size: 46px; }
  .panel { margin: 40px var(--pad) 34px; }

  .cta__title { font-size: clamp(48px, 13vw, 70px); }
  .tri-btn { left: 50%; transform: translate(-50%, -58%); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; gap: 4px; }
  .menu__foot { flex-direction: column; }
}

/* ==========================================================================
   MOUVEMENT RÉDUIT : tout est lisible sans animation
   ========================================================================== */
html.reduced .intro, html:not(.js) .intro { height: auto; }
html.reduced .intro__stage, html:not(.js) .intro__stage { position: relative; height: auto; overflow: visible; }
html.reduced .hero, html:not(.js) .hero { position: relative; height: 100svh; }
html.reduced .intro__media, html:not(.js) .intro__media { position: relative; height: 100svh; clip-path: none; }
html.reduced .intro__layer--analog, html:not(.js) .intro__layer--analog { clip-path: none; }
html.reduced .intro__captions, html:not(.js) .intro__captions, html.reduced .intro__hud, html:not(.js) .intro__hud { display: none; }
html.reduced .intro__media, html:not(.js) .intro__media { --dim: 0.45; }
html.reduced .process, html:not(.js) .process,
html.reduced .solutions, html:not(.js) .solutions { height: auto; }
html.reduced .process__stage, html:not(.js) .process__stage { position: relative; height: 100svh; }
html.reduced .solutions__stage, html:not(.js) .solutions__stage { position: relative; }
html.reduced .smask, html:not(.js) .smask { clip-path: none; }
html.reduced .smask:not(:first-of-type), html:not(.js) .smask:not(:first-of-type) { display: none; }
html.reduced .certs__pin, html:not(.js) .certs__pin { height: auto; background: var(--night); }
html.reduced .certs__stage, html:not(.js) .certs__stage { position: relative; height: auto; min-height: 100svh; padding: 120px 0; display: grid; justify-items: center; gap: 40px; }
html.reduced .certs__bg, html:not(.js) .certs__bg { clip-path: none; }
html.reduced .certs__statement, html:not(.js) .certs__statement,
html.reduced .certs__pill, html:not(.js) .certs__pill,
html.reduced .certs__deck, html:not(.js) .certs__deck,
html.reduced .certs__note, html:not(.js) .certs__note { position: relative; left: auto; top: auto; bottom: auto; transform: none; opacity: 1; color: #fff; }
html.reduced .certs__deck, html:not(.js) .certs__deck { flex-wrap: wrap; justify-content: center; }
html.reduced .ccard__back, html:not(.js) .ccard__back { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
