/* Vitrine — mobile d'abord (90 % du trafic).
 * Aucune couleur n'est écrite ici : tout vient des jetons du thème, injectés par
 * le serveur dans un <style nonce>. Changer de thème ne touche pas à ce fichier. */
@font-face {
  font-family: 'Karla';
  src: url('/_s/fonts/karla-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  src: url('/_s/fonts/marcellus-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.5;

  /* Échelle d'espacement — la MÊME que celle du back-office, pour que les deux
   * surfaces respirent pareil. Elle manquait ici : tous les `var(--s*)` de ce
   * fichier étaient invalides, donc silencieusement ignorés, et les blocs
   * concernés s'affichaient collés les uns aux autres. Une valeur en dur ne
   * revient dans ce fichier que pour une mesure qui n'est pas un espacement
   * (hauteur tactile, épaisseur de trait). */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 36px;
  /* Cible tactile minimale : 44 px, la même partout. */
  --touch: 44px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px 56px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .logo { font-family: var(--font-heading); font-weight: var(--heading-weight); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.hint { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); margin-top: 2px; }

/* Bandeau d'annonce : la promesse qui fait acheter, visible avant tout le reste. */
/* Bandeau d'apercu. SES COULEURS NE VIENNENT PAS DU THEME, et c'est voulu :
 * un theme mal regle pourrait le rendre illisible — justement le jour ou il
 * faut le lire. Elles sont ecrites en dur ici plutot qu'en ligne : la CSP de
 * la vitrine interdit les styles en ligne, et le navigateur les ignorait
 * silencieusement. */

.announce { margin: 0; background: var(--banner-bg); color: var(--banner-ink); text-align: center; font-size: .8125rem; font-weight: 700; padding: 9px 16px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.0625rem; letter-spacing: .01em; }
.logo img { border-radius: 8px; object-fit: cover; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-body); font-weight: 700; }
.cart-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: .9375rem; }
.badge { background: var(--brand); color: var(--brand-ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .75rem; padding: 0 6px; font-weight: 700; }

/* --------------------------------- Accueil -------------------------------- */
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(1.875rem, 6vw, 3rem); margin: 0 0 12px; letter-spacing: -.01em; line-height: 1.1; }
.hero p { color: var(--muted); margin: 0; max-width: 56ch; font-size: 1.0625rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.trust li { font-size: .8125rem; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.section-title { font-size: 1.125rem; margin: 36px 0 14px; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s cubic-bezier(.22,.61,.36,1); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .45); }
.thumb { aspect-ratio: 1; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: block; width: 100%; height: 100%; }
.card h3 { font-size: .9375rem; margin: 12px 12px 6px; line-height: 1.3; }
.price { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; margin: 0 12px 14px; font-weight: 700; font-family: var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; }

.empty-shop { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 24px; }
.empty-shop h2 { margin: 0 0 8px; font-size: 1.25rem; }
.empty-shop p { color: var(--muted); margin: 0 auto 18px; max-width: 42ch; }
.empty-shop .btn { width: auto; display: inline-block; }

/* ------------------------------ Fiche produit ----------------------------- */
.back { display: inline-block; margin: 20px 0 4px; font-size: .875rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.product { display: grid; gap: 24px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; } .back { grid-column: 1 / -1; } }
.gallery-main { position: relative; }
.gallery-main > img, .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.flag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); flex: none; }
@media (min-width: 860px) { .info { position: sticky; top: 84px; } }
.info h1 { margin: 0 0 12px; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.01em; line-height: 1.15; }
.price-lg { margin: 0 0 20px; }
.price-lg .price { margin: 0; font-size: 1.625rem; }
.product-trust { margin: 18px 0 0; }
.ask { font-size: .875rem; color: var(--muted); margin: 14px 0 0; }
.ask a { font-weight: 700; color: var(--ink); }
.desc { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.desc h2 { font-size: 1.0625rem; margin: 0 0 10px; }
.desc p { color: var(--muted); line-height: 1.7; margin: 0 0 12px; }

/* -------------------------------- Formulaires ----------------------------- */
form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 700; margin: 16px 0; }
input, select, textarea { font: inherit; padding: 13px 14px; border-radius: var(--button-radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
button, .btn {
  font: inherit; font-family: var(--font-body); font-weight: 700; padding: 16px 20px; border-radius: var(--button-radius);
  border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); cursor: pointer; width: 100%; text-align: center;
  text-decoration: none; display: block; transition: filter .15s ease, transform .08s ease;
}
button:hover:not(:disabled), .btn:hover { filter: brightness(.94); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.buy .qty input { max-width: 120px; }
fieldset.block { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin: 0 0 18px; background: var(--surface); }
fieldset.block legend { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.0625rem; padding: 0 8px; }

/* Moyens de paiement : des choix cliquables en entier, pas des points minuscules. */
.methods { display: grid; gap: 10px; margin-top: 6px; }
.method { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; background: var(--bg); }
.method input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.method strong { display: block; font-size: .9375rem; }
.method:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* ---------------------------------- Panier -------------------------------- */
.cart, .done { max-width: 620px; margin: 0 auto; padding-top: 28px; }
.cart h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img, .line .line-ph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--line); }
.lt { font-weight: 700; font-size: .9375rem; }
.lp { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: max-content; }
.stepper button { width: 42px; height: 40px; padding: 0; background: var(--surface); color: var(--ink); border: 0; font-size: 1.0625rem; font-weight: 700; border-radius: 0; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rm { width: auto; background: none; color: var(--muted); padding: 8px 8px 8px 0; margin-left: -8px; font-weight: 500; font-size: .8125rem; text-decoration: underline; text-align: left; }

.summary { margin: 22px 0 16px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.summary p { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 10px; font-size: .9375rem; color: var(--muted); }
/* `display: flex` écrase la règle `[hidden] { display: none }` du navigateur :
   sans cette ligne, une ligne de récapitulatif masquée resterait affichée. */
.summary p[hidden] { display: none; }
.summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .total { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); font-weight: 700; }
.reassure { text-align: center; font-size: .8125rem; color: var(--muted); margin: 12px 0 0; }
.error { color: #c0392b; font-weight: 700; margin: 12px 0 0; }
.empty { color: var(--muted); padding: 20px 0 12px; }

/* ------------------------- Merci, paiement, 404 --------------------------- */
.done { text-align: center; padding-top: 48px; }
.done-mark { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; background: var(--brand); color: var(--brand-ink); }
.done-mark.failed, .done-mark.canceled { background: #c0392b; color: #fff; }
.done h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 auto 24px; max-width: 46ch; }
.steps { text-align: left; max-width: 420px; margin: 0 auto 28px; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--ink); }
.done-actions { display: grid; gap: 10px; max-width: 320px; margin: 0 auto; }

/* ---------------------------------- Pied ---------------------------------- */
.foot { text-align: center; padding: 32px 16px 44px; color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--line); background: var(--surface); }
.foot-name { font-family: var(--font-heading); font-weight: var(--heading-weight); color: var(--ink); font-size: 1rem; margin: 14px 0 4px; }
.foot p { margin: 0 0 4px; }
/* Le vert WhatsApp officiel (#25D366) ne tient que 2,2:1 en blanc, et #1faa54
 * 3,03:1 : les deux sont illisibles. Teinte de la même famille, assombrie
 * jusqu'à 5:1 — reconnaissable, et lisible. */
.wa { display: inline-block; padding: var(--s3) var(--s5); min-height: var(--touch); border-radius: 999px; background: #157f4f; color: #fff; font-weight: 700; text-decoration: none; }
.powered { margin-top: 10px; }

/* Liens legaux du pied de page.
 * Soulignes et non juste colores : la couleur seule ne porte jamais une
 * information, et un lien legal doit se voir comme un lien. Ils passent a la
 * ligne d'eux-memes plutot que de deborder a 320 px. */
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s4); margin: 0 0 var(--s3); }
.foot-legal a { color: inherit; text-decoration: underline; min-height: var(--touch); display: inline-flex; align-items: center; }

/* ---------- Page legale ----------
 * Une colonne etroite : on lit ces pages en entier, parfois sur un litige.
 * 68 caracteres par ligne, la longueur ou l'oeil ne perd pas sa ligne. */
.legal { max-width: 38rem; margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }
.legal h1 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(1.5rem, 5vw, 2rem); margin: 0 0 var(--s2); }
.legal-date { color: var(--muted); font-size: .8125rem; margin: 0 0 var(--s5); }
.legal h2 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.125rem; margin: var(--s6) 0 var(--s2); }
.legal p { margin: 0 0 var(--s4); }
.legal ul { margin: 0 0 var(--s4); padding-left: var(--s5); }
.legal li { margin-bottom: var(--s2); }
/* Une reference de commande ou un e-mail colle ne doit pas elargir la page. */
.legal p, .legal li { overflow-wrap: anywhere; }
.powered a { color: inherit; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } .card:hover { transform: none; } }

/* ------------------------------ Téléphone --------------------------------
 * Le marchand vend d'abord à des clients sur mobile en 3G : la photo ne mange
 * pas tout l'écran, et l'achat reste sous le pouce.
 */
.buybar { display: none; }
@media (max-width: 859px) {
  .gallery-main > img, .ph { max-height: 44vh; }
  .product { gap: 18px; }
  .info h1 { margin-bottom: 8px; }
  .price-lg { margin-bottom: 14px; }
  .buy > button[type='submit'] { display: none; }
  .buybar {
    position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 14px;
    margin: 18px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .buybar-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .buybar button { flex: 1; padding: 15px 16px; }
  .desc { margin-top: 24px; }
}

.checkoutbar { display: grid; gap: 12px; margin-top: 4px; }
.checkoutbar-total { display: none; }
@media (max-width: 859px) {
  .checkoutbar {
    position: sticky; bottom: 0; z-index: 4; grid-template-columns: auto 1fr; align-items: center;
    margin: 12px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .checkoutbar-total { display: grid; }
  .checkoutbar-total .hint { margin: 0; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
  .checkoutbar-total strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .checkoutbar button { padding: 15px 16px; }
  .summary { margin-bottom: 8px; }
}

/* Fiche technique : des couples libellé / valeur, lisibles d'un coup d'œil. */
.specs { margin: 0; display: grid; gap: 0; }
.specs > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-size: .875rem; }
.specs dd { margin: 0; font-weight: 700; font-size: .875rem; }

/* Bandeau de consentement : deux boutons de même poids, rien de chargé avant le choix. */
.consent { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; width: min(560px, calc(100% - 32px)); padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5); }
.consent p { margin: 0 0 12px; font-size: .875rem; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions button { padding: 12px 16px; font-size: .875rem; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); font-weight: 700; }
.consent-actions button:hover { filter: none; background: var(--surface); }
.foot .linklike { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; width: auto; padding: 0; }

/* ---------- Options de produit (Taille x Couleur) ---------- */
.option { border: 0; padding: 0; margin: 0 0 var(--s3); }
.option legend { font-size: .8rem; font-weight: 600; margin-bottom: var(--s2); padding: 0; }
.option .swatch { display: inline-flex; margin: 0 var(--s2) var(--s2) 0; }
/* La case reste focusable au clavier : on la masque visuellement, pas fonctionnellement. */
.option .swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.option .swatch span {
  display: inline-block; padding: var(--s2) var(--s4); min-height: var(--touch); line-height: 1.6;
  border: 1px solid var(--line); border-radius: var(--button-radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option .swatch input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.option .swatch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Épuisé : barré plutôt que caché, pour que le client voie ce qui existe. */
.option .swatch input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.option-missing { color: var(--muted); font-size: .85rem; margin: 0 0 var(--s3); }

/* ---------- Vérification du numéro ---------- */
.otp { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin-bottom: var(--s3); background: var(--surface); }
.otp label { margin-bottom: 6px; }
.otp input { letter-spacing: .25em; font-size: 1.1rem; max-width: 12ch; }
.otp .hint { margin: 0 0 var(--s1); }
.otp .linklike { background: none; border: 0; padding: 0; min-height: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Offres par quantité ---------- */
.tiers { border: 0; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.tiers legend { font-size: .8rem; font-weight: 600; margin-bottom: var(--s2); padding: 0; }
.tier { display: block; }
.tier input { position: absolute; opacity: 0; width: 0; height: 0; }
.tier > span {
  display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap;
  padding: var(--s3) var(--s4); min-height: var(--touch);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color .15s ease;
}
.tier input:checked + span { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.tier input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.tier-price { margin-left: auto; font-weight: 600; }
.tier-save { color: var(--brand); font-size: .8rem; font-weight: 700; }

/* ---------- Packs ---------- */
.packs { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: var(--s5); }
.pack { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); background: var(--surface); display: flex; flex-direction: column; gap: var(--s2); }
.pack h3 { margin: 0; font-size: 1rem; }
.pack ul { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.pack-prices { display: flex; align-items: baseline; gap: var(--s2); margin-top: auto; }
.pack-prices .was { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.pack-prices strong { font-size: 1.1rem; }
.pack-save { color: var(--brand); font-size: .8rem; font-weight: 700; }

/* ---------- Offre complémentaire ---------- */
.upsell { border: 1px solid var(--brand); border-radius: var(--radius); padding: var(--s3); margin-bottom: var(--s3); background: var(--surface); }
.upsell-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--s1); }
.upsell-title { font-weight: 600; margin: 0 0 var(--s1); }
.upsell-prices { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin: 0 0 var(--s3); }
.upsell-prices strong { font-size: 1.15rem; }
.upsell-prices .was { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.upsell-save { color: var(--brand); font-weight: 700; font-size: .8rem; }
.upsell-actions { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.upsell-actions button[data-upsell-yes] { flex: 1; min-width: 180px; }
.upsell-actions .linklike { background: none; border: 0; padding: 8px 0; min-height: var(--touch); color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- Acompte ---------- */
.deposit { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.deposit input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.deposit strong { display: block; }

/* La case « offres par e-mail ». Meme forme que l'acompte : une case de
   20 px se vise au doigt, et le libelle entier est cliquable. */
.check-line { display: flex; align-items: flex-start; gap: var(--s3); margin-top: var(--s2); cursor: pointer; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check-line span { font-size: .9375rem; color: var(--muted); }

/* ------------------------------- Compléments ------------------------------ */
/* Même grammaire que les moyens de paiement : une liste de cases cliquables
   sur toute leur surface, dont l'état coché se voit d'un coup d'oeil. */
.addons { display: grid; gap: var(--s2); margin-top: var(--s1); }
.addon { display: flex; align-items: flex-start; gap: var(--s3); margin: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; font-weight: 400; }
.addon input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.addon strong { display: block; font-size: .9375rem; }
.addon:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.addon-price { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --------------------------------- Code promo ---------------------------- */
.promo-state { margin: var(--s2) 0 0; font-size: .875rem; font-weight: 600; }
.promo-state.ok { color: #157f4f; }
.promo-state.ko { color: #c0392b; }

/* ------------------------------ Suivi -----------------------------------
 * La page qu'un client ouvre pour savoir ou en est sa commande. Elle repond
 * a UNE question, donc la reponse est en haut, en grand, en une phrase.
 */
.tracking { max-width: 34rem; margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }
.tracking h1 { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 0 0 var(--s2); }
.tracking-now { font-size: 1.0625rem; line-height: 1.5; background: var(--surface); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: var(--s4); margin: var(--s4) 0; }
.tracking-now.delivered { border-left-color: #157f4f; }
.tracking-now.cancelled, .tracking-now.returned { border-left-color: var(--muted); }
.tracking-courier { font-weight: 700; margin: 0 0 var(--s4); }
.tracking-steps { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s3); }
.tracking-steps li { display: grid; gap: 2px; padding-left: var(--s5); position: relative; opacity: .5; text-align: left; }
/* La pastille DIT l'etat franchi, et pas seulement la couleur : un point
 * plein contre un cercle vide se distingue sans voir les couleurs. */
.tracking-steps li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--page-bg, transparent);
}
/* `passed`, et non `done` : `.done` est deja la classe de la page de
 * remerciement (`text-align: center`), et les etapes franchies en heritaient
 * — texte centre, pastille decalee. Une classe generique dans une feuille
 * globale finit toujours par rencontrer son homonyme. */
.tracking-steps li.passed { opacity: 1; }
.tracking-steps li.passed::before { background: var(--brand); border-color: var(--brand); }
.tracking-facts { display: flex; flex-wrap: wrap; gap: var(--s5); margin: 0 0 var(--s4); }
.tracking-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.tracking-facts dd { margin: 2px 0 0; font-weight: 700; }
.track-cta { display: grid; gap: var(--s2); justify-items: center; margin: var(--s5) 0; }
.track-cta .btn-main { display: inline-flex; align-items: center; min-height: var(--touch); padding: var(--s3) var(--s5); border-radius: var(--button-radius); background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none; }

/* ---------- Révélation au défilement, partagée par les gabarits ----------
 *
 * L'ATTRIBUT `data-reveal` EST POSÉ PAR `app.js`, PAS PAR LE SERVEUR. Sans
 * JavaScript il n'existe pas, et les blocs restent visibles : une page dont
 * le contenu dépend d'une animation est une page vide pour qui a coupé les
 * scripts, et pour un robot d'indexation.
 *
 * Elle vit ici et non dans la feuille d'un gabarit parce que plusieurs s'en
 * servent : la dupliquer, c'est la voir diverger au premier réglage. */
[data-reveal] .revele { opacity: 0; transform: translateY(18px); }
[data-reveal] .revele.vu {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] .revele { opacity: 1; transform: none; }
  [data-reveal] .revele.vu { transition: none; }
}

/* ---------- Barre d'apercu ----------
 *
 * EN BAS, PAS EN HAUT, et c'est delibere : en haut elle recouvre l'en-tete de
 * la boutique, c'est-a-dire precisement ce que le marchand veut juger. En bas
 * elle reste visible pendant qu'il fait defiler, sans rien cacher de ce qui
 * compte.
 *
 * Ses couleurs sont ECRITES EN DUR, et c'est la seule regle du projet dans ce
 * cas : elle ne doit PAS prendre les couleurs du theme. Un theme sombre la
 * rendrait invisible sur un fond sombre, et le marchand repartirait convaincu
 * d'avoir publie. Elle doit se distinguer de la boutique, toujours. */
.apercu-barre {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 16px;
  background: #11131a;
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: .8125rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
.apercu-pastille { flex: none; padding: 3px 9px; border-radius: 999px; background: #3f8cff; color: #fff; font-weight: 700; font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.apercu-dit { flex: 1; min-width: 180px; }
.apercu-actions { display: flex; gap: 8px; margin-left: auto; }
.apercu-bouton {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #11131a;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.apercu-discret { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
/* La page gagne de la place en bas pour que la barre ne recouvre pas le pied
 * ni la barre d'achat du telephone.
 *
 * `:not([hidden])` N'EST PAS DU ZELE : la regle visait la PRESENCE de la
 * barre, pas sa visibilite. Une fois masquee, l'element restait dans la page
 * et la reservation de 64 px avec lui — un vide en bas d'ecran qu'on ne
 * s'explique pas. */
body:has(.apercu-barre:not([hidden])) { padding-bottom: 64px; }
.apercu-barre[hidden] { display: none; }

/* ---------- Menu du marchand ----------
 *
 * Il se glisse dans l'en-tete de chaque gabarit. Sur telephone il passe a la
 * ligne et defile horizontalement plutot que d'ecraser le logo et le panier :
 * ce sont ces deux-la qu'on ne doit jamais perdre. */
.menu { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; font-size: .9375rem; }
.menu a { min-height: var(--touch); display: inline-flex; align-items: center; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { text-decoration: underline; }
@media (max-width: 719px) {
  .menu {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--s4);
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .menu a { flex: none; }
}

/* LE BLOC CHOISI DANS L'EDITEUR. La regle vit ici et non en ligne : la CSP
   de la vitrine interdit les styles en ligne, et le navigateur les ignorait
   sans rien dire. Elle ne sert qu'en apercu, ou `data-bloc-id` existe. */
[data-bloc-id].apercu-choisi {
  outline: 2px solid #4f63e0;
  outline-offset: -2px;
  border-radius: 2px;
}

/* LE BLOC SURVOLE. Sans lui, la vitrine encadree est une image : rien ne dit
   qu'un morceau de page est un bloc, ni ou il commence et ou il finit. Le
   trait est en pointilles pour se distinguer du bloc CHOISI, qui est plein. */
[data-bloc-id].apercu-survol,
/* LES ZONES FIXES SE SURVOLENT PAREIL (lot 30). L'en-tete et le pied ne sont
   pas des blocs, mais le marchand ne fait pas cette difference : il voit sa
   banniere, il clique dessus. Le meme trait pour le meme geste. */
[data-zone].apercu-survol {
  outline: 2px dashed #8b97e8;
  outline-offset: -2px;
  border-radius: 2px;
  cursor: pointer;
}

/* CE QUI S'ECRIT SUR PLACE. Le curseur de texte annonce qu'on peut taper,
   avant meme d'avoir clique. */
[data-bloc-champ] { cursor: text; }
[data-bloc-champ].apercu-ecrit {
  outline: 2px solid #4f63e0;
  outline-offset: 2px;
  border-radius: 2px;
  background: rgba(79, 99, 224, .04);
}
/* Le contour du navigateur ferait double emploi avec le notre. */
[data-bloc-champ].apercu-ecrit:focus { outline-color: #4f63e0; }

/* LE MOT QUI EVITE UN MALENTENDU COUTEUX (095).
 *
 * Une boutique en bac a sable affiche une confirmation de paiement comme une
 * vraie. Sans cet avertissement, le client croit avoir paye et le marchand
 * attend un argent qui n'arrivera jamais. Il se lit AVANT les boutons de
 * paiement, et il emprunte les couleurs d'alerte du theme plutot que d'en
 * poser de nouvelles. */
.avertissement-test {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: color-mix(in oklab, currentColor 8%, transparent);
  font-weight: 600;
  font-size: .9rem;
}
