/* Polices hébergées sur le site (plus rapide que Google Fonts : aucune requête externe qui bloque l'affichage).
   Alfa Slab One + Karla (police variable 200-800), sous-ensemble latin (couvre tous les accents français). Licence : assets/fonts/OFL.txt */
@font-face { font-family: "Alfa Slab One"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/alfa-slab-one-latin.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/karla-latin.woff2") format("woff2"); }
/* Layout: enseigne de casse-croûte en blocs francs — bandeau rouge, étapes de commande, menu en tableau à prix alignés, une bande à carreaux comme signature
   v2 : audit UI/UX Pro Max (contraste, cibles tactiles, navigation mobile, formulaire) */
:root {
  --red: #c8102e;          /* surfaces rouges (texte blanc dessus : 5.9:1) */
  --red-deep: #9c0c23;     /* survol des boutons rouges */
  --red-text: #b30e29;     /* rouge utilisé comme couleur de texte */
  --ink: #1d1416;
  --paper: #ffffff;
  --paper-2: #f7f2f0;
  --muted: #64575a;
  --line: #ddd2d2;
  --gold: #f2b134;
  --on-red: #ffffff;
  --ok: #157a3a;
  --focus: #1f6feb;

  --f-display: "Alfa Slab One", "Rockwell", "Georgia", serif;
  --f-body: "Karla", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 5vw, 3rem);
  --step-4: clamp(2.5rem, 8vw, 5rem);

  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --t-fast: 160ms;
  color-scheme: light; /* Mode sombre retiré le 2026-11-13 (demande de Mathieu) : toujours clair */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.55;
  touch-action: manipulation;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; text-wrap: balance; margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--red-text); margin: 0 0 .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.text-link { color: var(--red-text); font-weight: 700; text-underline-offset: 3px; }
.sub { font-family: var(--f-body); font-weight: 800; font-size: var(--step-1); margin-bottom: .3rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 800; text-decoration: none;
  border: 2px solid transparent; font-size: var(--step-0); cursor: pointer; font-family: inherit;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn:active { filter: brightness(.92); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(127,127,127,.14); }
.btn-white { background: #fff; color: #9c0c23; }
.btn-white:hover { background: #ffe6ea; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* En-tête */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; line-height: 1; }
.brand-logo { height: 52px; width: auto; flex: none; }
.brand-txt { display: flex; flex-direction: column; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; color: var(--red-text); }
.brand-txt > span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-top: .2rem; }
.nav { display: flex; gap: .25rem; margin-left: auto; font-weight: 700; }
.nav a { text-decoration: none; padding: .6rem .7rem; border-radius: 8px; transition: color var(--t-fast); }
.nav a:hover { color: var(--red-text); }
.top .btn { min-height: 44px; padding: .5rem 1.1rem; }
.burger {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex: none;
}
@media (max-width: 800px) {
  .burger { display: inline-flex; }
  .top .btn { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: .5rem var(--gutter) 1rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
}
@media (max-width: 380px) { .top .btn { padding-inline: .8rem; } .brand b { font-size: 1.35rem; } .brand-logo { height: 44px; } }
@media (max-width: 340px) { .brand-txt { display: none; } }

/* Héros */
.hero { background: var(--red); color: var(--on-red); }
.hero:focus { outline: none; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: var(--step-4); }
.hero h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .12em; text-underline-offset: .12em; }
.eyebrow-light { color: #fff; opacity: .92; }
.lead { font-size: var(--step-1); max-width: 34rem; margin: 1rem 0 1.5rem; }
.status-card {
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.3); border-radius: 14px;
  padding: 1.25rem 1.4rem; display: grid; gap: .9rem;
}
.status { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: var(--step-1); }
.dot { width: .8rem; height: .8rem; border-radius: 50%; background: #c9c9c9; flex: none; }
.dot.open { background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.3); }
.status-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.status-card dt { opacity: .85; }
.status-card dd { margin: 0; font-weight: 700; }
.hero-side { display: flex; align-items: flex-end; gap: 1rem; }
.hero-side .status-card { flex: 1; }
.hero-mascot { width: 120px; height: auto; flex: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero-mascot { width: 90px; } }
@media (max-width: 420px) { .hero-mascot { display: none; } }

/* Bande à carreaux (signature) */
.checker {
  height: 22px; background-color: #fff;
  background-image:
    linear-gradient(45deg, #c8102e 25%, transparent 25%, transparent 75%, #c8102e 75%),
    linear-gradient(45deg, #c8102e 25%, transparent 25%, transparent 75%, #c8102e 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}

section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin: 0; color: var(--muted); max-width: 32rem; }

/* Étapes de commande */
.steps-sec { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.steps-sec .wrap { display: grid; gap: 1.5rem; justify-items: start; }
.steps-title { font-size: var(--step-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .2rem; padding: 1.1rem 1.2rem 1.2rem; border: 2px solid var(--ink); border-radius: 12px; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--red-text); margin-bottom: .3rem; }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Promos */
.promos { background: var(--paper-2); }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.promo { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.promo:first-child { background: var(--red); color: var(--on-red); border-color: var(--red); }
.promo:first-child p, .promo:first-child .price { color: var(--on-red); }
.promo h3 { font-size: var(--step-2); }
.promo p { margin: 0; color: var(--muted); }
.promo .price { margin-top: auto; padding-top: .6rem; font-family: var(--f-display); font-size: var(--step-2); color: var(--red-text); }
.badge { align-self: flex-start; background: var(--gold); color: #1d1416; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 4px; }

/* Temps des Fêtes : bande « canne de Noël » rouge et blanc en tête de section */
.fetes { padding-top: 0; }
.candy {
  height: 14px; margin-bottom: clamp(3rem, 7vw, 5rem);
  background: repeating-linear-gradient(-45deg, #c8102e 0 14px, #fff 14px 28px);
}
.nav a.nav-fetes { color: var(--red-text); }
.fete-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.fete-card { border: 2px solid var(--ink); border-radius: 12px; padding: 1.4rem; display: flex; flex-direction: column; gap: .4rem; background: var(--paper); }
.fete-card:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fete-card:first-child p { color: var(--paper); opacity: .85; }
.fete-card h3 { font-size: var(--step-2); }
.fete-card p { margin: 0; color: var(--muted); }
.fete-foot { margin-top: auto; align-self: flex-start; background: var(--gold); color: #1d1416; font-weight: 800; font-size: var(--step--1); padding: .3rem .7rem; border-radius: 4px; }
.fete-card p + .fete-foot { margin-top: auto; }
.fete-card p { margin-bottom: .8rem; }
.traiteur { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 860px) { .traiteur { grid-template-columns: 1fr; } }
.traiteur > div { display: grid; gap: 1rem; align-content: start; }
.fete-sub { font-family: var(--f-body); font-weight: 800; font-size: var(--step-1); }
.fete-intro { margin: 0; color: var(--muted); }
.formules { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.formules li { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; background: var(--paper-2); }
.formules b { display: block; font-size: 1.1rem; }
.formules span { display: block; color: var(--muted); font-size: var(--step--1); }
.formules .pers { color: var(--red-text); font-weight: 800; }
.formules strong { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); color: var(--red-text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Menu */
.menu-tools {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 10;
  background: var(--paper); padding-block: .75rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line);
  display: grid; gap: .75rem;
}
.search { position: relative; max-width: 28rem; }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 2.6rem; }
.cats { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .25rem; }
.cats a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: .4rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: var(--step--1); white-space: nowrap; transition: border-color var(--t-fast), color var(--t-fast);
}
.cats a:hover, .cats a.active { border-color: var(--red-text); color: var(--red-text); }
.menu-cat { scroll-margin-top: calc(var(--header-h) + 140px); margin-bottom: 3rem; }
.menu-cat h3 { font-size: var(--step-2); color: var(--red-text); display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.menu-cat h3 small { font-family: var(--f-body); font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.items { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 2.5rem; }
.item { padding-block: .9rem; border-bottom: 1px dashed var(--line); min-width: 0; }
.item.has-img { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.item[hidden] { display: none; }
.item-photo {
  display: block; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff;
  cursor: zoom-in; aspect-ratio: 4 / 3; width: 100%;
}
.item-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-fast); }
.item-photo:hover img { transform: scale(1.06); }
.item-photo:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.photo-viewer { border: 0; padding: 0; border-radius: 14px; max-width: min(92vw, 800px); background: #fff; color: #1d1416; overflow: hidden; }
.photo-viewer::backdrop { background: rgba(20, 10, 12, .75); }
.photo-viewer figure { margin: 0; }
.photo-viewer img { display: block; width: 100%; height: auto; }
.photo-viewer figcaption { padding: .8rem 1.1rem; font-weight: 800; font-size: 1.1rem; }
.viewer-close {
  position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: #1d1416; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@media (max-width: 30rem) { .item.has-img { grid-template-columns: 5.25rem minmax(0, 1fr); gap: .8rem; } }
.item-row { display: flex; align-items: baseline; gap: .5rem; }
.item-name { font-weight: 800; font-size: 1.05rem; }
.leader { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.3em); min-width: 1rem; }
.item-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { margin: .15rem 0 0; color: var(--muted); font-size: var(--step--1); }
.sizes { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: .4rem; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.sizes b { font-weight: 800; }
.tag { background: var(--gold); color: #1d1416; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 3px; }
.menu-empty { color: var(--muted); font-weight: 700; }

/* Bandeau commande */
.order-band { background: var(--ink); color: var(--paper); }
.order-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.order-band h2 { font-size: var(--step-3); }
.order-band p { margin: .5rem 0 0; opacity: .85; }
.order-band .btn-ghost { color: var(--paper); }

/* Heures & accès */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { color: var(--red-text); font-weight: 800; }
.contact { display: grid; gap: 1.5rem; align-content: start; }
.contact p { margin: 0; }
.contact p + p { margin-top: .4rem; }
.copy {
  font: inherit; font-size: var(--step--1); font-weight: 700; background: none; border: 1.5px solid var(--line); border-radius: 8px;
  min-height: 36px; padding: .2rem .7rem; margin-left: .6rem; cursor: pointer; color: var(--muted);
}
.copy:hover { color: var(--red-text); border-color: var(--red-text); }

/* Emplois */
.jobs { background: var(--paper-2); }
.jobs-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 860px) { .jobs-grid { grid-template-columns: 1fr; } }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; align-content: start; }
.job-list li { background: var(--paper); border-radius: 10px; padding: 1rem 1.2rem; border: 1px solid var(--line); }
.job-list b { display: block; font-size: 1.05rem; }
.job-list span { color: var(--muted); font-size: var(--step--1); }
form { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 1.5rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 800; font-size: var(--step--1); }
abbr { color: var(--red-text); text-decoration: none; }
input, select, textarea {
  font: inherit; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--red-text); outline: 2px solid var(--red-text); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--red-text); }
.err { margin: 0; color: var(--red-text); font-size: var(--step--1); font-weight: 700; }
.err:empty { display: none; }
.form-msg { margin: 0; font-weight: 800; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }
.form-msg.bad { color: var(--red-text); }
.hidden-field { position: absolute; left: -9999px; }

/* Pied de page */
footer { background: var(--red); color: var(--on-red); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
footer .brand b { color: #fff; }
footer .brand-txt > span { color: rgba(255,255,255,.85); }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 700; }
footer nav a { text-decoration: none; padding-block: .5rem; }
footer nav a:hover { text-decoration: underline; }
footer small { opacity: .9; width: 100%; }
.form-note { margin: 0; font-size: var(--step--1); color: var(--muted); }
.form-note a { color: var(--red-text); }
/* Promos : bouton Commander et photo à droite (2026-11-12) */
.promo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.promo.has-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 1rem; align-items: center; }
.promo-body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; height: 100%; }
.promo-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.promo .promo-btn { align-self: flex-start; margin-top: .6rem; background: var(--red); color: var(--on-red); }
.promo .promo-btn:hover { background: var(--red-deep); }
.promo:first-child .promo-btn { background: #fff; color: #9c0c23; }
.promo:first-child .promo-btn:hover { background: #ffe6ea; }
/* Bandeau de consentement aux témoins (mesure.js) et Turnstile (2026-11-13) */
.temoins { position: fixed; z-index: 50; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 46rem; margin-inline: auto;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); display: grid; gap: .8rem; }
.temoins p { margin: 0; font-size: var(--step--1); line-height: 1.5; }
.temoins a { color: var(--red-text); }
.temoins-btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.temoins-btns .btn { min-height: 44px; padding: .5rem 1.2rem; }
.lien-temoins { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; padding-block: .5rem; cursor: pointer; }
.lien-temoins:hover { text-decoration: underline; }
.turnstile:empty { display: none; }
.turnstile { margin-block: .25rem; }
