/* Hot Buns — ardoise & jaune (BRAND.md fait foi) */
:root {
  --ardoise: #121211; --ardoise-2: #1C1C1A; --ardoise-3: #262623; --trait: rgba(246,241,231,.14);
  --jaune: #FFC21A; --jaune-fonce: #8A6400; --craie: #F6F1E7; --craie-2: #B9B3A7; --vert: #7BD88F;
  --titre: "Baloo 2", system-ui, sans-serif; --texte: "Manrope", system-ui, sans-serif;
  --r: 14px; --gut: clamp(16px, 5vw, 40px); --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
html.fige { overflow: hidden; }
body { margin: 0; background: var(--ardoise); color: var(--craie); font: 500 16px/1.55 var(--texte); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.passer { position: absolute; left: 12px; top: -60px; background: var(--jaune); color: #121211; padding: 10px 14px; border-radius: 8px; font-weight: 800; z-index: 99; }
.passer:focus { top: 12px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 9vw, 64px); }
p { margin: 0; }
.prix, .num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

/* Étiquette jaune penchée — signe de leur carte */
.etiq { display: inline-block; background: var(--jaune); color: #121211; font: 800 15px/1 var(--titre); padding: 8px 12px 6px; transform: rotate(-3deg); border-radius: 3px; letter-spacing: .01em; }
.etiq.grand { font-size: clamp(18px, 4.6vw, 24px); padding: 10px 14px 8px; }
.etiq-mini { display: inline-block; margin-top: 8px; font: 800 12px/1 var(--texte); text-transform: uppercase; letter-spacing: .08em; color: var(--jaune); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0; font: 800 17px/1 var(--texte); text-decoration: none; transition: transform .15s var(--ease), background-color .2s; }
.btn-plein { background: var(--jaune); color: #121211; box-shadow: 0 6px 0 #A57A00; }
.btn-plein:active { transform: translateY(3px); box-shadow: 0 3px 0 #A57A00; }
.btn-trait { background: transparent; color: var(--craie); border: 2px solid var(--trait); }
@media (hover: hover) { .btn-plein:hover { background: #FFD047; } .btn-trait:hover { border-color: var(--craie-2); } }
.btn svg { width: 20px; height: 20px; }

/* En-tête */
.tete { position: fixed; inset: 0 0 auto; z-index: 30; padding: calc(env(safe-area-inset-top) + 10px) var(--gut) 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(rgba(18,18,17,.85), rgba(18,18,17,0)); }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--titre); letter-spacing: .02em; }
.marque img { width: 34px; height: 30px; }
.marque small { display: block; font: 600 10px/1.2 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--craie-2); }
.tete .btn { min-height: 44px; padding: 0 16px; font-size: 15px; background: rgba(18,18,17,.55); border-color: rgba(246,241,231,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Héros (accueil) */
.heros { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.heros-media { position: absolute; inset: 0; z-index: -1; }
.heros-media video, .heros-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.heros-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,17,.05) 25%, rgba(18,18,17,.7) 55%, var(--ardoise) 88%); }
.heros-txt { padding: 0 var(--gut) calc(28px + env(safe-area-inset-bottom)); width: 100%; max-width: 640px; }
.heros h1 { font-size: clamp(40px, 11.5vw, 84px); margin: 14px 0 10px; text-wrap: balance; }
.heros h1 em { font-style: normal; color: var(--jaune); }
.heros .sous { color: var(--craie-2); font-size: 17px; max-width: 34ch; }
.heros .sous, .heros .preuve { text-shadow: 0 1px 12px rgba(18,18,17,.8); } /* héros 21/11 : lisible sur la photo au téléphone */
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.heros .preuve { font-size: 14px; color: var(--craie-2); }
.heros .preuve b { color: var(--craie); }
.heros .etiq { animation: tombe .5s var(--ease) .15s both; }
@keyframes tombe { from { transform: rotate(-12deg) translateY(-10px); } to { opacity: 1; transform: rotate(-3deg); } }

/* Bandeau TV */
.tv { border-block: 1px solid var(--trait); background: var(--ardoise-2); }
.tv .wrap { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; padding-block: 18px; }
.tv img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.tv p { font-size: 15px; color: var(--craie-2); }
.tv strong { display: block; font: 800 20px/1.1 var(--titre); color: var(--craie); margin-bottom: 4px; }

/* Sections */
.sec { padding-block: clamp(56px, 12vw, 120px); }
.sec-tete { display: grid; gap: 14px; margin-bottom: 28px; }
.sec-tete p { color: var(--craie-2); max-width: 46ch; }

/* Choix de la friterie — moment signature */
.tickets { display: grid; gap: 16px; }
.ticket { position: relative; background: var(--ardoise-2); border: 1px solid var(--trait); border-radius: var(--r); padding: 22px 20px 20px; display: grid; gap: 12px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--ardoise); border: 1px solid var(--trait); transform: translateY(-50%); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); } .ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket h3 { font-size: 40px; }
.ticket .ville { color: var(--craie-2); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.ticket .adr { font-size: 16px; }
.ticket .nouveau { position: absolute; top: -12px; right: 16px; }
.etat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--craie-2); }
.etat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6B6760; }
.etat.est-ouvert { color: var(--vert); } .etat.est-ouvert::before { background: var(--vert); box-shadow: 0 0 0 4px rgba(123,216,143,.18); }
.ticket .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; border-top: 1px dashed var(--trait); padding-top: 16px; }
.ticket .actions .btn { flex: 1 1 170px; }

/* Ardoise */
.ardoise-bloc { background: var(--ardoise-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)) 22px; padding: 4px var(--gut); overscroll-behavior-x: contain; }
.filtres::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--trait); background: transparent; font-weight: 700; font-size: 15px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.chip small { font-size: 12px; color: var(--craie-2); font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--jaune); color: #121211; border-color: var(--jaune); }
.chip[aria-pressed="true"] small { color: #3b2c00; }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.plat { position: relative; padding: 16px 0; border-bottom: 1px dashed var(--trait); }
.plat-tete { display: flex; align-items: baseline; gap: 8px; }
.plat h3 { font-size: 23px; color: var(--jaune); font-weight: 800; }
.pts { flex: 1; border-bottom: 2px dotted rgba(246,241,231,.25); transform: translateY(-5px); min-width: 16px; }
.plat .prix, .petits .prix { font: 800 20px/1 var(--titre); color: var(--jaune); white-space: nowrap; }
.plat p { color: var(--craie-2); font-size: 15px; margin-top: 4px; max-width: 52ch; }
body[data-lieu] .plat { padding-right: 58px; }
.plus { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--jaune); color: #121211; font: 800 26px/1 var(--titre); display: grid; place-items: center; padding-top: 3px; }
.plus.petit { position: static; transform: none; width: 40px; height: 40px; font-size: 22px; margin-left: 10px; }
.plus.pop { animation: pop .3s var(--ease); }
@keyframes pop { 40% { scale: 1.18; } }
.suppl { margin-top: 22px; border: 2px solid var(--jaune); border-radius: 10px; padding: 14px 16px; color: var(--jaune); font-weight: 700; font-size: 15px; display: grid; gap: 4px; }
.petits { display: grid; gap: 28px; margin-top: 48px; }
.petits ul { list-style: none; margin: 14px 0 0; padding: 0; }
.petits li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--trait); }
.petits .prix { font-size: 18px; }
.note { color: var(--craie-2); font-size: 14px; margin-top: 10px; }
.vitrine { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
.vitrine figure { margin: 0; border-radius: var(--r); overflow: hidden; background: #000; position: relative; }
.vitrine figure:first-child { grid-row: span 2; }
.vitrine img, .vitrine video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.vitrine figcaption { position: absolute; left: 10px; bottom: 10px; font: 800 14px/1 var(--titre); background: rgba(18,18,17,.75); padding: 6px 9px 4px; border-radius: 6px; }

/* Avis */
.avis { display: grid; gap: 14px; }
.avis blockquote { margin: 0; background: var(--ardoise-2); border-radius: var(--r); padding: 22px 20px; border-left: 4px solid var(--jaune); }
.avis blockquote p { font: 700 20px/1.3 var(--titre); }
.avis cite { display: block; margin-top: 10px; font-style: normal; color: var(--craie-2); font-size: 14px; }
.etoiles { color: var(--jaune); letter-spacing: 2px; }

/* Pied */
.pied { border-top: 1px solid var(--trait); padding: 48px 0 calc(110px + env(safe-area-inset-bottom)); color: var(--craie-2); font-size: 15px; }
.pied .grille { display: grid; gap: 28px; }
.pied h2 { font-size: 24px; color: var(--craie); margin-bottom: 8px; }
.pied a { text-decoration-color: var(--trait); text-underline-offset: 3px; }
.pied table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pied td { padding: 3px 14px 3px 0; vertical-align: top; }
.pied .bas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }

/* Page friterie */
.local-heros { padding: calc(env(safe-area-inset-top) + 76px) 0 28px; position: relative; isolation: isolate; }
.local-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: #000; position: relative; }
.local-photo img, .local-photo video { width: 100%; height: 100%; object-fit: cover; }
.local-photo .etiq { position: absolute; left: 12px; top: 14px; }
.local-heros h1 { font-size: clamp(38px, 10vw, 72px); margin: 18px 0 8px; }
.local-heros h1 span { display: block; font-size: .42em; color: var(--craie-2); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.infos { display: grid; gap: 10px; margin-top: 16px; }
.infos a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.infos svg { width: 20px; height: 20px; color: var(--jaune); flex: none; }
.local-heros .actions { display: grid; gap: 10px; margin-top: 20px; }
.attente { background: var(--jaune); color: #121211; border-radius: var(--r); padding: 18px; display: grid; gap: 6px; margin-top: 22px; }
.attente strong { font: 800 22px/1.1 var(--titre); }
.etapes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; counter-reset: e; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; color: var(--craie-2); }
.etapes li::before { content: counter(e); width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--jaune); color: var(--jaune); display: grid; place-items: center; font: 800 18px/1 var(--titre); padding-top: 2px; }
.horaires { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horaires td { padding: 10px 0; border-bottom: 1px dashed var(--trait); }
.horaires td:last-child { text-align: right; }
.horaires tr.auj td { color: var(--jaune); font-weight: 800; }
.autre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--trait); border-radius: var(--r); text-decoration: none; }
.autre strong { font: 800 22px/1.1 var(--titre); }

/* Barre panier + feuille */
.barre { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
.barre button { width: 100%; min-height: 60px; border: 0; border-radius: 16px; background: var(--jaune); color: #121211; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 800; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.barre .t { font: 800 20px/1 var(--titre); }
.feuille { position: fixed; inset: 0; z-index: 50; }
.feuille .voile { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; border: 0; width: 100%; }
.feuille .panneau { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--ardoise-2); border-radius: 22px 22px 0 0; padding: 10px var(--gut) calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s var(--ease); }
.feuille.ouverte .voile { opacity: 1; } .feuille.ouverte .panneau { transform: none; }
.poignee { width: 44px; height: 5px; border-radius: 3px; background: var(--trait); margin: 0 auto 14px; }
.f-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.f-tete h2 { font-size: 30px; }
.fermer { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait); background: transparent; font-size: 22px; }
.f-lieu { color: var(--craie-2); font-size: 14px; margin-bottom: 14px; }
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px dashed var(--trait); align-items: center; }
.lignes .l-prix { grid-column: 2; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lignes .l-nom { display: grid; gap: 6px; }
.lignes select { justify-self: start; min-height: 40px; font-size: 16px; background: var(--ardoise-3); border: 1px solid var(--trait); border-radius: 8px; padding: 0 10px; }
.qte { display: inline-flex; align-items: center; gap: 4px; grid-row: 1; grid-column: 2; }
.qte button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--trait); background: transparent; font-size: 20px; }
.qte span { min-width: 22px; text-align: center; font-weight: 800; }
.lignes .vide { display: block; color: var(--craie-2); }
.f-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-weight: 800; }
.f-total span:last-child { font: 800 26px/1 var(--titre); color: var(--jaune); }
fieldset { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
legend { font: 800 20px/1.2 var(--titre); margin-bottom: 10px; padding: 0; }
.rang { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; overscroll-behavior-x: contain; }
.grille-h { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; margin-top: 14px; }
label small { font-weight: 500; color: var(--craie-2); }
input, textarea { width: 100%; min-height: 50px; font-size: 16px; background: var(--ardoise); border: 1.5px solid var(--trait); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--jaune); outline: none; }
.piege { position: absolute; left: -9999px; }
.envoyer { width: 100%; margin-top: 22px; }
.envoyer:disabled { opacity: .5; box-shadow: none; }
.erreur { color: #FF8A7A; font-weight: 700; min-height: 1.4em; margin-top: 10px; }
.rassure { color: var(--craie-2); font-size: 14px; text-align: center; margin-top: 10px; }
.ok { text-align: center; padding: 20px 0 8px; display: grid; gap: 12px; justify-items: center; }
.ok .code { font: 800 44px/1 var(--titre); color: var(--jaune); letter-spacing: .04em; }

/* Révélations au défilement */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .rv.vu { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Tablette / bureau */
@media (min-width: 760px) {
  .tickets { grid-template-columns: 1fr 1fr; }
  .plats { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .petits { grid-template-columns: repeat(3, 1fr); }
  .avis { grid-template-columns: repeat(3, 1fr); }
  .pied .grille { grid-template-columns: 1.2fr 1fr 1fr; }
  .vitrine { grid-template-columns: 1.3fr 1fr 1fr; }
  .vitrine figure:first-child { grid-row: span 2; }
  .local-grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .local-heros .actions { grid-template-columns: 1fr 1fr; }
  .barre { left: auto; right: 24px; width: 380px; }
  .feuille .panneau { left: auto; right: 0; top: 0; width: 460px; max-height: none; border-radius: 22px 0 0 22px; transform: translateX(100%); }
}
@media (min-width: 1000px) {
  .heros { grid-template-columns: 1fr 1fr; align-items: center; }
  .heros-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: 100dvh; }
  .heros-media::after { background: linear-gradient(90deg, var(--ardoise) 0%, rgba(18,18,17,0) 35%), linear-gradient(0deg, var(--ardoise) 0%, rgba(18,18,17,0) 20%); }
  .heros-txt { grid-column: 1; grid-row: 1; padding: 0 0 0 max(var(--gut), calc((100vw - var(--max)) / 2)); max-width: 620px; }
  .tv .wrap { grid-template-columns: 120px 1fr; } .tv img { width: 120px; height: 120px; }
}
.tete { transition: background-color .25s, box-shadow .25s; }
.tete.defile { background: rgba(18,18,17,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--trait); }
.cta-bas { margin-top: 36px; }
.page-texte { padding-top: 120px; } .page-texte h1 { font-size: clamp(36px, 9vw, 60px); margin-bottom: 20px; } .page-texte h2 { font-size: 26px; margin: 28px 0 10px; } .page-texte p { max-width: 64ch; margin-bottom: 12px; color: var(--craie-2); } .page-texte a { color: var(--jaune); }
.sec-tete .etiq, .ok .etiq { justify-self: start; } .ok .etiq { justify-self: center; }
/* iPhone : la barre d'outils flottante de Safari couvre le bas de l'écran */
.ios .barre { bottom: calc(env(safe-area-inset-bottom) + 64px); }
/* Corrections audit mobile */
.marque { min-height: 44px; }
.marque small { font-size: 12px; letter-spacing: .12em; }
.pied h2 a, .pied p a, .pied .bas a { display: inline-flex; align-items: center; min-height: 44px; }
.plus.petit { flex: none; width: 44px; height: 44px; }
.local-grille > *, .tickets > *, .petits > * { min-width: 0; }
.petits li > span:first-child { min-width: 0; }
.avis.avis-local { grid-template-columns: 1fr; }
@media (min-width: 760px) and (max-width: 999px) { .local-grille { grid-template-columns: 1fr; } }
