@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --brume: #ECEFEA;      /* fond de page */
  --encre: #142420;      /* texte */
  --encre-douce: #45544F;
  --rouge: #C8232A;      /* articulations du produit, boutons */
  --rouge-fonce: #9E1A20;
  --eau: #1D4743;        /* sections sombres */
  --roseau: #B9C4A7;     /* filets, détails */
  --blanc: #FFFFFF;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --texte: "Figtree", system-ui, sans-serif;

  --marge: clamp(1.25rem, 5vw, 3rem);
  --large: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--brume);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

.contenu { width: min(100% - 2 * var(--marge), var(--large)); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.marque {
  font-family: var(--display); font-weight: 900;
  font-size: 1.6rem; line-height: 1; letter-spacing: .01em;
  text-decoration: none;
}
.marque span { color: var(--rouge); }
.entete-lien { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--rouge); }

/* ---------- Héros ---------- */
.heros { padding-block: .5rem 3rem; }
.heros h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 8.5rem);
  line-height: .86; letter-spacing: -.005em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.heros-grille { display: grid; gap: 1.75rem; }
.chapo { font-size: 1.2rem; max-width: 34ch; margin: 0 0 1.5rem; color: var(--encre-douce); }

.deux-etats { position: relative; margin: 0; border-radius: 4px; overflow: hidden; background: var(--blanc); }
.deux-etats img { width: 100%; }
.etat {
  position: absolute; top: .9rem;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1;
  background: var(--encre); color: var(--blanc);
  padding: .45rem .7rem .4rem;
}
.etat-assis { left: .9rem; }
.etat-debout { right: .9rem; background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); }
.deux-etats figcaption { font-size: .85rem; color: var(--encre-douce); padding: .6rem .8rem; background: var(--blanc); }

.achat { display: grid; gap: .75rem; justify-items: start; }
.prix { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: 1; margin: 0; }
.bouton {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--rouge); color: var(--blanc);
  font-weight: 700; font-size: 1.15rem;
  padding: 1rem 1.6rem; border-radius: 3px; min-width: 15rem;
}
.bouton:hover { background: var(--rouge-fonce); }
.garanties { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .3rem; }
.garanties li { padding-left: 1.4rem; position: relative; }
.garanties li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: .7rem; height: .18rem; background: var(--rouge);
}
.note-paiement {
  background: var(--blanc); border-left: 4px solid var(--rouge);
  padding: .75rem 1rem; font-size: .95rem; max-width: 32rem;
}

@media (min-width: 52rem) {
  .heros-grille { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: .92;
  margin: 0 0 1.5rem; max-width: 18ch;
}
.section-eau { background: var(--eau); color: var(--brume); }
.section-eau h2 { color: var(--blanc); }
.section-blanche { background: var(--blanc); }

/* étapes : c'est une vraie séquence */
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; gap: 1.75rem; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3.2rem 1fr; gap: .25rem 1rem; }
.etapes li::before {
  content: counter(etape);
  grid-row: span 2;
  font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: .8;
  color: var(--rouge);
}
.etapes h3 { margin: 0; font-size: 1.2rem; }
.etapes p { margin: 0; max-width: 46ch; }
.fonctionnement { display: grid; gap: 2.5rem; }
.photos-fonctionnement { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: end; }
.photos-fonctionnement figure { margin: 0; background: var(--blanc); }
.photos-fonctionnement figcaption { font-size: .85rem; padding: .5rem .6rem; color: var(--encre-douce); }
@media (min-width: 52rem) {
  .fonctionnement { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* usages */
.usages { display: grid; gap: 2rem; }
.liste-usages { list-style: none; padding: 0; margin: 0; }
.liste-usages li { padding: 1rem 0; border-top: 1px solid rgba(236, 239, 234, .25); }
.liste-usages li:last-child { border-bottom: 1px solid rgba(236, 239, 234, .25); }
.liste-usages strong { display: block; font-size: 1.15rem; color: var(--blanc); }
.usages figure { margin: 0; max-width: 17rem; }
@media (min-width: 52rem) { .usages { grid-template-columns: 1.3fr .7fr; align-items: center; } }

/* fiche technique */
.fiche { display: grid; gap: 2rem; }
.fiche table { width: 100%; border-collapse: collapse; }
.fiche th, .fiche td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--roseau); vertical-align: top; }
.fiche th { font-weight: 400; color: var(--encre-douce); width: 48%; padding-right: 1rem; }
.fiche td { font-weight: 700; }
.fiche figure { margin: 0; justify-self: center; max-width: 12rem; }
.fiche figcaption { font-size: .85rem; color: var(--encre-douce); text-align: center; margin-top: .5rem; }
@media (min-width: 52rem) { .fiche { grid-template-columns: 1.4fr .6fr; align-items: center; } }

/* livraison */
.infos { display: grid; gap: 1.5rem; }
.infos h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.infos p { margin: 0; max-width: 44ch; }
@media (min-width: 52rem) { .infos { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq details { border-top: 1px solid var(--roseau); }
.faq details:last-of-type { border-bottom: 1px solid var(--roseau); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.2rem 1.05rem 0;
  font-weight: 700; font-size: 1.1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: .7rem;
  font-family: var(--display); font-weight: 900; font-size: 1.8rem; color: var(--rouge);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; max-width: 60ch; }

/* appel final */
.final { text-align: left; }
.final .achat { margin-top: 1rem; }

/* pied de page */
.pied { background: var(--encre); color: var(--brume); padding-block: 2.5rem 6.5rem; font-size: .95rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.pied p { margin: .25rem 0; color: #B8C2BE; }

/* barre d'achat collante (mobile) */
.barre-achat {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--marge) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--blanc); border-top: 2px solid var(--encre);
}
.barre-achat .prix { font-size: 1.9rem; }
.barre-achat .bouton { min-width: 0; padding: .8rem 1.2rem; font-size: 1.05rem; }
@media (min-width: 52rem) { .barre-achat { display: none; } .pied { padding-bottom: 2.5rem; } }

/* pages légales */
.legal { padding-block: 1rem 4rem; max-width: 46rem; }
.legal h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 9vw, 4rem); line-height: .95; margin: 1rem 0 1.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .5rem; }
.legal p, .legal li { max-width: 65ch; }
.a-completer { background: #FFF1B8; padding: 0 .2em; }

/* une seule animation : l'apparition des deux étiquettes */
@media (prefers-reduced-motion: no-preference) {
  .etat { animation: apparait .5s ease-out both; }
  .etat-debout { animation-delay: .35s; }
  @keyframes apparait { from { opacity: 0; transform: translateY(-.4rem); } }
}

/* ---------- Waitlist dialog ---------- */
.fenetre {
  width: min(100% - 2rem, 30rem);
  border: 0; border-top: 6px solid var(--rouge); border-radius: 4px;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--blanc); color: var(--encre);
}
.fenetre::backdrop { background: rgba(20, 36, 32, .6); }
.fenetre h2 {
  font-family: var(--display); font-weight: 900;
  font-size: 2.3rem; line-height: .95; margin: 0 0 .75rem; padding-right: 2rem;
}
.fenetre p { margin: 0 0 1.1rem; }
.fenetre label { display: block; font-weight: 700; margin-bottom: .35rem; }
.fenetre input[type="email"] {
  width: 100%; font: inherit; padding: .85rem .9rem;
  border: 2px solid var(--encre); border-radius: 3px; background: var(--brume);
}
.fenetre .bouton { width: 100%; margin-top: .9rem; border: 0; cursor: pointer; font-family: inherit; }
.fenetre .bouton:disabled { opacity: .6; cursor: wait; }
.fermer {
  position: absolute; top: .9rem; right: .9rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 900; font-size: 1.8rem; line-height: 1; color: var(--encre);
}
.petit { font-size: .85rem; color: var(--encre-douce); margin-top: .8rem !important; margin-bottom: 0 !important; }
.statut:empty { display: none; }
.statut { margin: 0 !important; font-weight: 700; }
.statut-ok { color: #1F6B3A; }
.statut-erreur { color: var(--rouge-fonce); margin-top: .8rem !important; }
