/* Speed Auto 26 — « La charge revient ». Direction : ../DIRECTION.md */

@font-face {
  font-family: "Hubot Sans";
  src: url("fonts/hubot-sans-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --graphite: #111418;
  --graphite-2: #1a1e24;
  --filet-sombre: rgb(236 238 240 / .16);
  --blanc: #eceef0;
  --gris: #9aa1a9;
  --bardage: #dadde1;
  --encre: #111418;
  --encre-doux: #454b53;
  --charge: #2b54e6;
  --charge-fonce: #1f40b8;
  --charge-vif: #5c86ff;

  --plaque: "Hubot Sans", "Arial Narrow", sans-serif;
  --texte: "Mona Sans", system-ui, sans-serif;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --barre: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--encre-doux) var(--bardage); }
body {
  margin: 0;
  background: var(--bardage);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--charge); color: #fff; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--charge-vif); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
.insecable { white-space: nowrap; }

.saut {
  position: absolute; left: var(--gouttiere); top: -4rem; z-index: 20;
  background: var(--blanc); color: var(--graphite); padding: .6rem 1rem; font-weight: 600;
}
.saut:focus { top: .75rem; }

.cadre { max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere); }

/* ——— En-tête ——— */
.tete {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gouttiere);
  color: var(--blanc);
}
.tete__nom {
  font: 650 .78rem/1.45 var(--plaque); font-stretch: 125%;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.tete__tel {
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: .5rem .85rem; border: 1px solid rgb(236 238 240 / .5);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tete__tel:hover { background: var(--blanc); color: var(--graphite); border-color: var(--blanc); }
.tete__tel-txt { display: none; margin-right: .3em; }

/* ——— Accueil : la mesure de charge ——— */
.accueil {
  background: var(--graphite); color: var(--blanc);
  padding: 5.5rem 0 3rem;
}
.accueil__grille { display: grid; gap: 2.75rem; }
.nom {
  font: 800 clamp(2.5rem, 11.5vw, 8.4rem)/.95 var(--plaque); font-stretch: 125%;
  letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance;
}
.lede { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.45; max-width: 36ch; color: var(--blanc); }
.preuve { margin-top: 1rem; color: var(--gris); }
.preuve strong { color: var(--blanc); font-weight: 600; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

.mesure { border-top: 1px solid var(--filet-sombre); padding-top: 1rem; }
.mesure__tete {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  font: 600 .74rem/1.4 var(--plaque); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
}
.mesure__etat { color: var(--charge-vif); }
.mesure__valeur {
  display: flex; align-items: baseline; gap: .12em; margin: .4rem 0 .6rem;
  font: 300 clamp(4.6rem, 22vw, 10rem)/1 var(--plaque); font-stretch: 125%;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.mesure__unite { font-weight: 500; font-size: .42em; color: var(--gris); }

.echelle { --curseur: 85%; }
.echelle__regle {
  position: relative; height: 3rem;
}
/* graduations : un trait tous les 0,1 V, un grand trait par volt */
.echelle__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.echelle__svg path { stroke: var(--gris); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.echelle__svg .t-volt { stroke: var(--blanc); }
.echelle__plage {
  position: absolute; left: 70%; width: 22.5%; top: 0; bottom: 0;
  background: rgb(92 134 255 / .22); border-top: 3px solid var(--charge-vif);
}
.echelle__curseur {
  position: absolute; left: var(--curseur); top: -.6rem; bottom: 0; width: 2px; margin-left: -1px;
  background: var(--blanc);
}
.echelle__chiffres {
  display: flex; justify-content: space-between; margin-top: .45rem;
  font: 500 .8rem/1 var(--plaque); font-stretch: 112%; font-variant-numeric: tabular-nums; color: var(--gris);
}
.echelle__chiffres span:first-child { margin-left: -.15em; }
.echelle__chiffres span:last-child { margin-right: -.2em; }
.mesure figcaption { margin-top: 1.25rem; font-size: .97rem; line-height: 1.5; color: var(--gris); max-width: 52ch; }

/* ——— Boutons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .8rem 1.3rem;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.1;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--plein { background: var(--charge); color: #fff; }
.btn--plein:hover { background: var(--charge-fonce); }
.btn--trait { border-color: var(--blanc); color: var(--blanc); }
.btn--trait:hover { background: var(--blanc); color: var(--graphite); }
.btn--sombre { border-color: var(--encre); color: var(--encre); }
.btn--sombre:hover { background: var(--encre); color: var(--blanc); }

/* ——— Titres ——— */
.titre {
  font: 750 clamp(1.5rem, 3.6vw, 2.45rem)/1.15 var(--plaque); font-stretch: 125%;
  letter-spacing: .03em; text-transform: uppercase; text-wrap: balance;
  margin-bottom: 1.4rem;
}
.titre--clair { color: var(--blanc); }

/* ——— L'atelier ——— */
.atelier { padding: clamp(4rem, 10vw, 8rem) 0; }
.atelier__grille { display: grid; gap: 2rem; }
.chapo { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.5; max-width: 40ch; color: var(--encre-doux); }
.lignes { border-top: 1px solid var(--encre); }
.ligne { display: grid; gap: .45rem; padding: 1.35rem 0 1.45rem; border-bottom: 1px solid rgb(17 20 24 / .28); }
.ligne__titre { font-size: 1.22rem; font-weight: 600; line-height: 1.25; }
.ligne__texte { max-width: 56ch; color: var(--encre-doux); }
/* un seul accent par section : la ligne qui porte le concept */
.ligne:nth-child(2) .ligne__titre { color: var(--charge-fonce); }

/* ——— Tombés en panne, repartis ——— */
.repartis { background: var(--graphite); color: var(--blanc); padding: clamp(4rem, 10vw, 8rem) 0; }
.citation { margin-top: clamp(1rem, 3vw, 2.5rem); }
.citation blockquote p {
  font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem); line-height: 1.15; letter-spacing: -.01em;
  max-width: 24ch; text-wrap: balance;
}
.citation blockquote p::before { content: "« "; }
.citation blockquote p::after { content: " »"; }
.citation figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; color: var(--gris); }
.citation figcaption::before { content: ""; width: 2.5rem; height: 3px; background: var(--charge-vif); flex: none; }

.cas { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--filet-sombre); }
.cas li { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--filet-sombre); }
.cas__quoi {
  font: 600 .76rem/1.4 var(--plaque); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gris);
}
.cas blockquote p { font-size: 1.12rem; line-height: 1.5; max-width: 60ch; }
.cas blockquote p::before { content: "« "; }
.cas blockquote p::after { content: " »"; }
.cas__qui { font-size: .92rem; color: var(--gris); }

/* ——— Ce que disent les clients ——— */
.avis { background: var(--blanc); padding: clamp(4rem, 10vw, 8rem) 0; }
.avis__grille { display: grid; gap: 3.5rem; }
.citent__note { color: var(--encre-doux); font-size: .97rem; margin-bottom: 1.5rem; max-width: 42ch; }
.segments { display: grid; gap: 1rem; }
.segments li { display: grid; grid-template-columns: 1fr auto; row-gap: .4rem; align-items: baseline; }
.segments__mot { font-weight: 600; font-size: 1.08rem; }
.segments__n { color: var(--encre-doux); font-size: .95rem; font-variant-numeric: tabular-nums; }
/* bargraphe de multimètre : 12 cases, une par avis */
.segments__barre {
  grid-column: 1 / -1; height: 9px;
  background:
    repeating-linear-gradient(90deg, var(--encre) 0 calc(100% / 12 - 3px), transparent calc(100% / 12 - 3px) calc(100% / 12)) left / calc(var(--n) / 12 * 100%) 100% no-repeat,
    repeating-linear-gradient(90deg, rgb(17 20 24 / .1) 0 calc(100% / 12 - 3px), transparent calc(100% / 12 - 3px) calc(100% / 12));
}
.segments li:nth-child(5) .segments__barre {
  background:
    repeating-linear-gradient(90deg, var(--charge) 0 calc(100% / 12 - 3px), transparent calc(100% / 12 - 3px) calc(100% / 12)) left / calc(var(--n) / 12 * 100%) 100% no-repeat,
    repeating-linear-gradient(90deg, rgb(17 20 24 / .1) 0 calc(100% / 12 - 3px), transparent calc(100% / 12 - 3px) calc(100% / 12));
}
.segments li:nth-child(5) .segments__mot { color: var(--charge); }
.note-globale { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--encre); color: var(--encre-doux); }
.note-globale strong { color: var(--encre); font-weight: 600; font-variant-numeric: tabular-nums; }

.temoins { border-top: 1px solid var(--encre); }
.temoins li { padding: 1.3rem 0; border-bottom: 1px solid rgb(17 20 24 / .2); display: grid; gap: .45rem; }
.temoins blockquote p { font-style: italic; font-size: 1.1rem; line-height: 1.5; max-width: 54ch; }
.temoins blockquote p::before { content: "« "; }
.temoins blockquote p::after { content: " »"; }
.temoins blockquote[lang="nl"] p::before { content: "„"; }
.temoins blockquote[lang="nl"] p::after { content: "“"; }
.temoins__trad { color: var(--encre-doux); font-size: .97rem; max-width: 54ch; }
.temoins__qui { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-doux); }
.temoins__garage blockquote p { font-style: normal; font-weight: 500; }

/* ——— Venir : la fiche technique ——— */
.venir { padding: clamp(4rem, 10vw, 7rem) 0; }
.venir__grille { display: grid; gap: 3rem; }
.fiche { border-top: 1px solid var(--encre); }
.fiche div { display: grid; gap: .2rem; padding: .85rem 0; border-bottom: 1px solid rgb(17 20 24 / .25); }
.fiche dt { font: 600 .74rem/1.4 var(--plaque); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-doux); }
.fiche dd { font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.fiche address { font-style: normal; }
.fiche__tel {
  font: 700 clamp(1.35rem, 3.4vw, 1.8rem)/1.2 var(--plaque); font-stretch: 118%;
  text-decoration: none; border-bottom: 2px solid var(--charge); white-space: nowrap;
}
.fiche__tel:hover { color: var(--charge); }
.zone { margin-top: 1.75rem; color: var(--encre-doux); max-width: 50ch; }
.venir__lieu { display: grid; gap: 1.5rem; align-content: start; }
.facade img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 55%; }
.facade figcaption { margin-top: .5rem; font-size: .9rem; color: var(--encre-doux); }
.plan { border: 1px solid var(--encre); }
.plan iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.6) contrast(1.05); }

/* ——— Pied ——— */
.pied { background: var(--graphite); color: var(--blanc); padding: 3.5rem 0 calc(3.5rem + var(--barre)); }
.pied__grille { display: grid; gap: .9rem; }
.pied__nom { font: 800 clamp(1.8rem, 5vw, 2.8rem)/1 var(--plaque); font-stretch: 125%; text-transform: uppercase; }
.pied p:not(.pied__nom) { color: var(--gris); }
.pied a { color: var(--blanc); }
.pied__petit { font-size: .85rem; }

/* ——— Barre fixe mobile ——— */
.barre {
  position: fixed; inset: auto 0 0; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--graphite);
  border-top: 1px solid var(--graphite-2);
}
.barre a {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.5rem; font-weight: 600; text-decoration: none;
}
.barre__appel { background: var(--charge); color: #fff; }
.barre__route { color: var(--blanc); }

@media (max-width: 899px) {
  :root { --barre: 3.5rem; }
}

@media (min-width: 560px) {
  .tete__tel-txt { display: inline; }
}

@media (min-width: 760px) {
  .ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; align-items: baseline; }
  .cas li { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 2.5rem; align-items: baseline; }
  .cas__quoi { grid-row: span 2; }
  .fiche div { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
  .venir__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .pied__grille { grid-template-columns: auto 1fr; column-gap: 3rem; align-items: end; }
  .pied__petit { grid-column: 2; }
}

@media (min-width: 900px) {
  .barre { display: none; }
  .accueil { min-height: 100svh; display: flex; align-items: center; padding: 6rem 0 4rem; }
  .accueil > .cadre { width: 100%; }
  .accueil__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); row-gap: 2.25rem; align-items: end; }
  .accueil__texte { display: contents; }
  .nom { grid-column: 1 / -1; font-size: clamp(3rem, 8.4vw, 8.4rem); }
  .accueil__texte > :not(.nom) { grid-column: 1; }
  .lede { margin-top: 0; }
  .mesure { grid-column: 2; grid-row: 2 / span 3; align-self: end; }
  .atelier__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 4rem; }
  .atelier__tete { position: sticky; top: 2rem; align-self: start; }
  .avis__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 5rem; }
}

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