/* ==========================================================================
   REPAIRnCO — feuille de styles du site
   DA « atelier clair » : sol époxy blanc de l'atelier, graphite, orange signal.
   Ordre : tokens · base · layout · composants · sections · pages · utilitaires
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucun appel à Google Fonts) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* couleurs */
  --ground: #f1f1ee;      /* fond de page : sol de l'atelier */
  --ground-2: #e6e6e2;    /* bandeaux secondaires */
  --paper: #ffffff;       /* cartes, formulaires */
  --ink: #16181b;         /* texte principal, sections sombres */
  --ink-2: #3a3e44;       /* texte courant */
  --muted: #62676e;       /* texte secondaire */
  --line: #d8d9d4;        /* filets et bordures */
  --line-strong: #b9bbb5;
  --orange: #f86f01;      /* couleur REPAIRnCO (aplats) */
  --orange-hover: #ff8424;
  --orange-ink: #b04b00;  /* orange lisible sur fond clair */
  --orange-wash: #fdeee2; /* fond orange très léger */
  --night-2: #23262b;     /* panneaux sur fond sombre */
  --night-line: #383c43;
  --ok: #1f8a4c;
  --danger: #b42318;
  --plate-blue: #003399;  /* bande UE des plaques françaises */

  /* typographie */
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-base: 1.0625rem; /* 17 */
  --t-lg: 1.25rem;     /* 20 */
  --t-xl: clamp(1.5rem, 1.1rem + 1.3vw, 2rem);
  --t-2xl: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --t-3xl: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);

  /* espaces */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --s-section: clamp(64px, 8vw, 120px);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.005em; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: var(--orange); color: var(--ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper { background: var(--paper); }
.section--line { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--muted); font-size: var(--t-lg); line-height: 1.5; max-width: 60ch; }
.section-head--split .section-head { margin-bottom: 0; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
}
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); }
.on-dark .eyebrow { color: var(--orange); }

.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.02em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; font-stretch: 105%;
  text-decoration: none; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { --btn-bd: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: var(--orange-hover); --btn-bd: var(--orange-hover); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: #000; --btn-bd: #000; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: #5b6068; }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: var(--t-base); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); text-decoration: none; font-size: var(--t-sm);
  border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Barre d'info + en-tête ---------- */
.topbar { background: var(--ink); color: #c9ccd1; font-size: var(--t-xs); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__group { display: flex; align-items: center; gap: 22px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); letter-spacing: .02em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8a8f96; }
.status[data-open="true"]::before { background: #3ccf7a; box-shadow: 0 0 0 3px rgba(60, 207, 122, .2); }
.status[data-open="false"]::before { background: #e5664a; }
@media (max-width: 760px) { .topbar__addr { display: none; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink); text-decoration: none;
}
.nav__link:hover { background: var(--ground); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.header__cta { display: flex; gap: 10px; }
.header__cta .btn { min-height: 44px; padding: 0 18px; }
.burger {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--paper); border: 1.5px solid var(--line-strong); cursor: pointer; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, opacity .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__cta .btn--ghost-sm { display: none; }
}
@media (max-width: 960px) {
  .burger { display: grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; box-shadow: 0 24px 40px -24px rgba(22, 24, 27, .35);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 15px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--t-base); }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 14px; }
  .nav__mobile-cta { display: grid !important; gap: 10px; margin-top: 18px; }
}
.nav__mobile-cta { display: none; }

/* ---------- Plaque d'immatriculation (composant signature) ---------- */
.plate {
  display: flex; align-items: stretch; height: 64px; max-width: 420px; min-width: 0;
  background: #fff; border: 2px solid var(--ink); border-radius: 7px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(22, 24, 27, .08);
}
.plate:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.plate__band {
  flex: none; width: 42px; background: var(--plate-blue); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding-bottom: 7px;
  font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1;
}
.plate__band svg { width: 22px; height: 22px; margin-bottom: auto; margin-top: 7px; }
.plate__band--right { justify-content: flex-end; }
.plate__band--right span { font-size: 15px; }
.plate input {
  flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; text-align: center;
  font-family: var(--f-display); font-weight: 650; font-stretch: 78%; font-size: 34px; letter-spacing: .06em;
  color: var(--ink); text-transform: uppercase; padding: 0 6px;
}
.plate input::placeholder { color: #b6b9be; }
.plate input:focus { outline: none; }
.plate-form { display: grid; gap: 12px; }
.plate-form__row { display: flex; gap: 12px; flex-wrap: wrap; }
.plate-form__row .plate { flex: 1 1 260px; }
.aside-card .plate-form__row .plate, .aside-card .plate-form__row .btn { flex: 1 1 100%; max-width: none; }
.aside-card .plate input { font-size: 28px; }
.plate-form__row .btn { flex: 0 0 auto; min-height: 64px; }
.plate-form__hint { font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 480px) { .plate-form__row .btn { flex: 1 1 100%; } .plate input { font-size: 28px; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--t-3xl); font-stretch: 118%; line-height: .98; }
.hero h1 .h1-kicker {
  display: block; margin-bottom: 18px;
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; font-stretch: 100%;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); line-height: 1.5;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__text { display: grid; gap: 26px; min-width: 0; }
.hero__lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 6px; font-size: var(--t-sm); color: var(--muted); }
.hero__proof li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero__proof strong { font-weight: 700; }
.hero__proof svg { width: 18px; height: 18px; color: var(--orange-ink); }
.stars { color: var(--orange); letter-spacing: 1px; }

.hero__visual { position: relative; min-width: 0; }
.hero__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--ground-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; left: 14px; top: 14px;
  background: rgba(22, 24, 27, .82); color: #fff; padding: 7px 11px; border-radius: 4px;
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .04em;
}
.quote-card {
  position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 28px; width: min(340px, 86%);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: 0 24px 48px -24px rgba(22, 24, 27, .45);
}
.quote-card p { font-size: var(--t-sm); color: var(--ink); line-height: 1.5; margin-bottom: 12px; }
.quote-card footer { font-size: var(--t-xs); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { aspect-ratio: 16 / 11; }
  .quote-card { position: relative; left: auto; bottom: auto; margin: -48px 16px 0 auto; }
}

/* ---------- Bandeau de réassurance ---------- */
.facts { border-block: 1px solid var(--line); background: var(--paper); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 26px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__value { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.fact__label { font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 14px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cartes services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; gap: 14px; } .svc-card__media { aspect-ratio: 16 / 7; } .svc-card__body { padding: 18px 18px 20px; } }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(22, 24, 27, .4); }
.svc-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ground-2); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card__media img { transform: scale(1.04); }
.svc-card__body { display: grid; gap: 10px; padding: 22px 22px 24px; flex: 1; align-content: start; }
.svc-card__tag { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.svc-card h3 { font-size: 1.375rem; }
.svc-card p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.svc-card__more { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.svc-card__more svg { width: 16px; height: 16px; color: var(--orange-ink); transition: transform .18s; }
.svc-card:hover .svc-card__more svg { transform: translateX(4px); }
.svc-card--urgent { background: var(--ink); border-color: var(--ink); }
.svc-card--urgent h3, .svc-card--urgent .svc-card__more { color: #fff; }
.svc-card--urgent p, .svc-card--urgent .svc-card__tag { color: #aab0b8; }
.svc-card--urgent .svc-card__more svg { color: var(--orange); }

/* ---------- Méthode (étapes) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; list-style: none; }
.step { position: relative; padding: 28px 24px 4px 0; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--orange-ink); letter-spacing: .1em; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
}

/* ---------- Sections sombres (dépannage) ---------- */
.on-dark { background: var(--ink); color: #c4c8ce; }
.on-dark h2, .on-dark h3, .on-dark strong { color: #fff; }
.urgent .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.urgent h2 { font-size: var(--t-2xl); margin: 14px 0 18px; }
.urgent__phone {
  display: inline-block; margin: 6px 0 22px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem);
  color: var(--orange); text-decoration: none; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.urgent__phone:hover { color: var(--orange-hover); }
.urgent__list { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--night-line); }
.urgent__list li { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--night-line); }
.urgent__list li span:first-child { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--orange); min-width: 28px; }
.urgent__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.urgent__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .urgent .wrap { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.rating { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating__score { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 3.4rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rating__meta { display: grid; gap: 2px; font-size: var(--t-sm); color: var(--muted); }
.rating__meta .stars { font-size: 1.15rem; }
.reviews-grid { columns: 3 300px; column-gap: 20px; }
.review {
  break-inside: avoid; margin: 0 0 20px; display: grid; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 20px;
}
.review blockquote { margin: 0; color: var(--ink); line-height: 1.55; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: var(--t-sm); }
.review__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ground-2); color: var(--ink); font-weight: 750; font-size: 15px;
}
.review__name { font-weight: 700; color: var(--ink); display: block; line-height: 1.2; }
.review__date { color: var(--muted); font-size: var(--t-xs); }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review__src { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.review[hidden] { display: none; }
.reviews-grid + p { margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink);
  font: 600 var(--t-sm)/1 var(--f-body);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-family: var(--f-mono); font-size: 12px; opacity: .65; margin-left: 4px; }

/* ---------- Atelier / à propos ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--ground-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { display: grid; gap: 18px; min-width: 0; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--orange-ink); margin-top: 2px; }

/* ---------- Zone d'intervention ---------- */
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.towns li {
  padding: 9px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px;
  font-size: var(--t-sm); color: var(--ink);
}
.towns li.is-home { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.125rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-4px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Infos pratiques ---------- */
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.panel h3 { margin-bottom: 14px; }
.info-list { display: grid; gap: 0; }
.info-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.info-list dd { margin: 0; color: var(--ink); }
.info-list a { color: var(--ink); font-weight: 650; }
@media (max-width: 480px) { .info-list > div { grid-template-columns: 1fr; gap: 4px; } }

.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; color: var(--ink-2); font-family: var(--f-mono); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--orange-ink); font-weight: 700; }
.hours tr.is-today th::after { content: " · aujourd'hui"; font-weight: 500; font-size: var(--t-xs); }

.map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; height: 100%;
  background: var(--ground-2) url("/assets/img/atelier-960.webp") center / cover;
  border: 1px solid var(--line);
}
.map::before { content: ""; position: absolute; inset: 0; background: rgba(241, 241, 238, .88); }
.map__inner { position: relative; height: 100%; min-height: 360px; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.map__inner p { max-width: 38ch; font-size: var(--t-sm); color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA final ---------- */
.cta-band { background: var(--orange); color: var(--ink); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-block: clamp(40px, 5vw, 64px); }
.cta-band h2 { font-size: var(--t-2xl); }
.cta-band p { margin-top: 10px; font-size: var(--t-lg); color: #3a2410; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { --btn-bg: transparent; --btn-bd: var(--ink); }
.cta-band .btn:hover { --btn-bg: rgba(22, 24, 27, .08); }
.cta-band .btn.btn--primary { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.cta-band .btn.btn--primary:hover { --btn-bg: #000; --btn-bd: #000; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #aab0b8; font-size: var(--t-sm); }
.footer a { color: #e4e6e9; text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; }
.footer h2 { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer__bottom { position: relative; padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--t-xs); }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--night-line); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Barre d'action mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { min-height: 48px; }
  body { padding-bottom: 72px; }
}

/* ---------- En-tête des pages intérieures ---------- */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--paper); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem); max-width: 20ch; }
.page-head .lead { color: var(--muted); }
.page-head--media .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: clamp(24px, 4vw, 56px); }
.page-head--media .page-head__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.page-head--media .page-head__img img { width: 100%; height: 100%; object-fit: cover; }
.page-head__text { display: grid; gap: 18px; min-width: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 860px) { .page-head--media .wrap { grid-template-columns: 1fr; } }

.breadcrumb { font-size: var(--t-xs); color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Page service ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 980px) { .svc-layout { grid-template-columns: minmax(0, 1fr); } }
.svc-main { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.svc-main h2 { font-size: var(--t-xl); margin-bottom: 18px; }
.task-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.task-list li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.task-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.task-list strong { font-size: var(--t-base); }
.task-list span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 620px) { .task-list { grid-template-columns: 1fr; } .task-list li:nth-child(even) { padding-left: 0; border-left: 0; } }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card .panel { display: grid; gap: 14px; }
.aside-card .panel p { font-size: var(--t-sm); color: var(--muted); }
.aside-card .big-tel { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; font-size: 1.9rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1; }
.panel--dark { background: var(--ink); border-color: var(--ink); color: #c4c8ce; display: grid; gap: 12px; }
.panel--dark h3, .panel--dark .big-tel { color: #fff; }
.panel--dark p, .aside-card .panel--dark p, .side-stack .panel--dark p { color: #b8bdc4; }
.panel--dark .urgent__phone { font-size: 2.1rem; margin: 0; }
.panel--dark .status { color: #c4c8ce; font-size: var(--t-xs); }
.mt { margin-top: 26px; }
.other-svc { list-style: none; display: grid; }
.other-svc a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); font-size: var(--t-sm); }
.other-svc li:last-child a { border-bottom: 0; }
.other-svc a:hover { color: var(--orange-ink); }
.other-svc svg { width: 16px; height: 16px; }

/* ---------- Formulaires ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .form-layout { grid-template-columns: minmax(0, 1fr); } .side-stack, .aside-card { position: static; } }
.form { display: grid; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.form legend { float: left; width: 100%; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); padding: 0; margin-bottom: 14px; }
.form legend + * { clear: both; }
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { font-size: var(--t-sm); font-weight: 650; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  font: 400 1rem/1.4 var(--f-body);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(248, 111, 1, .35); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: var(--t-xs); color: var(--danger); font-weight: 600; }
.field__hint { font-size: var(--t-xs); color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.check--alert { background: var(--orange-wash); border: 1px solid #f6c9a4; border-radius: var(--radius); padding: 14px 16px; }
.file-drop {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 22px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--ground); cursor: pointer;
  font-size: var(--t-sm); color: var(--muted);
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--ink); color: var(--ink); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop strong { color: var(--ink); }
.form__foot { display: grid; gap: 12px; }
.form__legal { font-size: var(--t-xs); color: var(--muted); }
.form__legal a { color: var(--ink-2); }
.form-status { border-radius: var(--radius); padding: 14px 16px; font-size: var(--t-sm); font-weight: 600; }
.form-status--ok { background: #e7f5ec; color: #145c33; border: 1px solid #b7e0c6; }
.form-status--err { background: #fdecea; color: #8a1c12; border: 1px solid #f3c2bc; }

.side-stack { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-stack .panel p { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Résultat plaque ---------- */
.vehicle { display: none; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.vehicle.is-visible { display: grid; }
.panel .vehicle { margin-top: 18px; background: var(--ground); }
.panel .lookup-msg { margin-top: 14px; }
.vehicle__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vehicle__img { width: 150px; height: 90px; object-fit: contain; background: var(--ground); border-radius: var(--radius); }
.vehicle__label { font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: 1.35rem; color: var(--ink); line-height: 1.15; }
.vehicle__plate { display: inline-block; font-family: var(--f-display); font-weight: 650; font-stretch: 78%; letter-spacing: .06em; font-size: 1.1rem; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px 10px; margin-bottom: 6px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.specs > div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.specs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lookup-msg { font-size: var(--t-sm); font-weight: 600; }
.lookup-msg--err { color: var(--danger); }
.lookup-msg--load { color: var(--muted); }

/* ---------- Pages légales ---------- */
.prose { max-width: 760px; display: grid; gap: 0; }
.prose h2 { font-size: var(--t-xl); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose a { color: var(--ink); font-weight: 600; }
.prose .meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.legal-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 1em; }
.legal-box p { margin: 0; }

/* ---------- Page merci / 404 ---------- */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--s-section); }
.center-page .wrap { display: grid; gap: 20px; justify-items: center; max-width: 720px; }
.center-page h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.center-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.big-code { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: .9; color: var(--orange); }

/* ---------- Apparition au défilement (état final visible par défaut) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-play-state: paused; }
  .js .reveal.is-in { animation-play-state: running; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Impression ---------- */
@media print {
  .topbar, .header, .mobile-bar, .footer, .cta-band, .map { display: none !important; }
  body { background: #fff; padding: 0; }
}
