@font-face { font-family: 'DM Serif Display'; src: url(assets/polices/dm-serif-display-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url(assets/polices/dm-serif-display-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(assets/polices/figtree-latin-wght-normal.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --rouge: #7d1f22;
  --rouge-vif: #a3272b;
  --creme: #fbf6ee;
  --papier: #f4ebdc;
  --encre: #221a17;
  --gris: #6d625b;
  --trait: #e4d8c6;
  --ocre: #d9a441;
  --blanc: #fffdf9;
  --rayon: 14px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --haut: 56px;
  --nav: 108px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--haut) + var(--nav) + 8px); }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 16px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
html[data-langue="fr"] [data-l="en"], html[data-langue="en"] [data-l="fr"] { display: none !important; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 99; background: var(--blanc); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 2px; }

/* En-tête */
.haut { position: sticky; top: 0; z-index: 30; height: var(--haut); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; padding-top: env(safe-area-inset-top); background: var(--rouge); color: #fff; }
.marque img { width: 172px; height: auto; }
.haut-actions { display: flex; gap: 8px; }
.langue, .appel { display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .06em; cursor: pointer; text-decoration: none; }
.appel svg { width: 20px; height: 20px; }
.langue:hover, .appel:hover { background: rgba(255,255,255,.12); }

/* Ouverture */
.ouverture { position: relative; height: min(54svh, 500px); min-height: 360px; overflow: hidden; background: #1a0f0c; }
.ouverture img { width: 100%; height: 100%; object-fit: cover; object-position: center 88%; }
.ouverture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,8,.0) 20%, rgba(20,10,8,.55) 62%, rgba(20,10,8,.85) 100%); }
.ouverture-texte { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 16px 22px; color: #fff; max-width: 1180px; margin: 0 auto; }
.surtitre { margin: 0 0 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
h1 { margin: 0 0 14px; font: 400 clamp(52px, 13vw, 96px)/.95 var(--serif); letter-spacing: -.01em; }
.atouts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.atouts li { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 500; }
.atouts .statut::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ocre); vertical-align: 1px; }
.atouts .statut.ouvert::before { background: #6fcf7f; }

/* Barre des rubriques */
.rubriques { position: sticky; top: var(--haut); z-index: 20; background: rgba(251,246,238,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--trait); }
.recherche { position: relative; max-width: 1180px; margin: 0 auto; padding: 10px 16px 6px; }
.recherche svg { position: absolute; left: 30px; top: 50%; width: 18px; height: 18px; margin-top: 2px; transform: translateY(-50%); color: var(--gris); pointer-events: none; }
.recherche input { width: 100%; height: 44px; padding: 0 44px 0 42px; border: 1px solid var(--trait); border-radius: 12px; background: var(--blanc); font: 400 16px var(--sans); color: var(--encre); -webkit-appearance: none; appearance: none; }
.recherche input::-webkit-search-cancel-button { display: none; }
.recherche input:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(125,31,34,.12); }
.effacer { position: absolute; right: 20px; top: 50%; margin-top: 2px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--gris); cursor: pointer; }
.onglets { display: flex; gap: 6px; max-width: 1180px; margin: 0 auto; padding: 6px 16px 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.onglets::-webkit-scrollbar { display: none; }
.onglets a { flex: none; scroll-snap-align: start; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc); font-size: 14.5px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.onglets a.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; }

/* Sections */
main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
.sec { padding-top: 26px; }
.sec[hidden] { display: none; }
.sec-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--rouge); }
h2 { margin: 0; font: 400 32px/1.1 var(--serif); color: var(--rouge); }
.fait-maison { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.fait-maison svg { width: 17px; height: 17px; }
.sec-note { margin: 10px 0 0; color: var(--gris); font-size: 15px; }
.aucun { margin: 40px 0; text-align: center; color: var(--gris); }

/* Choix des pâtes */
.choix-pates { display: flex; gap: 4px; margin: 14px 0 2px; padding: 4px; border-radius: 14px; background: var(--papier); }
.choix-pates button { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; font-size: 13.5px; line-height: 1.2; font-weight: 550; cursor: pointer; }
.choix-pates button[aria-checked="true"] { background: var(--blanc); color: var(--rouge); box-shadow: 0 1px 3px rgba(34,26,23,.12); }

/* Plats */
.plats { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.plat { border-bottom: 1px solid var(--trait); }
.plat[hidden] { display: none; }
.plat-btn { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.plat-photo { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--papier); }
.plat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.plat-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plat-nom { font-weight: 650; font-size: 16.5px; line-height: 1.25; }
.plat-desc { color: var(--gris); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plat-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plat-prix { flex: none; font-weight: 650; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--rouge); }
.plat-prix small { font-weight: 500; font-size: 12.5px; color: var(--gris); }
.plat-prix.indispo { font-size: 13px; font-weight: 500; color: var(--gris); white-space: normal; max-width: 72px; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.tag { padding: 2px 8px; border-radius: 999px; background: #f3e1d3; color: #7a3a1d; font-size: 12px; font-weight: 600; }
.tag-ghost { background: transparent; border: 1px solid var(--trait); color: var(--gris); }
.plat.choisi .plat-photo::after { content: attr(data-n); position: absolute; top: 5px; right: 5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
@media (hover: hover) { .plat-btn:hover .plat-photo img { transform: scale(1.06); } .plat-btn:hover .plat-nom { color: var(--rouge); } }

/* Encarts (suppléments, garnitures) */
.encart { margin-top: 16px; padding: 14px 16px; border-radius: var(--rayon); background: var(--papier); }
.encart-titre { margin: 0 0 6px; font-weight: 650; font-size: 15px; }
.encart-pied { margin: 8px 0 0; color: var(--gris); font-size: 14px; }
.lignes { margin: 0; padding: 0; list-style: none; }
.lignes li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 15px; }
.lignes li > span:first-child { min-width: 0; }
.pointille { flex: 1; min-width: 12px; border-bottom: 1px dotted #c9b9a3; transform: translateY(-4px); }
.lp { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp small, .vol { color: var(--gris); font-weight: 500; font-size: 13px; }

/* Boissons */
.boisson { border-bottom: 1px solid var(--trait); }
.boisson summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; }
.boisson summary::-webkit-details-marker { display: none; }
.boisson h3 { margin: 0; font: 400 23px var(--serif); }
.boisson summary svg { width: 22px; height: 22px; transition: transform .25s; color: var(--rouge); }
.boisson[open] summary svg { transform: rotate(180deg); }
.boisson-corps { padding-bottom: 16px; }
.boisson h4 { margin: 14px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rouge); }
.vins { margin: 0; padding: 0; list-style: none; }
.vins li { padding: 8px 0; border-bottom: 1px dotted var(--trait); }
.vin-nom { margin: 0; font-weight: 600; }
.vin-nom span { font-weight: 400; color: var(--gris); font-size: 14px; }
.vin-prix { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 3px 0 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.vin-prix small { color: var(--gris); font-weight: 500; font-size: 13px; margin-right: 3px; }
.coup-de-coeur { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--papier); font-weight: 600; }
.coup-de-coeur span { font-weight: 400; color: var(--gris); font-size: 14.5px; }
.sante { margin-top: 18px; color: var(--gris); font-size: 13px; }

/* Pied */
.pied { background: var(--encre); color: #efe6da; padding: 36px 16px calc(36px + env(safe-area-inset-bottom)); }
.pied-grille { display: grid; gap: 22px; max-width: 1180px; margin: 0 auto; }
.pied p { margin: 0; }
.pied-logo { width: 190px; height: auto; margin-bottom: 6px; filter: brightness(1.35); }
.pied-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #b9aa98; margin-bottom: 4px !important; }
.pied a { text-decoration-color: rgba(239,230,218,.35); text-underline-offset: 3px; }
.pied-petit { max-width: 1180px; margin: 22px auto 0 !important; font-size: 13px; color: #b9aa98; }

/* Sélection */
.selection-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.selection-ouvrir { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; margin: 0 auto; min-height: 54px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--rouge); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 10px 30px rgba(60,15,15,.35); cursor: pointer; }
.sel-n { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 14px; }
.sel-total { margin-left: auto; font-variant-numeric: tabular-nums; }
body.a-selection main { padding-bottom: 96px; }

/* Fiches (dialogues) */
dialog { padding: 0; border: 0; color: var(--encre); background: var(--creme); }
dialog::backdrop { background: rgba(26,14,10,.55); }
.fiche, .panier { width: 100%; max-width: 560px; max-height: 92svh; margin: auto auto 0; border-radius: 22px 22px 0 0; overflow: auto; overscroll-behavior: contain; }
.fiche[open], .panier[open] { animation: monte .28s cubic-bezier(.2,.8,.2,1); }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.fiche-fermer-f, .panier form { position: sticky; top: 0; height: 0; z-index: 2; }
.fiche-fermer { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,253,249,.92); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.fiche-photo { position: relative; aspect-ratio: 4 / 3; background: var(--papier); }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
.fiche-illu { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(20,10,8,.55); color: #fff; font-size: 11.5px; }
.fiche-corps { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); }
.fiche-rub { margin: 0; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.fiche h3, .panier h3 { margin: 4px 0 8px; font: 400 30px/1.1 var(--serif); color: var(--rouge); }
.fiche-desc { margin: 0 0 14px; color: #4a3f39; }
.fiche-desc:empty { display: none; }
.fiche-options { display: grid; gap: 8px; margin-bottom: 16px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--trait); border-radius: 12px; background: var(--blanc); cursor: pointer; text-align: left; }
.option[aria-pressed="true"] { border-color: var(--rouge); box-shadow: inset 0 0 0 1px var(--rouge); }
.option[disabled] { opacity: .45; cursor: default; }
.option b { font-variant-numeric: tabular-nums; color: var(--rouge); white-space: nowrap; }
.option-seul { display: flex; justify-content: space-between; font-size: 18px; font-weight: 650; }
.option-seul b { color: var(--rouge); font-variant-numeric: tabular-nums; }
.fiche-ajout { width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: var(--rouge); color: #fff; font-weight: 650; font-size: 16px; cursor: pointer; }
.fiche-ajout:hover { background: var(--rouge-vif); }
.panier { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
.panier-aide { margin: 0 0 12px; color: var(--gris); font-size: 14.5px; }
.panier-liste { margin: 0; padding: 0; list-style: none; }
.panier-liste li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.panier-liste .pn { font-weight: 650; }
.panier-liste .pv { color: var(--gris); font-size: 14px; grid-column: 1; }
.panier-liste .pp { grid-column: 2; grid-row: 1; font-weight: 650; font-variant-numeric: tabular-nums; }
.qte { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 4px; }
.qte button { width: 36px; height: 36px; border: 1px solid var(--trait); border-radius: 10px; background: var(--blanc); font-size: 18px; cursor: pointer; }
.qte span { min-width: 22px; text-align: center; font-weight: 650; }
.panier-total { display: flex; justify-content: space-between; margin: 14px 0 18px; font-size: 19px; font-weight: 700; }
.panier-vider { border: 0; background: none; color: var(--gris); text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* Crédits */
.page-credits { background: var(--creme); }
.credits { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; font-size: 15px; }
.credits h1 { font-size: 44px; color: var(--rouge); }
.credits li { margin: 8px 0; }

@media (min-width: 720px) {
  :root { --haut: 64px; }
  .marque img { width: 210px; }
  .plats { grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .plat-btn { grid-template-columns: 104px 1fr; }
  .plat-photo { width: 104px; height: 104px; }
  h2 { font-size: 40px; }
  .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .fiche, .panier { margin: auto; border-radius: 22px; }
}
@media (min-width: 1100px) {
  .ouverture { height: 520px; }
  .ouverture img { object-position: center 55%; }
  .ouverture-texte { padding-bottom: 36px; }
  .plats { grid-template-columns: 1fr 1fr 1fr; column-gap: 32px; }
  .plat-btn { grid-template-columns: 96px 1fr; }
  .plat-photo { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
