/* Page publique de Fournée — indépendante de la feuille de l'application */

/* Polices hébergées sur le site (licence SIL OFL, voir static/fonts) : aucun appel à un service tiers */
@font-face { font-family: "Zilla Slab"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
:root {
  --farine: #fafaf7;
  --blanc: #ffffff;
  --chauffe: #1e3557;        /* bleu de travail : titres, boutons, bandeaux */
  --chauffe-clair: #2c4a73;
  --croute: #a4622e;         /* couleur du produit : logo, calculateur */
  --kraft: #e9dcc8;          /* papier des sacs à pain : la fiche du calculateur */
  --kraft-fonce: #d8c5a8;
  --seigle: #4f4a43;         /* texte courant */
  --gris: #77706a;
  --trait: #e3e0da;
  --alerte: #b0392c;
  --ok: #3d7046;
  --titre: "Zilla Slab", Georgia, serif;
  --texte: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--farine); color: var(--seigle); font-family: var(--texte); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chauffe); }
:focus-visible { outline: 3px solid var(--croute); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--titre); color: var(--chauffe); line-height: 1.12; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.largeur { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.texte-court { max-width: 34em; }

/* ---------------------------------------------------------------- en-tête */
.entete-site { position: sticky; top: 0; z-index: 10; background: rgba(250, 250, 247, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--trait); }
.entete-site .largeur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--titre); font-weight: 700; font-size: 1.5rem; color: var(--chauffe); text-decoration: none; }
.nav-site { display: flex; align-items: center; gap: 1.6rem; font-size: 1rem; }
.nav-site a { text-decoration: none; color: var(--seigle); white-space: nowrap; }
.nav-site a:hover { color: var(--chauffe); }
.bouton { display: inline-block; background: var(--chauffe); color: #fff !important; text-decoration: none; font-weight: 600; padding: .8rem 1.35rem; border-radius: 6px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.bouton:hover { background: var(--chauffe-clair); }
.bouton-petit { padding: .5rem .95rem; font-size: .95rem; }
.bouton-clair { background: transparent; color: var(--chauffe) !important; border: 1.5px solid var(--chauffe); }
.bouton-clair:hover { background: rgba(30, 53, 87, .06); }

/* ---------------------------------------------------------------- héros */
.heros { padding: 72px 0 88px; }
.heros .largeur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.heros .chapo { font-size: 1.25rem; max-width: 30em; }
.heros .actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.heros .precision { color: var(--gris); font-size: .95rem; margin-top: .9rem; }

/* La fiche du calculateur : un ticket kraft, bord supérieur dentelé */
.fiche { background: var(--kraft); border-radius: 4px 4px 10px 10px; padding: 26px 26px 22px; position: relative; color: #3b352d;
         box-shadow: 0 18px 40px -22px rgba(30, 53, 87, .45); transform: rotate(.6deg); }
.fiche::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
                 background: radial-gradient(circle at 7px 0, transparent 6px, var(--kraft) 6.5px) 0 0 / 14px 10px repeat-x; }
.fiche h3 { margin-bottom: .1rem; }
.fiche .sous { color: #6d6253; font-size: .95rem; margin-bottom: 1rem; }
.fiche label { display: block; font-weight: 600; margin-bottom: .35rem; }
.fiche .curseur { display: flex; align-items: center; gap: .9rem; }
.fiche input[type=range] { flex: 1; accent-color: var(--croute); height: 28px; }
.fiche .prix-beurre { font-family: var(--titre); font-size: 1.45rem; font-weight: 700; color: var(--croute); min-width: 6.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.fiche dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 1.1rem 0 1rem; padding: 1rem 0; border-top: 1.5px dashed var(--kraft-fonce); border-bottom: 1.5px dashed var(--kraft-fonce); }
.fiche dt { color: #6d6253; }
.fiche dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fiche .coef.sous-cible { color: var(--alerte); }
.fiche .coef.ok { color: var(--ok); }
.fiche .verdict { margin: 0; font-weight: 600; min-height: 3em; }
.fiche .verdict.alerte { color: var(--alerte); }
.fiche .note { font-size: .82rem; color: #7a6e5e; margin: .7rem 0 0; }

/* ---------------------------------------------------------------- sections */
.section { padding: 88px 0; }
.section-blanche { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.intro-section { max-width: 40em; margin-bottom: 48px; }

.rangee { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.rangee + .rangee { margin-top: 96px; }
.rangee.inverse .capture, .rangee.inverse .telephone { order: -1; }
.rangee ul { padding-left: 1.1em; margin: 0; }
.rangee li { margin-bottom: .45em; }
.capture { border: 1px solid var(--trait); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -30px rgba(30, 53, 87, .5); }
.capture.etiquette-capture { max-width: 420px; justify-self: center; border-radius: 2px; transform: rotate(-1.2deg); }
.legende { font-size: .88rem; color: var(--gris); margin-top: .6rem; }

.inclus { columns: 2; column-gap: 56px; padding: 0; margin: 0; list-style: none; }
.inclus li { break-inside: avoid; padding: .7rem 0 .7rem 1.9rem; border-bottom: 1px solid var(--trait); position: relative; }
.inclus li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 12px; height: 7px; border-left: 2.5px solid var(--croute); border-bottom: 2.5px solid var(--croute); transform: rotate(-45deg); }
.inclus strong { color: var(--chauffe); display: block; }
.inclus span { font-size: .95rem; color: var(--gris); }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: etape; padding: 0; list-style: none; margin: 0; }
.etapes li { counter-increment: etape; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--chauffe); color: var(--chauffe); font-family: var(--titre); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- tarifs */
.tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1.5px solid var(--chauffe); border-radius: 10px; overflow: hidden; background: #fff; }
.tarif { padding: 32px 28px; display: flex; flex-direction: column; }
.tarif + .tarif { border-left: 1px solid var(--trait); }
.tarif.complet { background: var(--chauffe); color: #dfe6f0; }
.tarif.complet h3, .tarif.complet .montant { color: #fff; }
.tarif.complet li::before { border-color: var(--kraft); }
.tarif .montant { font-family: var(--titre); font-size: 2.6rem; font-weight: 700; color: var(--chauffe); line-height: 1; }
.tarif .montant small { font-family: var(--texte); font-size: 1rem; font-weight: 400; }
.tarif .desc { min-height: 3.2em; margin: .6rem 0 1.2rem; font-size: .98rem; }
.tarif ul { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; font-size: .98rem; }
.tarif li { padding: .3rem 0 .3rem 1.5rem; position: relative; }
.tarif li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 10px; height: 6px; border-left: 2px solid var(--croute); border-bottom: 2px solid var(--croute); transform: rotate(-45deg); }
.tarif.complet .bouton { background: #fff; color: var(--chauffe) !important; }
.tarifs-unique { max-width: 460px; margin: 0 auto; grid-template-columns: 1fr; }
.tarifs-unique .tarif { text-align: center; }
.tarifs-unique .tarif ul { text-align: left; max-width: 300px; margin-left: auto; margin-right: auto; }
.tarifs-unique .bouton { align-self: center; }
.precision-tarifs { color: var(--gris); font-size: .95rem; margin-top: 1rem; text-align: center; }

/* ---------------------------------------------------------------- questions */
.questions { max-width: 46em; }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font-weight: 600; color: var(--chauffe); list-style: none; position: relative; font-size: 1.08rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 4px; top: .95rem; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { padding-bottom: 1rem; margin: 0; }

/* ---------------------------------------------------------------- appel final & pied */
.appel { background: var(--chauffe); color: #dfe6f0; padding: 80px 0; }
.appel h2 { color: #fff; }
.appel .largeur { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.appel .bouton { background: #fff; color: var(--chauffe) !important; }
.appel a:not(.bouton) { color: #fff; }
.pied { padding: 32px 0 48px; font-size: .92rem; color: var(--gris); }
.pied .largeur { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pied a { color: var(--gris); }

.page-legale { padding: 64px 0 96px; }
.page-legale .largeur { max-width: 760px; }
.page-legale h2 { font-size: 1.4rem; margin-top: 2rem; }
.a-completer { background: #fff3cd; padding: 0 .3em; border-radius: 3px; }

/* ---------------------------------------------------------------- petits écrans */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .heros { padding: 40px 0 64px; }
  .heros .largeur, .rangee { grid-template-columns: 1fr; gap: 36px; }
  .rangee.inverse .capture, .rangee.inverse .telephone { order: 0; }
  .fiche { transform: none; }
  .section { padding: 64px 0; }
  .rangee + .rangee { margin-top: 64px; }
  .inclus { columns: 1; }
  .etapes { grid-template-columns: 1fr; gap: 28px; }
  .tarif + .tarif { border-left: 0; border-top: 1px solid var(--trait); }
  .nav-site .secondaire { display: none; }
  .nav-site { gap: .9rem; font-size: .95rem; }
  .logo { font-size: 1.25rem; }
  .logo svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .questions summary::after { transition: none; }
}

/* Page de commande montrée dans un téléphone */
.telephone { justify-self: center; width: min(320px, 100%); padding: 12px; border-radius: 40px; background: #1d1b19;
  box-shadow: 0 30px 60px -28px rgba(30, 53, 87, .6); }
.telephone img { width: 100%; height: auto; border-radius: 30px; }
.pastille-formule { display: inline-block; margin: 0 0 .6em; padding: .2em .75em; border-radius: 999px; background: var(--kraft);
  color: var(--croute); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
