/* ==========================================================================
   GARAGE DES REMPARTS · fiche atelier
   DA : bleu pétrole d'atelier, gris acier, orange outillage, blanc technique
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Couleur (OKLCH) */
  --bg:        oklch(0.17 0.028 235);
  --bg-deep:   oklch(0.135 0.028 237);
  --surface:   oklch(0.205 0.03 233);
  --surface-2: oklch(0.24 0.032 231);
  --fg:        oklch(0.95 0.008 220);
  --muted:     oklch(0.73 0.022 226);
  --accent:    oklch(0.73 0.155 55);
  --accent-hi: oklch(0.79 0.15 60);
  --accent-ink: oklch(0.17 0.035 250);
  --danger:    oklch(0.72 0.14 32);
  --bp-strong: oklch(0.86 0.035 225);
  --bp-line:   oklch(0.71 0.05 228);
  --line: color-mix(in oklch, var(--fg) 13%, transparent);
  --line-soft: color-mix(in oklch, var(--fg) 8%, transparent);
  --ring: var(--accent);

  /* Typo : échelle fluide */
  --step--1: clamp(0.8rem, 0.77rem + 0.16vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.3vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.55vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.95vw, 2.05rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.8vw, 2.85rem);
  --step-4:  clamp(2.35rem, 1.8rem + 2.9vw, 3.9rem);
  --step-5:  clamp(2.8rem, 2.02rem + 4.1vw, 5rem);

  --font-sans: "Chakra Petch", "Avenir Next", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Rythme */
  --radius: 12px;
  --radius-s: 8px;
  --container: 1160px;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --header-h: 4.5rem;

  /* Motion : un seul easing signature */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 200ms;
  --dur-2: 450ms;
  --dur-3: 800ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.no-scroll { overflow: hidden; }

body {
  background:
    radial-gradient(120% 70% at 85% -10%, color-mix(in oklch, var(--accent) 7%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 26rem);
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100svh;
}

/* Grain technique global */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }

p { text-wrap: pretty; }

h1, h2, h3 {
  line-height: 1.12;
  text-wrap: balance;
  font-weight: 600;
}

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

/* Scrollbar assortie */
html { scrollbar-color: color-mix(in oklch, var(--fg) 25%, var(--bg)) var(--bg-deep); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--fg) 22%, var(--bg));
  border: 3px solid var(--bg-deep);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in oklch, var(--fg) 35%, var(--bg)); }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-hidden { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-1) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tag-tick { color: var(--muted); }

.link {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left 100% / 0% 1.5px;
  transition: background-size var(--dur-2) var(--ease-out), color var(--dur-1);
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 80ms; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--accent) 45%, transparent),
    0 2px 16px color-mix(in oklch, var(--accent) 22%, transparent);
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--accent) 60%, transparent),
    0 6px 28px color-mix(in oklch, var(--accent) 32%, transparent);
}
.btn-primary:disabled {
  background: color-mix(in oklch, var(--accent) 32%, var(--surface));
  color: color-mix(in oklch, var(--accent-ink) 55%, var(--muted));
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border: 1px solid color-mix(in oklch, var(--fg) 25%, transparent);
  color: var(--fg);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    transform var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled {
  background: color-mix(in oklch, var(--bg-deep) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  transition: transform var(--dur-2) var(--ease-out);
}
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  padding: 0;
}
.nav-link {
  display: inline-block;
  padding: 0.35rem 0.1rem;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--muted);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left calc(100% - 2px) / 0% 2px;
  transition: color var(--dur-1), background-size var(--dur-2) var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--fg); background-size: 100% 2px; }
.nav-link[aria-current="true"] { color: var(--fg); background-size: 100% 2px; }

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  white-space: nowrap;
  transition: border-color var(--dur-1), background var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.header-tel .icon { width: 16px; height: 16px; color: var(--accent); }
.header-tel:hover {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color var(--dur-1);
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.menu-bar {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transition: background var(--dur-1);
}
.menu-bar::before, .menu-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transition: transform var(--dur-2) var(--ease-out);
}
.menu-bar::before { top: -6px; }
.menu-bar::after { top: 6px; }
.header.nav-open .menu-bar { background: transparent; }
.header.nav-open .menu-bar::before { transform: translateY(6px) rotate(45deg); }
.header.nav-open .menu-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Nav mobile plein écran */
@media (max-width: 859.98px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    background: color-mix(in oklch, var(--bg-deep) 94%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    padding: clamp(1.5rem, 6vw, 3rem) var(--gutter);
  }
  .header.nav-open .nav { display: block; }
  .header.nav-open {
    background: var(--bg-deep);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li { border-bottom: 1px solid var(--line-soft); }
  .nav-link {
    display: block;
    padding: 1.1rem 0.25rem;
    font-size: var(--step-2);
    font-weight: 600;
    background-position: left 100%;
  }
}
@media (max-width: 559.98px) {
  .header-tel span, .header-tel { font-size: 0.82rem; }
  .header-tel { padding-inline: 0.7rem; }
  .header-inner { gap: 0.75rem; }
}
@media (max-width: 419.98px) {
  .header-tel { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vh, 5.5rem));
  overflow: clip;
  isolation: isolate;
}

/* Grille de points d'atelier, évaporée vers les bords */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(color-mix(in oklch, var(--bp-line) 30%, transparent) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, black 25%, transparent 78%);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
}

.hero-title {
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-block: 1.1rem 1.4rem;
}
.hero-title .accent { color: var(--accent); font-weight: inherit; }

.hero-lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-proof {
  margin-top: 1.6rem;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Entrée orchestrée du hero */
@media (prefers-reduced-motion: no-preference) {
  .stage > :not(.hero-title) {
    opacity: 0;
    transform: translateY(22px);
    animation: enter var(--dur-3) var(--ease-out) both;
  }
  .stage > :nth-child(1) { animation-delay: 0.05s; }
  .stage > :nth-child(3) { animation-delay: 0.42s; }
  .stage > :nth-child(4) { animation-delay: 0.54s; }
  .stage > :nth-child(5) { animation-delay: 0.68s; }

  .hero-title .line { display: block; overflow: clip; }
  .hero-title .line > span {
    display: block;
    transform: translateY(112%);
    animation: line-up 0.9s var(--ease-out) both;
  }
  .hero-title .line:nth-child(1) > span { animation-delay: 0.14s; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.24s; }
}
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }

/* ---------- La signature : blueprint ---------- */
.hero-visual { min-width: 0; }

.bp {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 50px oklch(0 0 0 / 0.35));
}

.bp path, .bp circle, .bp line, .bp rect {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.bp-frame  { stroke: color-mix(in oklch, var(--fg) 22%, transparent); stroke-width: 1; }
.bp-corner { stroke: color-mix(in oklch, var(--fg) 38%, transparent); stroke-width: 1; }
.bp-ground { stroke: color-mix(in oklch, var(--fg) 30%, transparent); stroke-width: 1; }
.bp-body   { stroke: var(--bp-strong); stroke-width: 1.7; }
.bp-wheel  { stroke: var(--bp-strong); stroke-width: 1.4; }
.bp-line   { stroke: var(--bp-line); stroke-width: 1.1; }
.bp-fine   { stroke: color-mix(in oklch, var(--bp-line) 70%, transparent); stroke-width: 0.9; }
.bp-cross  { stroke: var(--accent); stroke-width: 1.1; }
.bp-cote   { stroke: color-mix(in oklch, var(--accent) 85%, transparent); stroke-width: 1; }

.bp text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
}
.bp-text { fill: var(--muted); }
.bp-text-dim { fill: color-mix(in oklch, var(--fg) 42%, transparent); }
.bp-text-cote { fill: var(--accent); font-size: 10.5px; }
.bp-text-v {
  transform: rotate(-90deg);
  transform-origin: 632px 252px;
  transform-box: view-box;
}

/* Le dessin se trace au chargement ; reduced-motion : dessiné d'emblée */
@media (prefers-reduced-motion: no-preference) {
  .bp .d {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: bp-draw 1.15s var(--ease-out) var(--d, 0s) both;
  }
  .bp .t {
    opacity: 0;
    animation: bp-fade 0.7s var(--ease-out) var(--d, 0s) both;
  }
}
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
@keyframes bp-fade { to { opacity: 1; } }

/* Dérive très légère au scroll (enrichissement progressif) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-parallax] {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes drift {
      from { transform: translateY(2.5%); }
      to { transform: translateY(-2.5%); }
    }
  }
}

/* ---------- Marquee toutes marques ---------- */
.marquee {
  overflow: clip;
  border-block: 1px solid var(--line-soft);
  padding-block: 0.85rem;
  mask-image: linear-gradient(90deg, transparent, black 10% 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10% 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--muted) 72%, transparent);
}
.marquee-track .dot { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

.section-alt {
  background: color-mix(in oklch, var(--bg-deep) 55%, var(--bg));
  border-block: 1px solid var(--line-soft);
}

.section-head { max-width: 62ch; }

.section-title {
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-block: 0.9rem 1rem;
}

.section-lede {
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.65;
}

/* ---------- Cartes ---------- */
.card {
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--surface-2) 55%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.28);
}

/* ---------- Onglets véhicule ---------- */
.fiche { margin-top: clamp(2rem, 5vw, 3.25rem); overflow: clip; }

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: 1 0 auto;
  padding: 1.05rem clamp(1rem, 3vw, 1.8rem) 0.95rem;
  font-weight: 600;
  font-size: var(--step-0);
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur-1), background var(--dur-1);
}
.tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.tab:hover { color: var(--fg); background: color-mix(in oklch, var(--fg) 4%, transparent); }
.tab[aria-selected="true"] { color: var(--fg); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:focus-visible { outline-offset: -3px; }

@media (max-width: 479.98px) {
  .tab {
    padding-inline: 0.7rem;
    font-size: 0.88rem;
  }
}

.panel { padding: clamp(1.25rem, 3.5vw, 2.25rem); }

@media (prefers-reduced-motion: no-preference) {
  .panel-in { animation: panel-rise var(--dur-2) var(--ease-out) both; }
}
@keyframes panel-rise {
  from { opacity: 0; transform: translateY(10px); }
}

.panel-note {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.services { list-style: none; margin: 0; padding: 0; }

.service {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.15rem 0.65rem;
  border-top: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  transition: background var(--dur-1);
}
.service:hover { background: color-mix(in oklch, var(--fg) 4%, transparent); }

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--accent);
  transition: border-color var(--dur-1);
}
.service:hover .service-icon { border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
.service-icon .icon { width: 22px; height: 22px; }

.service-body { display: grid; gap: 0.2rem; min-width: 0; }
.service-name { font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.service-desc { color: var(--muted); font-size: var(--step--1); line-height: 1.55; max-width: 48ch; }

.service-price {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
  text-align: right;
}
.price {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.price-note {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

@media (max-width: 619.98px) {
  .service { grid-template-columns: 42px 1fr; row-gap: 0.5rem; }
  .service-icon { width: 42px; height: 42px; align-self: start; }
  .service-price { grid-column: 2; justify-items: start; text-align: left; }
}

.fiche-footnote {
  padding: 1.1rem clamp(1.25rem, 3.5vw, 2.25rem) 1.35rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* ---------- Engagements ---------- */
.pledges {
  display: grid;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 720px) { .pledges { grid-template-columns: repeat(3, 1fr); } }

.pledge, .contact-item {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 55%, transparent);
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.pledge:hover, .contact-item:hover {
  border-color: color-mix(in oklch, var(--accent) 40%, transparent);
  transform: translateY(-3px);
}

.pledge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent);
  border-radius: var(--radius-s);
  color: var(--accent);
}

.pledge-title {
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.pledge-text {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* ---------- Devis ---------- */
.devis-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 980px) {
  .devis-grid { grid-template-columns: 1fr 1.05fr; }
  .devis-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.checklist {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  display: grid;
  gap: 0.7rem;
}
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--fg);
  font-size: var(--step-0);
}
.checklist .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  transform: translateY(2px);
}

.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.25rem; }

.field-row {
  display: grid;
  gap: 0 1.1rem;
}
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.field .optional {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  font: inherit;
  color: var(--fg);
  background: color-mix(in oklch, var(--bg-deep) 55%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color var(--dur-1), background var(--dur-1);
}
.field input:hover, .field select:hover { border-color: color-mix(in oklch, var(--fg) 28%, transparent); }
.field input:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 0;
  border-color: var(--accent);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; cursor: pointer; }

/* Plaque d'immatriculation */
.plate {
  display: flex;
  border-radius: var(--radius-s);
  overflow: clip;
  border: 1px solid var(--line);
  transition: border-color var(--dur-1), outline var(--dur-1);
}
.plate:focus-within {
  outline: 2px solid var(--ring);
  border-color: var(--accent);
}
.plate-band {
  display: grid;
  place-items: center;
  min-width: 2.3rem;
  padding-inline: 0.35rem;
  background: oklch(0.4 0.16 262);
  color: white;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: center;
}
.plate-stars {
  display: block;
  font-size: 0.7rem;
  color: oklch(0.85 0.14 95);
  letter-spacing: 0.1em;
}
.plate-input {
  flex: 1;
  min-width: 0;
  min-height: 3.2rem;
  padding: 0.6rem 0.75rem;
  border: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: oklch(0.95 0.005 230);
  color: oklch(0.22 0.02 250);
}
.plate-input:focus-visible { outline: none; }
.plate-input::placeholder { color: oklch(0.62 0.01 240); }

.err {
  color: var(--danger);
  font-size: var(--step--1);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
}

/* États de confirmation (démo) */
.success {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
}
.success:focus-visible { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.2rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 12%, transparent);
}
.success-icon .icon { width: 26px; height: 26px; }
.success-title { font-size: var(--step-2); margin-bottom: 0.7rem; }
.success-demo {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--muted);
  line-height: 1.6;
}
.success-recap {
  margin-block: 1.1rem 1.5rem;
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

/* ---------- Rendez-vous ---------- */
.rdv-card {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.rdv-block + .rdv-block { margin-top: 1.9rem; }

.rdv-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.rdv-label .icon { width: 17px; height: 17px; }

.rdv-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.day-btn {
  display: grid;
  gap: 0.05rem;
  justify-items: center;
  min-width: 5.4rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: color-mix(in oklch, var(--bg-deep) 40%, var(--surface));
  transition: border-color var(--dur-1), background var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.day-btn:hover { border-color: color-mix(in oklch, var(--accent) 55%, transparent); transform: translateY(-2px); }
.day-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 13%, var(--surface));
}
.day-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.day-btn[aria-pressed="true"] .day-name { color: var(--accent); }
.day-date { font-weight: 600; font-size: 0.98rem; white-space: nowrap; }

.rdv-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.6rem;
}

.slot-btn {
  min-height: 2.9rem;
  padding: 0.55rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: color-mix(in oklch, var(--bg-deep) 40%, var(--surface));
  transition: border-color var(--dur-1), background var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.slot-btn:not(:disabled):hover {
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  transform: translateY(-2px);
}
.slot-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.slot-btn:disabled {
  color: color-mix(in oklch, var(--muted) 55%, transparent);
  text-decoration: line-through;
  cursor: not-allowed;
  background: transparent;
  border-style: dashed;
}

.rdv-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.legend-libre { border: 1.5px solid var(--accent); }
.legend-complet {
  margin-left: 1rem;
  border: 1.5px dashed color-mix(in oklch, var(--fg) 30%, transparent);
}

.rdv-confirm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.rdv-summary {
  color: var(--muted);
  font-size: var(--step-0);
}
.rdv-summary strong { color: var(--fg); }

.rdv-card .form-note { text-align: left; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

.contact-mail { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  overflow: clip;
}

.ramparts {
  display: block;
  width: min(1200px, 100%);
  margin-inline: auto;
  height: auto;
  color: color-mix(in oklch, var(--bp-line) 42%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.75rem 2rem;
}

.footer-brand .brand-name { font-size: 1rem; }
.footer-tagline {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-nav .link {
  color: var(--muted);
  font-size: var(--step--1);
}
.footer-nav .link:hover { color: var(--fg); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem 1.8rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: var(--step--1);
}
.footer-brnsg {
  color: var(--accent);
  font-weight: 600;
}
.footer-brnsg:hover { color: var(--accent-hi); }

/* ---------- Reveals au scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }

  .js [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s var(--ease-out) calc(var(--i, 0) * 80ms),
      transform 0.7s var(--ease-out) calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal-group].in > * { opacity: 1; transform: none; }
}

/* ---------- Contrat reduced-motion global ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
