@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 750;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --vert: #1e3a32;
  --vert-clair: #2b4c42;
  --vert-trait: #3c5f54;
  --laiton: #d2ac55;
  --laiton-vif: #e3c172;
  --laiton-texte: #7a5c1e;
  --papier: #eef1ec;
  --blanc: #fbfcfa;
  --encre: #17221e;
  --acier: #55625d;
  --filet: #cfd6d0;
  --erreur: #a8321f;
  --rayon: 6px;
  --large: 72rem;
  --barre: 4.25rem;
  --police: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  padding-bottom: var(--barre);
}

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

a { color: var(--vert); text-underline-offset: 0.18em; }
a:hover { color: var(--laiton-texte); }

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

/* Grille de page : le texte vient en premier dans le HTML, la grille le replace. */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "entete"
    "intro"
    "action"
    "texte"
    "pied";
  position: relative;
}
.page > main { display: contents; }
.page::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  background: var(--vert);
  border-bottom: 5px double var(--laiton);
  z-index: 0;
}
.entete { grid-area: entete; }
.intro { grid-area: intro; }
.action { grid-area: action; }
.texte { grid-area: texte; }
.pied { grid-area: pied; }
.entete, .intro, .action, .texte, .pied { position: relative; z-index: 1; min-width: 0; }

.cadre { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 1rem; }

/* En-tête */
.entete .cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--vert-trait);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blanc);
  text-decoration: none;
  font-stretch: 78%;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--laiton-vif); }
.logo img { width: 2.1rem; height: 2.1rem; flex: none; }
.logo small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--laiton-vif); letter-spacing: 0.02em; }
.entete nav { display: none; }
.entete-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--laiton-vif);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.entete-tel svg { width: 1.1rem; height: 1.1rem; }
.entete-tel span { display: none; }

/* Introduction : titre et promesse, sur fond vert */
.intro .cadre { padding-top: 1.25rem; padding-bottom: 0.5rem; position: relative; overflow: hidden; }
.ariane { font-size: 0.82rem; color: #b9c8c1; margin: 0 0 0.75rem; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.4rem; }
.ariane li + li::before { content: "/"; margin-right: 0.4rem; color: var(--vert-trait); }
.ariane a { color: #d7e2dd; text-decoration: none; }
.ariane a:hover { color: var(--laiton-vif); text-decoration: underline; }

h1 {
  color: var(--blanc);
  font-stretch: 75%;
  font-weight: 720;
  font-size: clamp(1.75rem, 7.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
.lieu { color: var(--laiton-vif); font-weight: 600; margin: 0 0 0.5rem; font-size: 1rem; }
.promesse { color: #dfe8e3; margin: 0; max-width: 38rem; font-size: 1.05rem; }

.cadran {
  position: absolute;
  right: -5.5rem;
  top: -1.5rem;
  width: 15rem;
  height: 15rem;
  opacity: 0.22;
  pointer-events: none;
}
.cadran img, .cadran svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cadran .roue { animation: composer 1.9s cubic-bezier(.2,.75,.25,1) 0.15s both; }
@keyframes composer {
  0% { transform: rotate(-200deg); }
  55% { transform: rotate(38deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cadran .roue { animation: none; }
}

/* Bloc d'action : appel et rappel */
.action .cadre { padding-top: 1rem; padding-bottom: 1.75rem; }
.appel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  background: var(--laiton);
  color: #14261f;
  border-radius: var(--rayon);
  font-weight: 720;
  font-size: 1.2rem;
  font-stretch: 85%;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.appel:hover { background: var(--laiton-vif); color: #14261f; }
.appel svg { width: 1.35rem; height: 1.35rem; flex: none; }
.appel-sous { color: #b9c8c1; font-size: 0.86rem; text-align: center; margin: 0.45rem 0 1rem; }

.rappel {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 1.1rem 1rem 1rem;
  border-top: 4px solid var(--laiton);
}
.rappel h2 { font-size: 1.15rem; font-stretch: 85%; margin: 0 0 0.75rem; line-height: 1.2; }
.rappel fieldset { border: 0; margin: 0 0 0.8rem; padding: 0; }
.rappel legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; padding: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.puces label { position: relative; }
.puces input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.puces span {
  display: block;
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--filet);
  border-radius: 999px;
  font-size: 0.92rem;
  background: #fff;
  cursor: pointer;
  line-height: 1.2;
}
.puces input:checked + span { background: var(--vert); border-color: var(--vert); color: var(--blanc); }
.puces input:focus-visible + span { outline: 3px solid var(--laiton); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.champ { display: flex; flex-direction: column; gap: 0.25rem; }
.champ.plein { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: 0.92rem; }
.champ input {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.7rem 0.75rem;
  min-height: 3rem;
  border: 1px solid #b8c3bc;
  border-radius: var(--rayon);
  background: #fff;
  color: var(--encre);
  width: 100%;
}
.champ input:focus { border-color: var(--vert); outline: 2px solid var(--vert); outline-offset: 0; }
.champ input[aria-invalid="true"] { border-color: var(--erreur); }
.erreur { color: var(--erreur); font-size: 0.86rem; min-height: 0; margin: 0; }
.envoyer {
  margin-top: 0.9rem;
  width: 100%;
  min-height: 3.2rem;
  border: 0;
  border-radius: var(--rayon);
  background: var(--vert);
  color: var(--blanc);
  font: inherit;
  font-weight: 680;
  font-size: 1.08rem;
  cursor: pointer;
}
.envoyer:hover { background: var(--vert-clair); }
.mention { font-size: 0.8rem; color: var(--acier); margin: 0.6rem 0 0; }
.mention a { color: var(--acier); }

/* Texte */
.texte .cadre { padding-top: 2rem; padding-bottom: 2.5rem; }
.texte h2 {
  font-stretch: 80%;
  font-weight: 700;
  font-size: clamp(1.45rem, 4.6vw, 1.95rem);
  line-height: 1.12;
  margin: 2.2rem 0 0.7rem;
  max-width: 30ch;
}
.texte h2:first-child { margin-top: 0; }
.texte h3 { font-size: 1.12rem; margin: 1.4rem 0 0.35rem; line-height: 1.25; }
.texte p, .texte li { max-width: 68ch; }
.texte ul, .texte ol { padding-left: 1.2rem; }
.texte li { margin: 0.3rem 0; }

.releve {
  border: 2px solid var(--laiton);
  background: #f7f1e1;
  border-radius: var(--rayon);
  padding: 1rem 1.1rem;
  margin: 0 0 2rem;
  max-width: 44rem;
}
.releve strong { display: block; font-stretch: 85%; font-size: 1.2rem; line-height: 1.2; margin-bottom: 0.25rem; }
.releve p { margin: 0; }

.tarifs { border-top: 2px solid var(--encre); margin: 1rem 0 0.5rem; max-width: 40rem; }
.tarifs div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--filet);
}
.tarifs dt { margin: 0; }
.tarifs dt small { display: block; color: var(--acier); font-size: 0.86rem; }
.tarifs dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarifs-note { font-size: 0.88rem; color: var(--acier); max-width: 40rem; }

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 1rem 0; }
.etapes li { counter-increment: etape; position: relative; padding-left: 2.6rem; margin: 0 0 0.9rem; }
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--vert);
  color: var(--laiton-vif);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.faq details { border-bottom: 1px solid var(--filet); max-width: 68ch; }
.faq summary { cursor: pointer; padding: 0.85rem 0; font-weight: 650; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7rem; font-size: 1.35rem; color: var(--laiton-texte); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; }

.liens { list-style: none; padding: 0; margin: 0.75rem 0 0; columns: 2 12rem; column-gap: 1.5rem; }
.liens li { break-inside: avoid; margin: 0 0 0.45rem; }
.liens .km { color: var(--acier); font-size: 0.86rem; font-variant-numeric: tabular-nums; }

.services { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--filet); }
.services li { border-bottom: 1px solid var(--filet); margin: 0; max-width: none; }
.services a { display: block; padding: 0.8rem 0; text-decoration: none; color: var(--encre); }
.services a strong { display: block; color: var(--vert); text-decoration: underline; text-underline-offset: 0.18em; }
.services a span { color: var(--acier); font-size: 0.93rem; }
.services a:hover strong { color: var(--laiton-texte); }

.encart { background: var(--blanc); border-left: 4px solid var(--vert); padding: 0.9rem 1rem; border-radius: 0 var(--rayon) var(--rayon) 0; max-width: 44rem; margin: 1.2rem 0; }
.encart p { margin: 0; }

/* Pied */
.pied { background: var(--encre); color: #c9d3ce; font-size: 0.93rem; }
.pied .cadre { padding-top: 2rem; padding-bottom: 2rem; display: grid; gap: 1.5rem; }
.pied h2 { color: var(--blanc); font-size: 1rem; margin: 0 0 0.5rem; font-stretch: 85%; }
.pied ul { list-style: none; margin: 0; padding: 0; columns: 2 10rem; column-gap: 1.25rem; }
.pied li { margin: 0 0 0.35rem; break-inside: avoid; }
.pied a { color: #dfe7e3; }
.pied a:hover { color: var(--laiton-vif); }
.pied .bas { border-top: 1px solid #2f3d38; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* Barre d'appel fixe sur mobile */
.barre {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--vert);
  border-top: 1px solid var(--vert-trait);
}
.barre .appel { min-height: 3.1rem; font-size: 1.08rem; flex: 1; }
.barre-rappel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9rem;
  border: 1px solid var(--laiton);
  color: var(--laiton-vif);
  border-radius: var(--rayon);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Page de remerciement et pages simples */
.simple .page::before { grid-row: 1 / 3; }
.whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  background: #fff;
  color: var(--encre);
  border: 2px solid var(--vert);
  border-radius: var(--rayon);
  font-weight: 680;
  text-decoration: none;
  max-width: 26rem;
  padding: 0.7rem 1rem;
}
.whatsapp svg { width: 1.4rem; height: 1.4rem; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .barre { display: none; }
  .entete nav { display: flex; gap: 1.4rem; }
  .entete nav a { color: #dfe8e3; text-decoration: none; font-size: 0.97rem; }
  .entete nav a:hover { color: var(--laiton-vif); }
  .entete-tel span { display: inline; }
  h1 { max-width: 17ch; }
  .page {
    grid-template-columns: minmax(1rem, 1fr) minmax(0, 44rem) minmax(0, 24rem) minmax(1rem, 1fr);
    column-gap: 2.5rem;
    grid-template-areas:
      "entete entete entete entete"
      ". intro action ."
      ". texte action ."
      "pied pied pied pied";
    grid-template-rows: auto auto 1fr auto;
  }
  .page::before { grid-row: 1 / 3; }
  .intro .cadre, .texte .cadre, .action .cadre { padding-left: 0; padding-right: 0; max-width: none; }
  .intro .cadre { padding-top: 2.5rem; padding-bottom: 2.5rem; overflow: visible; }
  .action .cadre { padding-top: 2.5rem; position: sticky; top: 0; }
  .action { align-self: start; position: sticky; top: 0; }
  .cadran { right: -2rem; top: 0.5rem; width: 19rem; height: 19rem; opacity: 0.16; }
  .pied .cadre { grid-template-columns: 2fr 1fr 1fr; }
  .pied .bas { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi-erreur { margin-top: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.texte .services, .texte .liens, .texte .etapes, .texte .engagements { padding-left: 0; }

.barre { transition: transform 0.25s ease; }
/* Sans JavaScript la barre reste affichée ; avec, elle n'apparaît que hors de vue du formulaire. */
.js .barre { transform: translateY(110%); }
.js .barre-visible .barre { transform: none; }
@media (prefers-reduced-motion: reduce) { .barre { transition: none; } }

/* Finitions : filet doré, plaque de prix, icônes, transitions */
a, .appel, .envoyer, .puces span, .barre-rappel, .whatsapp { transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.puces span, .envoyer, .faq summary { cursor: pointer; }
.puces input:checked + span::before { content: ""; width: .5rem; height: .9rem; border: solid var(--laiton-vif); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-right: .5rem; flex: none; }
.puces span:hover { border-color: var(--vert); }
.envoyer.envoi { background: var(--vert-clair); cursor: progress; }
.envoyer:disabled { opacity: .9; }

.evitement { position: absolute; left: .5rem; top: -3rem; z-index: 20; background: var(--laiton); color: #14261f; padding: .6rem .9rem; border-radius: var(--rayon); font-weight: 650; text-decoration: none; }
.evitement:focus { top: .5rem; }

.engagements { list-style: none; padding: 0; margin: 0 0 2.2rem; display: grid; gap: .9rem; }
.engagements li { display: flex; gap: .8rem; align-items: flex-start; max-width: none; margin: 0; }
.engagements .ico { width: 2.4rem; height: 2.4rem; padding: .5rem; flex: none; color: var(--laiton-texte); background: #f3ead4; border-radius: 50%; }
.engagements strong { display: block; line-height: 1.25; }
.engagements span { color: var(--acier); font-size: .93rem; }

.plaque { position: relative; max-width: 42rem; margin: 1rem 0 .5rem; padding: 1.1rem 1.2rem .9rem; background: linear-gradient(160deg, #f8f1de, #efe2bf); border: 1px solid #c9a14a; border-radius: 4px; box-shadow: inset 0 0 0 4px #f8f1de, inset 0 0 0 5px #c9a14a; }
.plaque::before, .plaque::after { content: ""; position: absolute; top: .55rem; width: .45rem; height: .45rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6dc, #9c7a2c); }
.plaque::before { left: .55rem; }
.plaque::after { right: .55rem; }
.plaque .tarifs { border-top: 0; margin: 0; max-width: none; }
.plaque .tarifs div { border-bottom-color: #d8c493; }
.plaque .tarifs div:last-child { border-bottom: 0; }
.plaque .tarifs dt small { color: #6b5a33; }
.plaque .tarifs-note { color: #5e4f2c; margin: .6rem 0 0; max-width: none; }

.services a { display: flex; gap: .85rem; align-items: flex-start; }
.services .ico { width: 1.6rem; height: 1.6rem; flex: none; margin-top: .1rem; color: var(--laiton-texte); }
.services a div { min-width: 0; }

.pied-marque { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.pied-marque .appel { width: auto; min-height: 3rem; font-size: 1.05rem; }
@media (min-width: 640px) { .engagements { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .pied .cadre { grid-template-columns: 1.4fr 2fr 1fr 1fr; } .pied-marque { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { a, .appel, .envoyer, .puces span { transition: none; } }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.rappel.signale { animation: halo 1.4s ease-out 1; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(210,172,85,.75); } 100% { box-shadow: 0 0 0 14px rgba(210,172,85,0); } }
@media (prefers-reduced-motion: reduce) { .rappel.signale { animation: none; } }

.champ select {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.7rem 2.6rem 0.7rem 0.75rem;
  min-height: 3rem;
  width: 100%;
  border: 1px solid #b8c3bc;
  border-radius: var(--rayon);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a32' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 1.15rem;
  color: var(--encre);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.champ select:has(option[value=""]:checked) { color: var(--acier); }
.champ select:focus { border-color: var(--vert); outline: 2px solid var(--vert); outline-offset: 0; }

/* La FAQ ouvre une nouvelle section : même respiration qu'avant un titre de section. */
.texte .faq { margin-top: 2.6rem; }

/* Bouton d'envoi dans la grille, à côté du code postal */
.champs .envoyer { margin-top: 0; align-self: start; margin-top: 1.55rem; min-height: 3rem; font-size: 1.02rem; }

/* Mobile : tout le bloc d'action dans le premier écran */
@media (max-width: 899px) {
  .entete .cadre { padding-top: .55rem; padding-bottom: .55rem; }
  .logo { font-size: 1.05rem; }
  .logo img { width: 1.9rem; height: 1.9rem; }
  .intro .cadre { padding-top: .85rem; padding-bottom: .1rem; }
  .ariane { margin-bottom: .45rem; }
  h1 { margin-bottom: .35rem; }
  .lieu { margin-bottom: 0; font-size: .95rem; }
  .promesse { display: none; }
  .action .cadre { padding-top: .8rem; padding-bottom: 1.2rem; }
  .appel { min-height: 3.3rem; }
  .appel-sous { margin: .35rem 0 .7rem; font-size: .82rem; }
  .rappel { padding: .85rem .85rem .75rem; }
  .rappel h2 { font-size: 1.02rem; margin-bottom: .5rem; }
  .champs { gap: .45rem .6rem; }
  .champ { gap: .15rem; }
  .champ label { font-size: .88rem; }
  .champ input, .champ select { min-height: 2.85rem; padding-top: .55rem; padding-bottom: .55rem; }
  .champs .envoyer { min-height: 2.85rem; margin-top: 1.4rem; }
  .mention { margin-top: .45rem; font-size: .76rem; }
}

.alphabet { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 1rem; }
.alphabet a { display: inline-grid; place-items: center; min-width: 2.4rem; min-height: 2.4rem; border: 1px solid var(--filet); border-radius: var(--rayon); text-decoration: none; font-weight: 650; background: var(--blanc); }
.alphabet a:hover { border-color: var(--vert); }
