/* Kitchen Pulse : direction artistique « le rail à bons »
   Fond inox graphite, bons en papier thermique accrochés au rail, couleurs de l'attente (vert, orange, rouge) = la vraie logique de l'appli. */
@font-face { font-family: "Archivo"; src: url("polices/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("polices/MartianMono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  /* 01/12/2026 : le site prend l'allure de l'appli (fond gris clair iOS, cartes blanches, bleu de l'appli, police du système) ;
     sombre si le téléphone est en sombre, comme l'appli. Les noms des variables restent ceux de l'ancien « rail à bons ». */
  --inox: #f2f2f7;          /* fond (comme l'appli) */
  --inox-2: #ffffff;        /* cartes et champs */
  --inox-3: #e3e3e8;        /* traits */
  --rail-haut: #c7c7cc;
  --rail-bas: #8e8e93;
  --texte: #1c1c1e;
  --texte-2: #5f5f64;       /* 5,9:1 sur le fond */
  --papier: #ffffff;
  --papier-2: #f2f2f7;
  --encre: #1c1c1e;
  --encre-2: #5f5f64;
  --vert: #34c759;
  --orange: #406bff;        /* action principale : le bleu de l'appli (l'orange reste pour l'attente) */
  --orange-vrai: #ff9f0a;
  --rouge: #ff3b30;
  --vert-encre: #1f8a3b;
  --orange-encre: #b25d00;
  --rouge-encre: #c4271d;
  --focus: #406bff;
  --r: 12px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --max: 1160px;
  --ticket-w: clamp(250px, calc((min(100vw, 1200px) - 2 * var(--gouttiere) - 3 * 28px) / 4), 300px);
  --ombre: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --inox: #000000; --inox-2: #1c1c1e; --inox-3: #2c2c2e; --texte: #f2f2f7; --texte-2: #a1a1a8; --papier: #1c1c1e; --papier-2: #2c2c2e; --encre: #f2f2f7; --encre-2: #a1a1a8;
    --orange: #5b80ff; --focus: #7c99ff; --vert-encre: #34c759; --orange-encre: #ff9f0a; --rouge-encre: #ff6b61; --ombre: none; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--inox); color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; font-size: 17px; line-height: 1.5;
  font-stretch: 100%; overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--orange) 25%, transparent); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: "Martian Mono", ui-monospace, monospace; font-stretch: 87.5%; }

/* ---------- barre du haut */
.haut { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--inox) 92%, transparent); border-bottom: 1px solid var(--inox-3); }
.haut-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gouttiere); height: 64px; display: flex; align-items: center; gap: 24px; }
.marque { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 19px; letter-spacing: -0.01em; }
.marque svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--texte-2); font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--texte); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r);
  background: var(--orange); color: #fff; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background-color .15s ease, transform .15s ease; }
.bouton:hover { background: color-mix(in srgb, var(--orange) 88%, #000); }
.bouton:active { transform: translateY(1px); }
.bouton.discret { background: var(--inox-2); color: var(--orange); box-shadow: none; }
.bouton.discret:hover { background: var(--inox-3); }
.nav .bouton { min-height: 40px; padding: 0 16px; font-size: 15px; color: #fff; white-space: nowrap; border-radius: 999px; }
@media (max-width: 420px) { .haut-in { gap: 12px; } .nav .bouton { padding: 0 12px; font-size: 14px; } .marque { font-size: 17px; } }
@media (max-width: 720px) { .nav a:not(.bouton) { display: none; } }

/* ---------- ouverture : le rail */
.ouverture { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 8vw, 88px) var(--gouttiere) 0; }
.titre { font-size: clamp(42px, 8.4vw, 104px); line-height: .92; font-weight: 850; font-stretch: 118%; letter-spacing: -0.035em; margin: 0; max-width: 11ch; text-wrap: balance; }
.titre em { font-style: normal; color: var(--orange); }
.chapeau { font-size: clamp(18px, 2vw, 21px); color: var(--texte-2); max-width: 46ch; margin: 24px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.rail-zone { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.rail { position: relative; height: 22px; border-radius: 11px; margin: 0 calc(var(--gouttiere) * -0.5);
  background: linear-gradient(180deg, var(--rail-haut) 0%, #6d747c 45%, var(--rail-bas) 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.rail::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: rgba(0,0,0,.25); }
.bons { display: flex; gap: clamp(16px, 2.4vw, 28px); margin-top: -12px; padding: 0 2px 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bons::-webkit-scrollbar { display: none; }
.legende-demo { font-size: 13px; color: var(--texte-2); margin: -16px 0 0; }

/* ---------- un bon (papier thermique) */
.bon { flex: 0 0 var(--ticket-w); scroll-snap-align: start; background: var(--papier); color: var(--encre); border-radius: 2px 2px 0 0; position: relative;
  padding: 26px 20px 22px; box-shadow: 0 18px 30px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25); transform-origin: 50% 0;
  -webkit-mask: radial-gradient(7px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 100% repeat-x;   /* bord déchiré du bon */
          mask: radial-gradient(7px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 100% repeat-x;
  padding-bottom: 30px; }
.bon::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--papier-2); }   /* pince du rail */
.bon .tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); border-bottom: 1.5px dashed #c9c9bf; padding-bottom: 10px; margin-top: 4px; }
.bon .tete b { color: var(--encre); font-weight: 700; }
.bon h3 { font-size: 22px; line-height: 1.15; font-weight: 800; font-stretch: 105%; margin: 14px 0 8px; letter-spacing: -0.01em; }
.bon p { margin: 0; font-size: 15px; color: var(--encre-2); }
.bon .lignes { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; }
.bon .lignes li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.bon .pied { margin-top: 16px; padding-top: 10px; border-top: 1.5px dashed #c9c9bf; font-size: 12.5px; color: var(--encre-2); display: flex; justify-content: space-between; gap: 8px; }

/* minuteur de l'attente : la couleur suit l'objectif, comme dans l'appli */
.minuteur { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.minuteur .temps { font-size: 44px; font-weight: 600; font-stretch: 100%; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--vert-encre); transition: color .4s ease; }
.minuteur .etat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vert-encre); }
.jauge { height: 8px; border-radius: 4px; background: var(--papier-2); margin-top: 12px; overflow: hidden; }
.jauge i { display: block; height: 100%; width: 0; background: var(--vert); border-radius: 4px; transition: width 1s linear, background-color .4s ease; }
.bon[data-etat="orange"] .temps, .bon[data-etat="orange"] .etat { color: var(--orange-encre); }
.bon[data-etat="orange"] .jauge i { background: var(--orange); }
.bon[data-etat="rouge"] .temps, .bon[data-etat="rouge"] .etat { color: var(--rouge-encre); }
.bon[data-etat="rouge"] .jauge i { background: var(--rouge); }
.etoiles { display: flex; gap: 2px; color: #c77800; margin: 10px 0 6px; }
.etoiles svg { width: 18px; height: 18px; }
.case { display: inline-flex; width: 20px; height: 20px; border: 2px solid var(--encre); border-radius: 50%; flex: none; }
.tache { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.tache.fait { color: var(--encre-2); text-decoration: line-through; }
.tache.fait .case { background: var(--vert-encre); border-color: var(--vert-encre); }
.puce { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #ffe8c2; color: var(--orange-encre); margin-top: 4px; }

/* arrivée des bons sur le rail, une seule fois */
@media (prefers-reduced-motion: no-preference) {
  .js .bon { animation: accroche .7s cubic-bezier(.2,.9,.25,1.15) both; }
  .js .bon:nth-child(2) { animation-delay: .12s; }
  .js .bon:nth-child(3) { animation-delay: .24s; }
  .js .bon:nth-child(4) { animation-delay: .36s; }
  @keyframes accroche { from { transform: translateY(-36px) rotate(-1.2deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
}

/* ---------- sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gouttiere) 0; }
.section h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1; font-weight: 850; font-stretch: 115%; letter-spacing: -0.03em; margin: 0 0 16px; max-width: 16ch; text-wrap: balance; }
.section .intro { color: var(--texte-2); max-width: 54ch; margin: 0 0 40px; font-size: 18px; }

/* modules : chaque module est une colonne du passe (titre, ce que ça fait, prix) */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--inox-3); }
.module { padding: 28px 28px 32px 0; border-right: 1px solid var(--inox-3); }
.module + .module { padding-left: 28px; }
.module:last-child { border-right: 0; }
.module .num { color: var(--texte-2); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.module h3 { font-size: 30px; font-weight: 800; font-stretch: 112%; margin: 10px 0 12px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.module h3 svg { width: 28px; height: 28px; color: var(--orange); }
.module ul { list-style: none; padding: 0; margin: 0; }
.module li { padding: 9px 0; border-bottom: 1px solid var(--inox-3); color: var(--texte-2); font-size: 16px; }
.module li strong { color: var(--texte); font-weight: 600; }
.module .prix { margin-top: 20px; font-size: 15px; color: var(--texte-2); }
.module .prix b { font-size: 34px; color: var(--texte); font-weight: 800; font-stretch: 100%; }
@media (max-width: 860px) {
  .modules { grid-template-columns: 1fr; }
  .module, .module + .module { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--inox-3); }
}

/* aussi inclus : liste dense, lue comme un bon de livraison */
.inclus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.inclus div { padding: 18px 0; border-top: 1px solid var(--inox-3); }
.inclus h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.inclus h3 svg { width: 20px; height: 20px; color: var(--texte-2); flex: none; }
.inclus p { margin: 0; color: var(--texte-2); font-size: 16px; }

/* prix */
.tarifs { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.addition { background: var(--papier); color: var(--encre); padding: 28px 26px 34px; border-radius: 2px;
  -webkit-mask: radial-gradient(7px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 100% repeat-x; mask: radial-gradient(7px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 100% repeat-x; }
.addition .tete { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); border-bottom: 1.5px dashed #c9c9bf; padding-bottom: 12px; }
.addition .ligne { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dotted #c9c9bf; font-size: 16px; }
.addition .ligne span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.addition .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-weight: 800; font-size: 18px; }
.addition .total b { font-size: 40px; font-stretch: 100%; }
.addition .note { margin-top: 10px; font-size: 13px; color: var(--encre-2); }
.tarifs-texte p { color: var(--texte-2); margin: 0 0 16px; }
@media (max-width: 860px) { .tarifs { grid-template-columns: 1fr; } }

/* demande d'accès */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 760px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: 15px; }
.champ .aide { font-weight: 400; color: var(--texte-2); }
.champ input, .champ select { font: inherit; font-size: 17px; color: var(--texte); background: var(--inox-2); border: 1.5px solid var(--inox-3); border-radius: var(--r); padding: 12px 14px; min-height: 50px; }
.champ input:focus, .champ select:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.champ input[aria-invalid="true"] { border-color: var(--rouge); }
.erreur { color: #ff8a80; font-size: 14px; min-height: 0; }
.envoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.envoi p { margin: 0; color: var(--texte-2); font-size: 14px; max-width: 46ch; }
.merci { max-width: 760px; background: var(--inox-2); border: 1.5px solid var(--vert); border-radius: var(--r); padding: 22px 24px; }
.merci h3 { margin: 0 0 6px; font-size: 22px; }
.merci p { margin: 0; color: var(--texte-2); }
@media (max-width: 640px) { .formulaire { grid-template-columns: 1fr; } }

/* pied */
.pied-site { max-width: var(--max); margin: clamp(80px, 10vw, 128px) auto 0; padding: 28px var(--gouttiere) 40px; border-top: 1px solid var(--inox-3); display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--texte-2); font-size: 14px; }
.pied-site a { color: var(--texte-2); }
.pied-site a:hover { color: var(--texte); }
.pied-site .marque { font-size: 16px; color: var(--texte); margin-right: auto; }
