/* ==========================================================================
   Livraison de repas : liste des restaurants
   ========================================================================== */

.food { padding-bottom: clamp(60px, 8vw, 100px); min-height: calc(100dvh - var(--hdr-h)); }
.food__head { padding: 0; position: relative; overflow: hidden;
              background:
                radial-gradient(40vw 34vw at 90% -12%, rgba(156,3,6,.16), transparent 62%),
                radial-gradient(30vw 26vw at 4% 118%, rgba(156,3,6,.11), transparent 60%),
                radial-gradient(22vw 20vw at 60% 130%, rgba(156,3,6,.08), transparent 62%),
                var(--soft);
              border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.crumb a { font-weight: 600; color: var(--brand); }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.food__headIn { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); min-height: clamp(230px, 27vw, 320px);
  position: relative; z-index: 1; padding-right: clamp(320px, 52vw, 700px); }
.food__headTxt { flex: 0 0 auto; align-self: center; padding: 22px 0; position: relative; }
.food__title { margin-top: 8px; font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: #201a1b; line-height: 1.06; }
.food__title span { color: var(--brand); }
.food__spark { display: inline-block; width: clamp(20px, 2.2vw, 28px); height: auto; color: var(--brand); vertical-align: .32em; margin-right: 6px; }
.food__sub { margin-top: 8px; color: var(--muted); font-weight: 500; font-size: clamp(.92rem, 1.3vw, 1.05rem); }
/* Tagline centrée (manuscrite) */
.food__tagline { flex: 1 1 auto; align-self: center; text-align: center; margin: 0;
  font-family: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive; font-style: italic;
  font-size: clamp(1.1rem, 2.3vw, 1.8rem); font-weight: 500; color: var(--ink); line-height: 1.3; }
.food__tagline span { position: relative; color: var(--brand); }
.food__tagline span::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -4px; height: 2.5px; background: var(--brand); border-radius: 2px; }
/* Accent PAR CATÉGORIE (--svc-accent posé par restaurants.js sur .food[data-service]) */
.food[data-service] .food__tagline span { color: var(--svc-accent, var(--brand)); }
.food[data-service] .food__tagline span::after { background: var(--svc-accent, var(--brand)); }
.food[data-service] .food__title span { color: var(--svc-accent, var(--brand)); }
.food[data-service] .food__head {
  background:
    radial-gradient(40vw 34vw at 90% -12%, color-mix(in srgb, var(--svc-accent, var(--brand)) 18%, transparent), transparent 62%),
    radial-gradient(30vw 26vw at 4% 118%, color-mix(in srgb, var(--svc-accent, var(--brand)) 12%, transparent), transparent 60%),
    radial-gradient(22vw 20vw at 60% 130%, color-mix(in srgb, var(--svc-accent, var(--brand)) 9%, transparent), transparent 62%),
    var(--soft); }
/* Plat en grand, plein hauteur de la section, défilé un par un (fondu) */
.food__art { position: absolute; top: 0; right: 0; bottom: 0; width: clamp(340px, 50vw, 680px); overflow: hidden; background: var(--soft); }
.food__dish { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.food__dish.is-on { opacity: 1; }
/* Images curées panoramiques (ex. Boulangerie) : remplissent TOUTE la hauteur de la
   bannière (cover). On élargit un peu la bannière pour limiter le rognage latéral. */
@media (min-width: 861px) {
  .food__art--fit { width: clamp(420px, 56vw, 820px); }
  .food__art--fit .food__dish { object-fit: cover; object-position: center; }
}
.food__art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--soft) 0%, rgba(250,245,241,0) 24%); }
@media (max-width: 860px) {
  /* Héros PHOTO plein écran : la photo remplit le fond, un voile sombre par-dessus,
     et le texte passe en BLANC -> lisible quelle que soit l'image (claire ou sombre).
     max-width:100% + adresse qui se replie évitent tout débordement horizontal. */
  .food__head { padding: 0; }
  .food__headIn { position: relative; z-index: 2; flex-direction: column; align-items: stretch;
    gap: 14px; min-height: 0; padding: 24px 0 26px; padding-right: 0; max-width: 100%; }
  .food__headTxt { width: 100%; min-width: 0; padding: 0; }
  .food__title { margin-top: 0; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1;
    color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
  .food__title span { color: #ff8a8a; }                 /* « repas » : rouge clair, lisible sur sombre */
  .food__spark { color: #ff8a8a; }
  .food__sub { margin-top: 6px; color: rgba(255,255,255,.94); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
  /* Accroche manuscrite en blanc, alignée à gauche. */
  .food__tagline { text-align: left; margin-top: 2px; font-size: clamp(1.05rem, 5.2vw, 1.4rem);
    color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
  .food__tagline span { color: #ffd0d0; }
  .food__tagline span::after { background: #ffd0d0; }
  /* Photo en fond PLEIN (derrière le texte). Repli sombre tant que la photo charge
     (sinon texte blanc sur fond clair = illisible au 1er instant). */
  .food__art { position: absolute; inset: 0; width: auto; height: auto; margin: 0;
    border-radius: 0; z-index: 0; background: #231c1d; }
  /* ::before : voile sombre dégradé pour garantir le contraste du texte. */
  .food__art::before { z-index: 1;
    background: linear-gradient(180deg, rgba(18,13,14,.58) 0%, rgba(18,13,14,.34) 42%, rgba(18,13,14,.68) 100%); }
  /* Champ « Livrer à » (fond blanc, lisible sur sombre) : reste sur une ligne. */
  .food__deliv { margin-top: 12px; gap: 8px; padding: 9px 8px 9px 12px; }
  .food__delivTxt { flex: 1 1 80px; min-width: 0; }
  #foodDelivInput { font-size: .92rem; }
  .food__delivBtn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .food__dish { transition: none; } }
/* Bannière « Livraison à … » (adresse choisie sur l'accueil) */
.food__deliv { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px 10px 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); box-shadow: 0 1px 4px rgba(20,16,17,.06); }
.food__deliv:focus-within { border-color: var(--brand); }
.food__delivIc { flex-shrink: 0; display: grid; place-items: center; width: 24px; color: var(--brand); }
.food__delivIc svg { width: 22px; height: 22px; }
.food__delivTxt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.food__delivTxt small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
#foodDelivInput { border: 0; background: transparent; outline: 0; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); width: 100%; padding: 2px 0 0; }
#foodDelivInput::placeholder { color: var(--muted); font-weight: 400; }
.food__delivBtn { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.food__delivBtn svg { width: 20px; height: 20px; }
.food__delivBtn:hover { color: var(--brand); background: var(--soft); }
.food__delivBtn.is-busy svg { animation: fdspin 1s linear infinite; color: var(--brand); }
@keyframes fdspin { to { transform: rotate(360deg); } }
.food__delivAc { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,16,17,.16), 0 0 0 1px var(--line); max-height: 300px; overflow: auto; }
.food__delivAc[hidden] { display: none; }
.food__delivAc button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 9px; cursor: pointer; }
.food__delivAc button:hover { background: var(--soft); }
.food__delivAc strong { display: block; color: var(--ink); font-size: .92rem; }
.food__delivAc small { color: var(--muted); font-size: .8rem; }
.food__filters { display: flex; gap: 8px; margin-top: 20px; }
.food__filter { height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); background: var(--soft); transition: .2s var(--ease); }
.food__filter:hover { color: var(--ink); }
.food__filter.is-active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.food__filter-n { font-size: .78rem; font-weight: 700; opacity: .65; margin-left: 2px; }
.food__filter.is-active .food__filter-n { opacity: .9; }

.food__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 24px); padding-top: clamp(24px, 3vw, 36px); }
.food__empty { padding: 60px; text-align: center; color: var(--muted); }

/* ---- Sections (Nouvellement ouvert, Incontournables…) + menu latéral ---- */
/* Menu de gauche retiré : une seule colonne, remplacé par « Nos spécialités » en haut. */
.food__layout { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0; align-items: start; padding-top: clamp(18px, 2.4vw, 30px); }
.food__main { min-width: 0; }
/* « Nos spécialités » : colonne verticale à gauche (desktop). Masquée => la colonne se replie (width/padding via l'aside). */
/* Panneau collant propre (sans overflow sur l'élément sticky lui-même, sinon il ne tient pas).
   Le titre reste figé au-dessus ; seule la LISTE .fcui défile en interne. */
.fcui-side { width: 248px; padding-right: clamp(18px, 2vw, 32px); align-self: start;
             position: sticky; top: 84px; max-height: calc(100vh - 100px);
             display: flex; flex-direction: column; }
.fcui-side[hidden] { display: none; }

/* « Nos spécialités » : titre + rangée horizontale de cuisines (icône + nom), façon app mobile. */
.fcui__title { flex-shrink: 0; margin: 0 0 12px; padding: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.fcui__title[hidden] { display: none; }
/* Ligne-titre « Nos spécialités » + filtres (remplie sur mobile par relayoutFood) */
.fcui__titleRow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fcui__filters { display: flex; align-items: center; gap: 6px; }
.fcui__filters:empty { display: none; }
.fcui { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0;
        overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fcui::-webkit-scrollbar { display: none; }
.fcui[hidden] { display: none; }
.fcui__chip { flex-shrink: 0; display: flex; width: 100%; justify-content: flex-start; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; text-align: left; cursor: pointer; transition: box-shadow .15s var(--ease), background .15s, color .15s; }
.fcui__chip > span { overflow: hidden; text-overflow: ellipsis; }
.fcui__chip img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.fcui__ico { width: 24px; height: 24px; flex-shrink: 0; }   /* icône moderne (couleur = celle du chip) */
.fcui__chip:hover { box-shadow: inset 0 0 0 1px var(--brand-200); }
.fcui__chip.is-active { background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
/* squelette de carte pendant le rechargement (clic sur une cuisine) */
.rcard--sk { min-height: 320px; border-radius: var(--r-lg); box-shadow: none; background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
/* Barre recherche + filtres (sticky) */
.food__toolbar { position: sticky; top: 76px; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px; margin-bottom: 8px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(20,16,17,.06), 0 0 0 1px var(--line); }
/* Mode sombre : le fond blanc translucide du bandeau devient sombre translucide (sinon bande blanche). */
:root[data-theme="dark"] .food__toolbar { background: rgba(24,20,19,.9); box-shadow: 0 4px 18px rgba(0,0,0,.4), 0 0 0 1px var(--line); }
.food__search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px;
  border-radius: 12px; background: var(--soft); border: 1.5px solid transparent; transition: .15s; }
.food__search:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-50, var(--brand-50)); }
.food__search svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.food__search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: .95rem; color: var(--ink); }
.food__chip { height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; transition: .15s; white-space: nowrap; }
.food__chip::before { content: "🟢 "; }
.food__chip:hover { border-color: var(--brand-200, var(--brand-200)); }
.food__chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.food__sort { height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.food__sort:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50, var(--brand-50)); }
@media (max-width: 640px) {
  /* Compact : recherche (ligne 1), puis Ouvert + Pertinence côte à côte (ligne 2), police réduite */
  .food__toolbar { top: 108px; gap: 8px; padding: 10px; }
  .food__search { flex: 1 1 100%; height: 40px; }
  .food__search input { font-size: .88rem; }
  .food__search svg { width: 18px; height: 18px; }
  .food__chip { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 10px; font-size: .82rem;
    display: inline-flex; align-items: center; justify-content: center; }
  .food__sortWrap { flex: 1 1 0; min-width: 0; }
  .food__sort { width: 100%; height: 40px; font-size: .82rem; padding: 0 10px; }
  /* Layout mobile : recherche au-dessus du hero + Ouvert/Pertinence sur la MÊME ligne que le titre */
  .food--mlay .food__toolbar { display: none !important; }
  .food--mlay .food__search { width: auto; margin: 10px var(--gutter) 2px; height: 42px; }
  .fcui__titleRow { flex-wrap: nowrap; gap: 8px; }
  .fcui__titleRow .fcui__title { flex: 0 1 auto; min-width: 0; margin-bottom: 0; font-size: .82rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Chips cuisine (Tous/Pizzas/Burgers…) à la MÊME taille que le titre « Nos spécialités ». */
  .food--mlay .fcui__chip { font-size: .82rem; }
  .fcui__filters { flex: 0 0 auto; gap: 5px; }
  .fcui__filters .food__chip { flex: 0 0 auto; height: 30px; padding: 0 8px; font-size: .66rem; border-radius: 8px; }
  .fcui__filters .food__chip::before { content: "🟢"; margin-right: 2px; }
  .fcui__filters .food__sortWrap { flex: 0 0 auto; }
  .fcui__filters .food__sort { width: auto; height: 30px; padding: 0 20px 0 7px; font-size: .66rem; border-radius: 8px; }
}
.fnav { display: none; }   /* menu de gauche retiré (remplacé par « Nos spécialités ») */
.fnav__link { position: relative; display: block; padding: 13px 16px; border-left: 3px solid transparent; color: var(--muted); font-weight: 600; line-height: 1.3; transition: color .15s, border-color .15s; }
.fnav__link + .fnav__link { border-top: 1px solid var(--line); }
.fnav__link:hover { color: var(--ink); }
.fnav__link.is-active { color: var(--brand); border-left-color: var(--brand); }
.fsec { scroll-margin-top: 92px; margin-bottom: clamp(30px, 5vw, 52px); }
.fsec__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.fsec__count { margin-top: 2px; color: var(--muted); text-transform: uppercase; font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
.fsec .food__grid { padding-top: 16px; }

@media (max-width: 900px) {
  .food__layout { grid-template-columns: 1fr; gap: 0; }
  /* « Nos spécialités » : rangée horizontale en haut sur mobile/tablette */
  /* « Nos spécialités » collée sous le header pendant le défilement (comme les onglets de l'app). */
  .fcui-side { width: auto; min-width: 0; padding: 8px 0 0; max-height: none; display: block;
               position: sticky; top: var(--hdr-h); z-index: 24; background: var(--bg);
               box-shadow: 0 8px 10px -8px rgb(0 0 0 / .14); }
  .fcui__title { margin: 0 0 10px; }
  .fcui { flex: 0 1 auto; min-height: auto; flex-direction: row; flex-wrap: nowrap; gap: 10px; background: var(--bg);
          overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
          touch-action: pan-x; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 10px; }
  .fcui::-webkit-scrollbar { display: none; }
  .fcui__chip { flex: 0 0 auto; width: auto; justify-content: center; }
  /* la barre de recherche ne reste plus collée sur mobile (évite le chevauchement avec les spécialités) */
  .food__toolbar { position: static; top: auto; }
  .fnav { position: sticky; top: 56px; z-index: 30; flex-direction: row; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; background: var(--surface); border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fnav::-webkit-scrollbar { display: none; }
  .fnav__link { flex: 0 0 auto; white-space: nowrap; padding: 8px 15px; border: 1px solid var(--line); border-left-width: 1px; border-radius: 999px; font-size: .9rem; }
  .fnav__link.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
}

/* Carte restaurant */
.rcard { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
         box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.rcard.is-closed { opacity: .68; }
.rcard.is-closed:hover { opacity: 1; }

.rcard__cover { position: relative; height: 190px; flex-shrink: 0; background: var(--soft); }
.rcard__cover > img { width: 100%; height: 100%; object-fit: cover; }
/* Ouvert/Fermé = à DROITE de la photo ; horaires = à GAUCHE. */
.rcard__statusWrap { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rcard__status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.rcard__status .fa { font-size: .6rem; }
.rcard__status.is-open { background: #1f9d4d; }
.rcard__status.is-off { background: #d33b3b; }
.rcard__when { font-size: .84rem; font-weight: 700; color: #fff; align-self: flex-start; padding: 3px 9px; border-radius: 8px; background: rgba(0,0,0,.42); backdrop-filter: blur(2px); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.rcard__fav { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #c62828; cursor: pointer; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.18); transition: transform .15s; }
.rcard__fav:hover { transform: scale(1.08); }
.rcard__fav .fa-heart { display: none; }
.rcard__fav.is-on .fa-heart-o { display: none; }
.rcard__fav.is-on .fa-heart { display: block; }
/* Horaires du jour (ex. 10:30 – 17:00), en haut à gauche de la photo. */
.rcard__hoursTag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
                   max-width: calc(100% - 24px); padding: 5px 11px; border-radius: 999px; background: rgb(14 10 11 / .62);
                   color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; backdrop-filter: blur(4px); }
.rcard__hoursTag svg { width: 13px; height: 13px; flex-shrink: 0; color: #fff; }
/* Offre : en bas à droite (ne gêne plus Ouvert/Fermé en haut). */
.rcard__offer { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; }
/* Badge Halal (à la place de l'ancien logo de profil), en bas à gauche. */
.rcard__halal { position: absolute; left: 12px; bottom: 12px; height: 30px; width: auto; filter: drop-shadow(0 3px 8px rgb(0 0 0 / .35)); }
.rcard__halal img, .rcard__halal svg { height: 100%; width: auto; display: block; }

.rcard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.rcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rcard__name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
               overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard__rating { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px 9px; border-radius: 8px;
                 background: #edfaf0; color: #147a3a; font-weight: 700; font-size: .85rem; }
.rcard__rating .fa { font-size: .8rem; }
/* description / spécialité : une seule ligne, tronquée avec … */
.rcard__cuisine { font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* localisation : une seule ligne, tronquée avec … */
.rcard__loc { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); min-width: 0; }
.rcard__loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard__loc .fa { color: var(--brand); flex-shrink: 0; }
.rcard__price { font-size: .95rem; font-weight: 800; color: var(--ink); }
.rcard__meta { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; margin-top: 2px; font-size: .85rem; font-weight: 700; color: #4a4446; white-space: nowrap; }
.rcard__mItem { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.rcard__mItem .fa { color: #6b6168; }
.rcard__sep { width: 1px; height: 15px; background: #e0d9d8; flex-shrink: 0; }
/* Mobile / cartes étroites : on resserre pour que « 20 minutes | 2.8 km » tienne sur UNE ligne. */
@media (max-width: 640px) {
  /* MOBILE : 2 commerces/restaurants par ligne, cartes compactes. */
  .food__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
  .rcard { border-radius: 14px; min-width: 0; }
  .rcard__cover { height: 108px; }
  .rcard__statusWrap { left: 7px; top: 7px; gap: 3px; }
  .rcard__status { font-size: .6rem; padding: 3px 7px; gap: 4px; }
  .rcard__status .fa { font-size: .5rem; }
  .rcard__when { font-size: .6rem; padding: 2px 6px; }
  .rcard__fav { width: 28px; height: 28px; font-size: .78rem; right: 7px; top: 7px; }
  .rcard__halal { height: 20px; width: auto; }
  .rcard__body { padding: 9px 10px; gap: 3px; }
  .rcard__name { font-size: .82rem; }
  .rcard__rating { padding: 2px 6px; font-size: .72rem; }
  .rcard__rating .fa { font-size: .64rem; }
  .rcard__cuisine, .rcard__loc { font-size: .7rem; }
  .rcard__loc { gap: 4px; }
  .rcard__price { font-size: .72rem; }
  .rcard__meta { font-size: .68rem; gap: 6px; }
  .rcard__mItem { gap: 4px; }
  .rcard__sep { height: 11px; }
}
/* la ligne d'horaires est la dernière : elle marque le bas de la carte */
.rcard__hours { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted);
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Page d'un restaurant : menu + panier
   ========================================================================== */
.rst__hero { position: relative; }
.rst__cover { height: clamp(200px, 28vw, 340px); background: var(--soft) center / cover no-repeat; border-radius: 0 0 var(--r-xl) var(--r-xl); }
/* le titre est sous la couverture : seul le logo la chevauche */
.rst__heroIn { position: relative; display: flex; align-items: flex-start; gap: 24px; margin-top: 0; padding-top: 18px; padding-bottom: 24px; }
.rst__logo { flex-shrink: 0; width: 124px; height: 124px; margin-top: -70px; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md), 0 0 0 4px #fff, 0 0 0 5px var(--line); display: grid; place-items: center; }
.rst__logo img { width: 100%; height: 100%; object-fit: cover; }
.rst__heroTxt { flex: 1; min-width: 0; padding-top: 4px; }
.rst__name { margin-top: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rst__cuisine { color: var(--muted); margin-top: 4px; font-size: 1.02rem; }
.rst__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rst__badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: .92rem; font-weight: 500; color: var(--text); }
.rst__badge svg { width: 16px; height: 16px; fill: currentColor; color: var(--muted); }
.rst__status { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: #fff; }
.rst__status.is-open { background: #147a3a; }
.rst__status.is-off { background: var(--muted); }

/* Galerie + adresse */
.rst__gallery { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--brand); font-weight: 600; font-size: .88rem; }
.rst__gallery svg { width: 16px; height: 16px; }
.rst__gallery:hover { background: var(--brand-50, var(--brand-50)); }
.rst__loc { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--text); font-size: .95rem; }
.rst__loc svg { width: 16px; height: 16px; fill: var(--brand); flex-shrink: 0; }
.rst__info { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--muted); background: var(--soft); flex-shrink: 0; }
.rst__info:hover { color: var(--brand); background: var(--brand-50, var(--brand-50)); }
.rst__info svg { width: 15px; height: 15px; }

/* Modale infos */
.gmodal__box--info { width: min(440px, 100%); padding: 28px; }
.rinfo__title { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.rinfo__loc { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.rinfo__loc svg { width: 16px; height: 16px; fill: var(--brand); flex-shrink: 0; }
.rinfo__min { margin-top: 12px; display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand-50, var(--brand-50)); color: var(--brand); font-weight: 700; font-size: .88rem; }
.rinfo__sub { margin: 20px 0 10px; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.rinfo__hours { display: grid; gap: 8px; }
.rinfo__row { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rinfo__row:last-child { border-bottom: 0; }
.rinfo__row dt { font-weight: 600; color: var(--ink); }
.rinfo__row dd { text-align: right; color: var(--text); }

/* Stats (note/avis, préparation, prix moyen) */
.rst__stats { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 18px; }
.rst__stats .rst__status { align-self: center; margin-right: 14px; }
.rst__stat { display: flex; flex-direction: column; gap: 2px; padding: 0 20px; border-left: 1px solid var(--line); }
.rst__stat:first-of-type { border-left: 0; padding-left: 0; }
.rst__statTop { display: inline-flex; align-items: center; gap: 5px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.rst__statTop svg { width: 16px; height: 16px; fill: #f5a623; }
.rst__stat small { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }

/* Colonne droite : offre + filtre végé */
.rst__side { flex-shrink: 0; width: min(320px, 40%); display: grid; gap: 14px; align-content: start; padding-top: 4px; }
.rst__side[hidden], .rst__offer[hidden], .rst__veg[hidden], .rst__gallery[hidden] { display: none; }
.rst__offer { padding: 16px 18px; border-radius: var(--r-lg, 16px); background: var(--brand-50, var(--brand-50)); box-shadow: inset 0 0 0 1px var(--brand-200, var(--brand-200)); }
.rst__offerLbl { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--brand); margin-bottom: 6px; }
.rst__offer p { color: var(--ink); font-size: .92rem; line-height: 1.4; font-weight: 500; }
.rst__veg { display: flex; gap: 8px; }
/* VEG / Non Veg = interrupteurs (toggle) : libellé + dot de catégorie + switch on/off. */
.rst__vegBtn { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 12px; font-weight: 600; font-size: .88rem; color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); transition: .15s var(--ease); }
.rst__vegTxt { line-height: 1; }
.rst__sw { position: relative; flex-shrink: 0; width: 38px; height: 21px; border-radius: 999px; background: var(--line); transition: background .18s var(--ease); }
.rst__sw i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s var(--ease); }
.rst__vegBtn.is-active .rst__sw i { transform: translateX(17px); }
.rst__vegBtn[data-veg="veg"].is-active .rst__sw { background: #147a3a; }
.rst__vegBtn[data-veg="nonveg"].is-active .rst__sw { background: #b23b3b; }
.rst__vegDot { width: 12px; height: 12px; border-radius: 3px; display: grid; place-items: center; }
.rst__vegDot.is-veg { box-shadow: inset 0 0 0 1.5px #147a3a; }
.rst__vegDot.is-veg::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #147a3a; }
.rst__vegDot.is-non { box-shadow: inset 0 0 0 1.5px #b23b3b; }
.rst__vegDot.is-non::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #b23b3b; }

/* Barre de recherche */
.rst__toolbar { padding: 18px 0 6px; display: flex; justify-content: center; }
.rst__search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; margin: 0 auto; padding: 13px 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 4px 16px rgba(20,16,17,.06), 0 0 0 1px var(--line); color: var(--muted); }
.rst__search i { color: var(--muted); }
.rst__search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.rmenu__count { margin-left: 8px; font-size: .95rem; font-weight: 500; color: var(--muted); }

/* Galerie (modale) */
.gmodal { position: fixed; inset: 0; z-index: 75; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gmodal[hidden] { display: none !important; }
.gmodal__backdrop { position: absolute; inset: 0; background: rgb(15 15 20 / .6); }
.gmodal__box { position: relative; z-index: 1; width: min(900px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); padding: 24px; }
.gmodal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.gmodal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gmodal__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.rst__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding: clamp(24px, 3vw, 40px) 0 clamp(60px, 8vw, 100px); }
.rst__menuNav { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 2px; }
.rst__menuNav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-radius: 12px; font-weight: 500; font-size: 1rem; color: var(--text); transition: .2s var(--ease); }
.rst__menuNav a b { font-weight: 600; font-size: .8rem; color: var(--muted); }
.rst__menuNav a:hover { background: var(--soft); }
.rst__menuNav a.is-active { background: var(--brand); color: #fff; }
.rst__menuNav a.is-active b { color: rgb(255 255 255 / .8); }

.rmenu + .rmenu { margin-top: 48px; }
.rmenu__title { margin-bottom: 22px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); scroll-margin-top: calc(var(--hdr-h) + 16px); }
/* Mobile : titre de section (dont « Vous allez aimer ») plus compact. */
@media (max-width: 1024px) { .rmenu__title { font-size: 1.2rem; margin-bottom: 14px; } }

/* Ligne du titre de section + interrupteur « Veg seulement » (un seul, façon app mobile) */
.rmenu__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.rmenu__head .rmenu__title { margin-bottom: 0; }
.rst__vegOnly { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.rst__vegOnlyTxt { font-weight: 800; font-size: .92rem; letter-spacing: .04em; color: #17a34a; }
.rst__vegOnly.is-on .rst__sw { background: #17a34a; }
.rst__vegOnly.is-on .rst__sw i { transform: translateX(17px); }
@media (max-width: 1024px) { .rmenu__head { margin-bottom: 14px; } .rst__vegOnlyTxt { font-size: .85rem; } }
.rmenu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 22px; }
.dish { display: flex; gap: 18px; padding: 18px; border-radius: var(--r-lg, 18px); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-200); }
.dish__img { position: relative; flex-shrink: 0; width: 140px; height: 140px; border-radius: 16px; overflow: hidden; background: var(--soft); }
.dish__img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
/* Icône panier « pas d'image » (derrière l'image ; visible si absente ou erreur de chargement). */
.dish__ph { position: absolute; inset: 0; z-index: 0; margin: auto; width: 42%; height: 42%; color: var(--muted); opacity: .5; }
.dish__reco { position: absolute; left: 7px; top: 7px; padding: 3px 9px; border-radius: 7px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.dish__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish__top { display: flex; align-items: flex-start; gap: 8px; }
.dish__diet { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; border-radius: 3px; display: grid; place-items: center; }
.dish__diet::after { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.dish__diet.is-veg { box-shadow: inset 0 0 0 1.5px #147a3a; }
.dish__diet.is-veg::after { background: #147a3a; }
.dish__diet.is-non { box-shadow: inset 0 0 0 1.5px #b23b3b; }
.dish__diet.is-non::after { background: #b23b3b; }
.dish__name { font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.dish__desc { margin-top: 6px; font-size: .92rem; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.dish__price { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.dish__price s { margin-left: 6px; font-weight: 400; font-size: .85rem; color: var(--muted); }
.dish__add { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .92rem; cursor: pointer; transition: .2s var(--ease); }
.dish__add:hover { background: var(--brand); color: #fff; }

/* remonté au-dessus du widget de chat (bas-droite) */
.cart__fab { position: fixed; right: 24px; bottom: 96px; z-index: 55; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; box-shadow: var(--shadow-brand); }
@media (max-width: 560px) { .cart__fab { bottom: 88px; right: 16px; } }
.cart__fab span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--brand); font-size: .8rem; }
/* ---------------- Panier « Modifier le panier » (façon app) ---------------- */
.cart { position: fixed; right: 0; left: auto; top: 0; bottom: 0; z-index: 60;
  width: min(430px, 100%); max-width: 100vw;
  /* Ancrage top:0 -> bottom:0 (PAS de hauteur en dvh) : sous le zoom:0.8 desktop, 100dvh ne
     s'aligne qu'à un seul niveau de zoom navigateur et le pied « Valider » se décalait. En
     ancrant les deux bords au viewport réel, le panneau remplit l'écran à TOUT zoom. */
  display: flex; flex-direction: column; background: var(--bg); box-shadow: -10px 0 40px rgb(0 0 0 / .18); }

/* Bandeau du panier : bordeaux profond (comme l'app), coins bas arrondis -> la liste
   claire remonte dessous. Le bouton Valider et le « + » gardent le rouge vif de la marque. */
.cart__hero { flex-shrink: 0; background: #610f14; color: #fff; border-radius: 0 0 22px 22px; padding-bottom: 20px; }
.cart__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: calc(14px + env(safe-area-inset-top)) 12px 6px; }
.cart__back, .cart__trash { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  color: #fff; font-size: 1.25rem; background: transparent; transition: background .15s; }
.cart__back:hover, .cart__trash:hover { background: rgb(255 255 255 / .16); }
.cart__barTitle { text-align: center; font-size: 1.2rem; font-weight: 800; color: #fff; }
.cart__resto { display: flex; align-items: center; gap: 14px; padding: 6px 20px 0; }
.cart__resto .cart__logo { position: relative; width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; overflow: hidden;
  background: rgb(255 255 255 / .14); display: grid; place-items: center; }
.cart__resto .cart__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart__resto .cart__logo i { font-size: 1.4rem; color: rgb(255 255 255 / .8); }
.cart__rName { font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.cart__rMeta { margin-top: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: .9rem; color: rgb(255 255 255 / .9); }
.cart__rMeta .fa-star { color: #ffc93c; }
.cart__rMeta .cart__dot { opacity: .6; }

.cart__list { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.cart__foot { flex-shrink: 0; }
.cart__empty { color: var(--muted); text-align: center; padding: 48px 0; }

/* Carte article */
.citem { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: stretch;
  background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: 0 6px 18px rgb(20 16 17 / .06); }
.citem__img { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--soft);
  display: grid; place-items: center; }
.citem__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.citem__img i { font-size: 1.3rem; color: var(--muted); }
.citem__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.citem__top { display: flex; align-items: flex-start; gap: 10px; }
.citem__name { flex: 1; min-width: 0; font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.citem__x { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-size: 1rem; line-height: 1;
  transition: background .15s, color .15s; }
.citem__x:hover { background: var(--brand-50, #fdecec); color: var(--brand); box-shadow: inset 0 0 0 1.5px transparent; }
.citem__unit { font-size: .86rem; color: var(--muted); }
.citem__cust { color: var(--brand); font-weight: 700; cursor: pointer; background: none; }
.citem__cust:hover { text-decoration: underline; }
.citem__bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.citem__price { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.citem__qty { display: inline-flex; align-items: center; gap: 12px; }
.citem__qty button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1; background: var(--soft); color: var(--ink); transition: filter .15s; }
.citem__qty button.is-plus { background: var(--brand); color: #fff; }
.citem__qty button:hover { filter: brightness(.95); }
.citem__qty b { min-width: 16px; text-align: center; font-size: 1.05rem; font-weight: 700; }

.cart__foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--surface);
  border-radius: 22px 22px 0 0; box-shadow: 0 -8px 26px rgb(20 16 17 / .08); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 1.05rem; }
.cart__total span { font-weight: 700; color: var(--ink); }
.cart__total strong { font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.cart__go { width: 100%; height: 54px; font-size: 1.05rem; }

/* ---------------- Bottom-sheet « Personnaliser » ---------------- */
.custSheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.custSheet__scrim { position: absolute; inset: 0; background: rgb(15 15 20 / .5); animation: dmFade .2s var(--ease); }
.custSheet__box { position: relative; z-index: 1; width: min(520px, 100%); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgb(0 0 0 / .3);
  animation: sheetUp .26s var(--ease); }
.custSheet__head { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.custSheet__title { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.custSheet__x { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--soft); color: var(--muted); font-size: 1.3rem; line-height: 1; }
.custSheet__x:hover { background: var(--brand-50, #fdecec); color: var(--brand); }
.custSheet__body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 22px; }
.custSheet__empty { color: var(--muted); text-align: center; padding: 42px 0; font-size: 1rem; }
.custSheet__sect { margin-bottom: 18px; }
.custSheet__sect h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.custSheet__sect p { color: var(--ink); font-size: .98rem; line-height: 1.5; }
.custSheet__foot { flex-shrink: 0; display: flex; gap: 12px; padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.custSheet__save, .custSheet__cancel { flex: 1; height: 52px; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.custSheet__save { background: var(--brand); color: #fff; }
.custSheet__save:hover { filter: brightness(1.05); }
.custSheet__cancel { background: var(--soft); color: var(--ink); }
.custSheet__cancel:hover { filter: brightness(.96); }
.custSheet[hidden] { display: none !important; }
@keyframes sheetUp { from { transform: translateY(100%); } }

@media (max-width: 860px) {
  .rst__body { grid-template-columns: 1fr; }
  .rst__menuNav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  /* Hero : on empile (logo -> texte -> colonne latérale) au lieu du flex-row */
  .rst__heroIn { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 0; }
  .rst__heroTxt { padding-top: 0; }
  .rst__side { width: 100%; }
}

@media (max-width: 720px) {
  .rst__cover { height: clamp(150px, 40vw, 210px); border-radius: 0 0 20px 20px; }
  .rst__logo { width: 86px; height: 86px; margin-top: -50px; border-radius: 18px; }
  .rst__name { font-size: clamp(1.45rem, 6.4vw, 2rem); line-height: 1.15; word-break: normal; overflow-wrap: anywhere; }
  .rst__cuisine { font-size: .95rem; }
  /* Stats : pas de séparateur vertical quand ça passe à la ligne */
  .rst__stats { gap: 12px 18px; margin-top: 14px; }
  .rst__stats .rst__status { margin-right: 0; }
  .rst__stat { padding: 0; border-left: 0; }
  .rst__stat:first-of-type { padding-left: 0; }
}

/* ---------------- Détail d'un plat (modale) ---------------- */
.dish { cursor: pointer; }
.dmodal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dmodal__backdrop { position: absolute; inset: 0; background: rgb(15 15 20 / .55); backdrop-filter: blur(2px); animation: dmFade .2s var(--ease); }
.dmodal__box { position: relative; z-index: 1; width: min(920px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg, 0 30px 80px rgb(0 0 0 / .3)); animation: dmPop .22s var(--ease); }
.dmodal__close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); font-size: 2rem; line-height: 1; box-shadow: var(--shadow-sm); transition: .2s var(--ease); }
.dmodal__close:hover { background: var(--surface); transform: rotate(90deg); }
.dmodal__media { position: relative; height: clamp(320px, 46vw, 480px); background: var(--soft); }
.dmodal__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.dmodal__media .dish__ph { width: clamp(80px, 18vw, 120px); height: clamp(80px, 18vw, 120px); }
.dmodal__media .dish__reco { left: 18px; top: 18px; font-size: .95rem; padding: 6px 15px; border-radius: 9px; }
.dmodal__body { padding: 32px 38px 36px; }
.dmodal__top { display: flex; align-items: flex-start; gap: 14px; }
.dmodal__top .dish__diet { margin-top: 12px; width: 20px; height: 20px; }
.dmodal__name { font-size: 2.1rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.dmodal__desc { margin-top: 16px; font-size: 1.15rem; color: var(--text); line-height: 1.65; }
.dmodal__desc[hidden] { display: none; }
.dmodal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; }
.dmodal__price { font-size: 2rem; font-weight: 800; color: var(--ink); }
.dmodal__price s { margin-left: 10px; font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.dmodal__actions { display: flex; align-items: center; gap: 16px; }
.dmodal__qty { display: inline-flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--soft); }
.dmodal__qty button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow-sm); }
.dmodal__qty b { min-width: 34px; text-align: center; font-size: 1.2rem; font-weight: 700; }
.dmodal__add { height: 58px; padding: 0 34px; font-size: 1.1rem; }
@keyframes dmFade { from { opacity: 0; } }
@keyframes dmPop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Mobile : modale détail d'un plat nettement réduite (sinon titre/prix géants qui débordent
   et le pied « − 1 + / Ajouter » passe hors écran). */
@media (max-width: 600px) {
  .dmodal { padding: 12px; }
  .dmodal__box { max-height: calc(100dvh - 24px); }
  .dmodal__media { height: clamp(170px, 42vw, 240px); }
  .dmodal__close { width: 38px; height: 38px; font-size: 1.6rem; right: 12px; top: 12px; }
  .dmodal__body { padding: 18px 18px 20px; }
  .dmodal__top { gap: 10px; }
  .dmodal__top .dish__diet { margin-top: 7px; width: 16px; height: 16px; }
  .dmodal__name { font-size: 1.35rem; line-height: 1.22; }
  .dmodal__desc { margin-top: 10px; font-size: .95rem; line-height: 1.5; }
  .dmodal__foot { gap: 12px; margin-top: 18px; }
  .dmodal__price { font-size: 1.4rem; }
  .dmodal__price s { margin-left: 8px; font-size: .9rem; }
  .dmodal__actions { gap: 10px; }
  .dmodal__qty { gap: 4px; padding: 4px; }
  .dmodal__qty button { width: 38px; height: 38px; font-size: 1.35rem; }
  .dmodal__qty b { min-width: 26px; font-size: 1.05rem; }
  .dmodal__add { height: 48px; padding: 0 22px; font-size: 1rem; }
}

/* l'attribut hidden doit primer sur display:flex/inline-flex */
.cart[hidden], .cart__fab[hidden] { display: none !important; }
.dmodal[hidden] { display: none !important; }

/* ==========================================================================
   REFONTE PREMIUM — page restaurant (surcharge, placée en fin de fichier)
   ========================================================================== */

/* --- Couverture immersive : hauteur + dégradé + léger zoom --- */
.rst__hero { overflow: clip; }
.rst__cover { position: relative; height: clamp(240px, 34vw, 420px); background-size: cover; background-position: center;
  border-radius: 0 0 32px 32px; transform: scale(1.001); animation: rstCoverIn 1.2s var(--ease) both; }
.rst__cover::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,10,11,.22) 0%, rgba(15,10,11,0) 32%, rgba(15,10,11,.08) 70%, rgba(15,10,11,.34) 100%); }
@keyframes rstCoverIn { from { transform: scale(1.06); opacity: .6; } to { transform: scale(1); opacity: 1; } }

/* --- Logo rond flottant --- */
.rst__logo { width: 132px; height: 132px; margin-top: -76px; border-radius: 50%;
  box-shadow: 0 18px 40px rgba(20,16,17,.22), 0 0 0 5px #fff, 0 0 0 6px rgba(20,16,17,.06); }
.rst__name { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.025em; }
.rst__cuisine { font-weight: 500; }

/* --- Panneau de statistiques élégant --- */
.rst__stats { align-items: center; gap: 4px; margin-top: 20px; padding: 14px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #fff, var(--soft)); box-shadow: 0 8px 24px rgba(20,16,17,.06), 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
.rst__stat { padding: 2px 22px; }
.rst__statTop { font-size: 1.22rem; }
.rst__stat small { font-size: .72rem; letter-spacing: .04em; }

/* --- Pastille Ouvert/Fermé avec point --- */
.rst__status { gap: 8px; padding: 8px 18px; font-size: .92rem; box-shadow: 0 6px 16px rgba(20,122,58,.22); }
.rst__status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.rst__status.is-open::before { box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: rstPulse 1.8s ease-out infinite; }
.rst__status.is-off { box-shadow: none; }
@keyframes rstPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

/* --- Barre de recherche raffinée + collante --- */
.rst__toolbar { position: sticky; top: calc(var(--hdr-h) + 6px); z-index: 20; padding: 10px 0; background: linear-gradient(180deg, var(--bg, #fff) 70%, transparent); }
.rst__search { max-width: 560px; padding: 13px 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px rgba(20,16,17,.06), 0 0 0 1px var(--line); transition: box-shadow .2s var(--ease); }
.rst__search:focus-within { box-shadow: 0 6px 20px rgba(156,3,6,.12), 0 0 0 2px var(--brand); }
.rst__search i { color: var(--brand); }

/* --- Sommaire en pilules --- */
.rst__menuNav a { border-radius: 14px; font-weight: 600; padding: 12px 16px; }
.rst__menuNav a.is-active { box-shadow: 0 8px 20px rgba(156,3,6,.28); }
.rst__menuNav a:not(.is-active):hover { background: var(--brand-50, var(--brand-50)); color: var(--brand); }

/* --- Titres de section avec accent --- */
.rmenu__title { position: relative; padding-left: 16px; }
.rmenu__title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), #c53a3c); }

/* --- Cartes de plats premium --- */
.rmenu__grid { gap: 20px; }
.dish { padding: 16px; border-radius: 22px; box-shadow: 0 6px 20px rgba(20,16,17,.06), 0 0 0 1px var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.dish:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(20,16,17,.14), 0 0 0 1px var(--brand-200, var(--brand-200)); }
.dish__img { width: 150px; height: 150px; border-radius: 18px; }
.dish__img img { transition: transform .5s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.08); }
.dish__name { font-weight: 700; font-size: 1.1rem; }
.dish__price { font-size: 1.14rem; font-weight: 800; color: var(--brand); }
.dish__add { padding: 10px 18px 10px 14px; background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(156,3,6,.24); }
.dish__add i { transition: transform .2s var(--ease); }
.dish__add:hover { background: #86050a; }
.dish__add:hover i { transform: rotate(90deg); }

@media (max-width: 640px) {
  .rst__cover { height: clamp(170px, 44vw, 240px); border-radius: 0 0 24px 24px; }
  .rst__logo { width: 92px; height: 92px; margin-top: -54px; }
  .rst__stats { width: 100%; padding: 12px 14px; }
  .rst__stat { padding: 2px 14px; }
  .dish__img { width: 110px; height: 110px; }
  /* Une seule colonne : minmax(400px,…) force sinon 400px et DÉBORDE sous ~430px */
  .rmenu__grid { grid-template-columns: 1fr; }
  /* Le bouton « Ajouter » repasse sous le prix si la largeur manque (pas de débordement) */
  .dish__foot { flex-wrap: wrap; gap: 10px 12px; }
  /* Modale plat : évite le débordement du bouton « Ajouter » (qty + bouton sur toute la largeur) */
  .dmodal__body { padding: 22px 20px 24px; }
  .dmodal__foot { gap: 16px; margin-top: 22px; }
  .dmodal__actions { flex: 1 1 100%; gap: 12px; }
  .dmodal__qty { flex-shrink: 0; }
  .dmodal__qty button { width: 40px; height: 40px; }
  .dmodal__add { flex: 1 1 auto; min-width: 0; padding: 0 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ==========================================================================
   BANDEAU RESTAURANT « AFFICHE » (bordeaux + doré) — style de la maquette
   ========================================================================== */
:root { --rb-maroon1:#6b1016; --rb-maroon2:#490a0e; --rb-gold:#e2b65e; }
.rbanner { position: relative; overflow: hidden; color: #fff; border-radius: 0 0 30px 30px;
  background: radial-gradient(120% 130% at 15% 0%, var(--rb-maroon1), var(--rb-maroon2)); }
/* Badge statut (Ouvert vert / Fermé rouge) en haut à l'extrême droite */
.rbanner__badge { position: absolute; top: clamp(14px, 2vw, 22px); right: clamp(14px, 2vw, 26px); z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
  font-size: .84rem; font-weight: 800; letter-spacing: .02em; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.28); }
.rbanner__badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.rbanner__badge.is-open { background: #1f9d4d; }
.rbanner__badge.is-off { background: #c62828; }
.rbanner__badge[hidden] { display: none; }

/* Mise en page CÔTE À CÔTE : infos à gauche, visuel (couverture + plats) à droite */
.rbanner__grid { position: relative; z-index: 2; display: flex; align-items: center;
  min-height: clamp(270px, 32vw, 400px); padding: clamp(24px, 3vw, 40px) 0;
  padding-left: clamp(340px, 50vw, 700px); }
.rbanner__info { text-align: left; min-width: 0; display: flex; align-items: center; gap: clamp(24px, 3vw, 50px); }
.rbanner__infoText { flex: 1 1 auto; min-width: 0; }

/* Logo emblème retiré (on met en avant la couverture) */
.rbanner__logo { display: none !important; }

/* Ligne titre + bouton recherche (icône). Desktop : wrapper transparent (display:contents) et
   bouton masqué -> le titre reste EXACTEMENT comme avant. Le comportement « icône à droite qui
   déplie le champ » n'existe qu'en mobile (voir la media query ≤1024px). */
.rbanner__titleRow { display: contents; }
.rbanner__searchBtn { display: none; }

/* Nom en script manuscrit + halo doré souligné (aligné à gauche) */
.rbanner__name { font-family: 'Kaushan Script', cursive; font-weight: 400; color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: .5px; text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.rbanner__name::after { content: ''; display: block; width: clamp(120px, 16vw, 200px); height: 10px; margin: 8px 0 0;
  background: radial-gradient(closest-side, var(--rb-gold), transparent 78%); border-radius: 50%; }

/* Statut « Ouvert/Fermé » en ligne (à gauche de l'adresse) : visible SEULEMENT en mobile. */
/* Pastille « Ouvert / Fermé » à gauche de l'adresse — affichée PARTOUT (desktop + mobile) ;
   elle remplace la pastille en haut à droite de la bannière (masquée). */
.rbanner__ostat { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 13px;
  border-radius: 999px; font-size: .82rem; font-weight: 800; color: #fff; white-space: nowrap; }
.rbanner__ostat::before { content: ''; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.rbanner__ostat.is-open { background: #1f9d4d; }
.rbanner__ostat.is-off { background: #c62828; }
.rbanner__badge { display: none; }

/* Adresse (agrandie) */
.rbanner__loc { display: inline-flex; align-items: center; gap: 11px; margin-top: 18px; color: rgba(255,255,255,.95);
  font-size: clamp(1.05rem, 1.6vw, 1.38rem); font-weight: 500; }
.rbanner__loc > svg { width: 22px; height: 22px; fill: var(--rb-gold); flex-shrink: 0; }
.rbanner__loc .rst__info { color: #fff; background: rgba(255,255,255,.16); }
.rbanner__loc .rst__info:hover { background: rgba(255,255,255,.28); }

/* Cuisine avec tirets dorés (agrandie) */
.rbanner__cuisine { margin: 14px 0 0; display: flex; align-items: center; justify-content: flex-start; gap: 15px;
  color: rgba(255,255,255,.92); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.28rem); }
.rbanner__cuisine::before, .rbanner__cuisine::after { content: ''; width: 38px; height: 2px; flex-shrink: 0; }
.rbanner__cuisine::before { background: linear-gradient(90deg, transparent, var(--rb-gold)); }
.rbanner__cuisine::after { background: linear-gradient(90deg, var(--rb-gold), transparent); }
.rbanner__cuisine:empty { display: none; }

/* Actions (Voir le menu + galerie) */
.rbanner__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }

/* Couverture : plein hauteur du hero, collée au bord GAUCHE (bord à bord) */
.rbanner__media { position: absolute; top: 0; left: 0; bottom: 0; width: clamp(340px, 48vw, 700px); z-index: 1; }
.rbanner__cover { position: absolute; inset: 0; overflow: hidden;
  background-size: cover; background-position: center; background-color: rgba(255,255,255,.06); }
/* Fondu du bord droit (et bas) dans le bordeaux pour intégrer la photo */
.rbanner__scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 52%, rgba(73,10,14,.55) 88%, var(--rb-maroon2) 100%),
  linear-gradient(180deg, transparent 72%, rgba(73,10,14,.35)); }
/* VEG / Non Veg : même ligne, centrés dans la zone à DROITE de la couverture
   (du bord droit de la couverture jusqu'au bord droit de la bannière) */
.rbanner__veg { position: absolute; left: clamp(340px, 48vw, 700px); right: 0; bottom: 16px; z-index: 3;
  display: flex; justify-content: center; gap: 12px; }
.rbanner__veg .rst__vegBtn { padding: 8px 14px; font-weight: 700; font-size: .88rem; color: #fff;
  background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.rbanner__veg .rst__vegBtn:hover { background: rgba(255,255,255,.18); }
/* switch sur fond maroon : blanc translucide (off) -> vert/rouge (on) */
.rbanner__veg .rst__sw { background: rgba(255,255,255,.28); }
.rbanner__veg .rst__vegBtn[data-veg="veg"].is-active .rst__sw { background: #2fbf6a; }
.rbanner__veg .rst__vegBtn[data-veg="nonveg"].is-active .rst__sw { background: #ff6b6b; }
.rbanner__veg .rst__vegDot.is-veg { box-shadow: inset 0 0 0 1.6px #2fbf6a; }
.rbanner__veg .rst__vegDot.is-veg::after { background: #2fbf6a; }
.rbanner__veg .rst__vegDot.is-non { box-shadow: inset 0 0 0 1.6px #ff6b6b; }
.rbanner__veg .rst__vegDot.is-non::after { background: #ff6b6b; }

/* Pastilles dorées empilées VERTICALEMENT, à droite du texte (parallèle) */
.rbanner__pills { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.rbanner__pills .rpill { width: 100%; min-width: 220px; }
.rpill { display: inline-flex; align-items: center; gap: 13px; padding: 10px 24px; border-radius: 999px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1.6px var(--rb-gold); }
.rpill__ic { display: grid; place-items: center; color: var(--rb-gold); }
.rpill__ic svg { width: 25px; height: 25px; }
.rpill__ic svg:not([stroke]) { fill: var(--rb-gold); }
.rpill__txt { display: flex; flex-direction: column; text-align: left; line-height: 1.08; }
.rpill__txt b { font-size: 1.08rem; font-weight: 800; color: #fff; }
.rpill__txt small { font-size: .62rem; font-weight: 700; letter-spacing: .09em; color: var(--rb-gold); }

/* Statut ouvert/fermé */
.rbanner__status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: #fff; }
.rbanner__status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); }
.rbanner__status.is-open { background: #1f9e4d; box-shadow: 0 6px 16px rgba(31,158,77,.3); }
.rbanner__status.is-open::before { animation: rbPulse 1.8s ease-out infinite; }
.rbanner__status.is-off { background: rgba(255,255,255,.16); }
@keyframes rbPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }

/* Galerie + extras (offre / végé) sur fond bordeaux */
.rbanner__gallery { margin: 0; background: rgba(255,255,255,.14); color: #fff; }
.rbanner__gallery:hover { background: rgba(255,255,255,.24); }
.rbanner__gallery svg { fill: #fff; }
.rbanner__extra { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 16px; }
.rbanner__extra:empty { display: none; }
.rbanner__extra .rst__offer { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--rb-gold); color: #fff; }
.rbanner__extra .rst__offer p { color: #fff; }
.rbanner__extra .rst__offerLbl { color: var(--rb-gold); }

/* --- MOBILE + TABLETTE (≤1024px) : hero façon app, COMPACT (hauteur minimale).
   Tout est en flux (pas de position absolue). Desktop (>1024px) inchangé. */
@media (max-width: 1024px) {
  /* La couverture remplit tout le bandeau, la carte est ANCRÉE EN BAS (collée au
     ras de la couverture, aucun espace sous elle) */
  /* Hero EMPILÉ façon app : couverture (bloc) EN HAUT, infos sur fond bordeaux PLEIN EN DESSOUS. */
  .rbanner { border-radius: 0 0 24px 24px; overflow: hidden; position: relative; display: block; min-height: 0;
    background: radial-gradient(120% 130% at 15% 0%, var(--rb-maroon1), var(--rb-maroon2)); }
  /* Couverture : BLOC plein largeur en haut, hauteur fixe (plus de photo en fond plein écran) */
  .rbanner__media { position: relative; inset: auto; width: 100%; height: clamp(175px, 46vw, 250px); z-index: 1; }
  .rbanner__cover { background-size: cover; background-position: center; border-radius: 0; }
  .rbanner__scrim { background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, transparent 42%, rgba(0,0,0,.14) 100%); }
  /* Infos : fond bordeaux PLEIN (celui du .rbanner), EN DESSOUS de la couverture (pas en superposition) */
  .rbanner__grid { position: relative; z-index: 2; display: block; min-height: 0;
    width: auto; max-width: none; margin: 0; padding: 16px 16px 14px;
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 0; text-align: left; color: #fff; }
  .rbanner__info { flex-direction: column; align-items: stretch; gap: 4px; text-align: left; }
  .rbanner__infoText { width: 100%; }
  /* Pas de logo/photo de profil au milieu sur mobile */
  .rbanner__logo { display: none !important; }
  /* Nom : gras blanc compact */
  .rbanner__name { font-family: var(--font, 'Poppins', sans-serif); font-weight: 800; color: #fff;
    font-size: clamp(1.3rem, 5.4vw, 1.65rem); line-height: 1.12; letter-spacing: 0; text-shadow: none; text-align: left; }
  .rbanner__name::after { display: none; }
  /* Recherche INLINE : icône ronde à droite du titre ; au clic le champ se déplie JUSTE À CÔTÉ
     (même ligne), et le titre se masque le temps de la recherche. */
  .rbanner__titleRow { display: flex; align-items: center; gap: 10px; }
  .rbanner__titleRow .rbanner__name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rbanner__searchBtn { display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px;
    border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.05rem; cursor: pointer; }
  .rbanner__searchBtn:hover { background: rgba(255,255,255,.24); }
  /* La recherche (remontée dans la ligne du titre en JS) : repliée par défaut, dépliée à côté de l'icône. */
  .rbanner__titleRow .rst__search { flex: 0 0 0; width: 0; min-width: 0; max-width: 100%; margin: 0; padding: 0;
    overflow: hidden; opacity: 0; pointer-events: none; box-shadow: none;
    background: rgba(255,255,255,.14); color: #fff; border-radius: 999px;
    transition: flex-basis .25s var(--ease), width .25s var(--ease), padding .25s var(--ease), opacity .2s; }
  .rbanner__titleRow.is-search-open .rst__search { flex: 1 1 auto; width: auto; padding: 9px 15px; opacity: 1; pointer-events: auto; }
  .rbanner__titleRow.is-search-open .rbanner__name { display: none; }
  .rbanner__titleRow .rst__search i { color: rgba(255,255,255,.8); }
  .rbanner__titleRow .rst__search input { color: #fff; }
  .rbanner__titleRow .rst__search input::placeholder { color: rgba(255,255,255,.7); }
  /* En mobile la barre du bas est vide (recherche remontée) -> masquée. */
  .rst__toolbar { display: none; }
  /* Adresse + cuisine clairs sur fond bordeaux. UNE SEULE LIGNE : la pastille Ouvert/Fermé,
     le pin et le bouton info ne rétrécissent pas ; l'adresse prend la place restante et se
     tronque en « … » si elle dépasse (au lieu de passer à la ligne). */
  .rbanner__loc { margin-top: 7px; color: rgba(255,255,255,.95); font-size: .9rem; gap: 7px;
    display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; }
  /* :not(.rbanner__ostat) : la troncature ne s'applique QU'à l'adresse, pas à la pastille Ouvert/Fermé. */
  .rbanner__loc > span:not(.rbanner__ostat) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rbanner__loc > svg, .rbanner__loc .rst__info { flex-shrink: 0; }
  /* Pastille « Ouvert/Fermé » À GAUCHE de l'adresse. La pastille de la couverture est masquée
     (elle est remplacée par celle-ci, comme sur l'app). */
  .rbanner__ostat { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 4px 11px;
    border-radius: 999px; font-size: .74rem; font-weight: 800; color: #fff; }
  .rbanner__ostat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
  .rbanner__ostat.is-open { background: #1f9d4d; }
  .rbanner__ostat.is-off { background: #c62828; }
  .rbanner__badge { display: none; }
  .rbanner__loc > svg { width: 16px; height: 16px; fill: var(--rb-gold); }
  .rbanner__loc span { color: rgba(255,255,255,.95); }
  .rbanner__loc .rst__info { color: #fff; background: rgba(255,255,255,.16); }
  .rbanner__cuisine { margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: .84rem; justify-content: flex-start; gap: 0; }
  .rbanner__cuisine::before, .rbanner__cuisine::after { display: none; }
  .rbanner__extra { margin-top: 8px; justify-content: flex-start; }
  .rbanner__extra .rst__offer { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--rb-gold); color: #fff; }
  .rbanner__extra .rst__offer p { color: #fff; }
  .rbanner__extra .rst__offerLbl { color: var(--rb-gold); }
  /* Stats : 3 colonnes (note / préparation / prix moyen) façon app, fond bordeaux gardé,
     séparateurs fins. Le texte s'affiche EN ENTIER (jamais coupé en « … ») : la police se
     réduit (clamp) et le mot peut passer sur 2 lignes si ça déborde. */
  .rbanner__pills { flex-direction: row; align-items: stretch; gap: 0; margin-top: 12px;
    background: rgba(255,255,255,.07); border-radius: 14px; padding: 4px 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
  .rbanner__pills .rpill { flex: 1 1 0; min-width: 0; width: auto; padding: 7px 8px; gap: 7px;
    background: transparent; box-shadow: none; border-radius: 0; align-items: center; }
  .rbanner__pills .rpill + .rpill { box-shadow: inset 1.5px 0 0 rgba(255,255,255,.16); }
  .rbanner__pills .rpill__ic { color: var(--rb-gold); flex-shrink: 0; }
  .rbanner__pills .rpill__ic svg:not([stroke]) { fill: var(--rb-gold); }
  .rbanner__pills .rpill__ic svg[stroke] { stroke: var(--rb-gold); }
  .rbanner__pills .rpill__ic svg { width: 17px; height: 17px; }
  .rbanner__pills .rpill__txt { min-width: 0; overflow: visible; }
  .rbanner__pills .rpill__txt b { color: #fff; font-weight: 800; font-size: clamp(.72rem, 2.9vw, .95rem);
    white-space: normal; word-break: break-word; overflow: visible; text-overflow: clip; line-height: 1.12; }
  .rbanner__pills .rpill__txt small { color: rgba(255,255,255,.62); font-weight: 700; letter-spacing: .02em;
    font-size: clamp(.5rem, 1.9vw, .62rem); white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
  .rbanner__badge { top: 12px; right: 12px; }
  /* VEG / Non Veg : rattaché AU BAS de la carte (même bordeaux, collé, sans espace) */
  .rbanner__veg { position: static; left: auto; right: auto; z-index: 2; margin: 0;
    padding: 2px 16px 16px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-radius: 0; justify-content: center; gap: 10px; }
  .rbanner__veg .rst__vegBtn { padding: 8px 16px; font-size: .85rem; }
  /* carte à bas carré quand les boutons veg sont là, pour se raccorder à eux */
  .rbanner:has(.rbanner__veg:not([hidden])) .rbanner__grid { border-radius: 0; }
}
@media (max-width: 640px) {
  .rpill { padding: 9px 16px; gap: 10px; }
  .rbanner__cuisine::before, .rbanner__cuisine::after { width: 20px; }
}

/* CTA « Voir le menu » (bouton doré) */
.rbanner__scroll { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border: 0; cursor: pointer;
  border-radius: 999px; background: linear-gradient(180deg, #f0c877, var(--rb-gold)); color: var(--rb-maroon2);
  font-weight: 800; font-size: .98rem; letter-spacing: .01em; box-shadow: 0 10px 22px rgba(226,182,94,.32); transition: .2s var(--ease); }
.rbanner__scroll:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(226,182,94,.42); }
.rbanner__scroll i { animation: rbBounce 1.7s ease-in-out infinite; }
@keyframes rbBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .rbanner__scroll i { animation: none; } }

/* --- Écran « OUT OF SERVICE » (catégorie non desservie dans la zone) --------- */
.food__oos { max-width: 460px; margin: clamp(32px, 8vw, 80px) auto; text-align: center; padding: 0 20px; }
.food__oos svg { width: 80px; height: 80px; color: var(--brand, var(--brand)); opacity: .85; }
.food__oos h2 { margin: 18px 0 8px; font-size: 1.5rem; font-weight: 800; color: var(--brand, var(--brand)); letter-spacing: .01em; }
.food__oos p { margin: 0 0 24px; color: var(--muted, var(--muted)); font-size: 1.02rem; }
.food__oos .btn { display: inline-flex; align-items: center; height: 50px; padding: 0 30px; border-radius: 999px; font-weight: 700; }

/* Magasin sans produit : l'icône de la catégorie remplit la couverture (au lieu d'une image rognée) */
.rbanner__cover--icon { background-size: contain !important; background-repeat: no-repeat !important;
  background-position: center !important; background-color: var(--surface); }
.rbanner__cover--icon ~ .rbanner__scrim, .rbanner__cover--icon .rbanner__scrim { display: none; }

/* ==========================================================================
   « VOUS ALLEZ AIMER » en conteneur dédié (#rstReco, AVANT les onglets) :
   - Desktop (>1024px) : occupe le haut de la colonne des plats (comme avant),
     la nav latérale court sur les deux lignes -> mise en page inchangée.
   - Mobile + tablette (≤1024px) : voir le bloc média plus bas.
   ========================================================================== */
.rst__reco { grid-column: 2; grid-row: 1; min-width: 0; margin-bottom: 16px; }
.rst__menuNav { grid-column: 1; grid-row: 1 / span 2; }
.rst__menus { grid-column: 2; grid-row: 2; min-width: 0; }

@media (max-width: 1024px) {
  /* Corps en une colonne : carrousel « Vous allez aimer » -> onglets -> plats */
  .rst__body { grid-template-columns: 1fr; }
  .rst__reco, .rst__menuNav, .rst__menus { grid-column: 1; grid-row: auto; }
  .rst__reco { margin-bottom: 0; }

  /* Onglets de menu horizontaux (défilement tactile, plein bord à bord),
     SANS l'onglet « VOUS ALLEZ AIMER » (le carrousel ci-dessus le remplace). */
  .rst__menuNav { position: static; display: flex; gap: 8px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; }
  .rst__menuNav::-webkit-scrollbar { display: none; }
  .rst__menuNav a { flex: 0 0 auto; white-space: nowrap; padding: 9px 16px;
    border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .92rem;
    box-shadow: inset 0 0 0 1.5px var(--line); }
  .rst__menuNav a b { color: var(--muted); }
  .rst__menuNav a.is-active { background: var(--brand); color: #fff;
    box-shadow: 0 8px 18px rgba(156,3,6,.28); }
  .rst__menuNav a.is-active b { color: rgb(255 255 255 / .8); }
  .rst__menuNav a.is-rec { display: none; }

  /* « VOUS ALLEZ AIMER » : carrousel horizontal à fond perdu — la carte suivante
     déborde à droite : on voit qu'on peut faire glisser (snap au repos). */
  .rst__reco .rmenu__grid { display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; }
  .rst__reco .rmenu__grid::-webkit-scrollbar { display: none; }
  .rst__reco .dish { flex: 0 0 min(74vw, 300px); scroll-snap-align: start; }

  /* Grille des plats : cartes GRANDES — 1 par ligne sur téléphone, 2 sur tablette */
  .rmenu__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

  /* Carte plat VERTICALE (comme la maquette) : photo pleine largeur en haut,
     puis nom + description, puis prix + bouton « Ajouter » en bas. */
  .dish { flex-direction: column; gap: 12px; }
  .dish__img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .dish__body { width: 100%; }
  .dish__foot { flex-wrap: nowrap; padding-top: 12px; }
}
