/* =========================================================
   GROUPE T.A.N - Style system (Ori / Radiant reference)
   Black void · bone-white light type · one ember orange
   ========================================================= */

:root {
  --color-ember-orange: #ff4f2b;
  --color-void-black: #000000;
  --color-carbon: #1a1a1a;
  --color-graphite-border: #3c3c3c;
  --color-steel-mid: #7a7a7a; /* #737373 du style guide, très légèrement éclairci : contraste AA sur fond noir */
  --color-fog-light: #bfbfbf;
  --color-bone-white: #f5f5f5;
  --on-accent: #000;          /* texte posé sur l'orange */
  --bg-rgb: 0, 0, 0;          /* fond de page, pour les dégradés transparents */
  --fg-rgb: 245, 245, 245;    /* texte, pour les filets transparents */

  /* TWK Everett → Inter substitute */
  --font-display: 'TWK Everett', 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Switzer', 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Chivo Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-max: 1280px;
  --gutter: 40px;
  --section-y: clamp(80px, 12vw, 180px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--color-void-black);
  color: var(--color-bone-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--color-ember-orange); color: var(--on-accent); }

:focus-visible { outline: 1px solid var(--color-ember-orange); outline-offset: 4px; }

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

/* ---------- Type utilities ---------- */
.mono { font-family: var(--font-mono); font-size: 14px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; }
.label { color: var(--color-fog-light); }
.mono a[href^="mailto"], a.mono[href^="mailto"], .keep-case { text-transform: none; }
.counter { color: var(--color-bone-white); font-size: 16px; }
.accent { color: var(--color-ember-orange); font-style: normal; }
.muted { color: var(--color-fog-light); }
.muted-2 { color: var(--color-steel-mid); }
.steel { color: var(--color-steel-mid); }
.white { color: var(--color-bone-white); font-weight: 400; }
.body-lg { font-size: 18px; line-height: 1.4; max-width: 540px; }

.h-section {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.011em;
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head--stack { flex-direction: column; gap: 24px; margin-bottom: 40px; }

/* line mask for reveals */
.line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.line__in { display: inline-block; will-change: transform; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .18em; margin-bottom: -.18em; }
.wi { display: inline-block; will-change: transform; }

.dot { display: inline-block; width: 6px; height: 6px; background: var(--color-ember-orange); margin-right: 10px; vertical-align: middle; transform: translateY(-1px); }
.dot--live { animation: pulse 1.6s steps(2, jump-none) infinite; }
@keyframes pulse { 50% { opacity: .15; } }
.blink { animation: pulse 1s steps(2, jump-none) infinite; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; line-height: 1; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid transparent; overflow: hidden; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  isolation: isolate;
}
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn--lg { padding: 16px 24px; }

.btn--fill { background: var(--color-ember-orange); color: var(--on-accent); }
.btn--fill:hover { color: var(--color-void-black); }
.btn--fill::before { background: var(--color-bone-white); }

.btn--ghost { border-color: var(--color-bone-white); color: var(--color-bone-white); }
.btn--ghost::before { background: var(--color-bone-white); }
.btn--ghost:hover { color: var(--color-void-black); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--color-ember-orange);
  position: relative; padding-bottom: 6px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }
.link-arrow span { transition: transform .5s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* text roll on nav links */
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.2em; }
.roll span { display: inline-block; transition: transform .55s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--color-ember-orange); white-space: nowrap; }
.roll span { white-space: nowrap; }
.roll:hover span { transform: translateY(-100%); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--color-void-black);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px var(--gutter);
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; color: var(--color-steel-mid); gap: 16px; }
.loader__top span:first-child { color: var(--color-bone-white); }
.loader__bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--color-graphite-border); }
.loader__logo { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 0 0; opacity: .12; }
.loader__logo + .loader__logo { padding-left: 24px; border-left: 1px solid var(--color-graphite-border); }
.loader__logo img { height: clamp(36px, 6vw, 84px); width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.loader__logo figcaption { display: flex; align-items: center; gap: 8px; color: var(--color-steel-mid); font-size: 12px; }
.loader__logo figcaption i { width: 6px; height: 6px; background: var(--color-graphite-border); display: inline-block; }
.loader__logo.is-on figcaption i { background: var(--color-ember-orange); }
.loader__logo.is-on figcaption { color: var(--color-bone-white); }

/* ---------- Logos (white on void) ---------- */
.logo-w { filter: brightness(0) invert(1); }
.logo-occ { transform: scale(1.18); transform-origin: left center; }
.loader__center { display: flex; flex-direction: column; gap: 24px; }
.loader__count { display: flex; align-items: flex-end; gap: 20px; }
.loader__num {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(120px, 24vw, 340px);
  line-height: .8; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.loader__unit { color: var(--color-fog-light); padding-bottom: 1.2em; line-height: 1.4; }
.loader__bar { height: 1px; background: var(--color-graphite-border); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: var(--color-ember-orange); transform: scaleX(0); transform-origin: left; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--color-carbon); text-align: center; padding: 8px var(--gutter);
  font-size: 14px; line-height: 1.3; position: relative; z-index: 20;
}
.announce strong { font-weight: 400; }
.announce a { color: var(--color-ember-orange); margin-left: 6px; }
.announce a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: absolute; top: 34px; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--gutter);
}
.nav__logo { display: inline-flex; align-items: center; gap: 16px; color: var(--color-bone-white); }
/* Logo animé : succession des 4 entités (cycle de 10 s, 2,5 s par logo) */
.nav__logos { position: relative; display: block; width: 92px; height: 42px; overflow: hidden; }
.nav__logos img, .nav__logo-cap > span {
  position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(100%);
  animation: logoCycle 10s var(--ease) infinite;
}
.nav__logos img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.nav__logos img.nav__logos-occ { transform-origin: left center; }
.nav__logos img:nth-child(2), .nav__logo-cap > span:nth-child(2) { animation-delay: 2.5s; }
.nav__logos img:nth-child(3), .nav__logo-cap > span:nth-child(3) { animation-delay: 5s; }
.nav__logos img:nth-child(4), .nav__logo-cap > span:nth-child(4) { animation-delay: 7.5s; }
.nav__logos img:first-child, .nav__logo-cap > span:first-child { opacity: 1; transform: none; }
@keyframes logoCycle {
  0%   { opacity: 0; transform: translateY(100%); clip-path: inset(100% 0 0 0); }
  5%   { opacity: 1; transform: translateY(0);    clip-path: inset(0 0 0 0); }
  21%  { opacity: 1; transform: translateY(0);    clip-path: inset(0 0 0 0); }
  26%  { opacity: 0; transform: translateY(-100%); clip-path: inset(0 0 100% 0); }
  100% { opacity: 0; transform: translateY(-100%); clip-path: inset(0 0 100% 0); }
}
.nav__logo-cap { position: relative; display: block; height: 1.3em; width: 15ch; overflow: hidden; }
.nav__logo-cap > span { white-space: nowrap; }
.nav__logo:hover .nav__logos img, .nav__logo:hover .nav__logo-cap > span { animation-play-state: paused; }
.nav__logo-sep { width: 1px; height: 32px; background: var(--color-graphite-border); }
.nav__logo-txt { font-size: 12px; line-height: 1.3; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 28px); }
.nav__links a { color: var(--color-bone-white); }
.nav__links { align-items: center; }
.nav__sep { width: 1px; height: 16px; background: var(--color-graphite-border); }
.nav__cta { display: flex; gap: 12px; }
.nav__burger { display: none; align-items: center; gap: 12px; font-size: 14px; position: relative; z-index: 60; }
.nav__burger-lines { width: 22px; height: 10px; position: relative; display: inline-block; }
.nav__burger-lines i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger-lines i:first-child { top: 0; }
.nav__burger-lines i:last-child { top: 9px; }
.menu-open .nav { z-index: 60; }
.menu-open .nav__burger-lines i:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .nav__burger-lines i:last-child { top: 4.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--color-void-black);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(96px, 14vh, 120px) var(--gutter) clamp(24px, 4vh, 40px); clip-path: inset(0 0 100% 0); visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: clamp(6px, 1.1vh, 10px) 0;
  border-bottom: 1px solid var(--color-graphite-border);
  font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, min(7vw, 4.6vh), 48px); letter-spacing: -0.011em; line-height: 1.1;
}
.menu__links a .mono { color: var(--color-steel-mid); font-size: 12px; }
.menu__links a:hover { color: var(--color-ember-orange); }
.menu__foot { display: flex; flex-direction: column; gap: 12px; color: var(--color-fog-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding-top: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  margin-top: -34px; /* sit under announce bar */
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  width: 100%; height: 115%; object-fit: cover; object-position: center;
  filter: grayscale(1) contrast(1.15) brightness(.55);
  transform-origin: center; will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),.75) 0%, rgba(var(--bg-rgb),.2) 35%, rgba(var(--bg-rgb),.55) 70%, rgb(var(--bg-rgb)) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb),.7) 0%, rgba(var(--bg-rgb),0) 65%);
  background-color: rgba(var(--bg-rgb), var(--veil, 0));
}
.hero__grid { position: absolute; inset: 0; pointer-events: none; }
.gl { position: absolute; background: rgba(var(--fg-rgb),.12); }
.gl--v { top: 0; bottom: 0; width: 1px; left: var(--x); transform-origin: top; }
.gl--h { left: 0; right: 0; height: 1px; top: var(--y); transform-origin: left; }

.hero__inner { position: relative; z-index: 2; padding-bottom: 120px; }
.hero__eyebrow { color: var(--color-fog-light); margin-bottom: 32px; }
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(48px, 9.2vw, 148px); line-height: .92; letter-spacing: -0.035em;
  margin-bottom: 48px;
}
.hero__title em { font-style: normal; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero__sub { max-width: 540px; font-size: 18px; color: var(--color-bone-white); }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 24px; color: var(--color-steel-mid);
  border-top: 1px solid transparent;
}
.hero__meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--color-graphite-border); transform: scaleX(var(--meta-line, 0)); transform-origin: left; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--color-bone-white); }
.hero__scroll-line { width: 40px; height: 1px; background: var(--color-graphite-border); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--color-ember-orange); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }

/* ---------- Manifesto ---------- */
.manifesto__text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 1180px;
}
.manifesto__text .w { overflow: visible; }
.manifesto__foot { margin-top: clamp(48px, 6vw, 92px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--color-graphite-border); }

/* ---------- Ecosystem logos ---------- */
.manifesto { padding-bottom: clamp(56px, 7vw, 92px); }
.eco { padding-bottom: var(--section-y); }
.eco__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; color: var(--color-bone-white); }
.eco__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--color-graphite-border); }
.eco__cell {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 24px; min-height: clamp(240px, 24vw, 340px);
}
.eco__cell + .eco__cell { border-left: 1px solid var(--color-graphite-border); }
.eco__cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-carbon);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.eco__cell::after {
  content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: var(--color-ember-orange);
  transform: scale(0); transform-origin: top right; transition: transform .5s var(--ease);
}
.eco__cell:hover::before { transform: scaleY(1); }
.eco__cell:hover::after { transform: scale(1); }
.eco__meta { display: flex; justify-content: space-between; color: var(--color-steel-mid); font-size: 12px; }
.eco__meta span:first-child { transition: color .4s; }
.eco__cell:hover .eco__meta span:first-child { color: var(--color-ember-orange); }
.eco__logo { display: flex; align-items: center; justify-content: center; flex: 1; padding: 0 4%; }
.eco__logo img { width: 100%; max-width: 260px; height: auto; opacity: .55; transition: opacity .5s var(--ease); will-change: transform; }
.eco__logo img.logo-occ { transform-origin: center; }
.eco__cell:hover .eco__logo img { opacity: 1; }
.eco__label { font-size: 12px; line-height: 1.4; color: var(--color-fog-light); display: flex; justify-content: space-between; gap: 12px; }
.eco__label b { font-weight: 400; color: var(--color-ember-orange); transform: translateX(-8px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.eco__cell:hover .eco__label b { transform: none; opacity: 1; }

/* ---------- Stats ---------- */
.stats { padding-bottom: var(--section-y); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--color-graphite-border); }
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 48px; border-right: 1px solid var(--color-graphite-border); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__label { color: var(--color-steel-mid); min-height: 2.4em; }
.stat__num {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 7vw, 112px);
  line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__num small { font-size: .32em; letter-spacing: -0.01em; color: var(--color-fog-light); margin-left: .2em; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--color-graphite-border); border-bottom: 1px solid var(--color-graphite-border); overflow: hidden; padding: 22px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 32px; will-change: transform; }
.marquee__track span { color: var(--color-bone-white); }
.marquee__track i { font-style: normal; color: var(--color-ember-orange); }

/* ---------- Entities (horizontal) ---------- */
.entities { position: relative; height: 100vh; height: 100svh; min-height: 620px; display: flex; flex-direction: column; padding-top: clamp(48px, 9vh, 110px); }
.entities__head { position: relative; flex-shrink: 0; }
.entities__head .section-head { margin-bottom: 16px; }
.entities__head .h-section { font-size: clamp(36px, 4.4vw, 64px); }
.entities__progress { display: flex; align-items: center; gap: 16px; color: var(--color-steel-mid); margin-bottom: clamp(24px, 4vh, 40px); }
.ep__cur { color: var(--color-bone-white); }
.ep__bar { width: 160px; height: 1px; background: var(--color-graphite-border); position: relative; }
.ep__bar i { position: absolute; inset: 0; background: var(--color-ember-orange); transform: scaleX(.25); transform-origin: left; }

.entities__viewport { overflow: hidden; flex: 1; min-height: 0; }
.entities__track { display: flex; gap: 24px; height: 100%; padding: 0 var(--gutter) clamp(24px, 5vh, 56px); width: max-content; will-change: transform; }
.entity {
  width: min(78vw, 1120px); flex-shrink: 0; height: 100%; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--color-graphite-border); background: var(--color-void-black);
}
.entity__media { position: relative; overflow: hidden; border-right: 1px solid var(--color-graphite-border); }
.entity__media img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); transition: filter .8s var(--ease); }
.entity:hover .entity__media img { filter: grayscale(.2) contrast(1.05) brightness(.85); }
.entity__body { padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: clamp(12px, 2vh, 20px); overflow: hidden; }
.entity__top { display: flex; justify-content: space-between; color: var(--color-steel-mid); margin-bottom: auto; padding-bottom: 16px; }
.entity__top span:first-child { color: var(--color-ember-orange); }
.entity__name { line-height: 0; }
.entity__logo { height: clamp(52px, 10vh, 112px); width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.entity__tag { color: var(--color-fog-light); font-size: 12px; }
.entity__desc { color: var(--color-fog-light); max-width: 440px; }
.entity__list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.entity__list li { border: 1px solid var(--color-graphite-border); padding: 6px 10px; color: var(--color-bone-white); }
.entity .link-arrow { margin-top: 8px; align-self: flex-start; }

/* ---------- Statement (orange band) ---------- */
.statement { background: var(--color-ember-orange); color: var(--on-accent); clip-path: inset(12% 6% 12% 6%); will-change: clip-path; }
.statement__inner { max-width: 1280px; margin: 0 auto; padding: clamp(92px, 14vw, 200px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.statement__label { color: var(--on-accent); }
.statement__text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -0.025em; max-width: 1100px;
}

/* ---------- Expertises list ---------- */
.expertises { position: relative; }
.xp { border-top: 1px solid var(--color-graphite-border); }
.xp__row { border-bottom: 1px solid var(--color-graphite-border); position: relative; }
.xp__row a {
  display: grid; grid-template-columns: 80px 1.4fr 1fr 40px; align-items: center; gap: 24px;
  padding: 28px 0; position: relative; z-index: 1; transition: padding .6s var(--ease), color .4s;
}
.xp__row::before { content: ""; position: absolute; inset: 0; background: var(--color-carbon); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.xp__row:hover::before { transform: scaleY(1); }
.xp__row:hover a { padding-left: 24px; padding-right: 24px; }
.xp__num { color: var(--color-steel-mid); transition: color .4s; }
.xp__row:hover .xp__num { color: var(--color-ember-orange); }
.xp__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.xp__items { color: var(--color-fog-light); font-size: 12px; line-height: 1.4; }
.xp__arrow { font-size: 24px; justify-self: end; transform: translateX(-12px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; color: var(--color-ember-orange); }
.xp__row:hover .xp__arrow { transform: none; opacity: 1; }

.xp__preview { position: fixed; top: 0; left: 0; width: 320px; height: 220px; pointer-events: none; z-index: 40; overflow: hidden; visibility: hidden; }
.xp__preview-in { width: 100%; height: 100%; clip-path: inset(50% 0 50% 0); }
.xp__preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

/* ---------- Timeline ---------- */
.tl { position: relative; padding-left: 0; }
.tl__line { position: absolute; left: calc(33.33% - 0.5px); top: 0; bottom: 0; width: 1px; background: var(--color-graphite-border); }
.tl__fill { position: absolute; inset: 0; background: var(--color-ember-orange); transform: scaleY(0); transform-origin: top; }
.tl__item { display: grid; grid-template-columns: 33.33% 1fr; padding: 56px 0; border-top: 1px solid var(--color-graphite-border); }
.tl__item:last-child { border-bottom: 1px solid var(--color-graphite-border); }
.tl__year { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 8vw, 128px); line-height: .85; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; padding-right: 40px; }
.tl__content { padding-left: 56px; display: flex; flex-direction: column; gap: 16px; max-width: 560px; position: relative; }
.tl__content::before { content: ""; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; background: var(--color-bone-white); }
.tl__entity { color: var(--color-ember-orange); }
.tl__content p { font-size: 18px; color: var(--color-fog-light); }

/* ---------- Reference (Airbus) ---------- */
.ref { position: relative; min-height: 110vh; display: flex; align-items: center; overflow: hidden; }
.ref__media { position: absolute; inset: 0; }
.ref__media img { width: 100%; height: 130%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.5); will-change: transform; }
.ref__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb),.3) 30%, rgba(var(--bg-rgb),.3) 70%, rgb(var(--bg-rgb)) 100%); }
.ref__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }
.ref__quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 6.4vw, 104px); line-height: .98; letter-spacing: -0.035em; max-width: 1100px; }
.ref__meta { display: flex; flex-direction: column; gap: 8px; color: var(--color-fog-light); padding-top: 24px; border-top: 1px solid var(--color-graphite-border); max-width: 560px; }

/* ---------- Site / bars ---------- */
.site__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: end; }
.site__left { display: flex; flex-direction: column; gap: 32px; }
.site__right { display: flex; flex-direction: column; gap: 40px; }
.bar__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: var(--color-fog-light); }
.bar__head b { font-weight: 400; color: var(--color-bone-white); }
.bar__track { height: 40px; border: 1px solid var(--color-graphite-border); position: relative; }
.bar__fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); background: var(--color-bone-white); transform: scaleX(0); transform-origin: left; }
.bar__fill--accent { background: var(--color-ember-orange); min-width: 8px; }
.site__total { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--color-bone-white); }

/* ---------- CTA / contact ---------- */
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--color-graphite-border); margin-bottom: var(--section-y); }
.cta__card { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; min-height: 380px; }
.cta__card + .cta__card { border-left: 1px solid var(--color-graphite-border); }
.cta__card::before { content: ""; position: absolute; inset: 0; background: var(--color-carbon); transform: translateY(101%); transition: transform .7s var(--ease); z-index: -1; }
.cta__card { isolation: isolate; }
.cta__card:hover::before { transform: none; }
.cta__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; max-width: 480px; }
.cta__card .link-arrow { margin-top: auto; align-self: flex-start; }

.contact-big { display: flex; flex-direction: column; gap: 32px; }
/* Bloc contact « Signal T.A.N » : ondes du logo + texte */
.contact-big__head { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.contact-big__mail {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1; letter-spacing: -0.035em; display: block; min-width: 0; overflow-wrap: anywhere; transition: color .5s var(--ease);
}
.contact-big__mail:hover { color: var(--color-ember-orange); }
.sig { width: clamp(56px, 7vw, 108px); height: auto; flex-shrink: 0; overflow: visible; margin-bottom: -.12em; }
.sig__dot { fill: var(--color-ember-orange); }
.sig__w { fill: var(--color-bone-white); opacity: .18; transition: opacity .4s; }
.contact-big.is-on .sig__w { animation: sigWave 2.4s var(--ease) infinite; }
.contact-big.is-on .sig__w2 { animation-delay: .35s; }
.contact-big__head:hover .sig__w { animation-duration: 1.2s; }
@keyframes sigWave { 0%, 100% { opacity: .18; } 30%, 55% { opacity: 1; } }
.contact-big__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--color-graphite-border); color: var(--color-fog-light); }
.contact-big__row a:not(.btn):hover { color: var(--color-bone-white); }

/* ---------- Footer ---------- */
.footer { padding-top: 80px; overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; line-height: 1.4; }
.footer__h { color: var(--color-bone-white); margin-bottom: 8px; }
.footer__logo { height: 48px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.footer__logos {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px;
  border-top: 1px solid var(--color-graphite-border); border-bottom: 1px solid var(--color-graphite-border);
}
.footer__logos a { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.footer__logos a + a { border-left: 1px solid var(--color-graphite-border); }
.footer__logos img { height: 44px; width: auto; max-width: 100%; object-fit: contain; opacity: .45; transition: opacity .4s; }
.footer__logos img.logo-occ { transform-origin: center; }
.footer__logos a:hover img { opacity: 1; }
.footer__col a { color: var(--color-fog-light); transition: color .3s; align-self: flex-start; }
.footer__col a:hover { color: var(--color-ember-orange); }
.footer__mark {
  display: flex; justify-content: space-between; padding: 0 var(--gutter); margin-top: 80px;
  font-family: var(--font-display); font-weight: 300; font-size: 30vw; line-height: .78; letter-spacing: -0.06em;
  color: var(--color-bone-white); overflow: hidden;
}
.footer__mark span { display: inline-block; }
.footer__mark span:nth-child(even) { color: var(--color-ember-orange); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 32px; font-size: 12px; }
.footer__legal a:hover { color: var(--color-bone-white); }

/* =========================================================
   PAGES INTÉRIEURES - composants partagés
   ========================================================= */

/* ---------- Rideau de transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 2000; background: var(--color-void-black);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; clip-path: inset(0 0 100% 0);
}
html.js body:not([data-page="home"]) .curtain { visibility: visible; clip-path: inset(0 0 0 0); }
.curtain__inner { display: flex; align-items: center; gap: 12px; color: var(--color-bone-white); }
.curtain__dot { width: 8px; height: 8px; background: var(--color-ember-orange); animation: pulse 1s steps(2, jump-none) infinite; }

/* ---------- Navigation : page active ---------- */
.nav__links a.is-active span { color: var(--color-ember-orange); }
.nav__links a.is-active::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-ember-orange); }
.menu__links a.is-active { color: var(--color-ember-orange); }

/* ---------- Hero de page ---------- */
.hero--page { min-height: 92vh; min-height: 92svh; }
.hero--page .hero__title { font-size: clamp(44px, 7.6vw, 124px); }
.hero--short { min-height: 72vh; min-height: 72svh; }
.crumbs { display: flex; gap: 10px; align-items: center; color: var(--color-steel-mid); font-size: 12px; margin-bottom: 32px; }
.crumbs a { color: var(--color-fog-light); transition: color .3s; }
.crumbs a:hover { color: var(--color-ember-orange); }
.crumbs [aria-current] { color: var(--color-bone-white); }
.hero__logo { margin-bottom: 32px; }
.hero__logo img { height: clamp(56px, 7vw, 100px); width: auto; }

/* ---------- Bloc intro 2 colonnes ---------- */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.split > *, .stack__grid > *, .contact-grid > * { min-width: 0; }
.split__aside { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 40px; }
.split__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.1vw, 46px); line-height: 1.14; letter-spacing: -0.02em; }
.split__lead .w { overflow: visible; }
.split__body { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }
.split__body p { color: var(--color-fog-light); font-size: 18px; max-width: 620px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--color-graphite-border); margin-top: 56px; }
.kpi { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--color-graphite-border); }
.kpi b { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 4.4vw, 68px); line-height: .9; letter-spacing: -0.04em; white-space: nowrap; }
.kpi b small { font-size: .4em; color: var(--color-fog-light); margin-left: .15em; letter-spacing: 0; }
.kpi > span { color: var(--color-steel-mid); font-size: 12px; }

/* ---------- Stack : image collante + domaines ---------- */
.stack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.stack__media { position: sticky; top: 10vh; height: 80vh; }
.stack__frame { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--color-graphite-border); background: var(--color-carbon); }
.stack__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.72); opacity: 0; }
.stack__img.is-active { opacity: 1; }
.stack__hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 20px 24px; background: linear-gradient(180deg, rgba(var(--bg-rgb),0), rgba(var(--bg-rgb),.85));
}
.stack__hud b { font-weight: 400; color: var(--color-ember-orange); }
.stack__ttl { color: var(--color-bone-white); text-align: right; }
.stack__corner { position: absolute; top: 0; left: 0; z-index: 5; width: 10px; height: 10px; background: var(--color-ember-orange); }
.stack__item { min-height: 66vh; padding: 48px 0; border-top: 1px solid var(--color-graphite-border); display: flex; flex-direction: column; gap: 20px; }
.stack__item:last-child { min-height: 80vh; }
/* Blocs inactifs : gris lisible (contraste AA), couleurs normales quand le bloc devient actif */
@media (min-width: 901px) {
  .stack__item :is(.stack__num, .stack__title, .stack__desc, .stack__tags li) { transition: color .6s var(--ease); }
  .stack__item:not(.is-active) :is(.stack__num, .stack__title, .stack__desc, .stack__tags li) { color: var(--color-steel-mid); }
}
.stack__num { color: var(--color-ember-orange); }
.stack__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
.stack__desc { color: var(--color-fog-light); font-size: 18px; max-width: 520px; }
.stack__tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; max-width: 560px; }
.stack__tags li { border: 1px solid var(--color-graphite-border); padding: 7px 10px; line-height: 1.3; }
.stack__thumb { display: none; }

/* ---------- Étapes ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); padding-top: 44px; }
.steps__line { position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--color-graphite-border); }
.steps__fill { position: absolute; inset: 0; background: var(--color-ember-orange); transform-origin: left; transform: scaleX(0); }
.step { position: relative; padding-right: 32px; display: flex; flex-direction: column; gap: 16px; }
.step::before { content: ""; position: absolute; top: -44px; left: 0; width: 9px; height: 9px; background: var(--color-void-black); border: 1px solid var(--color-fog-light); transition: background .4s, border-color .4s; }
.step.is-on::before { background: var(--color-ember-orange); border-color: var(--color-ember-orange); }
.step__num { color: var(--color-steel-mid); transition: color .4s; }
.step.is-on .step__num { color: var(--color-ember-orange); }
.step__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; }
.step p { color: var(--color-fog-light); max-width: 320px; }

/* ---------- Cartes (grille 3 col.) ---------- */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); border: 1px solid var(--color-graphite-border); }
.card { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; min-height: 300px; border-left: 1px solid var(--color-graphite-border); border-top: 1px solid var(--color-graphite-border); margin: -1px 0 0 -1px; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-carbon); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.card:hover::before { transform: scaleY(1); }
.card__num { color: var(--color-steel-mid); display: flex; justify-content: space-between; }
.card:hover .card__num span:first-child { color: var(--color-ember-orange); }
.card__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -0.015em; margin-top: clamp(32px, 5vw, 72px); }
.card p { color: var(--color-fog-light); }
.card .stack__tags { margin-top: 4px; }

/* ---------- Média pleine largeur ---------- */
.pmask { position: relative; overflow: hidden; }
.pmask img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); }
.banner-img { height: clamp(320px, 70vh, 760px); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo .pmask { aspect-ratio: 4 / 5; }
.duo__text { display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; padding-bottom: 24px; }

/* ---------- Entité suivante ---------- */
.next { display: block; position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--color-graphite-border); padding: clamp(80px, 12vw, 160px) 0; }
.next__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s var(--ease); }
.next__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.35); transform: scale(1.1); transition: transform 1.4s var(--ease); }
.next:hover .next__bg { opacity: 1; }
.next:hover .next__bg img { transform: scale(1); }
.next__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.next__label { color: var(--color-fog-light); margin-bottom: 32px; display: block; }
.next__logo img { height: clamp(72px, 11vw, 170px); width: auto; }
/* Indicateur « terminal » : > SUIVANT + curseur clignotant */
.next__arrow {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(20px, 2.4vw, 34px); line-height: 1; color: var(--color-bone-white);
  padding: 14px 18px; border: 1px solid var(--color-graphite-border);
  transition: border-color .5s var(--ease), color .5s var(--ease);
}
.next__arrow b { font-weight: 400; color: var(--color-ember-orange); }
.next__caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .3em; background: var(--color-ember-orange); animation: caret 1.05s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.next:hover .next__arrow { border-color: var(--color-ember-orange); }
.next:hover .next__caret { animation-duration: .5s; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.check):not(.drop), .form-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--color-fog-light); }
.req { color: var(--color-ember-orange); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--color-carbon); border: 1px solid var(--color-graphite-border); border-radius: 0;
  color: var(--color-bone-white); font-family: var(--font-body); font-size: 16px; line-height: 1.4; padding: 14px 16px;
  outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-steel-mid); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-ember-orange); }
.field select {
  cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f5f5f5' stroke-width='1.2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { min-height: 170px; resize: vertical; }
.field__err { display: none; font-family: var(--font-mono); font-size: 12px; color: var(--color-ember-orange); text-transform: uppercase; }
.is-error > .field__err, .is-error .field__err { display: block; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--color-ember-orange); }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--color-fog-light); line-height: 1.5; position: relative; }
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.check__box { flex-shrink: 0; width: 18px; height: 18px; border: 1px solid var(--color-fog-light); margin-top: 2px; position: relative; transition: background .3s, border-color .3s; }
.check__box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--color-ember-orange); border-color: var(--color-ember-orange); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 1px solid var(--color-ember-orange); outline-offset: 3px; }
.field.is-error .check__box, .field.is-error .drop { border-color: var(--color-ember-orange); }
.check a { color: var(--color-bone-white); text-decoration: underline; }

.drop {
  position: relative; border: 1px dashed var(--color-graphite-border); background: var(--color-void-black);
  padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  transition: border-color .3s, background .3s;
}
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--color-ember-orange); background: var(--color-carbon); }
.drop.has-file { border-style: solid; border-color: var(--color-bone-white); }
.drop.is-error { border-color: var(--color-ember-orange); }
.drop__icon { width: 32px; height: 32px; stroke: var(--color-bone-white); fill: none; stroke-width: 1.2; }
.drop__title { font-size: 16px; }
.drop__title u { color: var(--color-ember-orange); text-decoration: none; border-bottom: 1px solid currentColor; }
.drop__hint { color: var(--color-steel-mid); font-size: 12px; }
.drop__name { color: var(--color-bone-white); font-size: 12px; min-height: 1em; }
.drop.is-error .drop__name { color: var(--color-ember-orange); }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--color-graphite-border); margin-top: 8px; }
.form-actions .btn { cursor: pointer; }
.form-actions .btn:disabled { opacity: .6; cursor: wait; }
.form-note { color: var(--color-steel-mid); font-size: 12px; max-width: 420px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-send-error { color: var(--color-ember-orange); font-size: 12px; margin-top: 16px; min-height: 1em; }
.form-success { display: none; flex-direction: column; gap: 16px; border: 1px solid var(--color-ember-orange); padding: clamp(24px, 4vw, 48px); margin-bottom: 40px; }
.form-success.is-visible { display: flex; }
.form-success h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.form-success p { color: var(--color-fog-light); }
form.is-sent { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.info { display: flex; flex-direction: column; }
.info__row { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid var(--color-graphite-border); }
.info__row:last-child { border-bottom: 1px solid var(--color-graphite-border); }
.info__row .mono { color: var(--color-steel-mid); font-size: 12px; }
.info__val { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.015em; transition: color .3s; }
a.info__val:hover { color: var(--color-ember-orange); }
.map { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--color-graphite-border); overflow: hidden; background: var(--color-carbon); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.9); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; background: var(--color-ember-orange); transform: translate(-50%, -50%); pointer-events: none; }
.map__pin::after { content: ""; position: absolute; inset: -10px; border: 1px solid var(--color-ember-orange); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* Horaires d'ouverture (page Contact) */
.hours { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.hours span { border: 1px solid var(--color-graphite-border); padding: 7px 10px; color: var(--color-bone-white); }
.hours__status { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--color-fog-light); }
.hours__status i { width: 8px; height: 8px; background: var(--color-steel-mid); display: inline-block; }
.hours__status.is-open { color: var(--color-bone-white); }
.hours__status.is-open i { background: var(--color-ember-orange); animation: pulse 1.6s steps(2, jump-none) infinite; }

/* ---------- Recrutement ---------- */
.empty { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--color-graphite-border); padding: clamp(24px, 4vw, 48px); }
.empty__status { display: flex; align-items: center; gap: 12px; color: var(--color-fog-light); }
.empty__status i { width: 8px; height: 8px; background: var(--color-steel-mid); display: inline-block; }
.empty__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; max-width: 640px; margin-top: 16px; }

/* =========================================================
   LABEL RGE (page Evolutia)
   ========================================================= */
.rge__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.rge__grid > * { min-width: 0; }
.rge__intro { display: flex; flex-direction: column; gap: 24px; }
.rge__intro .muted { font-size: 18px; max-width: 620px; }
.rge__seals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seal {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px;
  border: 1px solid var(--color-graphite-border); background: var(--color-void-black); overflow: hidden; isolation: isolate;
  transition: border-color .5s var(--ease);
}
.seal::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: var(--color-ember-orange); }
.seal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-carbon); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.seal:hover { border-color: var(--color-ember-orange); }
.seal:hover::before { transform: scaleY(1); }
.seal__top { display: flex; align-items: center; color: var(--color-steel-mid); font-size: 11px; }
.seal__rge { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 6vw, 88px); line-height: .9; letter-spacing: -0.04em; color: var(--color-bone-white); margin-top: 12px; }
.seal__org { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); color: var(--color-ember-orange); letter-spacing: -0.01em; }
.seal__desc { color: var(--color-fog-light); font-size: 11px; line-height: 1.4; border-top: 1px solid var(--color-graphite-border); padding-top: 12px; margin-top: 6px; }
/* Encarts cliquables : téléchargement de l'attestation RGE (PDF dans assets/docs/) */
a.seal { color: inherit; text-decoration: none; }
a.seal:focus-visible { outline: 2px solid var(--color-ember-orange); outline-offset: 3px; }
.seal__dl { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 11px; color: var(--color-ember-orange); }
.seal__dl b { font-weight: 400; transition: transform .4s var(--ease); }
a.seal:hover .seal__dl b { transform: translateY(3px); }
@media (max-width: 900px) {
  .rge__grid { grid-template-columns: 1fr; }
  .cards.rge__why { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .rge__seals { grid-template-columns: 1fr; } }

/* =========================================================
   PAGES LÉGALES
   ========================================================= */
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { transition: color .3s; }
.footer__links a:hover, .footer__links a[aria-current] { color: var(--color-bone-white); }
.legal-hero { padding: clamp(170px, 22vh, 220px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--color-graphite-border); }
.legal-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em; margin: 24px 0 20px; }
.legal-hero p { color: var(--color-fog-light); max-width: 640px; }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 6vw, 96px); padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section-y); align-items: start; }
.legal > * { min-width: 0; }
.legal__toc { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.legal__toc a { color: var(--color-fog-light); transition: color .3s; }
.legal__toc a:hover { color: var(--color-ember-orange); }
.legal__body { max-width: 760px; }
.legal__body section { padding: 32px 0; border-top: 1px solid var(--color-graphite-border); scroll-margin-top: 40px; }
.legal__body section:first-child { border-top: 0; padding-top: 0; }
.legal__body h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.015em; margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.legal__body h2 .mono { color: var(--color-ember-orange); font-size: 12px; }
.legal__body h3 { font-size: 17px; font-weight: 400; margin: 20px 0 8px; }
.legal__body p, .legal__body li { color: var(--color-fog-light); line-height: 1.6; }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { margin: 10px 0 0 0; display: flex; flex-direction: column; gap: 6px; }
.legal__body li { padding-left: 18px; position: relative; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--color-graphite-border); }
.legal__body a { color: var(--color-bone-white); text-decoration: underline; text-underline-offset: 3px; }
.legal__body strong { color: var(--color-bone-white); font-weight: 400; }
/* FAQ (faq.html) : questions dépliables */
.faq__list { margin-top: 8px; }
.faq__item { border-top: 1px solid var(--color-graphite-border); }
.faq__item:last-child { border-bottom: 1px solid var(--color-graphite-border); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; font-size: 18px; line-height: 1.4; color: var(--color-bone-white); transition: color .3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-ember-orange); }
.faq__item summary:focus-visible { outline: 2px solid var(--color-ember-orange); outline-offset: 4px; }
.faq__item summary .mono { flex: none; font-size: 14px; color: var(--color-ember-orange); transition: transform .4s var(--ease); }
.faq__item[open] summary .mono { transform: rotate(45deg); }
.faq__answer { padding: 0 48px 24px 0; }
.faq__cta { margin-top: 48px; padding: 32px; border: 1px solid var(--color-graphite-border); }
.faq__cta p { margin-bottom: 16px; }
@media (max-width: 600px) { .faq__answer { padding-right: 0; } .faq__cta { padding: 24px; } }
.legal__dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 24px; margin-top: 8px; }
.legal__dl dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--color-steel-mid); padding-top: 3px; }
.legal__dl dd { color: var(--color-bone-white); }
.todo { background: none; color: var(--color-ember-orange); border: 1px dashed var(--color-ember-orange); padding: 0 6px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.optout { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--color-graphite-border); }
.optout__state { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--color-bone-white); }
.optout__state i { width: 8px; height: 8px; background: var(--color-ember-orange); display: inline-block; }
.optout.is-off .optout__state { color: var(--color-fog-light); }
.optout.is-off .optout__state i { background: var(--color-steel-mid); }
.optout__btn { cursor: pointer; }
.legal__table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.legal__table th, .legal__table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--color-graphite-border); vertical-align: top; color: var(--color-fog-light); }
.legal__table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--color-steel-mid); font-weight: 400; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
  .legal__dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal__dl dd { margin-bottom: 10px; }
  .legal__table { display: block; overflow-x: auto; }
}

/* =========================================================
   E-SHOP
   ========================================================= */
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.shop-filter {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; font-family: var(--font-mono); font-size: 14px;
  text-transform: uppercase; color: var(--color-fog-light); border: 1px solid var(--color-graphite-border); transition: color .3s, border-color .3s, background .3s;
}
.shop-filter:hover { color: var(--color-bone-white); border-color: var(--color-fog-light); }
.shop-filter.is-active { color: var(--color-void-black); background: var(--color-bone-white); border-color: var(--color-bone-white); }
.shop-filter__n { font-size: 11px; color: var(--color-steel-mid); }
.shop-filter.is-active .shop-filter__n { color: var(--color-void-black); }

.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-graphite-border); border: 1px solid var(--color-graphite-border); }
.prod {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 20px; text-align: left;
  background: var(--color-void-black); color: var(--color-bone-white); cursor: pointer; isolation: isolate; overflow: hidden;
}
.prod[hidden] { display: none; }
.prod::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; background: var(--color-ember-orange); transform: scale(0); transform-origin: top right; transition: transform .5s var(--ease); z-index: 3; }
.prod:hover::after, .prod:focus-visible::after { transform: scale(1); }
.prod__meta { display: flex; justify-content: space-between; color: var(--color-steel-mid); font-size: 12px; }
.prod:hover .prod__meta span:first-child { color: var(--color-ember-orange); }
/* Scène produit « Studio » : fond anthracite éclairé comme en studio photo */
.prod__stage, .order__stage, .done__stage {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  background: #111 radial-gradient(ellipse 58% 52% at 50% 46%, #4a4a4a 0%, #2a2a2a 42%, #141414 78%, #0c0c0c 100%);
}
.prod__stage { aspect-ratio: 1; }
/* Lumière qui s'intensifie au survol */
.prod__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 50% 46%, rgba(var(--fg-rgb),.16), transparent 70%);
  opacity: 0; transition: opacity .8s var(--ease);
}
.prod:hover .prod__stage::before { opacity: 1; }
.prod__stage img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 1s var(--ease); will-change: transform; }
.prod:hover .prod__stage img { transform: scale(1.08); }
.prod__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2vw, 30px); line-height: 1.08; letter-spacing: -0.015em; min-height: 2.16em; }
.prod__cta { display: flex; justify-content: space-between; align-items: center; color: var(--color-fog-light); font-size: 12px; padding-top: 14px; border-top: 1px solid var(--color-graphite-border); transition: color .3s; }
.prod__cta b { font-weight: 400; color: var(--color-ember-orange); transform: translateX(-8px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.prod:hover .prod__cta { color: var(--color-bone-white); }
.prod:hover .prod__cta b { transform: none; opacity: 1; }
.prod--sos .prod__stage img { padding: 2%; }
.shop-note { display: flex; align-items: center; color: var(--color-steel-mid); font-size: 12px; margin-top: 24px; }

/* ---------- Panneau de commande ---------- */
body.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 1500; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); cursor: pointer; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--color-void-black);
  border-left: 1px solid var(--color-graphite-border); display: flex; flex-direction: column;
}
.order__bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; border-bottom: 1px solid var(--color-graphite-border); flex-shrink: 0; }
.drawer__close { font-family: var(--font-mono); font-size: 14px; display: inline-flex; gap: 10px; align-items: center; color: var(--color-bone-white); transition: color .3s; }
.drawer__close:hover { color: var(--color-ember-orange); }
.order__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 32px 32px 48px; }
.order__head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--color-graphite-border); }
.order__stage { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.order__stage img { position: relative; z-index: 1; }
.order__stage img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.order__intro { display: flex; flex-direction: column; gap: 12px; }
.order__type { color: var(--color-ember-orange); font-size: 12px; }
.order__brand { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.order__lead { color: var(--color-fog-light); font-size: 15px; }
.order__lead strong { font-weight: 400; }

.fsec { border: 0; padding: 32px 0 8px; min-width: 0; }
.fsec__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding: 0; width: 100%; }
.fsec__n { color: var(--color-ember-orange); font-size: 12px; }
.fsec__t { font-family: var(--font-display); font-weight: 300; font-size: 24px; letter-spacing: -0.015em; }
.fsec .form-grid { gap: 18px 20px; }
.field__hint { font-size: 11px; color: var(--color-steel-mid); }
.js-extra.is-required .field__hint { color: var(--color-ember-orange); }

.opts { display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: 8px; }
.opt { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--color-graphite-border); background: var(--color-carbon); cursor: pointer; transition: border-color .3s, background .3s; font-size: 15px; line-height: 1.4; }
.opt:hover { border-color: var(--color-fog-light); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { flex-shrink: 0; width: 16px; height: 16px; border: 1px solid var(--color-fog-light); margin-top: 2px; position: relative; transition: border-color .3s; }
.opt__box::after { content: ""; position: absolute; inset: 3px; background: var(--color-ember-orange); transform: scale(0); transition: transform .3s var(--ease); }
.opt:has(input:checked) { border-color: var(--color-ember-orange); background: var(--color-void-black); }
.opt input:checked + .opt__box { border-color: var(--color-ember-orange); }
.opt input:checked + .opt__box::after { transform: scale(1); }
.opt input:focus-visible + .opt__box { outline: 1px solid var(--color-ember-orange); outline-offset: 3px; }
.field.is-error .opt { border-color: var(--color-ember-orange); }

.drop--photo { padding: 28px 20px; }
.drop__preview { display: none; max-height: 160px; max-width: 100%; margin-top: 8px; border: 1px solid var(--color-graphite-border); }
.drop.has-file .drop__preview[src] { display: block; }
.order__consent { margin-top: 28px; }
.order__actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--color-graphite-border); }
.order__submit { cursor: pointer; }
#order-form.is-sending .order__submit { opacity: .7; cursor: wait; }

/* ---------- Confirmation de commande ---------- */
.done { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 160px 0 var(--section-y); }
.done__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.done__main { display: flex; flex-direction: column; gap: 24px; }
.done__check { width: 72px; height: 72px; fill: none; }
.done__sq { stroke: var(--color-graphite-border); stroke-width: 1.5; }
.done__tick { stroke: var(--color-ember-orange); stroke-width: 4; stroke-linecap: square; }
.done__ref { color: var(--color-bone-white); display: flex; align-items: center; flex-wrap: wrap; }
.done__ref .js-ref { color: var(--color-ember-orange); margin-left: .6em; }
.done__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 6.8vw, 108px); line-height: .95; letter-spacing: -0.035em; }
.done__lead { font-size: 18px; color: var(--color-fog-light); max-width: 560px; }
.done__spam { color: var(--color-steel-mid); font-size: 12px; }
.done__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.done__card { border: 1px solid var(--color-graphite-border); }
.done__stage { aspect-ratio: 4 / 3; }
.done__stage img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.done__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.done__k { color: var(--color-steel-mid); font-size: 12px; }
.done__product { font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; }
.done__rows { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 10px 20px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--color-graphite-border); }
.done__rows dt { color: var(--color-steel-mid); font-size: 11px; padding-top: 3px; }
.done__rows dd { color: var(--color-bone-white); font-size: 14px; }

/* =========================================================
   Blog - liste et articles (pages générées par outils/blog.ps1)
   ========================================================= */
.journal { padding-top: clamp(48px, 6vw, 96px); }
.jf { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: var(--section-y); }
.jf__media { aspect-ratio: 16 / 10; }
.jf__media img { transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s; }
.jf:hover .jf__media img { transform: scale(1); filter: grayscale(0) contrast(1.05) brightness(.85); }
.jf__text { display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.jf__meta { font-size: 12px; color: var(--color-fog-light); }
.jf__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 4vw, 60px); line-height: 1.04; letter-spacing: -0.025em; }
.jf .link-arrow { align-self: flex-start; }
.journal__head { margin-bottom: 32px; }
.journal__list .xp__row a { grid-template-columns: 120px minmax(0, 1fr) 190px 40px; }
.journal__list .xp__title { font-size: clamp(20px, 2vw, 30px); }
.journal__empty { color: var(--color-steel-mid); font-size: 12px; padding: 28px 0; border-top: 1px solid var(--color-graphite-border); }

.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--color-ember-orange); transform: scaleX(0); transform-origin: left; }

.art-hero { padding: clamp(170px, 22vh, 220px) 0 clamp(32px, 4vw, 56px); }
.art-hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -0.03em; margin: 24px 0 24px; max-width: 18ch; }
.art-hero__lead { color: var(--color-fog-light); font-size: clamp(17px, 1.4vw, 20px); max-width: 680px; margin-bottom: 32px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 14px 0; border-top: 1px solid var(--color-graphite-border); border-bottom: 1px solid var(--color-graphite-border); font-size: 12px; color: var(--color-fog-light); }
.art-meta a { color: var(--color-bone-white); }
.art-meta a:hover { color: var(--color-ember-orange); }
.art-cover { height: clamp(260px, 56vh, 640px); }

.art { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section-y); align-items: start; }
.art__aside { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.art__aside-h { color: var(--color-steel-mid); }
.art__toc { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--color-graphite-border); }
.art__toc a { color: var(--color-fog-light); display: flex; gap: 10px; line-height: 1.35; transition: color .3s; }
.art__toc a span { color: var(--color-steel-mid); transition: color .3s; }
.art__toc a:hover, .art__toc a.is-active { color: var(--color-bone-white); }
.art__toc a.is-active span, .art__toc a:hover span { color: var(--color-ember-orange); }
.art__back { color: var(--color-fog-light); padding-top: 4px; }
.art__back:hover { color: var(--color-ember-orange); }
.art__body { max-width: 720px; }
.art__body > p, .art__body li { color: var(--color-fog-light); font-size: 18px; line-height: 1.7; }
.art__body > p + p { margin-top: 20px; }
.art__body .art__lead { color: var(--color-bone-white); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; }
.art__body .art__lead::first-letter { float: left; font-family: var(--font-display); font-weight: 300; font-size: 4.2em; line-height: .82; margin: .06em .12em 0 0; color: var(--color-ember-orange); }
.art__body h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -0.02em; margin: 56px 0 20px; padding-top: 32px; border-top: 1px solid var(--color-graphite-border); display: flex; gap: 16px; align-items: baseline; scroll-margin-top: 40px; }
.art__body h2 .mono { color: var(--color-ember-orange); font-size: 12px; }
.art__body h3 { font-size: 20px; font-weight: 400; margin: 32px 0 12px; }
.art__body ul { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; }
.art__body li { padding-left: 22px; position: relative; }
.art__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--color-ember-orange); }
.art__body a { color: var(--color-bone-white); text-decoration: underline; text-decoration-color: var(--color-ember-orange); text-underline-offset: 4px; }
.art__body a:hover { color: var(--color-ember-orange); }
.art__body strong { color: var(--color-bone-white); font-weight: 400; }
.art__quote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--color-ember-orange); font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -0.015em; color: var(--color-bone-white); }
.art__fig { margin: 40px 0; }
.art__fig img { width: 100%; filter: grayscale(1) contrast(1.05); }
.art__fig figcaption { margin-top: 12px; font-size: 12px; color: var(--color-steel-mid); }
.art__sign { margin-top: 48px; font-size: 12px; color: var(--color-steel-mid); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .split, .stack__grid, .contact-grid, .duo, .done__grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .order__bar { padding: 16px 20px; }
  .order__body { padding: 24px 20px 40px; }
  .order__head { grid-template-columns: 110px 1fr; gap: 18px; }
  .done { padding-top: 140px; }
  .split__aside { position: static; }
  .stack__media { display: none; }
  .stack__item, .stack__item:last-child { min-height: 0; padding: 40px 0; }
  .stack__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--color-graphite-border); margin-bottom: 8px; }
  .stack__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.75); }
  .steps { grid-template-columns: 1fr; padding-top: 0; gap: 40px; }
  .steps__line { display: none; }
  .step { padding: 0 0 0 28px; }
  .step::before { top: 4px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .kpi + .kpi { padding-left: 12px; }
  .next__inner { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .hero--page .hero__inner { padding-bottom: 104px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 16px 32px 16px; border-bottom: 1px solid var(--color-graphite-border); gap: 32px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .entities { height: auto; min-height: 0; padding-top: var(--section-y); }
  .entities__head .section-head { margin-bottom: 48px; }
  .entities__viewport { overflow: visible; }
  .entities__track { flex-direction: column; width: 100%; height: auto; padding: 0 var(--gutter) var(--section-y); }
  .entity { width: 100%; height: auto; grid-template-columns: 1fr; }
  .entity__media { aspect-ratio: 16/10; border-right: 0; border-bottom: 1px solid var(--color-graphite-border); }
  .entity__media img { left: 0; width: 100%; top: -10%; height: 120%; }
  .entities__progress { display: none; }
  .xp__row a { grid-template-columns: 40px 1fr; gap: 8px 16px; padding: 22px 0; }
  .xp__items { grid-column: 2; }
  .xp__arrow { display: none; }
  .journal__list .xp__row a { grid-template-columns: 1fr; gap: 8px; }
  .journal__list .xp__items { grid-column: 1; }
  .jf { grid-template-columns: 1fr; }
  .art { grid-template-columns: 1fr; padding-top: 40px; }
  .art__aside { position: static; }
  .art__aside:not(:has(.art__toc a)) { display: none; }
  .art__body > p, .art__body li { font-size: 17px; }
  .xp__row:hover a { padding-left: 12px; padding-right: 12px; }
  .tl__line { left: 3px; }
  .tl__item { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 40px 32px; }
  .tl__content { padding-left: 0; }
  .tl__content::before { left: -32px; }
  .site__grid { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; }
  .cta__card + .cta__card { border-left: 0; border-top: 1px solid var(--color-graphite-border); }
  .cta__card { min-height: 300px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .eco__grid, .footer__logos { grid-template-columns: 1fr 1fr; }
  .eco__cell:nth-child(3) { border-left: 0; }
  .eco__cell:nth-child(n+3) { border-top: 1px solid var(--color-graphite-border); }
  .footer__logos a:nth-child(3) { border-left: 0; }
  .footer__logos a:nth-child(n+3) { border-top: 1px solid var(--color-graphite-border); }
  .eco__logo img { opacity: .8; }
  .eco__label b { opacity: 1; transform: none; }
  /* 2 colonnes : légendes de 2 ou 3 lignes → hauteur fixe de 3 lignes, pour aligner les logos d'une même rangée */
  .eco__label { min-height: 4.2em; align-items: flex-start; }
  .hero__meta .hm:nth-child(2) { display: none; }
}

/* Titres de section : le numéro ne doit jamais être poussé hors de l'écran */
.section-head > :first-child { min-width: 0; }
.section-head .counter { flex-shrink: 0; }
.done__grid > * { min-width: 0; }

@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .announce { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hide-sm { display: none; }
  .nav { padding: 20px var(--gutter); }
  .hero { padding-top: 130px; }
  .hero__inner { padding-bottom: 96px; }
  .hero__title { letter-spacing: -0.03em; margin-bottom: 32px; }
  .hero__sub { font-size: 16px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__meta { font-size: 11px; }
  .hero__meta .hm:nth-child(3) { display: none; }
  .loader__bottom { grid-template-columns: 1fr 1fr; }
  .loader__logo { padding: 16px 12px 16px 0; }
  .loader__logo + .loader__logo { padding-left: 12px; }
  .loader__logo:nth-child(3) { border-left: 0; padding-left: 0; }
  .loader__logo:nth-child(n+3) { border-top: 1px solid var(--color-graphite-border); }
  .nav__logos { width: 76px; height: 34px; }
  .nav__logo-txt { display: none; }
  .nav__logo-sep { display: none; }
  .eco__cell { min-height: 200px; padding: 16px; gap: 20px; }
  .eco__label { font-size: 11px; }
  .eco__head span:last-child { display: none; }
  .stat__num { font-size: 44px; }
  .kpi b { font-size: 30px; }
  .prod { padding: 12px 12px 16px; gap: 12px; }
  .prod__name { font-size: 18px; }
  .prod__cta b { opacity: 1; transform: none; }
  .shop-filter { padding: 8px 10px; font-size: 12px; }
  .opts[style*="--cols:2"] { grid-template-columns: 1fr 1fr; }
  .kpi > span { font-size: 10px; }
  .kpi { padding-right: 8px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
  .contact-big__row { flex-direction: column; align-items: flex-start; }
  .statement { clip-path: inset(6% 3% 6% 3%); }
}

/* Accueil - cartes des entités sur écrans peu hauts (ordinateurs portables) */
@media (min-width: 901px) and (max-height: 900px) {
  .entities { padding-top: 40px; }
  .entities__head .section-head { margin-bottom: 8px; }
  .entities__head .h-section { font-size: clamp(30px, 3.4vw, 48px); }
  .entities__progress { margin-bottom: 20px; }
  .entities__track { padding-bottom: 24px; }
  .entity__body { padding: 24px 28px; gap: 10px; }
  .entity__top { padding-bottom: 4px; }
  .entity__logo { height: clamp(44px, 8vh, 72px); }
  .entity__desc { font-size: 14px; line-height: 1.4; }
  .entity__list { gap: 6px; }
  .entity__list li { padding: 4px 8px; font-size: 11px; }
  .entity .link-arrow { margin-top: 0; }
}
@media (min-width: 901px) and (max-height: 740px) {
  .entity__tag { display: none; }
  .entity__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Très petits téléphones (≤ 380 px) */
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .h-section { font-size: 32px; }
  .hero__title { font-size: 40px; }
  .entities__head .h-section { font-size: 32px; }
  .done__title { font-size: 40px; }
  .contact-big__mail { font-size: 32px; }
  .stack__title { font-size: 28px; }
  .next__arrow { font-size: 18px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   THÈME CLAIR (bouton lune/soleil, choix mémorisé)
   Le thème sombre reste le thème par défaut.
   ========================================================= */
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 42px; height: 42px; border: 1px solid var(--color-graphite-border); color: var(--color-bone-white);
  overflow: hidden; transition: border-color .4s var(--ease), color .4s var(--ease);
}
.theme-toggle:hover { border-color: var(--color-ember-orange); color: var(--color-ember-orange); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle__moon { transform: translateY(150%) rotate(-40deg); opacity: 0; }
[data-theme="light"] .theme-toggle__sun { transform: translateY(-150%) rotate(40deg); opacity: 0; }
[data-theme="light"] .theme-toggle__moon { transform: none; opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 12px; }
/* Écrans 1281-1439 px : le numéro de téléphone laisse la place au bouton de thème */
@media (min-width: 1281px) and (max-width: 1439px) { .nav__cta .btn--ghost { display: none; } }

/* Transition douce lors du changement de thème */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, filter .45s ease !important;
}

[data-theme="light"] {
  --color-ember-orange: #bf300c;   /* orange assombri : contraste AA sur fond clair */
  --color-void-black: #f4f3f0;
  --color-carbon: #e8e6e1;
  --color-graphite-border: #cfccc5;
  --color-steel-mid: #66635e;
  --color-fog-light: #3b3936;
  --color-bone-white: #111111;
  --on-accent: #ffffff;
  --bg-rgb: 244, 243, 240;
  --fg-rgb: 17, 17, 17;
  color-scheme: light;
}

/* Logos : version noire d'origine au lieu de la version blanche */
[data-theme="light"] .logo-w { filter: none; }
[data-theme="light"] .logo-occ, [data-theme="light"] .nav__logos-occ { filter: brightness(0); }

/* Photos : noir & blanc lumineux plutôt qu'assombri */
[data-theme="light"] .hero__img { filter: grayscale(1) contrast(1.05) brightness(1.08); }
[data-theme="light"] .hero__veil {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),.85) 0%, rgba(var(--bg-rgb),.45) 35%, rgba(var(--bg-rgb),.78) 70%, rgb(var(--bg-rgb)) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb),.85) 0%, rgba(var(--bg-rgb),0) 70%);
  background-color: rgba(var(--bg-rgb), var(--veil, 0));
}
[data-theme="light"] :is(.entity__media img, .pmask img, .stack__img, .stack__thumb img) { filter: grayscale(1) contrast(1.05) brightness(1.02); }
[data-theme="light"] .entity:hover .entity__media img, [data-theme="light"] .jf:hover .jf__media img { filter: grayscale(.2) contrast(1.02) brightness(1); }
[data-theme="light"] .ref__media img { filter: grayscale(1) contrast(1.05) brightness(1.08); }
[data-theme="light"] .ref__media::after { background: linear-gradient(180deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb),.62) 30%, rgba(var(--bg-rgb),.62) 70%, rgb(var(--bg-rgb)) 100%); }
[data-theme="light"] .next__bg img { filter: grayscale(1) brightness(1.1); }
[data-theme="light"] .next:hover .next__bg { opacity: .3; }
[data-theme="light"] .map iframe { filter: grayscale(1) contrast(.95); }
[data-theme="light"] .drawer__overlay { background: rgba(17, 17, 17, .55); }

/* E-shop : studio photo clair */
[data-theme="light"] :is(.prod__stage, .order__stage, .done__stage) {
  background: #e9e7e3 radial-gradient(ellipse 58% 52% at 50% 46%, #ffffff 0%, #f3f2ef 42%, #e4e2dd 78%, #d9d6d0 100%);
}
[data-theme="light"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111111' stroke-width='1.2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

/* Animations de couleur au défilement (pilotées par la variable --p, 0 → 1) */
.sw { color: color-mix(in srgb, currentColor calc(var(--p, 1) * 100%), var(--color-steel-mid)); }
.tl__year:not(.accent) { color: color-mix(in srgb, var(--color-bone-white) calc(var(--p, 1) * 100%), var(--color-graphite-border)); }