/* =========================================================
   AK Motors — feuille de style
   Noir profond + or, comme la façade illuminée du centre.
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-2: #0c0c10;
  --bg-3: #131318;
  --ink: #f3efe6;
  --muted: #a7a196;
  --dim: #6f6a61;
  --gold: #d9ac52;
  --gold-2: #f6dc93;
  --gold-3: #9a6a24;
  --line: rgba(217, 172, 82, 0.24);
  --line-soft: rgba(255, 255, 255, 0.08);
  --grad-gold: linear-gradient(100deg, #8c5d1e 0%, #d9ac52 26%, #fde9aa 47%, #d4a447 68%, #86561a 100%);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Archivo", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* grain photographique très léger */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 750; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--gold); color: #120d04; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* pictogrammes (svg > use) */
svg:has(> use) {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* texte doré animé */
.gold-text {
  background: var(--grad-gold);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 220% center; } }

/* ---------- lecture au scroll (comme leadmagnet) ---------- */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.read-progress span {
  display: block;
  height: 100%;
  background: var(--grad-gold);
  box-shadow: 0 0 10px rgba(217, 172, 82, 0.6);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
/* titres : chaque mot est peint en blanc (ou en or) de gauche à droite, piloté par --p (100 → 0) */
.fill-title.is-split .gold-text { background: none; animation: none; }
.fill-title.is-split .fw {
  --fill: linear-gradient(var(--ink), var(--ink));
  background-image: linear-gradient(to right, transparent 50%, #3b3935 50%), var(--fill);
  background-size: 200% 100%, 100% 100%;
  background-position: calc(var(--p, 100) * 1%) 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fill-title.is-split .gold-text .fw { --fill: var(--grad-gold); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow:not(:has(svg))::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-position 0.8s var(--ease), border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn--gold {
  background: var(--grad-gold);
  background-size: 200% auto;
  color: #140e04;
  box-shadow: 0 12px 34px -12px rgba(217, 172, 82, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--gold:hover { background-position: 100% center; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(217, 172, 82, 0.85); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.18); color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; padding-block: 17px; }
.btn--icon { padding: 11px 13px; }
.btn svg:has(> use) { transition: transform 0.4s var(--ease); }
.btn:hover svg:has(> use) { transform: translateX(3px); }

/* ---------- chargement ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 50%, #141016 0%, var(--bg) 70%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__wheel { width: 96px; height: 96px; animation: spin 3.2s linear infinite; filter: drop-shadow(0 0 12px rgba(217, 172, 82, 0.5)); }
.loader__wheel :is(circle, path) { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.loader__wheel .thin { stroke-opacity: 0.45; }
.loader__logo { width: 210px; }
.loader__bar { width: 200px; height: 1px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.loader__pct { font-size: 11px; color: var(--muted); letter-spacing: 0.2em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scène 3D ---------- */
.stage { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 4, 6, 0.85) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.55) 0%, transparent 18%, transparent 78%, rgba(7, 7, 10, 0.9) 100%);
}
.stage.is-fallback {
  background: url("../assets/img/facade.jpg") center / cover no-repeat;
}
.stage.is-fallback canvas { display: none; }

.hud { position: absolute; inset: 0; }
.hud__tag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 10, 13, 0.9);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.hud__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 12px 3px rgba(246, 220, 147, 0.7);
}
.hud__tag span { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.hud__tag b { color: var(--gold-2); font-weight: 700; }

/* ---------- en-tête ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  transition: background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 7, 10, 0.92);
  border-bottom-color: var(--line-soft);
}
.header__logo img { height: 34px; width: auto; }
.header__nav { display: flex; gap: 30px; margin-inline: auto; }
.header__nav a { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; position: relative; transition: color 0.3s; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after { transform: scaleX(1); }

.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(7, 7, 10, 0.5); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  background: rgba(7, 7, 10, 0.97);
  backdrop-filter: blur(20px);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { font-family: var(--display); font-size: 34px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- contenu ---------- */
main { position: relative; z-index: 1; }
.experience { position: relative; }

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 150px;
}
.hero__content { max-width: 660px; }
.hero__title {
  margin: 22px 0 26px;
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: 0.96;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.025em;
}
.hero__title .line { display: block; }
.hero__lead { max-width: 520px; font-size: 18px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta {
  position: absolute;
  left: var(--gutter);
  bottom: 44px;
  display: flex;
  gap: 40px;
}
.hero__meta li { display: flex; align-items: center; gap: 14px; padding-left: 16px; border-left: 1px solid var(--line); }
.hero__meta b { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--gold-2); font-stretch: 110%; }
.hero__meta svg:has(> use) { width: 28px; height: 28px; color: var(--gold-2); }
.hero__meta span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--gold-2);
  box-shadow: 0 0 10px var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

/* panneaux services */
.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 128px;
}
.panel--left { justify-content: flex-start; }
.panel--right { justify-content: flex-end; }

.card {
  position: relative;
  width: min(470px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 17, 21, 0.94), rgba(9, 9, 11, 0.96));
  will-change: transform, opacity;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 90px;
  height: 1px;
  background: var(--grad-gold);
  box-shadow: 0 0 16px 1px rgba(217, 172, 82, 0.7);
}
.card__head { display: flex; gap: 18px; align-items: flex-start; }
.card__num {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 800;
  line-height: 0.82;
  font-stretch: 115%;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.card h3 { margin-top: 8px; font-size: 27px; line-height: 1.08; font-stretch: 106%; letter-spacing: -0.01em; }
.card > p { color: var(--muted); font-size: 15.5px; }
.card .eyebrow svg:has(> use) { width: 16px; height: 16px; }

.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 16px; }
.ticks li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.ticks svg:has(> use) { color: var(--gold); margin-top: 1px; }

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 4px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--gold-2);
  border-bottom: 1px solid var(--line);
  transition: gap 0.4s var(--ease), border-color 0.3s;
}
.card__cta:hover { gap: 14px; border-color: var(--gold); }

/* ---------- illustrations blueprint ---------- */
.bp-wrap {
  margin: 20px 0 18px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background:
    linear-gradient(rgba(217, 172, 82, 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(217, 172, 82, 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(5, 5, 7, 0.65);
}
.bp { width: 100%; height: auto; max-height: 190px; display: block; overflow: visible; }
.bp * { vector-effect: non-scaling-stroke; }
.bp :is(circle, rect, path, line, ellipse, polyline, polygon) {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp .thin { stroke-opacity: 0.45; }
.bp .dash { stroke-dasharray: 3 4; stroke-opacity: 0.5; }
.bp .dim { stroke-opacity: 0.75; stroke-width: 0.9; }
.bp .lead { stroke-opacity: 0.55; stroke-width: 0.8; }
.bp .laser { stroke: #ffe6a0; stroke-width: 1.8; }
.bp .fill { fill: rgba(217, 172, 82, 0.08); }
.bp .none { stroke: none; }
.bp-t {
  fill: var(--gold-2);
  font-family: var(--mono);
  font-size: 8.2px;
  letter-spacing: 0.08em;
}

/* ---------- rail lumineux ---------- */
.rail {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 40;
  display: flex;
  gap: 30px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rail.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.rail__line { position: absolute; left: 26px; right: 26px; top: 26px; height: 1px; background: rgba(217, 172, 82, 0.22); }
.rail__line b {
  position: absolute;
  inset: 0;
  background: var(--grad-gold);
  box-shadow: 0 0 12px 1px rgba(217, 172, 82, 0.8);
  transform: scaleX(0);
  transform-origin: left;
}
.rail a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rail a svg:has(> use) {
  width: 52px;
  height: 52px;
  padding: 14px;
  border-radius: 50%;
  border: 1px solid rgba(217, 172, 82, 0.35);
  background: #0a0a0d;
  color: var(--muted);
  stroke-width: 1.4;
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.rail a span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); transition: color 0.4s; }
.rail a.is-active svg:has(> use) {
  color: var(--gold-2);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 172, 82, 0.1), 0 0 26px 2px rgba(217, 172, 82, 0.55);
}
.rail a.is-active span { color: var(--gold-2); }
.rail a:hover svg:has(> use) { color: var(--ink); }

/* ---------- sections classiques ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(96px, 12vw, 160px) 0;
  background: var(--bg);
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.atouts { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); overflow-x: clip; }
.section__head { max-width: 780px; margin-bottom: 64px; }
.section__head h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-stretch: 108%;
}
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; }
.section__head--split > p { color: var(--muted); font-size: 17px; max-width: 460px; }

/* ---------- diagnostic express, engagements, équipements ---------- */

/* ---------- Que se passe-t-il ? ---------- */
.symptomes { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.symptomes::after {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.symptomes__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.symptomes__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.symptome {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.symptome svg:has(> use) { width: 22px; height: 22px; color: var(--gold); }
.symptome:hover { border-color: var(--line); transform: translateY(-2px); }
.symptome[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(217, 172, 82, 0.1);
  box-shadow: 0 0 24px -6px rgba(217, 172, 82, 0.6);
  color: var(--gold-2);
}
.conseil {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 15, 19, 0.9), rgba(8, 8, 10, 0.95));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.conseil::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 90px;
  height: 1px;
  background: var(--grad-gold);
  box-shadow: 0 0 16px 1px rgba(217, 172, 82, 0.7);
}
.conseil__service { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.conseil__service span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  box-shadow: 0 0 22px -2px rgba(217, 172, 82, 0.45);
}
.conseil__service span svg:has(> use) { width: 22px; height: 22px; }
.conseil__service h3 { font-size: 28px; font-stretch: 106%; }
.urgence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(240, 160, 70, 0.5);
  color: #f2b46b;
  background: rgba(240, 160, 70, 0.08);
}
.urgence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.urgence[data-level="normal"] { border-color: var(--line); color: var(--gold-2); background: rgba(217, 172, 82, 0.06); }
.conseil__texte { margin-top: 16px; color: var(--muted); }
.conseil__checks { display: grid; gap: 8px; margin-top: 18px; }
.conseil__checks li { display: flex; gap: 10px; font-size: 14.5px; }
.conseil__checks svg:has(> use) { color: var(--gold); margin-top: 2px; }
.conseil__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.conseil__note { margin-top: 18px; font-size: 12.5px; color: var(--dim); }
.conseil.is-changing { animation: conseil 0.5s var(--ease); }
@keyframes conseil { from { opacity: 0.2; transform: translateY(10px); } }

/* ---------- Pourquoi nous : engagements ---------- */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sceau { text-align: center; padding: 8px 6px; }
.sceau__badge { position: relative; width: 132px; height: 132px; margin: 0 auto 22px; }
.sceau__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sceau__badge .ring circle, .sceau__badge .ring path { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.sceau__badge .ring .thin { stroke-opacity: 0.4; }
.sceau__badge .ring text { fill: var(--gold); font-family: var(--mono); font-size: 7.6px; letter-spacing: 0.32em; }
.sceau__badge .ico {
  position: absolute;
  inset: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--dim);
  transition: color 0.6s, box-shadow 0.6s, background 0.6s;
}
.sceau__badge .ico svg:has(> use) { width: 34px; height: 34px; stroke-width: 1.3; }
.sceau .ring { opacity: 0.35; transition: opacity 0.6s, filter 0.6s; }
.sceau.is-lit .ring { opacity: 1; filter: drop-shadow(0 0 8px rgba(217, 172, 82, 0.6)); animation: tourne 30s linear infinite; }
.sceau.is-lit .ico { color: var(--gold-2); background: radial-gradient(circle, rgba(217, 172, 82, 0.18), transparent 70%); box-shadow: 0 0 30px -6px rgba(217, 172, 82, 0.6); }
@keyframes tourne { to { transform: rotate(360deg); } }
.sceau h3 { font-size: 19px; font-stretch: 104%; margin-bottom: 8px; }
.sceau p { color: var(--muted); font-size: 14.5px; max-width: 250px; margin-inline: auto; }

/* ---------- Pourquoi nous : équipements ---------- */
.equip-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 96px 0 28px; }
.equip-head h3 { font-size: clamp(26px, 3vw, 38px); font-stretch: 106%; line-height: 1.05; max-width: 560px; }
/* pile de cartes 3D : la carte de devant s'envole, la suivante avance */
.equip-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: 28px;
}
.equip-stack {
  position: relative;
  display: grid;
  padding-top: 96px;
  perspective: 1100px;
  perspective-origin: 50% 0%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.equip-stack:active { cursor: grabbing; }
.equip-stack::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -22px;
  height: 44px;
  background: radial-gradient(ellipse at center, rgba(217, 172, 82, 0.26), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.equip {
  grid-area: 1 / 1;
  justify-self: center;
  position: relative;
  width: min(460px, 100%);
  padding: 20px 20px 24px;
  border: 1px solid rgba(217, 172, 82, 0.28);
  border-radius: 22px;
  background: #131217 linear-gradient(180deg, #1a191e 0%, #111015 100%);
  box-shadow: 0 34px 60px -26px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: 50% 0%;
  transition: transform 0.85s var(--ease), border-color 0.5s, box-shadow 0.5s;
  will-change: transform;
}
.equip[data-pos="0"] { z-index: 5; border-color: rgba(217, 172, 82, 0.5); box-shadow: 0 34px 60px -26px #000, 0 0 50px -18px rgba(217, 172, 82, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.equip[data-pos="1"] { z-index: 4; transform: translate3d(0, -30px, -60px); }
.equip[data-pos="2"] { z-index: 3; transform: translate3d(0, -58px, -120px); }
.equip[data-pos="3"] { z-index: 2; transform: translate3d(0, -84px, -180px); }
.equip[data-pos="4"] { z-index: 1; transform: translate3d(0, -84px, -180px); }
/* la carte du dessus part sur le côté, puis retourne sous la pile */
.equip.is-flying {
  transform: translate3d(calc(var(--fly, -1) * 64%), 36px, 30px) rotate(calc(var(--fly, -1) * 9deg)) rotateY(calc(var(--fly, -1) * -16deg));
  transition-duration: 0.55s;
}
/* retour : la carte du dessous ressort sur le côté avant de remonter sur la pile */
.equip.is-under {
  z-index: 0;
  transform: translate3d(calc(var(--fly, -1) * 64%), 0, -120px) rotate(calc(var(--fly, -1) * 6deg));
  transition-duration: 0.45s;
}
.equip.no-anim { transition: none !important; }

.equip-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.equip-index button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: var(--bg-3);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.equip-index button:hover { color: var(--ink); border-color: var(--line); }
.equip-index button.is-active { color: #140e04; background: var(--grad-gold); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(217, 172, 82, 0.6); }
.equip-index .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--gold); }
.equip-index .is-active .num { color: #140e04; }
.equip-index .lbl { font-family: var(--display); font-size: 16px; font-stretch: 104%; line-height: 1.3; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .equip { transition-duration: 0.01s !important; }
}

.equip .bp-wrap { margin: 0 0 18px; }
.equip .bp { max-height: 190px; }
.equip__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.equip h4 { margin: 8px 0 8px; font-family: var(--display); font-size: 20px; font-stretch: 104%; }
.equip p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 1100px) {
  .engagements { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .equip-stage { grid-template-columns: minmax(0, 1fr) 236px; gap: 32px; }
  .equip-index .lbl { font-size: 15.5px; }
}
@media (max-width: 760px) {
  .symptomes__grid { grid-template-columns: 1fr; gap: 24px; }
  .symptomes__list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .symptome { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; font-size: 13.5px; line-height: 1.3; }
  .conseil { padding: 22px; }
  .equip-head { flex-direction: column; align-items: start; margin-top: 72px; }
  .equip-stage { grid-template-columns: 1fr; gap: 20px; }
  .equip-stack { padding-top: 60px; }
  .equip-index { display: flex; justify-content: center; gap: 8px; }
  .equip-index button { padding: 10px 13px; border-radius: 12px; }
  .equip-index .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sceau__badge { width: 112px; height: 112px; }
  .sceau__badge .ico { inset: 26px; }
}

/* méthode */
.methode { background: var(--bg-2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__line { position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(217, 172, 82, 0.2); }
.steps__line i {
  position: absolute;
  inset: 0;
  background: var(--grad-gold);
  box-shadow: 0 0 12px 1px rgba(217, 172, 82, 0.8);
  transform: scaleX(0);
  transform-origin: left;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid rgba(217, 172, 82, 0.4);
  background: var(--bg-2);
  color: var(--dim);
  transition: color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step__dot svg:has(> use) { width: 24px; height: 24px; stroke-width: 1.4; }
.step.is-lit .step__dot { color: var(--gold-2); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(217, 172, 82, 0.08), 0 0 28px 2px rgba(217, 172, 82, 0.5); }
.step__num { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; }
.step h3 { margin: 10px 0 8px; font-size: 21px; font-stretch: 104%; }
.step p { color: var(--muted); font-size: 15px; max-width: 250px; margin-inline: auto; }

/* atelier */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__main { grid-column: 1 / -1; }
.gallery__clip { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line-soft); background: var(--bg-3); }
.gallery__main .gallery__clip { aspect-ratio: 2 / 1; }
.gallery__item .gallery__clip { aspect-ratio: 4 / 3.2; }
.gallery__clip img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.gallery__main .gallery__clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.35), transparent 30%, transparent 70%, rgba(7, 7, 10, 0.55));
  pointer-events: none;
}
.gallery figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; font-size: 14px; color: var(--muted); }
.gallery figcaption .mono { font-size: 11px; letter-spacing: 0.16em; color: var(--gold); }

/* contact */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #050507 100%); }
.contact__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.rdv h2 { margin-top: 18px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.02em; font-stretch: 108%; }
.rdv__lead { margin-top: 18px; color: var(--muted); max-width: 540px; }

.form { display: grid; gap: 18px; margin-top: 36px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.chips legend, .field > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips legend { margin-bottom: 12px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}
.chips label:hover > span { border-color: var(--line); }
.chips input:checked + span { border-color: var(--gold); background: rgba(217, 172, 82, 0.12); color: var(--gold-2); box-shadow: 0 0 18px -4px rgba(217, 172, 82, 0.6); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.chips input:disabled + span { opacity: 0.38; border-style: dashed; cursor: not-allowed; }
.chips label:has(input:disabled) { cursor: not-allowed; }
.quand__note { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.quand__note[hidden], #autre-jour[hidden] { display: none; }
.field { display: block; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--dim); }
.field :is(input, select, textarea) {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  color-scheme: dark;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field :is(input, select, textarea)::placeholder { color: var(--dim); }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--gold); background: rgba(217, 172, 82, 0.05); box-shadow: 0 0 0 4px rgba(217, 172, 82, 0.12); }
.field.is-invalid :is(input, select, textarea) { border-color: #e2725b; }
.form__error { min-height: 0; color: #ff9a85; font-size: 14px; }
.form__error:empty { display: none; }
.form__ok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(217, 172, 82, 0.06);
  font-size: 14px;
  color: var(--ink);
}
.form__ok[hidden] { display: none; }

.info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
}
.info__map { position: relative; aspect-ratio: 16 / 10; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.info__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* carte Google en version sombre, accordée au noir et or du site */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.55) brightness(0.95) contrast(0.92);
}
.info__body { padding: 28px; }
.info__logo { width: 190px; margin-bottom: 14px; }
.info__list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.info__list li:last-child { border-bottom: 0; }
.info__list svg:has(> use) { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.info__list b, .info__list a { display: block; font-weight: 600; }
.info__list a:hover { color: var(--gold-2); }
.info__list span { font-size: 14px; color: var(--muted); }
.hours { border-collapse: collapse; font-size: 14px; }
.hours td { padding: 2px 18px 2px 0; color: var(--muted); }
.hours td:last-child { color: var(--ink); padding-right: 0; }
.info__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* pied de page */
.footer { position: relative; z-index: 2; background: #050507; border-top: 1px solid var(--line-soft); padding: 72px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__logo { width: 200px; margin-bottom: 18px; }
.footer__grid p { color: var(--muted); font-size: 14.5px; max-width: 360px; }
.footer nav, .footer__contact { display: grid; gap: 10px; align-content: start; font-size: 14.5px; color: var(--muted); }
.footer nav a:hover, .footer__contact a:hover { color: var(--gold-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--dim); }

/* WhatsApp flottant */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1fb355;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(31, 179, 85, 0.7);
  transition: transform 0.4s var(--ease);
}
.wa-float svg:has(> use) { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .info { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  .header { gap: 12px; }
  .header__logo img { height: 28px; }
  .header__cta { display: none; }
  .burger { margin-left: auto; }

  .hero { justify-content: flex-end; padding-bottom: 40px; }
  .hero__title { font-size: 40px; margin: 16px 0 18px; }
  .hero__lead { font-size: 15px; }
  .hero__actions { margin-top: 26px; gap: 10px; flex-wrap: nowrap; padding-right: 64px; }
  .hero__actions .btn { flex: 1 1 0; padding: 14px 12px; font-size: 14px; }
  .hero__actions .btn svg { display: none; }
  .hero__meta, .scroll-cue { display: none; }

  .panel { align-items: flex-end; padding: 46vh 14px 26px; }
  .card { padding: 20px; border-radius: 18px; }
  .card__num { font-size: 42px; }
  .card h3 { font-size: 22px; }
  .ticks { display: none; }
  .bp-wrap { margin: 14px 0 12px; padding: 6px 8px; }
  .bp { max-height: 150px; }
  .card > p { font-size: 14.5px; }
  .hud__tag { gap: 7px; padding: 5px 9px 5px 8px; font-size: 11.5px; }
  .hud__tag span { font-size: 9px; }
  .hud__tag[data-anchor="front"], .hud__tag[data-anchor="engine"] { display: none; }

  .rail { top: calc(var(--header-h) + 8px); bottom: auto; gap: 12px; }
  .rail__line { left: 19px; right: 19px; top: 19px; }
  .rail a svg:has(> use) { width: 38px; height: 38px; padding: 10px; }
  .rail a span { display: none; }

  .section__head { margin-bottom: 44px; }
  .section__head--split { grid-template-columns: 1fr; gap: 20px; }

  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps__line { top: 31px; bottom: 31px; left: 31px; right: auto; width: 1px; height: auto; }
  .steps__line i { transform: scaleY(0); transform-origin: top; }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; text-align: left; padding: 0; }
  .step__dot { grid-row: span 3; margin: 0; }
  .step h3 { margin: 4px 0 6px; }
  .step p { margin: 0; max-width: none; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__main .gallery__clip { aspect-ratio: 4 / 3; }
  .gallery__item:last-child { grid-column: 1 / -1; }
  .gallery__item:last-child .gallery__clip { aspect-ratio: 16 / 9; }

  .form__row { grid-template-columns: 1fr; }
  .chips label > span { padding: 9px 13px; font-size: 13.5px; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* écrans peu larges en paysage (tablette, petit portable) : le texte laisse la place à la voiture */
@media (min-width: 761px) and (max-width: 1200px) and (min-aspect-ratio: 4/5) {
  .hero__content { max-width: min(540px, 45vw); }
  .hero__title { font-size: clamp(38px, 4.8vw, 60px); }
  .hero__lead { font-size: 15.5px; max-width: 40vw; }
  .hero__meta { gap: 24px; }
  .card { width: min(430px, 46vw); padding: 24px; }
  .card h3 { font-size: 24px; }
  .bp { max-height: 160px; }
}

/* tablettes en portrait : la voiture en haut, le texte en bas, comme sur téléphone */
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .hero { justify-content: flex-end; padding-bottom: 56px; }
  .hero__content { max-width: 620px; }
  .hero__title { font-size: clamp(48px, 7.4vw, 76px); }
  .hero__meta { position: static; margin-top: 40px; }
  .scroll-cue { display: none; }
  .panel { align-items: flex-end; justify-content: center; padding: 50vh var(--gutter) 40px; }
  .card { width: min(560px, 100%); }
  .rail { top: calc(var(--header-h) + 10px); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .gold-text, .loader__wheel, .scroll-cue i::after { animation: none; }
}
