/* ------------------------------------------------------------------
   Le Lavage 89 — système graphique
   Palette échantillonnée sur le logo de Dario. Une seule police.
   Règle de fond : mise en page calme, dynamisme réservé au logo,
   à l'éclair et aux photos.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* couleurs */
  --bleu: #126eda;
  --bleu-profond: #0a4287;
  --bleu-nuit: #072c5c;
  --jaune: #ffdd00;
  --encre: #0d141a;
  --encre-70: #45505a;
  --encre-50: #6b757e;
  --blanc: #fff;
  --gris: #f4f6f9;
  --gris-bord: #dfe4ea;

  /* espacements, base 8 */
  --e1: 4px;   --e2: 8px;   --e3: 16px;  --e4: 24px;
  --e5: 32px;  --e6: 48px;  --e7: 64px;  --e8: 96px;  --e9: 128px;

  --contenu: 1200px;
  --texte: 68ch;
  --rayon: 6px;
  --bordure: 1px solid var(--gris-bord);
  --section-y: var(--e8);
}

@media (max-width: 760px) {
  :root { --section-y: 56px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0 0 var(--e3); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 var(--e4); max-width: var(--texte); }
p:last-child { margin-bottom: 0; }

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bleu-profond); }

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

/* ---------- utilitaires ---------- */

.enveloppe {
  width: 100%;
  max-width: var(--contenu);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 900px) { .enveloppe { padding-inline: var(--e5); } }

.section { padding-block: var(--section-y); }
.section--gris { background: var(--gris); }
.section--bleu {
  background: var(--bleu-profond);
  color: #eaf1fb;
}
.section--bleu h2, .section--bleu h3 { color: var(--blanc); }
.section--bleu a { color: var(--jaune); }

.surtitre {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: var(--e3);
}
.section--bleu .surtitre { color: var(--jaune); }

.chapo { font-size: 1.125rem; color: var(--encre-70); }
.section--bleu .chapo { color: #c3d7f2; }

.tete-section { margin-bottom: var(--e6); }

/* L'éclair du logo, vectorisé, en séparateur et en soulignement.
   Seul geste graphique répété du site. */
.eclair {
  display: block;
  width: 132px;
  color: var(--jaune);
  margin-bottom: var(--e4);
}
.eclair--sep { width: 96px; margin-inline: auto; }

/* ---------- boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e2);
  min-height: 48px;
  padding: 13px var(--e4);
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bouton--primaire { background: var(--bleu); color: var(--blanc); }
.bouton--primaire:hover { background: var(--bleu-profond); color: var(--blanc); }
.bouton--secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--gris-bord);
}
.bouton--secondaire:hover { border-color: var(--encre); color: var(--encre); }
.bouton--clair { background: var(--blanc); color: var(--bleu-profond); }
.bouton--clair:hover { background: var(--jaune); color: var(--encre); }

.groupe-boutons { display: flex; flex-wrap: wrap; gap: var(--e3); }

/* ---------- en-tête ---------- */

.aller-au-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--e3) var(--e4);
  background: var(--bleu);
  color: var(--blanc);
}
.aller-au-contenu:focus { left: 0; }

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: var(--bordure);
}
.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e4);
  min-height: 68px;
}
.entete__logo { display: flex; align-items: center; flex-shrink: 0; }
.entete__logo img { width: 152px; }

.nav { display: flex; align-items: center; gap: var(--e5); }
.nav__liens { display: flex; gap: var(--e5); list-style: none; margin: 0; padding: 0; }
.nav__liens a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
  font-size: .9375rem;
  padding-block: var(--e2);
}
.nav__liens a:hover { color: var(--bleu); }
.entete__tel {
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
}
.entete__tel:hover { color: var(--bleu); }

/* Entre la bascule mobile et le confort du grand écran, la barre est à
   l'étroit : on resserre plutôt que de laisser les intitulés passer à la
   ligne. Les libellés se sont allongés avec « Maison & bâtiment ». */
@media (min-width: 981px) and (max-width: 1180px) {
  .nav { gap: var(--e4); }
  .nav__liens { gap: var(--e4); }
  .nav__liens a { font-size: .875rem; }
  .entete__tel { font-size: .9375rem; }
  .nav .bouton { padding-inline: var(--e3); font-size: .9375rem; }
  .entete__logo img { width: 130px; }
}

.bascule-menu {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: var(--bordure); border-radius: var(--rayon);
  cursor: pointer;
}
.bascule-menu span {
  display: block; width: 20px; height: 2px;
  background: var(--encre); position: relative;
}
.bascule-menu span::before, .bascule-menu span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--encre);
}
.bascule-menu span::before { top: -6px; }
.bascule-menu span::after  { top: 6px; }

@media (max-width: 980px) {
  .bascule-menu { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--e3) 20px var(--e4);
    background: var(--blanc);
    border-bottom: var(--bordure);
    box-shadow: 0 12px 24px rgba(13, 20, 26, .07);
  }
  .nav[hidden] { display: none; }
  .nav__liens { flex-direction: column; gap: 0; }
  .nav__liens a { display: block; padding: 14px 0; border-bottom: var(--bordure); }
  .nav .bouton { margin-top: var(--e3); }
  .entete__tel { padding: 14px 0; }
}

/* ---------- hero ---------- */

/* ------------------------------------------------------------------
   Hero de l'accueil (refonte du 2026-09-21, demande de Dario) :
   photo plein cadre, logo par-dessus, et le tunnel de choix au centre.
   L'image est un <img> et non un fond CSS : le navigateur la charge en
   priorité et choisit la bonne taille selon l'écran.
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--e7) var(--section-y);
  background: var(--encre);
}
.hero__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 20, 26, .82) 0%, rgba(13, 20, 26, .58) 38%, rgba(13, 20, 26, .88) 100%);
}
.hero__interieur { display: grid; gap: var(--e6); justify-items: center; }
.hero__texte { max-width: 44rem; text-align: center; color: var(--blanc); }
.hero__logo { width: 210px; margin-bottom: var(--e5); }
.hero h1 { margin-bottom: var(--e4); color: var(--blanc); }
.hero__chapo { font-size: 1.1875rem; color: #dbe6f2; margin-bottom: 0; }

.hero__faits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e2) var(--e4);
  margin: var(--e5) 0 0;
  padding: var(--e4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  list-style: none;
  font-size: .875rem;
  color: #c3d1de;
}
.hero__faits li { white-space: nowrap; }
.hero__faits strong { color: var(--blanc); font-weight: 600; }

/* Le tunnel reste une carte blanche lisible, posée sur la photo. */
.hero .devis { width: 100%; max-width: 40rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }

@media (max-width: 700px) {
  /* La version portrait est déjà cadrée sur la voiture. */
  .hero__fond { object-position: center; }
}
/* <picture> introduit un élément intermédiaire : il doit se superposer
   comme le ferait l'image seule. */
.hero picture { position: absolute; inset: 0; z-index: -2; }
@media (max-width: 560px) {
  .hero__logo { width: 160px; }
  .hero { padding-block: var(--e6) var(--e7); }
}

.legende {
  margin: var(--e3) 0 0;
  font-size: .875rem;
  color: var(--encre-50);
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--rayon);
  background: var(--gris);
}
.legende {
  margin: var(--e3) 0 0;
  font-size: .875rem;
  color: var(--encre-50);
}

/* ---------- comparateur avant / après ---------- */

.comparateur {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--gris);
  touch-action: pan-y;
}
.comparateur img {
  display: block;
  width: 100%;
}
.comparateur__apres {
  position: absolute;
  inset: 0;
  width: 100%;
  /* recouvre la moitié droite par défaut ; piloté en JS */
  clip-path: inset(0 0 0 50%);
}
.comparateur__apres img { width: 100%; height: 100%; object-fit: cover; }
.comparateur__poignee {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--blanc);
  transform: translateX(-1px);
  pointer-events: none;
}
.comparateur__poignee::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  background: var(--blanc);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.comparateur__curseur {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.comparateur__curseur:focus-visible { opacity: 1; }
.comparateur__etiquette {
  position: absolute;
  bottom: var(--e3);
  padding: 5px 11px;
  background: rgba(13, 20, 26, .78);
  color: var(--blanc);
  font-size: .8125rem;
  font-weight: 600;
  border-radius: 3px;
  pointer-events: none;
}
.comparateur__etiquette--avant { left: var(--e3); }
.comparateur__etiquette--apres { right: var(--e3); }

/* ---------- formules ---------- */

.formules {
  display: grid;
  gap: var(--e4);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 760px) { .formules { grid-template-columns: repeat(3, 1fr); } }

.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--e5);
  background: var(--blanc);
  border: var(--bordure);
  border-radius: var(--rayon);
}
.formule--phare { border-color: var(--bleu); border-width: 2px; }

/* L'étiquette chevauche la bordure haute : les titres et les prix des trois
   cartes restent ainsi sur la même ligne de base. */
.formule__etiquette {
  position: absolute;
  top: -11px;
  left: var(--e5);
  padding: 3px 9px;
  background: var(--jaune);
  color: var(--encre);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 3px;
}
/* Aucun montant sur les pages : le prix ne s'obtient qu'au bout du
   tunnel de devis. Les cartes annoncent le contenu et la durée. */
.formule__duree {
  display: block;
  margin-bottom: var(--e2);
  font-size: .875rem;
  font-weight: 600;
  color: var(--bleu);
}
.formule__detail {
  margin: var(--e4) 0 var(--e5);
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: var(--encre-70);
}
.formule__detail li {
  position: relative;
  padding-left: var(--e4);
  margin-bottom: var(--e2);
}
.formule__detail li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 2px;
  background: var(--bleu);
}
.formule .bouton { margin-top: auto; }

.note-tarif {
  margin-top: var(--e5);
  padding: var(--e4);
  background: var(--gris);
  border-left: 3px solid var(--bleu);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  font-size: .9375rem;
  color: var(--encre-70);
}
.note-tarif p { max-width: 82ch; }

/* ---------- protocole ---------- */

.protocole__grille {
  display: grid;
  gap: var(--e6);
  align-items: center;
}
@media (min-width: 900px) {
  .protocole__grille { grid-template-columns: .95fr 1.05fr; gap: var(--e7); }
}
.protocole__media img { width: 100%; border-radius: var(--rayon); }

.liste-points { margin: 0; padding: 0; list-style: none; }
.liste-points li {
  padding: var(--e4) 0;
  border-top: var(--bordure);
}
.liste-points li:last-child { border-bottom: var(--bordure); }
.liste-points h3 { margin-bottom: var(--e1); }
.liste-points p { margin: 0; font-size: .9375rem; color: var(--encre-70); }
.section--bleu .liste-points li { border-color: rgba(255, 255, 255, .18); }
.section--bleu .liste-points p { color: #c3d7f2; }

/* ---------- déroulé en étapes ---------- */

.etapes {
  display: grid;
  gap: var(--e5);
  margin: 0;
  padding: 0;
  counter-reset: etape;
  list-style: none;
}
@media (min-width: 760px) { .etapes { grid-template-columns: repeat(4, 1fr); } }
.etape { counter-increment: etape; padding-top: var(--e4); border-top: 2px solid var(--gris-bord); }
.etape::before {
  content: counter(etape, decimal-leading-zero);
  display: block;
  margin-bottom: var(--e2);
  font-size: .875rem;
  font-weight: 700;
  color: var(--bleu);
  letter-spacing: .05em;
}
.etape h3 { margin-bottom: var(--e2); }
.etape p { margin: 0; font-size: .9375rem; color: var(--encre-70); }

/* ---------- offre pro ---------- */

.cartes-pro {
  display: grid;
  gap: var(--e4);
  margin: 0 0 var(--e6);
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .cartes-pro { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cartes-pro { grid-template-columns: repeat(4, 1fr); } }
.carte-pro {
  padding: var(--e4);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--rayon);
}
.carte-pro h3 { font-size: 1.0625rem; margin-bottom: var(--e2); }
.carte-pro p { margin: 0; font-size: .9375rem; }

/* ---------- avis ---------- */

.avis {
  display: grid;
  gap: var(--e4);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Quatre avis vérifiés : la grille s'adapte au nombre plutôt que
   d'imposer trois colonnes et de laisser un orphelin. */
.avis { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.avis figure {
  height: 100%;
  margin: 0;
  padding: var(--e5);
  background: var(--blanc);
  border: var(--bordure);
  border-radius: var(--rayon);
}
.avis blockquote {
  margin: 0 0 var(--e4);
  font-size: 1.0625rem;
}
.avis blockquote p { margin: 0; max-width: none; }
.avis figcaption { font-size: .875rem; font-weight: 600; color: var(--encre-70); }
.avis figcaption span { display: block; font-weight: 400; color: var(--encre-50); }

/* ---------- zone / atelier ---------- */

.atelier__grille {
  display: grid;
  gap: var(--e6);
  align-items: start;
}
@media (min-width: 900px) { .atelier__grille { grid-template-columns: 1fr 1fr; gap: var(--e7); } }
.atelier__media img { width: 100%; border-radius: var(--rayon); }

.deux-lieux {
  display: grid;
  gap: var(--e4);
  margin: 0 0 var(--e5);
  padding: 0;
  list-style: none;
}
@media (min-width: 520px) { .deux-lieux { grid-template-columns: repeat(2, 1fr); } }
.lieu {
  padding: var(--e4);
  border: var(--bordure);
  border-radius: var(--rayon);
}
.lieu h3 { margin-bottom: var(--e2); }
.lieu p { margin: 0; font-size: .9375rem; color: var(--encre-70); }

.communes {
  margin: 0;
  font-size: .9375rem;
  color: var(--encre-70);
  max-width: none;
}

/* ---------- contact ---------- */

.contact__grille {
  display: grid;
  gap: var(--e6);
}
@media (min-width: 900px) { .contact__grille { grid-template-columns: 1fr 1fr; gap: var(--e7); } }

.coordonnees { margin: 0; }
.coordonnees div { padding: var(--e4) 0; border-top: var(--bordure); }
.coordonnees div:last-child { border-bottom: var(--bordure); }
.coordonnees dt {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-50);
  margin-bottom: var(--e1);
}
.coordonnees dd { margin: 0; font-size: 1.0625rem; }
.coordonnees a { text-decoration: none; font-weight: 600; }
.coordonnees a:hover { text-decoration: underline; }

/* ---------- formulaire ---------- */

.champ { margin-bottom: var(--e4); }
.champ label {
  display: block;
  margin-bottom: var(--e2);
  font-size: .9375rem;
  font-weight: 600;
}
.champ input, .champ textarea, .champ select {
  width: 100%;
  min-height: 48px;
  padding: 12px var(--e3);
  font: inherit;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  border-color: var(--bleu);
  outline: 2px solid rgba(18, 110, 218, .25);
  outline-offset: 0;
}
.champ--leurre { position: absolute; left: -9999px; }
.aide { font-size: .875rem; color: var(--encre-50); }

.message-form {
  padding: var(--e4);
  border-radius: var(--rayon);
  font-size: .9375rem;
  margin-bottom: var(--e4);
}
.message-form--ok { background: #eaf6ee; border-left: 3px solid #2e7d43; }
.message-form--ko { background: #fdeeee; border-left: 3px solid #b3261e; }
.message-form p { max-width: none; }
.message-form p:last-child { margin-bottom: 0; }

/* ---------- pied de page ---------- */

.pied {
  padding-block: var(--e7) var(--e5);
  background: var(--bleu-nuit);
  color: #b9cbe4;
  font-size: .9375rem;
}
.pied__grille {
  display: grid;
  gap: var(--e6);
  padding-bottom: var(--e6);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied img { width: 168px; margin-bottom: var(--e4); }
.pied h2 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: var(--e3);
}
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin-bottom: var(--e2); }
.pied a { color: #dce7f6; text-decoration: none; }
.pied a:hover { color: var(--jaune); text-decoration: underline; }
.pied p { max-width: 46ch; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3) var(--e5);
  justify-content: space-between;
  padding-top: var(--e4);
  font-size: .875rem;
  color: #8ba6c8;
}

/* ---------- pages de contenu (légales, service) ---------- */

.page-titre { padding-block: var(--e7) var(--e5); border-bottom: var(--bordure); }
.page-titre p { margin: 0; }

.prose { max-width: 72ch; padding-block: var(--section-y); }
.prose h2 { margin-top: var(--e7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--e5); }
.prose ul, .prose ol { margin: 0 0 var(--e4); padding-left: var(--e4); }
.prose li { margin-bottom: var(--e2); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--e4);
  font-size: .9375rem;
}
.prose th, .prose td {
  padding: var(--e3);
  text-align: left;
  border-bottom: var(--bordure);
  vertical-align: top;
}
.prose th { font-weight: 600; }
.defilement-x { overflow-x: auto; }

.faq { margin: 0; }
.faq details {
  padding: var(--e4) 0;
  border-bottom: var(--bordure);
}
.faq details:first-of-type { border-top: var(--bordure); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--e4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--bleu); font-weight: 700; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: var(--e3) 0 0; font-size: .9375rem; color: var(--encre-70); }

/* ---------- bandeau d'appel final ---------- */

.bandeau-cta { text-align: center; }
.bandeau-cta h2 { margin-bottom: var(--e3); }
.bandeau-cta p { margin-inline: auto; margin-bottom: var(--e5); }
.bandeau-cta .groupe-boutons { justify-content: center; }

.lisible-lecteur {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==================================================================
   Tunnel de demande de devis
   Il occupe le hero : c'est le premier objet de la page, à droite de
   l'accroche. Le prix n'apparaît qu'à la dernière étape.
   ================================================================== */

.devis {
  padding: var(--e5);
  background: var(--blanc);
  border: var(--bordure);
  border-radius: var(--rayon);
  box-shadow: 0 1px 2px rgba(13, 20, 26, .04), 0 12px 32px rgba(13, 20, 26, .06);
}
@media (max-width: 760px) { .devis { padding: var(--e4); } }

/* ---------- progression ---------- */

.progression {
  display: flex;
  align-items: center;
  gap: var(--e3);
  margin-bottom: var(--e4);
}
.progression__pistes { display: flex; gap: 6px; flex: 1; }
.progression__seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--gris-bord);
}
.progression__seg.est-fait { background: var(--bleu); }
.progression__seg.est-courant {
  background: var(--jaune);
  box-shadow: inset 0 0 0 1px rgba(13, 20, 26, .12);
}
.progression__compteur {
  flex-shrink: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--encre-50);
  font-variant-numeric: tabular-nums;
}

.devis__question {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 var(--e4);
}
.devis__question:focus { outline: none; }
.devis__sous-question {
  font-size: .9375rem;
  font-weight: 600;
  margin: var(--e5) 0 var(--e3);
}
.devis__sous-question:first-of-type { margin-top: 0; }

/* ---------- cartes de choix ---------- */

.choix {
  display: grid;
  gap: var(--e2);
  margin-bottom: var(--e4);
}
.choix--paire { grid-template-columns: repeat(2, 1fr); }
/* Huit prestations : deux colonnes dès 380 px, sinon la liste fait
   trois écrans de haut. En dessous, « professionnelle » ne tient plus. */
@media (min-width: 380px) {
  .choix--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 560px) {
  .choix--quatre { grid-template-columns: repeat(2, 1fr); }
}

.choix__option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 13px var(--e3);
  text-align: left;
  font: inherit;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.choix__option:hover { border-color: var(--encre-50); }
.choix__option strong { font-weight: 600; font-size: .9375rem; }
.choix__option span { font-size: .8125rem; color: var(--encre-50); }

.choix__option.est-choisi {
  border-color: var(--bleu);
  border-width: 2px;
  padding: 12px calc(var(--e3) - 1px);
  background: #f2f7fe;
}
.choix__option.est-choisi span { color: var(--encre-70); }

/* Nom du pack et son prix sur une même ligne */
.choix__option .choix__entete {
  color: var(--encre);
  font-size: inherit;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--e2);
}
.choix__option .choix__prix,
.choix__option.est-choisi .choix__prix {
  flex: none;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--bleu-profond);
  font-variant-numeric: tabular-nums;
}

.choix__option[disabled] {
  opacity: .55;
  cursor: not-allowed;
  background: var(--gris);
}
.choix__option[disabled]:hover { border-color: var(--gris-bord); }

/* Statut sur les options de lieu : « Ouvert », « Je viens à vous »… */
.choix__statut {
  align-self: flex-start;
  margin-top: var(--e1);
  padding: 2px 7px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 3px;
  background: #e8f3ec;
  color: #1f6b39;
}
.choix__statut--info { background: #eaf1fb; color: var(--bleu-profond); }

/* ---------- champs du tunnel ---------- */

.devis .champ { margin-bottom: var(--e4); }
.devis .champ:last-of-type { margin-bottom: 0; }
.champ input.est-invalide, .champ select.est-invalide { border-color: #b3261e; }
.champ__erreur {
  margin: var(--e1) 0 0;
  font-size: .8125rem;
  font-weight: 500;
  color: #b3261e;
}

.devis__paire { display: grid; gap: var(--e3); }
@media (min-width: 520px) { .devis__paire { grid-template-columns: 1fr 1fr; } }

/* ---------- pied du tunnel ---------- */

.devis__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e3);
  margin-top: var(--e5);
  padding-top: var(--e4);
  border-top: var(--bordure);
}
.devis__pied .bouton--primaire { flex: 1; min-width: 180px; }
.devis__pied .bouton--primaire[disabled] {
  background: var(--gris-bord);
  color: var(--encre-50);
  cursor: not-allowed;
}
.devis__retour {
  background: none;
  border: 0;
  padding: var(--e2) 0;
  font: inherit;
  font-size: .9375rem;
  color: var(--encre-50);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.devis__retour:hover { color: var(--encre); }

.devis__mentions {
  margin: var(--e3) 0 0;
  font-size: .8125rem;
  color: var(--encre-50);
}

/* ---------- écran de confirmation ---------- */

.devis__recap {
  margin: 0 0 var(--e4);
  padding: var(--e3) var(--e4);
  background: var(--gris);
  border-radius: var(--rayon);
  font-size: .9375rem;
  font-weight: 600;
}
.estimation {
  padding: var(--e4);
  border: 2px solid var(--bleu);
  border-radius: var(--rayon);
  margin-bottom: var(--e4);
}
.estimation__libelle {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: var(--e1);
}
.estimation__montant {
  display: block;
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.estimation p {
  margin: var(--e3) 0 0;
  font-size: .875rem;
  color: var(--encre-70);
  max-width: none;
}

/* ==================================================================
   Barre d'action fixe — mobile uniquement
   Un artisan seul se joint d'abord au téléphone : l'appel reste
   accessible où que soit le visiteur dans la page.
   ================================================================== */

.barre-mobile { display: none; }

@media (max-width: 980px) {
  .barre-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--blanc);
    border-top: var(--bordure);
    box-shadow: 0 -4px 16px rgba(13, 20, 26, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .barre-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--e2);
    min-height: 56px;
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
  }
  .barre-mobile a:first-child { color: var(--encre); }
  .barre-mobile a:last-child { background: var(--bleu); color: var(--blanc); }
  .barre-mobile svg { width: 17px; height: 17px; flex-shrink: 0; }

  /* La barre ne doit jamais recouvrir la fin du pied de page. */
  .pied { padding-bottom: calc(var(--e5) + 56px); }
}

/* ==================================================================
   Étape « options » du tunnel
   Cases à cocher avec prix visible et total qui s'actualise. Le prix
   du plafonnier dépend du gabarit choisi à l'étape précédente : il se
   met à jour tout seul.
   ================================================================== */

.options-groupe { margin-bottom: var(--e5); }
.options-groupe:last-of-type { margin-bottom: 0; }
.options-groupe > h3 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--encre-50);
  margin-bottom: var(--e2);
}

.options-liste { display: grid; gap: var(--e2); margin: 0; padding: 0; list-style: none; }

.option {
  display: flex;
  align-items: flex-start;
  gap: var(--e3);
  width: 100%;
  min-height: 48px;
  padding: 11px var(--e3);
  text-align: left;
  font: inherit;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: var(--rayon);
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.option:hover { border-color: var(--encre-50); }

/* La case, dessinée en CSS : pas d'image, pas de dépendance. */
.option__case {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 2px solid var(--gris-bord);
  border-radius: 4px;
  position: relative;
}
.option__texte { flex: 1; min-width: 0; }
.option__texte strong { display: block; font-weight: 500; font-size: .9375rem; }
.option__texte span { font-size: .8125rem; color: var(--encre-50); }
.option__prix {
  flex-shrink: 0;
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--encre-70);
}

.option.est-choisi {
  border-color: var(--bleu);
  background: #f2f7fe;
}
.option.est-choisi .option__case { background: var(--bleu); border-color: var(--bleu); }
.option.est-choisi .option__case::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--blanc);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.option.est-choisi .option__prix { color: var(--bleu-profond); }

/* Total courant, collé en bas de l'étape options. */
.total-courant {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e3);
  margin-top: var(--e5);
  padding: var(--e3) var(--e4);
  background: var(--gris);
  border-radius: var(--rayon);
}
.total-courant span {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-50);
}
.total-courant strong {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Packs présentés dans le tunnel : le contenu doit rester lisible
   sans écraser la hauteur de l'écran. */
.choix__option .option-contenu {
  margin: var(--e2) 0 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  color: var(--encre-50);
}
.choix__option .option-contenu li { margin-bottom: 2px; }
.choix__option.est-choisi .option-contenu { color: var(--encre-70); }

/* Cinq prestations dans une grille de quatre laissaient une carte seule
   sur une deuxième ligne, et des colonnes trop étroites pour le texte.
   Trois colonnes donnent 3 + 2, plus lisible et mieux équilibré. */
.cartes-pro--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 1000px) {
  .cartes-pro--auto { grid-template-columns: repeat(3, 1fr); }
}

/* ==================================================================
   Bloc « note Google »
   Dario est à 5,0 sur 58 avis, et c'est le seul chiffre de réassurance
   qu'il possède réellement. Il est traité comme UNE unité : le score et
   les étoiles forment un bloc solidaire, le reste est légende. Aucune
   information n'est répétée depuis le titre de section.
   ================================================================== */

.note-google {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e4) var(--e6);
  padding: var(--e5);
  margin-bottom: var(--e6);
  background: var(--gris);
  border-radius: var(--rayon);
}

/* Score et étoiles : solidaires, alignés à gauche l'un sous l'autre. */
.note-google__bloc { display: flex; flex-direction: column; gap: var(--e2); }
.note-google__score {
  margin: 0;
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: .9;
}
.note-google__etoiles { display: flex; gap: 4px; color: #f5b622; }
.note-google__etoiles svg { width: 22px; height: 22px; }

.note-google__legende {
  flex: 1;
  min-width: 180px;
  margin: 0;
  font-size: 1.0625rem;
  color: var(--encre-70);
}
.note-google__legende strong { color: var(--encre); font-weight: 600; }
.note-google .bouton { flex-shrink: 0; }

@media (max-width: 640px) {
  .note-google { gap: var(--e4); padding: var(--e4); }
  .note-google__legende { min-width: 100%; }
  .note-google .bouton { width: 100%; }
}

/* Rappel de la note dans les faits du hero. */
.hero__faits .fait-google { display: inline-flex; align-items: center; gap: 5px; }
.hero__faits .fait-google svg { width: 14px; height: 14px; color: #f5b622; }

/* Les auteurs se calent en bas de carte : sans ça, ils flottent à la fin
   d'un texte de longueur variable et dessinent un escalier. */
.avis figure { display: flex; flex-direction: column; }
.avis blockquote { flex: 1; }
.avis figcaption { margin-top: var(--e4); }

/* ==================================================================
   Page carrosserie : onglets d'ancrage, duo de photos, carte d'appel
   ================================================================== */
.onglets {
  position: sticky;
  top: 68px;                       /* sous l'en-tête collant */
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: var(--bordure);
}
.onglets ul {
  display: flex;
  gap: var(--e2);
  margin: 0;
  padding: var(--e2) 0;
  list-style: none;
  overflow-x: auto;
}
.onglets a {
  display: block;
  padding: 8px 14px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--gris-bord);
  border-radius: 999px;
}
.onglets a:hover { border-color: var(--bleu); color: var(--bleu); }
#polissage, #ceramique, #ppf { scroll-margin-top: 130px; }

.duo-photos {
  display: grid;
  gap: var(--e5);
  align-items: end;
}
@media (min-width: 760px) { .duo-photos { grid-template-columns: 1.35fr 1fr; } }
.duo-photos figure { margin: 0; }
.duo-photos img { width: 100%; height: auto; border-radius: var(--rayon); }

.formule p { margin: 0 0 var(--e2); color: var(--encre-70); font-size: .9375rem; }
.formule--appel { background: var(--gris); border-style: dashed; }
.formule--appel .bouton { margin-top: var(--e4); align-self: flex-start; }

/* ==================================================================
   Accueil : carte cadeau
   La carte est dessinée en CSS avec le logo et l'éclair : aucune
   maquette photo d'un objet qui n'existe pas encore.
   ================================================================== */
.cadeau__grille { display: grid; gap: var(--e7); align-items: center; }
@media (min-width: 900px) { .cadeau__grille { grid-template-columns: 1.1fr 1fr; } }
.cadeau__liste { margin: var(--e4) 0 0; padding: 0; list-style: none; }
.cadeau__liste li { position: relative; padding-left: var(--e4); margin-bottom: var(--e2); }
.cadeau__liste li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 9px; height: 2px; background: var(--jaune);
}
.carte-cadeau {
  position: relative;
  aspect-ratio: 85.6 / 54;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  padding: 7%;
  overflow: hidden;
  color: var(--blanc);
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-profond) 70%);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
  transform: rotate(-4deg);
}
.carte-cadeau img { width: 42%; }
.carte-cadeau__eclair {
  position: absolute; right: -8%; bottom: 22%;
  width: 70%; color: var(--jaune); opacity: .9;
}
.carte-cadeau__titre {
  position: absolute; left: 7%; bottom: 20%;
  font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -.01em;
}
.carte-cadeau__pour {
  position: absolute; left: 7%; bottom: 9%;
  font-size: .8125rem; color: #c3d7f2; letter-spacing: .04em;
}
.section--bleu .bouton--clair { color: var(--bleu-profond); }
.section--bleu .bouton--clair:hover { color: var(--encre); }
#cadeau { overflow-x: clip; }   /* la carte inclinée ne doit pas élargir la page */

/* ------------------------------------------------------------------
   Accueil : l'en-tête se pose sur la photo du hero, puis redevient
   blanc dès qu'on défile (classe posée par site.js).
   ------------------------------------------------------------------ */
.entete__logo--clair { display: none; }

/* L'en-tête passe AU-DESSUS de la photo : en flux, il occuperait sa
   propre bande blanche et la transparence ne servirait à rien. */
.accueil .entete { position: fixed; top: 0; left: 0; right: 0; }
.accueil .hero { padding-top: calc(68px + var(--e7)); }
@media (max-width: 560px) { .accueil .hero { padding-top: calc(68px + var(--e5)); } }

@media (min-width: 981px) {
  .accueil .entete:not(.est-defile) {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
  }
  .accueil .entete:not(.est-defile) .nav__liens a,
  .accueil .entete:not(.est-defile) .entete__tel { color: var(--blanc); }
  .accueil .entete:not(.est-defile) .nav__liens a:hover { color: var(--jaune); }
  .accueil .entete:not(.est-defile) .entete__logo img { display: none; }
  .accueil .entete:not(.est-defile) .entete__logo .entete__logo--clair { display: block; }
}

/* ==================================================================
   Galeries de photos (pages Vitres et Réalisations)
   Les images ont des formats très différents : une grille à hauteur
   libre évite les recadrages et les bandes vides.
   ================================================================== */
.galerie {
  display: grid;
  gap: var(--e4);
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: start;
}
.galerie figure { margin: 0; }
.galerie figure { display: flex; flex-direction: column; }
.galerie img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;      /* tuiles régulières : sinon la grille fait un escalier */
  object-fit: cover;
  border-radius: var(--rayon);
  background: var(--gris);
}
/* Une image qu'on ne peut pas recadrer garde son format. */
.galerie .intacte img { aspect-ratio: auto; object-fit: contain; }
.galerie figcaption {
  margin-top: var(--e2);
  font-size: .875rem;
  color: var(--encre-50);
}
@media (min-width: 900px) {
  .galerie--trois { grid-template-columns: repeat(3, 1fr); }
}

.protocole__media--etroit img { max-width: 320px; }
@media (min-width: 900px) { .protocole__media--etroit { justify-self: center; } }

/* Carte cadeau : les montants payables en ligne */
.cadeau__invite { margin: var(--e5) 0 var(--e3); font-weight: 600; }
.cadeau__montants .bouton { min-width: 84px; justify-content: center; }
.cadeau__note { margin-top: var(--e4); font-size: .875rem; color: #c3d7f2; }
.paiement-direct { margin: var(--e4) 0 0; }
.paiement-direct span {
  display: block;
  margin-top: var(--e2);
  font-size: .8125rem;
  color: var(--encre-50);
}
