/* Landing de Noël Gâteau Gourmet (BUILDER It's Joker Time, 04/12/2026).
   Charte : recherche/charte.md (style A de la marque : blanc, noir, Poppins, bouton chocolat, vert WhatsApp)
   + touches de Noël mesurées sur leurs photos (rouge, vert sapin, doré). Forme : ab/DECISIONS.md § 2.1.
   Téléphone d'abord (375 px). Rien ne bouge au défilement : seule la barre fixe glisse. */

:root {
  --bande: #F9F9F9;
  --noir: #000;
  --texte: #333;
  --filet: #E5E5E5;
  --choco: #2C1A0E;
  --wa: #25D366;
  --wa-survol: #1EBE5C;
  --rouge: #9E1A24;
  --sapin: #265A2C;
  --dore: #C4A365;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #fff;
  color: var(--texte);
  font: 400 15px/1.58 Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--noir); font-weight: 600; line-height: 1.2; text-wrap: balance; }

.contenant { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.contenant.etroit { max-width: 672px; }

/* Barre d'annonce : défile avec la page */
.annonce { margin: 0; padding: 9px 12px; background: var(--bande); color: var(--texte); font-size: 14px; line-height: 1.4; text-align: center; }

/* En-tête */
.entete { display: flex; justify-content: center; padding: 16px 16px 2px; }
.logo { width: 100px; height: auto; }

/* Sections */
.section { padding: 44px 0 48px; }
.filet { border-top: 1px solid #EDEDED; }
.bande { background: var(--bande); border-top: 0; }

.surtitre { margin: 0 0 10px; text-align: center; color: var(--rouge); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
h1 { font-size: 26px; text-align: center; margin-bottom: 14px; }
h2 { font-size: 22px; text-align: center; margin-bottom: 14px; }
.chapeau { max-width: 560px; margin: 0 auto 22px; text-align: center; }
.texte { max-width: 640px; margin: 0 auto 6px; text-align: left; }

/* Boutons et lignes de preuve (centrés) */
.cta { width: 100%; max-width: 420px; margin: 22px auto 0; text-align: center; }
.bouton {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px;
  border-radius: 5px; font-weight: 700; font-size: 16px; line-height: 1.25;
  text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
}
.bouton-wa { background: var(--wa); color: #000; }
.bouton-wa:hover { background: var(--wa-survol); }
.bouton-panier { background: var(--choco); color: #fff; }
.bouton-panier:hover { background: #000; }
.bouton:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
.icone-wa { flex: none; width: 22px; height: 22px; }
.preuve { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--texte); text-align: center; }
.preuve > span { white-space: nowrap; }

/* Haut de page */
.haut { padding: 12px 0 44px; }
.vers-gateaux { margin: 4px 0 16px; text-align: center; }
.vers-gateaux a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.photo { border-radius: 10px; }
.photo-haut { width: 100%; max-width: 480px; margin: 0 auto; }
.puces { list-style: none; max-width: 560px; margin: 22px auto 0; padding: 0; }
.puces li { position: relative; margin: 0 0 10px; padding-left: 30px; }
.puces li::before {
  content: ""; position: absolute; left: 6px; top: .3em;
  width: 7px; height: 13px; border: solid var(--sapin); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Collection : 2 colonnes sur téléphone, 4 sur ordinateur */
.rangee-titre { margin: 34px 0 16px; font-size: 17px; text-align: center; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 13px; }
.carte { display: flex; flex-direction: column; min-width: 0; }
.carte > .photo { width: 100%; aspect-ratio: 1 / 1; }
.carte-nom { margin: 12px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .5px; line-height: 1.3; text-transform: uppercase; color: var(--noir); }
.carte-ligne { margin: 0 0 4px; font-size: 13px; line-height: 1.45; }
.carte-prix { margin: 0; font-size: 13px; line-height: 1.45; }
.carte .cta { margin-top: auto; padding-top: 10px; }
.carte .bouton { min-height: 46px; padding: 10px 8px; gap: 8px; font-size: 15px; }
.carte .icone-wa { width: 20px; height: 20px; }
.carte .preuve { font-size: 11.5px; }
.sur-mesure {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background: var(--sapin); color: #fff; font-size: 22px; font-weight: 600; line-height: 1.2; text-align: center;
}

/* Comment commander : 3 étapes */
.etapes { list-style: none; counter-reset: etape; margin: 10px 0 0; padding: 0; }
.etapes li { counter-increment: etape; position: relative; min-height: 34px; margin: 0 0 16px; padding-left: 48px; }
.etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: -2px;
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--choco); color: #fff; font-size: 15px; font-weight: 700;
}

/* Réassurance : 4 promesses */
.promesses { list-style: none; margin: 10px 0 0; padding: 0; }
.promesses li { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; }
.promesses svg { flex: none; width: 28px; height: 28px; margin-top: 1px; color: var(--choco); }

/* Boîtes à offrir et pack équipe */
.boites { display: grid; gap: 16px; }
.boite { padding: 12px; border: 1px solid var(--filet); border-radius: 10px; background: #fff; }
.boite-haut { display: flex; align-items: flex-start; gap: 14px; }
.boite-haut > .photo { flex: none; width: 140px; height: 140px; }
.boite-haut > div { min-width: 0; }
.boite .carte-nom { margin-top: 2px; }
.boite-prix { margin: 6px 0 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--noir); }
.boite .cta { max-width: none; margin-top: 12px; }
.duo { margin-top: 22px; padding: 18px 16px; border: 2px solid var(--dore); border-radius: 10px; }
.duo h3 { margin: 0 0 8px; font-size: 17px; text-align: center; }
.duo p { margin: 0; }
.duo .cta { margin-top: 14px; }

/* Entreprises */
.photo-large { width: 100%; max-width: 480px; margin: 0 auto 20px; }
.question { margin: 26px 0 0; text-align: center; font-weight: 600; color: var(--noir); }
.question + .cta { margin-top: 12px; }

/* FAQ */
.faq { margin-top: 10px; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 0; list-style: none; cursor: pointer; font-weight: 600; color: var(--noir);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 4px 0;
  border: solid var(--noir); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.faq details p { margin: 0 0 16px; }
.faq a { text-decoration: underline; }

/* Dernier appel et pied */
.fin .photo-large { margin-bottom: 26px; }
.pied { padding: 32px 0 30px; background: var(--bande); color: var(--noir); font-size: 14px; line-height: 1.55; text-align: center; }
.pied p { margin: 0 0 6px; }
.pied-nom { font-size: 16px; font-weight: 700; }
.pied .pied-liens { display: flex; flex-direction: column; align-items: center; margin: 10px 0; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
.pied .pied-legal { margin-top: 8px; font-size: 12.5px; color: var(--texte); }

/* Barre fixe (téléphone) : seule chose qui bouge sur la page */
.barre {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--filet);
  transform: translateY(110%); visibility: hidden;
  transition: transform .2s ease-out, visibility 0s linear .2s;
}
.barre.visible { transform: none; visibility: visible; transition: transform .2s ease-out; }
.barre .preuve { margin: 0 0 6px; }
.barre .bouton { max-width: 420px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .barre, .barre.visible { transition: none; } }

@media (max-width: 767px) {
  /* marge de la hauteur de la barre fixe, pour qu'elle ne cache jamais le pied */
  .pied { padding-bottom: calc(30px + 92px + env(safe-area-inset-bottom)); }
}

/* Tablette et ordinateur */
@media (min-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .section { padding: 64px 0 68px; }
  .bouton { font-size: 17px; }
  .grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
  .grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc(50% - 10px); margin: 0 auto; }
  .barre { display: none; }
}
