/* =============================================================
   MENU GOLD BEEF ROUEN
   Une seule présentation (celle de la carte L'Entrecôte de Dubaï),
   deux jeux de couleurs :
   - .theme-or    → noir et doré (Business lunch, Carte Gold Beef)
   - .theme-dubai → crème et rouge (L'Entrecôte de Dubaï, comme le PDF)
   ============================================================= */

@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url(polices/nunito-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-display: swap; src: url(polices/nunito-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-display: swap; src: url(polices/eb-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(polices/eb-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-display: swap; src: url(polices/eb-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-display: swap; src: url(polices/eb-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 700; font-display: swap; src: url(polices/cormorant-garamond-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Great Vibes'; font-weight: 400; font-display: swap; src: url(polices/great-vibes-latin-400-normal.woff2) format('woff2'); }

/* ---------- Couleurs ---------- */
:root {
  --or: #d6a64e;
  --or-clair: #e8c27a;
  --rouge: #9c1b1f;
  --largeur: 560px;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
}
.theme-or {
  --fond: #141312;
  --fond-page: radial-gradient(120% 70% at 50% 35%, #262420 0%, #181715 55%, #0f0e0d 100%);
  --fond-html: #0f0e0d;
  --fond-carte: #1e1c19;
  --fond-doux: #2b2824;
  --fond-panneau: #191816;
  --texte: #f4ece0;
  --texte-doux: #bdb2a0;
  --desc: #d2b276;
  --accent: var(--or);
  --accent-texte: var(--or-clair);
  --sur-accent: #17130c;
  --bord: rgba(214, 166, 78, .55);
  --bord-doux: rgba(214, 166, 78, .18);
  --barre-fond: linear-gradient(180deg, #e0b158 0%, #c4922f 100%);
  --barre-texte: #1a140b;
  --cadre: url(img/cadre-or.png);
  --ombre: 0 4px 14px rgba(0, 0, 0, .35);
  --halo: rgba(214, 166, 78, .16);
}
.theme-dubai {
  --fond: #f6e9d7;
  --fond-page: radial-gradient(120% 70% at 50% 35%, #fbf1e3 0%, #f6e9d7 55%, #efddc5 100%);
  --fond-html: #efddc5;
  /* cases des plats : un crème proche du fond (pas de blanc), comme sur Gold Beef — choix du patron 21/11 */
  --fond-carte: #f1e1ca;
  --fond-doux: #e9d4b8;
  --fond-panneau: #f8ecdc;
  --texte: #2b1d17;
  --texte-doux: #6e4a3e;
  --desc: var(--rouge);
  --accent: var(--rouge);
  --accent-texte: var(--rouge);
  --sur-accent: #fdf3e6;
  --bord: rgba(156, 27, 31, .5);
  --bord-doux: rgba(156, 27, 31, .22);
  --barre-fond: linear-gradient(180deg, #a8222a 0%, #8e171b 100%);
  --barre-texte: #fdf3e6;
  --cadre: url(img/dubai/cadre.png);
  --ombre: 0 2px 8px rgba(110, 40, 20, .08);
  --halo: rgba(156, 27, 31, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #0f0e0d; transition: background-color .45s ease; }
html:has(body.theme-dubai) { background: #efddc5; }
body {
  margin: 0 auto;
  max-width: var(--largeur);
  min-height: 100vh;
  background: var(--fond-page) fixed, var(--fond);
  color: var(--texte);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: color .45s ease;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.carte { display: flow-root; }

/* ---------- Cadre décoré sur les côtés (repris du PDF Dubaï) ---------- */
.cadre {
  position: relative;
  margin: calc(10px + env(safe-area-inset-top)) 8px 16px;
  border-style: solid; border-color: transparent;
  border-width: 14px 12px 16px;
  border-image-source: var(--cadre);
  border-image-slice: 210 210 155 210;
  border-image-width: 62px 62px 46px 62px;
  border-image-repeat: stretch;
  padding: 8px 2px 34px;
}

/* ---------- En-tête du menu ---------- */
.tete { padding: 26px 16px 4px; text-align: center; }
.tete-entete-dubai { width: min(78%, 300px); height: auto; margin: 0 auto; }
/* En-tête Gold Beef / Business lunch : mêmes proportions que l'image rouge de Dubaï
   (mesurées sur le PDF : logo = 49,7 % de la largeur, trait à 41 %, titre en Great Vibes à 13,76 %) */
.tete-bloc { width: min(78%, 300px); margin: 0 auto; container-type: inline-size; }
.tete-logo { width: 49.7%; height: auto; margin: 0 auto; }
.tete-separateur { display: flex; align-items: center; justify-content: center; gap: 5cqw; height: 2.7cqw; margin-top: 4.7cqw; color: var(--accent); }
.tete-separateur span { width: 18cqw; height: 1.5px; background: currentColor; }
.tete-separateur i { font: 400 5cqw/1 var(--serif); font-style: normal; }
.tete-script { margin-top: 2cqw; font: 400 13.76cqw/1.12 'Great Vibes', cursive; color: var(--accent-texte); }
.tete-horaire {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid var(--bord); color: var(--accent-texte); font-weight: 600; font-size: 16px;
}
.tete-horaire svg { width: 17px; height: 17px; }
.tete-intro { margin: 16px auto 0; max-width: 30em; color: var(--texte); font-style: italic; font-size: 17px; line-height: 1.35; }
.tete-allergies { margin-top: 8px; color: var(--texte-doux); font-size: 14.5px; }
.tete-legende { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--accent-texte); font-size: 15px; }
.tete-icone { width: 46px; height: 46px; margin: 0 auto 6px; background: var(--accent); -webkit-mask: url(img/couteaux.png) center / contain no-repeat; mask: url(img/couteaux.png) center / contain no-repeat; }

/* ---------- Onglets des menus ---------- */
/* Les 3 menus côte à côte, fixes et centrés, en 3 colonnes égales (un nom long passe sur 2 lignes) — choix du patron 21/11 */
.onglets-defile { margin-top: 14px; padding: 0 6px; }
.onglets { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.onglet {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 2px 7px;
  font-weight: 600; font-size: 16.5px; line-height: 1.15; text-align: center; text-wrap: balance;
  color: var(--texte); opacity: .55; border-bottom: 2px solid transparent; transition: opacity .2s, color .2s, border-color .2s;
}
.onglet[aria-selected="true"] { opacity: 1; color: var(--accent-texte); border-bottom-color: var(--accent); }

/* ---------- Recherche ---------- */
.recherche { position: relative; margin: 16px 14px 0; }
.recherche input {
  width: 100%; height: 46px; padding: 0 44px; border-radius: 26px;
  border: 1px solid var(--bord); background: transparent; color: var(--texte);
  font: 17px var(--serif); -webkit-appearance: none; appearance: none;
}
.recherche input::placeholder { color: var(--texte-doux); opacity: .85; }
.recherche input::-webkit-search-cancel-button { display: none; }
.recherche input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo); }
.recherche-loupe { position: absolute; left: 15px; top: 12px; width: 21px; height: 21px; color: var(--texte-doux); pointer-events: none; }
.recherche-effacer { position: absolute; right: 6px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--texte-doux); }
.recherche-effacer svg { width: 20px; height: 20px; }

/* ---------- Vignettes des catégories ---------- */
/* en haut : juste le nom des catégories, dans une rangée qu'on fait glisser (pas de photo ni d'icône) */
.vignettes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px 14px 4px; scroll-padding: 14px; }
.vignettes::-webkit-scrollbar { display: none; }

/* ---------- Pastilles collées en haut ---------- */
.pastilles {
  position: fixed; top: 0; left: 0; right: 0; max-width: var(--largeur); margin: 0 auto; z-index: 20;
  background: var(--fond); border-bottom: 1px solid var(--bord-doux); box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transform: translateY(-110%); transition: transform .25s ease, background-color .45s ease;
}
.pastilles.visible { transform: none; }
.pastilles-liste { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; }
.pastilles-liste::-webkit-scrollbar { display: none; }
.pastille { flex: none; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--bord); font-size: 16px; font-weight: 600; white-space: nowrap; color: var(--texte); transition: background-color .2s, color .2s; }
.pastille.active { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }

/* ---------- Contenu ---------- */
.contenu { padding: 4px 14px 10px; }
.suggestion {
  margin: 18px 0 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--bord);
  background: var(--fond-carte); display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--ombre);
}
.suggestion svg { flex: none; color: var(--accent-texte); width: 26px; height: 26px; margin-top: 2px; }
.suggestion h3 { font: 600 20px/1.15 var(--serif); color: var(--accent-texte); }
.suggestion p { margin-top: 4px; font-size: 16px; font-style: italic; color: var(--texte-doux); }

.section { padding-top: 26px; scroll-margin-top: 64px; }
/* titres des catégories : le nom entre deux traits (choix du patron, 21/11), pour les 3 menus.
   Gold Beef et Business lunch : nom blanc, traits dorés. Dubaï : nom et traits rouges. */
.section-titre {
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  font: 700 26px/1.1 'Cormorant Garamond', var(--serif); letter-spacing: .03em; color: var(--texte);
}
.section-titre::before, .section-titre::after { content: ''; flex: 1; max-width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.section-titre::after { background: linear-gradient(90deg, var(--accent), transparent); }
.theme-dubai .section-titre { color: var(--rouge); }
.theme-dubai .section-titre::before, .theme-dubai .section-titre::after { height: 1.5px; }
.section-note { margin-top: 8px; text-align: center; font-style: italic; color: var(--desc); font-size: 16px; }
.plats { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* ---------- Carte d'un plat ---------- */
.plat {
  width: 100%; text-align: left; display: flex; gap: 12px; align-items: stretch;
  padding: 14px 12px 14px 16px; border-radius: 12px; background: var(--fond-carte); box-shadow: var(--ombre);
  border: 1px solid var(--bord-doux); transition: transform .12s ease;
}
.plat:active { transform: translateY(2px); }
.plat-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.plat-nom { font: 600 19px/1.2 var(--serif); color: var(--texte); word-break: break-word; }
.plat-desc { font-size: 15.5px; font-style: italic; color: var(--desc); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plat-prix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; }
.prix { font-weight: 600; font-size: 19px; color: var(--accent-texte); white-space: nowrap; }
/* Gold Beef et Business lunch : prix normal en blanc, seul le prix OR reste doré (choix du patron, 21/11) */
.theme-or .prix { color: #ffffff; font-size: 20px; }
.prix-or {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 2px 8px 3px; border-radius: 6px; white-space: nowrap;
  border: 1px solid rgba(214,166,78,.6); color: var(--or-clair); background: rgba(214,166,78,.1);
  font: 700 13.5px/1.3 'Nunito Sans', system-ui, sans-serif;
}
.prix-or b { font-size: 10.5px; letter-spacing: .12em; color: var(--or); }
.plat-photo { flex: none; width: 96px; height: 96px; border-radius: 9px; object-fit: cover; align-self: center; background: var(--fond-doux); }

/* Garnitures & sauces */
.listes { display: grid; gap: 12px; margin-top: 16px; }
.liste { padding: 16px; border-radius: 12px; background: var(--fond-carte); border: 1px solid var(--bord-doux); box-shadow: var(--ombre); }
.liste-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.liste-tete h3 { font: 600 20px/1.2 var(--serif); color: var(--accent-texte); }
.liste-tete span { font-size: 15px; font-style: italic; color: var(--texte-doux); white-space: nowrap; }
.liste ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.liste li { display: flex; gap: 10px; font-size: 17px; }
.liste li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* Bientôt (Business lunch) */
.bientot { margin: 22px 0 8px; padding: 30px 22px; text-align: center; border-radius: 14px; border: 1px dashed var(--bord); background: var(--fond-carte); }
.bientot .tete-icone { width: 54px; height: 54px; margin-bottom: 12px; }
.bientot h3 { font: 600 24px/1.15 var(--serif); color: var(--accent-texte); }
.bientot p { margin-top: 10px; color: var(--texte-doux); font-size: 17px; font-style: italic; }

/* Recherche sans résultat */
.vide { padding: 40px 10px; text-align: center; color: var(--texte-doux); font-style: italic; }
.vide strong { display: block; color: var(--texte); font-size: 19px; font-style: normal; margin-bottom: 6px; }

/* ---------- Pied de page ---------- */
.pied { padding: 26px 20px 30px; text-align: center; font-size: 14.5px; color: var(--texte-doux); }
.pied-logo { width: 34px; height: 34px; margin: 0 auto 10px; background: var(--accent); opacity: .8; -webkit-mask: url(img/couteaux.png) center / contain no-repeat; mask: url(img/couteaux.png) center / contain no-repeat; }
.pied a { color: inherit; }
.pied-liens { margin-top: 4px; }
.pied-avis {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--bord); color: var(--accent-texte) !important; text-decoration: none; font-size: 16px; font-weight: 600;
}
.pied-avis svg { width: 18px; height: 18px; }

/* ---------- Bouton remonter ---------- */
.remonter {
  position: fixed; right: max(16px, calc(50% - var(--largeur) / 2 + 16px)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 15;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--sur-accent); box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* ---------- Fiche d'un plat ---------- */
.fiche { position: fixed; inset: 0; max-width: var(--largeur); margin: 0 auto; z-index: 40; background: var(--fond-page), var(--fond); overflow-y: auto; overscroll-behavior: contain; animation: ficheEntre .28s ease-out; }
@keyframes ficheEntre { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.fiche-boutons { position: sticky; top: 0; z-index: 2; height: 0; }
.rond { position: absolute; top: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,12,10,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.rond:first-child { left: 14px; }
.rond:last-child { right: 14px; }
.rond svg { width: 22px; height: 22px; }
.fiche-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 64vh; object-fit: cover; background: var(--fond-doux); }
.fiche-panneau { position: relative; margin-top: -26px; padding: 24px 20px calc(36px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--fond-panneau); min-height: 40vh; }
.fiche-sans-photo .fiche-panneau { margin-top: 0; padding-top: 80px; border-radius: 0; background: transparent; }
.fiche-sans-photo .rond { background: var(--fond-doux); color: var(--texte); }
.fiche-categorie { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-texte); }
.fiche-nom { margin-top: 6px; font: 500 31px/1.1 var(--serif); color: var(--texte); }
.fiche-desc { margin-top: 12px; font-size: 18px; font-style: italic; color: var(--desc); }
.fiche-prix { margin-top: 20px; display: grid; gap: 10px; }
.fiche-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--fond-carte); border: 1px solid var(--bord-doux); }
.fiche-ligne-nom { font-weight: 600; font-size: 18px; }
.fiche-ligne-detail { display: block; font-weight: 400; font-style: italic; font-size: 15px; color: var(--texte-doux); }
.fiche-ligne-prix { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.fiche-ligne.ligne-or { background: linear-gradient(135deg, rgba(214,166,78,.22), rgba(214,166,78,.05)); border-color: rgba(214,166,78,.55); }
.theme-dubai .fiche-ligne.ligne-or { background: linear-gradient(135deg, #2a2117, #3a2d1c); }
.fiche-ligne.ligne-or .fiche-ligne-nom, .fiche-ligne.ligne-or .prix { color: var(--or-clair); }
.theme-dubai .fiche-ligne.ligne-or .fiche-ligne-detail { color: #d9c7a8; }
.fiche-note { margin-top: 18px; font-size: 16px; font-style: italic; color: var(--texte-doux); }

/* ---------- Fenêtre « Infos du restaurant » ---------- */
.voile { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); animation: apparait .2s ease-out; }
@keyframes apparait { from { opacity: 0; } }
.feuille {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: var(--largeur); margin: 0 auto; z-index: 51;
  background: #171614; color: #f6f1e7; border-radius: 22px 22px 0 0; padding: 8px 0 calc(16px + env(safe-area-inset-bottom));
  animation: feuilleMonte .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes feuilleMonte { from { transform: translateY(100%); } }
.feuille-poignee { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); margin: 0 auto 6px; }
.feuille-tete { display: flex; align-items: center; justify-content: center; position: relative; padding: 8px 56px 12px; }
.feuille-tete h2 { font: 600 21px/1.2 var(--serif); }
.feuille-fermer { position: absolute; right: 10px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; }
.infos-liste { display: flex; flex-direction: column; }
.info { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); color: inherit; text-decoration: none; }
.info:active { background: rgba(255,255,255,.05); }
.info svg { flex: none; color: var(--or-clair); }
.info span { display: block; font-size: 15px; font-style: italic; color: #b8afa1; }
.info strong { display: block; font-size: 18px; font-style: normal; font-weight: 600; color: #f6f1e7; }

/* ---------- Petit message ---------- */
.message { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; padding: 10px 16px; border-radius: 10px; background: #f6f1e7; color: #161310; font: 600 16px var(--serif); box-shadow: 0 6px 20px rgba(0,0,0,.35); }

/* ---------- Écrans plus grands ---------- */
@media (min-width: 561px) {
  body { box-shadow: 0 0 60px rgba(0,0,0,.5); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
