/* Shoal Creek Roofing : feuille de style de la démo américaine.
   Matières du métier : asphalte des bardeaux (fond sombre), calcaire des
   collines d'Austin (fond clair), tôle à joints debout (texture), lupin du
   Texas, la bluebonnet (unique couleur d'action). Rokkitt pour les titres
   (slab d'enseigne américaine), Libre Franklin pour le texte. */

@font-face {
  font-family: "Rokkitt";
  src: url("fonts/rokkitt-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --asphalte: #1B1F22;
  --asphalte-2: #232A2F;
  --asphalte-3: #2E363C;
  --calcaire: #F1EEE7;
  --calcaire-2: #E8E3D9;
  --calcaire-3: #D8D1C4;
  --papier: #FBFAF6;
  --acier: #5B6166;
  --acier-clair: #A7AEB3;
  --lupin: #3A4BCB;
  --lupin-fonce: #2C3AA8;
  --lupin-clair: #A9B4FF;
  --blanc-casse: #F8F7F3;
  --ambre: #D9962E;
  --rouge: #B3261E;
  --filet-clair: rgb(27 31 34 / 0.14);
  --filet-sombre: rgb(241 238 231 / 0.14);

  --font-titre: "Rokkitt", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-texte: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.22rem + 0.9vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.8vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.1rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.5vw, 5.5rem);

  --gouttiere: clamp(16px, 4vw, 40px);
  --rayon: 4px;
  --rayon-carte: 6px;
  --entete-h: 76px;
  --ease-sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --ombre-carte: 0 1px 2px rgb(27 31 34 / 0.06), 0 18px 40px -22px rgb(27 31 34 / 0.45);
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--entete-h) + var(--brnsg-barre, 0px) + 16px);
  scrollbar-color: var(--acier) var(--calcaire-2);
}

body {
  margin: 0;
  background: var(--calcaire);
  color: var(--asphalte);
  font-family: var(--font-texte);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
}

::selection {
  background: var(--lupin);
  color: var(--blanc-casse);
}

a {
  color: var(--lupin);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s, text-decoration-thickness 0.2s;
}

a:hover {
  color: var(--lupin-fonce);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--lupin);
  outline-offset: 3px;
}

.section--asphalte :focus-visible,
.page-tete :focus-visible,
.entete :focus-visible,
.pied :focus-visible,
.hero :focus-visible,
.barre-actions :focus-visible {
  outline-color: var(--lupin-clair);
}

address {
  font-style: normal;
}

/* L'attribut hidden gagne toujours, même sur un élément stylé en flex ou grid. */
[hidden] {
  display: none !important;
}

.colonne {
  width: min(100% - 2 * var(--gouttiere), 1240px);
  margin-inline: auto;
}

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

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: var(--rayon);
  background: var(--lupin);
  color: var(--blanc-casse);
  font-weight: 600;
}

.lien-evitement:focus {
  top: calc(var(--brnsg-barre, 0px) + 0.5rem);
  color: var(--blanc-casse);
}

.icone {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* État d'ouverture calculé (horaires.js) : pastille devant le texte. */
[data-brnsg-horaires][data-etat]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45em;
  border-radius: 50%;
  vertical-align: 0.08em;
  background: var(--acier-clair);
}

[data-brnsg-horaires][data-etat="ouvert"]::before {
  background: var(--lupin-clair);
  box-shadow: 0 0 0 3px rgb(169 180 255 / 0.25);
}

/* ------------------------------------------------------------------ */
/* Boutons et liens                                                     */
/* ------------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--rayon);
  font: 600 1rem/1.1 var(--font-texte);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-sortie);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton .icone {
  width: 18px;
  height: 18px;
}

.bouton--plein {
  background: var(--lupin);
  color: var(--blanc-casse);
}

.bouton--plein:hover {
  background: var(--lupin-fonce);
  color: var(--blanc-casse);
  text-decoration: none;
}

.bouton--contour {
  background: transparent;
  border-color: currentColor;
  color: var(--asphalte);
}

.bouton--contour:hover {
  background: var(--asphalte);
  border-color: var(--asphalte);
  color: var(--calcaire);
  text-decoration: none;
}

.page-tete .bouton--contour,
.section--asphalte .bouton--contour,
.bouton--clair {
  color: var(--calcaire);
}

.page-tete .bouton--contour:hover,
.section--asphalte .bouton--contour:hover,
.bouton--clair:hover {
  background: var(--calcaire);
  border-color: var(--calcaire);
  color: var(--asphalte);
}

.bouton--petit {
  min-height: 44px;
  padding: 0 1.05rem;
  font-size: 0.93rem;
}

.bouton--large {
  width: 100%;
}

.bouton[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.bouton-lien {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.95rem/1.2 var(--font-texte);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.bouton-lien:hover {
  text-decoration-thickness: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.lien-fleche--seul {
  margin-top: 2rem;
}

.lien-fleche--seul a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icone-fleche {
  transition: transform 0.25s var(--ease-sortie);
}

a:hover .icone-fleche {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/* Titres et trait de craie (signature)                                 */
/* ------------------------------------------------------------------ */

.titre-section {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.titre-section--petit {
  font-size: var(--step-3);
}

/* Le cordeau : un trait claqué à la craie, bord poudreux (masque de bruit).
   La poussière est posée dans .cordeau, hors du masque du trait. */
.cordeau {
  position: relative;
  display: block;
  width: 88px;
  height: 4px;
  margin: 1.1rem 0 1.5rem;
}

.trait-craie {
  position: absolute;
  inset: 0;
  background: var(--lupin);
  transform-origin: left center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 4' preserveAspectRatio='none'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4 0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='88' height='4' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 4' preserveAspectRatio='none'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4 0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.05'/%3E%3C/filter%3E%3Crect width='88' height='4' filter='url(%23b)'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}

.section--asphalte .trait-craie,
.page-tete .trait-craie {
  background: var(--lupin-clair);
}

.poussiere {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lupin);
  pointer-events: none;
}

.section--asphalte .poussiere {
  background: var(--lupin-clair);
}

.section-tete {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-chapo {
  font-size: var(--step-1);
  color: var(--acier);
  margin: 0;
}

.section--asphalte .section-chapo {
  color: var(--acier-clair);
}

/* ------------------------------------------------------------------ */
/* En-tête                                                              */
/* ------------------------------------------------------------------ */

.entete {
  position: sticky;
  top: var(--brnsg-barre, 0px);
  z-index: 900;
  background: var(--asphalte);
  color: var(--calcaire);
  border-bottom: 1px solid var(--filet-sombre);
  transition: transform 0.35s var(--ease-sortie);
}

.entete--cachee {
  transform: translateY(calc(-100% - var(--brnsg-barre, 0px) - 2px));
}

.entete-grille {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: var(--entete-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  color: var(--calcaire);
  text-decoration: none;
}

.logo:hover {
  color: var(--calcaire);
}

.logo-marque {
  width: 40px;
  height: 40px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-toit {
  stroke: currentColor;
  stroke-width: 3.2;
}

.logo-onde {
  stroke: var(--lupin-clair);
  stroke-width: 3;
}

.logo-texte {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-nom {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.logo-metier {
  margin-top: 0.22rem;
  color: var(--acier-clair);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
}

.nav-liste {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding-block: 0.45rem;
  color: var(--calcaire);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--lupin-clair);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-sortie);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-mobile-seulement {
  display: none;
}

.entete-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.entete-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--calcaire);
  line-height: 1.2;
  text-decoration: none;
}

.entete-tel:hover {
  color: var(--lupin-clair);
}

.entete-tel-numero {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.entete-statut {
  color: var(--acier-clair);
  font-size: 0.74rem;
  white-space: nowrap;
}

.menu-bouton {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--filet-sombre);
  border-radius: var(--rayon);
  background: transparent;
  color: var(--calcaire);
  font: 600 0.9rem var(--font-texte);
  cursor: pointer;
}

.menu-bouton-traits,
.menu-bouton-traits::before,
.menu-bouton-traits::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-sortie), opacity 0.2s;
}

.menu-bouton-traits {
  position: relative;
}

.menu-bouton-traits::before,
.menu-bouton-traits::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bouton-traits::before {
  top: -6px;
}

.menu-bouton-traits::after {
  top: 6px;
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits {
  background: transparent;
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .nav-liste {
    gap: 1.1rem;
  }

  .entete-devis {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --entete-h: 66px;
  }

  .entete-grille {
    gap: 1rem;
  }

  .menu-bouton {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: calc(var(--brnsg-barre, 0px) + var(--entete-h)) 0 0 0;
    z-index: 890;
    display: none;
    margin: 0;
    padding: 1.5rem var(--gouttiere) 6rem;
    overflow-y: auto;
    background: var(--asphalte);
    border-top: 1px solid var(--filet-sombre);
  }

  .nav--ouverte {
    display: block;
  }

  .nav-liste {
    flex-direction: column;
    gap: 0;
  }

  .nav-liste li {
    border-bottom: 1px solid var(--filet-sombre);
  }

  .nav a {
    padding-block: 1rem;
    font-family: var(--font-titre);
    font-size: 1.7rem;
    font-weight: 700;
  }

  .nav a::after {
    display: none;
  }

  .nav a[aria-current="page"] {
    color: var(--lupin-clair);
  }

  .nav-mobile-seulement {
    display: block;
  }

  .entete-actions {
    margin-left: auto;
  }

  body.menu-ouvert {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .logo-marque {
    width: 34px;
    height: 34px;
  }

  .logo-nom {
    font-size: 1.22rem;
  }

  .logo-metier {
    font-size: 0.58rem;
    letter-spacing: 0.26em;
  }

  .entete-tel-numero {
    font-size: 1.05rem;
  }

  .entete-statut {
    font-size: 0.68rem;
  }

  .menu-bouton {
    padding: 0 0.7rem;
  }

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

@media (max-width: 380px) {
  .entete-statut {
    display: none;
  }

  .logo-metier {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Hero (accueil) : vidéo drone en fond                                 */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(calc(100svh - var(--entete-h) - var(--brnsg-barre, 0px)), 920px);
  overflow: hidden;
  isolation: isolate;
  background: var(--asphalte);
  color: var(--calcaire);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-poster,
.hero-poster img,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero-video {
  opacity: 0;
  transition: opacity 1.2s var(--ease-sortie);
}

.hero-video.est-prete {
  opacity: 1;
}

.hero-voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(27 31 34 / 0.5) 0%, rgb(27 31 34 / 0) 26%, rgb(27 31 34 / 0.12) 52%, rgb(27 31 34 / 0.86) 100%),
    linear-gradient(90deg, rgb(27 31 34 / 0.62) 0%, rgb(27 31 34 / 0.18) 55%, rgb(27 31 34 / 0) 80%);
}

.hero-contenu {
  align-self: end;
  padding-block: clamp(5rem, 13vh, 10rem) clamp(2rem, 5vh, 3.25rem);
}

.hero-amorce {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.1rem;
  color: var(--calcaire);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-amorce::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--lupin-clair);
}

.hero-titre {
  max-width: 15.5ch;
  margin: 0 0 1.4rem;
  font-family: var(--font-titre);
  font-size: var(--step-5);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.016em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(27 31 34 / 0.35);
}

.hero-texte {
  max-width: 50ch;
  margin: 0 0 2rem;
  color: rgb(241 238 231 / 0.92);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-pied {
  position: relative;
  border-top: 1px solid var(--filet-sombre);
  background: rgb(27 31 34 / 0.58);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.hero-preuves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.hero-preuves li {
  padding: 1.1rem 1.25rem;
  border-left: 1px solid var(--filet-sombre);
  color: var(--acier-clair);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-preuves li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-preuves strong {
  display: block;
  color: var(--calcaire);
  font-family: var(--font-titre);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-pause {
  position: absolute;
  top: 1.25rem;
  right: var(--gouttiere);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgb(241 238 231 / 0.35);
  border-radius: var(--rayon);
  background: rgb(27 31 34 / 0.45);
  color: var(--calcaire);
  font: 600 0.8rem var(--font-texte);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-pause:hover {
  background: rgb(27 31 34 / 0.75);
}

.hero-pause-icone {
  position: relative;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.hero-pause[data-etat="pause"] .hero-pause-icone {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - var(--entete-h) - var(--brnsg-barre, 0px) - 64px);
  }

  .hero-voile {
    background: linear-gradient(180deg, rgb(27 31 34 / 0.35) 0%, rgb(27 31 34 / 0.05) 25%, rgb(27 31 34 / 0.55) 55%, rgb(27 31 34 / 0.92) 100%);
  }

  .hero-contenu {
    padding-top: 9rem;
  }

  .hero-actions .bouton {
    flex: 1 1 100%;
  }

  .hero-preuves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-preuves li {
    padding: 0.85rem 0.9rem;
    border-top: 1px solid var(--filet-sombre);
    font-size: 0.82rem;
  }

  .hero-preuves li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-preuves li:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero-preuves strong {
    font-size: 1.3rem;
  }

  .hero-pause {
    top: 0.9rem;
  }

  .hero-poster img,
  .hero-video {
    object-position: 50% 50%;
  }

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

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--serre {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--pierre {
  background: var(--calcaire-2);
}

.section--asphalte {
  background: var(--asphalte);
  color: var(--calcaire);
}

.section--asphalte a:not(.bouton) {
  color: var(--lupin-clair);
}

/* Tôle à joints debout : un joint tous les 96 px, reflet en haut. */
.section--joints {
  background-color: var(--asphalte);
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0) 50%),
    repeating-linear-gradient(90deg, rgb(0 0 0 / 0) 0 94px, rgb(255 255 255 / 0.055) 94px 95px, rgb(0 0 0 / 0.26) 95px 97px);
}

.note {
  margin: 1.25rem 0 0;
  color: var(--acier);
  font-size: 0.9rem;
}

.section--asphalte .note {
  color: var(--acier-clair);
}

.liste-coches {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.liste-coches li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.liste-coches .icone {
  margin-top: 0.22rem;
  color: var(--lupin);
  stroke-width: 2.4;
}

.section--asphalte .liste-coches .icone {
  color: var(--lupin-clair);
}

/* ------------------------------------------------------------------ */
/* Estimateur                                                           */
/* ------------------------------------------------------------------ */

.estimateur-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.estimateur-intro > p {
  max-width: 44ch;
  color: var(--acier-clair);
  font-size: var(--step-1);
}

.estimateur-intro .liste-coches {
  color: var(--calcaire);
}

.estimateur-seul {
  max-width: 820px;
}

.estimateur {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--rayon-carte);
  background: var(--calcaire);
  color: var(--asphalte);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.06);
}

.estimateur-progression {
  height: 4px;
  margin-bottom: 1.6rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--calcaire-3);
}

.estimateur-progression span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--lupin);
  transition: width 0.55s var(--ease-sortie);
}

.no-js .estimateur-progression {
  display: none;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.no-js .question + .question {
  margin-top: 2rem;
}

.js .question:not(.question--active) {
  display: none;
}

.question-legende {
  margin-bottom: 0.45rem;
  padding: 0;
  font-family: var(--font-titre);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.02;
}

.question-numero {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--acier);
  font-family: var(--font-texte);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.question-aide {
  margin: 0 0 1.3rem;
  color: var(--acier);
  font-size: 0.95rem;
}

.tuiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.question[data-question="forme"] .tuiles,
.question[data-question="materiau"] .tuiles {
  grid-template-columns: minmax(0, 1fr);
}

.tuile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border: 1.5px solid var(--calcaire-3);
  border-radius: var(--rayon);
  background: var(--papier);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease-sortie);
}

.tuile:hover {
  border-color: var(--acier);
}

.tuile:active {
  transform: scale(0.99);
}

.tuile input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.tuile:has(input:checked) {
  border-color: var(--lupin);
  background: color-mix(in oklab, var(--lupin) 7%, var(--papier));
}

.tuile:has(input:focus-visible) {
  outline: 3px solid var(--lupin);
  outline-offset: 2px;
}

.tuile-corps {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
}

.tuile-libelle {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

.tuile-aide {
  color: var(--acier);
  font-size: 0.86rem;
  line-height: 1.4;
}

.tuile-coche {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--calcaire-3);
  border-radius: 50%;
  color: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.tuile-coche .icone {
  width: 14px;
  height: 14px;
  stroke-width: 2.8;
}

.tuile:has(input:checked) .tuile-coche {
  border-color: var(--lupin);
  background: var(--lupin);
  color: var(--blanc-casse);
}

.question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.no-js .question-nav {
  display: none;
}

.estimateur-sans-js {
  margin: 1.5rem 0 0;
  color: var(--acier);
}

.resultat:focus {
  outline: none;
}

.resultat-libelle {
  margin: 0 0 0.7rem;
  color: var(--acier);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resultat-prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1em 0.35em;
  margin: 0 0 1rem;
  color: var(--asphalte);
  font-family: var(--font-titre);
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.resultat-a {
  color: var(--acier);
  font-family: var(--font-texte);
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
}

/* Compteur à rouleaux : une bande 0 à 9 par chiffre, translatée en em. */
.odometre {
  display: inline-flex;
  font-variant-numeric: tabular-nums;
}

.odometre-chiffre {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}

.odometre-bande {
  display: flex;
  flex-direction: column;
  transition: transform 1.15s var(--ease-sortie);
}

.odometre-bande > span {
  display: block;
  height: 1em;
  line-height: 1;
}

.odometre-signe {
  display: inline-block;
  line-height: 1;
}

.resultat-detail {
  max-width: 52ch;
  color: var(--acier);
}

.resultat-inclus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
  margin: 1.4rem 0;
  padding: 1.25rem 0;
  border-block: 1px solid var(--filet-clair);
  list-style: none;
  font-size: 0.93rem;
}

.resultat-inclus li {
  display: flex;
  gap: 0.6rem;
}

.resultat-inclus .icone {
  margin-top: 0.18rem;
  color: var(--lupin);
  stroke-width: 2.6;
}

.resultat-note {
  color: var(--acier);
  font-size: 0.88rem;
}

.resultat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .estimateur-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .tuiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .tuile {
    min-height: 58px;
  }

  .resultat-inclus {
    grid-template-columns: minmax(0, 1fr);
  }

  .resultat-actions .bouton {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Services (bento)                                                     */
/* ------------------------------------------------------------------ */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.tuile-service {
  position: relative;
  overflow: hidden;
  border-radius: var(--rayon-carte);
  background: var(--asphalte);
  color: var(--calcaire);
}

.tuile-service--grande {
  grid-column: 1 / span 7;
  grid-row: span 2;
}

.tuile-service--haute {
  grid-column: 8 / span 5;
}

.tuile-service--large {
  grid-column: 1 / -1;
}

.tuile-service-lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tuile-service-lien:hover {
  color: inherit;
}

.tuile-service-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tuile-service--grande .tuile-service-image {
  flex: 1;
  min-height: 320px;
  aspect-ratio: auto;
}

.tuile-service-image picture,
.tuile-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tuile-service-image img {
  transition: transform 0.9s var(--ease-sortie);
}

.tuile-service-lien:hover .tuile-service-image img {
  transform: scale(1.045);
}

.tuile-service-texte {
  padding: 1.4rem 1.5rem 1.6rem;
}

.tuile-service-texte p {
  color: var(--acier-clair);
}

.tuile-service-titre {
  margin-bottom: 0.5rem;
  font-family: var(--font-titre);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.05;
}

.tuile-service .lien-fleche {
  color: var(--lupin-clair);
}

.tuile-service-lien:hover .icone-fleche {
  transform: translateX(4px);
}

.tuile-service--large .tuile-service-lien {
  flex-direction: row;
}

.tuile-service--large .tuile-service-image {
  flex: 0 0 46%;
  aspect-ratio: auto;
  min-height: 260px;
}

.tuile-service--large .tuile-service-texte {
  align-self: center;
  max-width: 34rem;
  padding: 2rem 2.2rem;
}

@media (max-width: 960px) {
  .tuile-service--grande,
  .tuile-service--haute,
  .tuile-service--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tuile-service--grande .tuile-service-image {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .tuile-service--large .tuile-service-lien {
    flex-direction: column;
  }

  .tuile-service--large .tuile-service-image {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .tuile-service--large .tuile-service-texte {
    padding: 1.4rem 1.5rem 1.6rem;
  }
}

/* ------------------------------------------------------------------ */
/* Étapes                                                               */
/* ------------------------------------------------------------------ */

.etapes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.etape-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--rayon-carte);
}

.etape-image picture,
.etape-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.etape-numero {
  margin: 1.2rem 0 0.25rem;
  color: var(--lupin);
  font-family: var(--font-titre);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.etape-titre {
  font-family: var(--font-titre);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.05;
}

.etape-duree {
  margin: 0.35rem 0 0.7rem;
  color: var(--acier);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .etapes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .etapes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Avis                                                                 */
/* ------------------------------------------------------------------ */

.avis-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.avis-entete .cordeau {
  margin-bottom: 0;
}

.avis-note {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avis-note-chiffre {
  margin: 0;
  font-family: var(--font-titre);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 0.9;
}

.avis-note-texte {
  margin: 0.35rem 0 0;
  color: var(--acier);
  font-size: 0.92rem;
}

.etoiles {
  display: inline-flex;
  gap: 2px;
}

.etoile {
  width: 18px;
  height: 18px;
  fill: var(--calcaire-3);
}

.etoile--pleine {
  fill: var(--ambre);
}

.avis-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.avis-liste--complete {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avis-carte {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--filet-clair);
  border-radius: var(--rayon-carte);
  background: var(--papier);
}

.avis-texte {
  flex: 1;
  margin: 1rem 0 1.25rem;
}

.avis-texte p {
  margin: 0;
  font-size: 1.04rem;
}

.avis-auteur {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 0;
  color: var(--acier);
  font-size: 0.86rem;
}

.avis-nom {
  color: var(--asphalte);
  font-weight: 700;
}

.avis-lieu::after {
  content: "·";
  margin-left: 0.6rem;
}

@media (max-width: 960px) {
  .avis-liste,
  .avis-liste--complete {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Orage : quatre contrôles                                             */
/* ------------------------------------------------------------------ */

.orage-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.orage-intro > p {
  max-width: 40ch;
  color: var(--acier-clair);
  font-size: var(--step-1);
}

.orage-intro .actions {
  margin-top: 2rem;
}

.controles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.controle {
  padding: 1.5rem;
  border: 1px solid var(--filet-sombre);
  border-radius: var(--rayon-carte);
  background: var(--asphalte-2);
}

.controle p {
  margin: 0;
  color: var(--acier-clair);
}

.controle-coche {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgb(169 180 255 / 0.14);
  color: var(--lupin-clair);
}

.controle-coche .icone {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.controle-titre {
  margin-bottom: 0.45rem;
  font-family: var(--font-titre);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 960px) {
  .orage-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .controles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Zone desservie et carte                                              */
/* ------------------------------------------------------------------ */

.zone-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.zone-grille--page {
  align-items: start;
}

.zone-carte {
  max-width: 560px;
}

.carte {
  width: 100%;
  height: auto;
  border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-carte);
}

.carte-fond {
  fill: var(--asphalte);
}

.carte-anneau {
  fill: none;
  stroke: var(--lupin-clair);
  stroke-opacity: 0.38;
  stroke-width: 1.2;
  stroke-dasharray: 3 6;
}

.carte-anneau-texte {
  fill: var(--lupin-clair);
  font: 600 11px var(--font-texte);
  letter-spacing: 0.08em;
}

.carte-riviere {
  fill: none;
  stroke: #5E7C99;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.carte-riviere-texte {
  fill: #8FA6BD;
  font: 500 italic 12px var(--font-texte);
}

.carte-route {
  fill: none;
  stroke: var(--acier);
  stroke-width: 2;
  stroke-dasharray: 9 6;
}

.carte-route-texte {
  fill: var(--acier-clair);
  font: 700 11px var(--font-texte);
  letter-spacing: 0.06em;
}

.carte-ruisseau {
  fill: none;
  stroke: var(--lupin-clair);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carte-ruisseau-texte {
  fill: var(--lupin-clair);
  font: 600 italic 12px var(--font-texte);
}

.carte-ville circle {
  fill: var(--calcaire);
}

.carte-ville text {
  fill: var(--calcaire);
  font: 500 13px var(--font-texte);
  paint-order: stroke;
  stroke: var(--asphalte);
  stroke-width: 3px;
}

.carte-base circle {
  fill: var(--lupin-clair);
}

.carte-base .carte-base-halo {
  opacity: 0.22;
}

.carte-base text {
  fill: var(--lupin-clair);
  font: 700 13px var(--font-texte);
  paint-order: stroke;
  stroke: var(--asphalte);
  stroke-width: 3px;
}

.villes-phares {
  display: grid;
  gap: 1.1rem;
  margin: 1.75rem 0 0;
}

.villes-phares > div {
  padding-top: 1.1rem;
  border-top: 1px solid var(--filet-clair);
}

.villes-phares dt {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 800;
}

.villes-phares dt span {
  margin-left: 0.4rem;
  color: var(--lupin);
  font-family: var(--font-texte);
  font-size: 0.8rem;
  font-weight: 600;
}

.villes-phares dd {
  margin: 0.2rem 0 0;
  color: var(--acier);
}

.villes-phares--grille {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 0;
}

.zone-groupe + .zone-groupe {
  margin-top: 2rem;
}

.zone-groupe-titre {
  margin-bottom: 0.75rem;
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 800;
}

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

.zone-villes li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--calcaire-3);
}

.zone-villes li span:last-child {
  color: var(--acier);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .zone-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .zone-carte {
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }

  .villes-phares--grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Portraits                                                            */
/* ------------------------------------------------------------------ */

.portraits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.portrait-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.1rem;
  border-radius: var(--rayon-carte);
}

.portrait-image picture,
.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-nom {
  font-family: var(--font-titre);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.05;
}

.portrait-role {
  margin: 0.3rem 0 0.6rem;
  color: var(--lupin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait p:last-child {
  color: var(--acier);
}

@media (max-width: 760px) {
  .portraits {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .portrait-image {
    aspect-ratio: 1 / 1;
  }
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                  */
/* ------------------------------------------------------------------ */

.faq-grille {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.faq-intro p {
  color: var(--acier);
}

.faq {
  border-top: 1px solid var(--filet-clair);
}

.faq-item {
  border-bottom: 1px solid var(--filet-clair);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--font-titre);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--lupin);
}

.faq-signe {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.faq-signe::before,
.faq-signe::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-sortie);
}

.faq-signe::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-signe::after {
  transform: rotate(0deg);
}

.faq-reponse {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--acier);
}

.faq-reponse p {
  margin: 0;
}

@media (max-width: 960px) {
  .faq-grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Formulaires                                                          */
/* ------------------------------------------------------------------ */

.formulaire-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.formulaire-intro > p {
  max-width: 42ch;
  font-size: var(--step-1);
}

.section--asphalte .formulaire-intro > p {
  color: var(--acier-clair);
}

.formulaire-carte {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--rayon-carte);
  background: var(--calcaire);
  color: var(--asphalte);
  box-shadow: var(--ombre-carte);
}

.section--pierre .formulaire-carte,
.formulaire-carte--bordee {
  background: var(--papier);
  border: 1px solid var(--filet-clair);
}

.formulaire-carte a {
  color: var(--lupin);
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
}

.champ-rangee {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.champ label,
.champ legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.champ-optionnel {
  color: var(--acier);
  font-weight: 400;
}

.champ-aide {
  margin: 0;
  color: var(--acier);
  font-size: 0.86rem;
}

.champ-aide--urgence {
  margin-top: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--rouge);
  background: rgb(179 38 30 / 0.07);
  color: var(--asphalte);
}

.champ input[type="text"],
.champ input[type="tel"],
.champ input[type="email"],
.champ input[type="date"],
.champ select,
.champ textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--calcaire-3);
  border-radius: var(--rayon);
  background: #FFFEFB;
  color: var(--asphalte);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.champ textarea {
  min-height: 110px;
  resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--lupin);
  box-shadow: 0 0 0 3px rgb(58 75 203 / 0.22);
}

.champ [aria-invalid="true"] {
  border-color: var(--rouge);
}

.select-enveloppe {
  position: relative;
}

.select-enveloppe::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--acier);
  border-bottom: 2px solid var(--acier);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.champ select {
  padding-right: 2.5rem;
  -webkit-appearance: none;
  appearance: none;
}

.champ-radios {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.champ-radios legend {
  width: 100%;
  margin-bottom: 0.5rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.radio input,
.consentement input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--lupin);
  flex: none;
}

.champ-erreur {
  margin: 0;
  color: var(--rouge);
  font-size: 0.88rem;
}

.formulaire-erreur:empty {
  display: none;
}

.formulaire-erreur {
  margin-top: 0.9rem;
}

.champ-piege {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.4rem 0 1.1rem;
  color: var(--acier);
  font-size: 0.88rem;
  cursor: pointer;
}

.consentement input {
  margin-top: 0.15rem;
}

.formulaire-note {
  margin: 0.9rem 0 0;
  color: var(--acier);
  font-size: 0.85rem;
  text-align: center;
}

.estimation-jointe {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem;
  border: 1.5px dashed var(--lupin);
  border-radius: var(--rayon);
  background: rgb(58 75 203 / 0.06);
}

.estimation-jointe-titre {
  margin: 0 0 0.2rem;
  color: var(--lupin);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estimation-jointe-texte {
  margin: 0;
  font-weight: 600;
}

.formulaire-succes {
  padding: 1rem 0;
}

.formulaire-succes:focus {
  outline: none;
}

.formulaire-succes-titre {
  font-family: var(--font-titre);
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.1;
}

.contact-carte {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--filet-sombre);
  border-radius: var(--rayon-carte);
  background: var(--asphalte-2);
  color: var(--acier-clair);
}

.contact-carte p,
.contact-carte address {
  margin: 0 0 0.6rem;
}

.contact-carte > :last-child {
  margin-bottom: 0;
}

.contact-tel a {
  color: var(--calcaire) !important;
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-statut {
  color: var(--calcaire);
}

.contact-urgence {
  color: var(--lupin-clair);
  font-weight: 600;
}

.contact-adresse {
  padding-top: 0.75rem;
  border-top: 1px solid var(--filet-sombre);
  color: var(--calcaire);
}

.formulaire-intro--clair .suite {
  margin-top: 1.5rem;
}

.suite {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: suite;
}

.suite li {
  position: relative;
  padding-left: 3rem;
  counter-increment: suite;
}

.suite li::before {
  content: counter(suite);
  position: absolute;
  top: -0.1rem;
  left: 0;
  color: var(--lupin);
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.suite p {
  margin: 0;
  color: var(--acier);
}

.suite .suite-titre {
  color: var(--asphalte);
  font-weight: 700;
}

@media (max-width: 960px) {
  .formulaire-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .formulaire-carte {
    order: -1;
  }

  .section--formulaire .formulaire-intro {
    order: 0;
  }
}

@media (max-width: 560px) {
  .champ-rangee {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Pages intérieures                                                    */
/* ------------------------------------------------------------------ */

.page-tete {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--asphalte);
  color: var(--calcaire);
}

.page-tete-grille {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.page-titre {
  max-width: 15ch;
  margin: 0 0 1.25rem;
  font-family: var(--font-titre);
  font-size: clamp(2.5rem, 1.55rem + 4.4vw, 5.3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-chapo {
  max-width: 54ch;
  margin: 0 0 2rem;
  color: rgb(241 238 231 / 0.86);
  font-size: var(--step-1);
}

.page-tete--simple .page-chapo {
  margin-bottom: 0;
}

.page-tete--simple .page-titre {
  max-width: 20ch;
}

.page-tete-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--rayon-carte);
}

.page-tete-image picture,
.page-tete-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-tete--404 .actions {
  margin-top: 2rem;
}

.code-erreur {
  color: var(--lupin-clair);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.duo--inverse .duo-image {
  order: 2;
}

.duo-image {
  overflow: hidden;
  border-radius: var(--rayon-carte);
}

.duo-image picture,
.duo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo-texte > p {
  max-width: 56ch;
}

.section:not(.section--asphalte) .duo-texte > p {
  color: var(--acier);
}

.prix-ligne {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet-clair);
}

.section--asphalte .prix-ligne {
  border-top-color: var(--filet-sombre);
}

.prix-ligne strong {
  font-family: var(--font-titre);
  font-size: 1.35rem;
}

@media (max-width: 960px) {
  .page-tete-grille,
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .duo--inverse .duo-image {
    order: 0;
  }
}

/* Tableaux : défilement horizontal interne, jamais celui de la page. */
.tableau-enveloppe {
  overflow-x: auto;
  border: 1px solid var(--filet-clair);
  border-radius: var(--rayon-carte);
  background: var(--papier);
  -webkit-overflow-scrolling: touch;
}

.tableau {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tableau--tarifs .tableau {
  min-width: 560px;
}

.tableau th,
.tableau td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--filet-clair);
  text-align: left;
  vertical-align: top;
}

.tableau tbody tr:last-child th,
.tableau tbody tr:last-child td {
  border-bottom: 0;
}

.tableau thead th {
  background: var(--asphalte);
  color: var(--calcaire);
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.15;
}

.tableau tbody th {
  width: 24%;
  color: var(--acier);
  font-weight: 600;
}

.tableau--comparatif tbody tr:first-child td {
  color: var(--asphalte);
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 800;
}

.tableau--tarifs tbody td:nth-child(2) {
  font-family: var(--font-titre);
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

.tableau th[scope="row"],
.tableau .tableau-coin {
  position: sticky;
  left: 0;
  z-index: 1;
}

.tableau th[scope="row"] {
  background: var(--papier);
}

.tableau .tableau-coin {
  background: var(--asphalte);
}

.inclus-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.inclus-images {
  position: relative;
  padding-bottom: 18%;
}

.inclus-image {
  overflow: hidden;
  border-radius: var(--rayon-carte);
}

.inclus-image--2 {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 58%;
  border: 6px solid var(--calcaire-2);
}

.inclus-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 2rem;
  margin: 0;
}

.inclus-liste dt {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 800;
}

.inclus-liste dd {
  margin: 0.25rem 0 0;
  color: var(--acier);
}

.journee-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.journee-grille > div > p {
  color: var(--acier);
}

.journee-image {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: var(--rayon-carte);
}

.journee {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journee::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 6px;
  width: 2px;
  background: var(--calcaire-3);
}

.journee li {
  position: relative;
  padding: 0 0 1.6rem 2.2rem;
}

.journee li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--lupin);
  border-radius: 50%;
  background: var(--calcaire);
}

.journee p {
  margin: 0;
  color: var(--acier);
}

.journee .journee-heure {
  color: var(--asphalte);
  font-family: var(--font-titre);
  font-size: 1.35rem;
  font-weight: 800;
}

.options-grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.options-grille > div > p {
  color: var(--acier);
}

.prix-liste {
  margin: 0;
}

.prix-liste > div {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dotted var(--acier-clair);
}

.prix-liste dt {
  flex: 1;
  font-weight: 600;
}

.prix-liste dd {
  margin: 0;
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: right;
}

.paiement {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.75rem;
  border-radius: var(--rayon-carte);
  background: var(--asphalte);
  color: var(--acier-clair);
}

.paiement-titre {
  margin-bottom: 0.5rem;
  color: var(--calcaire);
  font-family: var(--font-titre);
  font-size: var(--step-2);
  font-weight: 800;
}

.paiement p {
  margin: 0;
}

.parcours {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.parcours-etape {
  padding: 1.4rem;
  border-top: 3px solid var(--lupin);
  background: var(--papier);
  border-radius: 0 0 var(--rayon-carte) var(--rayon-carte);
}

.parcours-etape p {
  margin: 0;
  color: var(--acier);
  font-size: 0.95rem;
}

.parcours .parcours-numero {
  margin-bottom: 0.6rem;
  color: var(--lupin);
  font-family: var(--font-titre);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.parcours-titre {
  margin-bottom: 0.5rem;
  font-family: var(--font-titre);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.encadre-loi,
.encadre-classe4 {
  align-self: stretch;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--rayon-carte);
}

.encadre-loi {
  background: var(--asphalte);
  color: var(--calcaire);
}

.encadre-loi .trait-craie {
  background: var(--lupin-clair);
}

.encadre-loi .liste-coches .icone {
  color: var(--lupin-clair);
}

.encadre-loi a {
  color: var(--lupin-clair);
}

.encadre-loi .note {
  color: var(--acier-clair);
}

.encadre-classe4 {
  border: 1px solid var(--filet-clair);
  background: var(--papier);
}

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.chiffres > div {
  padding: 1.5rem;
  border-radius: var(--rayon-carte);
  background: var(--asphalte);
  color: var(--acier-clair);
}

.chiffres dt {
  color: var(--calcaire);
  font-family: var(--font-titre);
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.chiffres dd {
  margin: 0.5rem 0 0;
}

.section--appel {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.appel-grille {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.appel-grille p {
  max-width: 46ch;
  margin: 0;
  color: var(--acier-clair);
  font-size: var(--step-1);
}

.texte-legal {
  max-width: 74ch;
}

.texte-legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-titre);
  font-size: var(--step-2);
  font-weight: 800;
}

.texte-legal h2:first-child {
  margin-top: 0;
}

.texte-legal p {
  color: var(--acier);
}

@media (max-width: 960px) {
  .inclus-grille,
  .journee-grille,
  .options-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .inclus-images {
    max-width: 560px;
  }

  .inclus-image--2 {
    right: 0;
  }

  .parcours {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .inclus-liste {
    grid-template-columns: minmax(0, 1fr);
  }

  .appel-grille .actions,
  .appel-grille .bouton {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                         */
/* ------------------------------------------------------------------ */

.pied {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--asphalte);
  color: var(--acier-clair);
  font-size: 0.93rem;
}

.pied a {
  color: var(--calcaire);
}

.pied a:hover {
  color: var(--lupin-clair);
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr 1.3fr;
  gap: 2.5rem;
}

.pied-bloc p {
  margin: 0 0 0.6rem;
}

.logo--pied {
  margin-bottom: 1.4rem;
}

.pied-adresse {
  margin-bottom: 0.6rem;
  color: var(--calcaire);
}

.pied-tel a {
  font-family: var(--font-titre);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}

.pied-titre {
  margin: 0 0 1rem !important;
  color: var(--calcaire);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pied-horaires,
.pied-liens {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.pied-horaires li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--filet-sombre);
}

.pied-horaires li span:last-child {
  color: var(--calcaire);
}

.pied-liens li {
  padding: 0.25rem 0;
}

.pied-liens a {
  text-decoration: none;
}

.pied-liens a:hover {
  text-decoration: underline;
}

.pied-statut {
  color: var(--calcaire);
}

.pied-urgence {
  color: var(--lupin-clair);
  font-weight: 600;
}

.pied-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet-sombre);
  font-size: 0.85rem;
}

.pied-legal p {
  margin: 0;
}

.pied-filigrane::before {
  content: attr(data-texte);
}

.pied-filigrane {
  margin: 2.5rem 0 -0.16em;
  color: rgb(241 238 231 / 0.045);
  font-family: var(--font-titre);
  font-size: clamp(4.5rem, 19vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 960px) {
  .pied-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pied-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* ------------------------------------------------------------------ */
/* Barre d'actions mobile                                               */
/* ------------------------------------------------------------------ */

.barre-actions {
  display: none;
}

@media (max-width: 760px) {
  .barre-actions {
    position: fixed;
    right: 0;
    bottom: var(--brnsg-onglet, 0px);
    left: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem var(--gouttiere) calc(0.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--filet-sombre);
    background: rgb(27 31 34 / 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .barre-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    border-radius: var(--rayon);
    font-weight: 600;
    text-decoration: none;
  }

  .barre-actions-tel {
    background: var(--lupin);
    color: var(--blanc-casse);
  }

  .barre-actions-tel .icone {
    width: 18px;
    height: 18px;
  }

  .barre-actions-devis {
    border: 1.5px solid rgb(241 238 231 / 0.6);
    color: var(--calcaire);
  }

  .barre-actions-tel:hover,
  .barre-actions-devis:hover {
    color: var(--blanc-casse);
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  body.menu-ouvert .barre-actions {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Mouvement : états de départ (seulement si js-motion est posé)        */
/* ------------------------------------------------------------------ */

.js-motion .trait-craie {
  transform: scaleX(0);
}

.js-motion [data-titre-anime] {
  visibility: hidden;
}

.js-motion :is(.hero-amorce, .hero-texte, .hero-actions, .hero-preuves li,
  .estimateur-intro > p, .estimateur-intro .liste-coches li, .estimateur,
  .tuile-service, .etape, .avis-carte, .avis-note, .controle, .orage-intro > p, .orage-intro .actions,
  .zone-texte > p, .villes-phares > div, .zone-groupe, .portrait, .faq-item, .faq-intro > p,
  .formulaire-intro > p, .contact-carte, .formulaire-carte, .page-chapo, .page-tete .actions, .page-tete-image,
  .section-chapo, .tableau-enveloppe, .inclus-liste > div, .inclus-image, .journee li, .journee-image,
  .prix-liste > div, .paiement, .parcours-etape, .duo-texte > p, .duo-image, .chiffres > div,
  .encadre-loi, .encadre-classe4, .appel-grille p, .appel-grille .actions, .suite li, .texte-legal) {
  opacity: 0;
}

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