/* Créneli : page d'accueil. Mobile d'abord (375 px), puis élargie. */

:root {
  --fond: #f5f6f3;
  --fond-alt: #eaece6;
  --encre: #15170f;
  --encre-douce: #3d4137;
  --trait: #d3d6cd;
  --accent: #0b6b4c;
  --accent-fonce: #08533a;
  --sur-accent: #ffffff;

  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gouttiere: 1.25rem;
  --rythme: clamp(4rem, 10vw, 8rem);
  --largeur: 72rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--encre);
  color: var(--fond);
}

h1, h2, p, ol, figure, blockquote {
  margin: 0;
}

h1, h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* ---------- Bouton : seul porteur de la couleur d'accent ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.625rem;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(21, 23, 15, 0.12), 0 6px 16px -6px rgba(11, 107, 76, 0.45);
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bouton:hover {
  background: var(--accent-fonce);
  box-shadow: 0 1px 2px rgba(21, 23, 15, 0.14), 0 10px 22px -8px rgba(11, 107, 76, 0.55);
}

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

.bouton:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
}

.bouton--petit {
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

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

.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 243, 0.94);
  border-bottom: 1px solid var(--trait);
}

@supports (backdrop-filter: blur(8px)) {
  .entete {
    background: rgba(245, 246, 243, 0.82);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.entete__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
}

.marque {
  font-weight: 750;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* ---------- Haut de page ---------- */

.haut {
  padding: 3.5rem 0 var(--rythme);
}

.haut h1 {
  font-size: clamp(2.5rem, 10.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 14ch;
}

.haut__sous-titre {
  margin-top: 1.5rem;
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--encre-douce);
  max-width: 34ch;
}

.haut .bouton {
  margin-top: 2.25rem;
  width: 100%;
}

/* ---------- Blocs ---------- */

.bloc {
  padding: var(--rythme) 0;
  border-top: 1px solid var(--trait);
}

.bloc h2 {
  font-size: clamp(1.75rem, 6.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 780;
  max-width: 18ch;
}

.texte {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--encre-douce);
  max-width: 60ch;
}

.bloc__grille > * + * {
  margin-top: 1.75rem;
}

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

.etapes {
  list-style: none;
  padding: 0;
  counter-reset: etape;
}

.etapes li {
  counter-increment: etape;
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 1.1875rem;
  line-height: 1.45;
  font-weight: 560;
}

.etapes li + li {
  border-top: 1px solid var(--trait);
}

.etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--encre);
  font-weight: 750;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.etapes li:last-child::before {
  background: var(--encre);
  color: var(--fond);
}

/* ---------- Preuve ---------- */

.bloc--preuve {
  background: var(--fond-alt);
  border-top: 0;
}

.citation blockquote p {
  font-size: clamp(1.5rem, 5.6vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 650;
  max-width: 26ch;
}

.citation figcaption {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--encre-douce);
}

/* ---------- Prix ---------- */

.bloc--prix {
  border-top: 0;
}

.prix {
  border: 1px solid var(--trait);
  border-radius: 1rem;
  background: #ffffff;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 2px rgba(21, 23, 15, 0.05), 0 18px 40px -24px rgba(21, 23, 15, 0.25);
}

.prix__montant {
  font-size: clamp(1.75rem, 5.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}

.prix__inclus {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--encre-douce);
}

.prix .bouton {
  margin-top: 2rem;
  width: 100%;
}

/* ---------- Questions fréquentes ---------- */

.faq__item {
  padding: 1.75rem 0;
}

.faq__item + .faq__item {
  border-top: 1px solid var(--trait);
}

.faq__item:first-child {
  padding-top: 0;
}

.bloc .faq__q {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
  max-width: 34ch;
}

.faq__q + .texte {
  margin-top: 0.625rem;
}

/* ---------- Dernier appel ---------- */

.bloc--appel {
  padding-bottom: 3rem;
}

.appel__phrase {
  font-size: clamp(1.75rem, 5.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
  text-wrap: balance;
}

.bloc--appel .bouton {
  margin-top: 2rem;
  width: 100%;
}

/* ---------- Liste d'attente : emplacement du futur formulaire ---------- */

.liste-attente {
  padding: 0 0 2rem;
  scroll-margin-top: 5rem;
}

.liste-attente__emplacement {
  min-height: 2rem;
}

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

.pied {
  border-top: 1px solid var(--trait);
  padding: 2rem 0 2.5rem;
}

.pied .marque {
  font-size: 1rem;
  color: var(--encre-douce);
}

/* ---------- Très petits écrans ---------- */

@media (max-width: 359px) {
  .bouton--petit {
    font-size: 0.8125rem;
    padding: 0.5rem 0.625rem;
  }
}

/* ---------- Tablette et ordinateur ---------- */

@media (min-width: 48rem) {
  :root {
    --gouttiere: 2.5rem;
  }

  body {
    font-size: 1.125rem;
  }

  .bouton--petit {
    font-size: 0.9375rem;
    padding: 0.5rem 1.125rem;
  }

  .haut {
    padding-top: 6rem;
  }

  .haut h1 {
    max-width: 17ch;
  }

  .bloc__grille .texte {
    font-size: 1.3125rem;
    padding-top: 0.5rem;
  }

  .etapes li {
    font-size: 1.25rem;
  }

  .haut .bouton,
  .prix .bouton,
  .bloc--appel .bouton {
    width: auto;
  }

  .bloc__grille {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: start;
  }

  .bloc__grille > * + * {
    margin-top: 0;
  }

  .etapes li:first-child {
    padding-top: 0.25rem;
  }

  .prix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "montant bouton"
      "inclus  bouton";
    column-gap: 3rem;
    align-items: center;
    padding: 3rem;
  }

  .prix__montant { grid-area: montant; }
  .prix__inclus { grid-area: inclus; }
  .prix .bouton { grid-area: bouton; margin-top: 0; }

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

  .faq__item,
  .faq__item:first-child {
    padding: 1.5rem 0 0;
    border-top: 2px solid var(--encre);
  }

  .faq__item + .faq__item {
    border-top: 2px solid var(--encre);
  }

  .bloc--appel .enveloppe {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }

  .bloc--appel .bouton {
    margin-top: 0;
    flex-shrink: 0;
  }
}
