/* ══════════════════════════════════════════════════════════════════════
   Restaurants : l'aperçu du Club Privilège Plus

   La carte reprend l'anatomie demandée : visuel, cœur en haut à droite,
   puis nom et note sur la même ligne, ville, cuisine et budget, et la
   pastille de remise. Le reste est à la charte CE Premium.

   Deux écarts assumés, parce que la matière ne les porte pas :
   - pas de nombre d'avis sous la note, il n'est pas dans le fichier ;
   - pas de photo. En attendant les visuels, chaque fiche porte un aplat
     dégradé tiré de sa cuisine, avec le nom de la cuisine en clair. Un
     cadre vide se lirait comme une image qui n'a pas chargé ; un aplat
     tenu se lit comme un parti pris.

   Le vert des notes est la seule couleur hors charte : c'est une couleur
   de donnée, elle dit « bien noté » sans qu'on ait à lire le chiffre, et
   le rose de la charte dirait l'inverse.
   ══════════════════════════════════════════════════════════════════════ */

:root{
  --navy:        #071a3d;
  --navy-soft:   #0b2a5b;
  --rose:        #ff0b4f;
  --rose-pale:   #fff1f5;
  --gold:        #d89c24;
  --grey:        #536078;
  --muted:       #98a1b4;
  --line:        #eceff2;
  --line-3:      #e3e7ef;
  --paper:       #f6f7fa;
  --vert:        #0c7c59;
  --vert-pale:   #e6f4ee;
  --font:        "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-alt:    "Inter", "Segoe UI", system-ui, sans-serif;

  --page:        1280px;
  --rail:        220px;
  --gouttiere:   20px;
}

*, *::before, *::after{ box-sizing:border-box; }

body{
  margin:0; background:#fff; color:var(--navy);
  font-family:var(--font); font-size:16px; line-height:1.45;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ display:block; max-width:100%; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
a{ color:inherit; }

.sprite{ position:absolute; width:0; height:0; overflow:hidden; }
.ico{ width:20px; height:20px; flex:none;
      fill:none; stroke:currentColor; stroke-width:1.7;
      stroke-linecap:round; stroke-linejoin:round; }

/* ───────────────────────────── En-tête ───────────────────────────── */
.tete{ position:sticky; top:0; z-index:40; background:#fff; border-bottom:1px solid var(--line); }
.tete__haut{
  max-width:var(--page); margin:0 auto; padding:0 24px; height:84px;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:34px;
}
.tete__logo img{ height:42px; width:auto; object-fit:contain; }

.chercher{
  position:relative; height:46px;
  display:flex; align-items:center; gap:10px; padding:0 18px;
  border:1px solid var(--line-3); border-radius:23px; background:#fff;
  transition:border-color .16s, box-shadow .16s;
}
.chercher:focus-within{ border-color:var(--navy); box-shadow:0 0 0 3px rgba(7,26,60,.06); }
.chercher__ico{ width:18px; height:18px; color:var(--muted); stroke-width:2; }
.chercher input{
  flex:1; min-width:0; border:0; outline:0; background:none;
  font-family:var(--font); font-size:14px; color:var(--navy);
}
.chercher input::placeholder{ color:var(--muted); }
.chercher input::-webkit-search-cancel-button{ display:none; }
.chercher__x{ width:20px; height:20px; display:grid; place-items:center; color:var(--muted); }
.chercher__x:hover{ color:var(--navy); }
.chercher__x .ico{ width:13px; height:13px; stroke-width:2.2; }

.tete__outils{ display:flex; align-items:center; gap:6px; }
.outil{
  position:relative; width:40px; height:40px; display:grid; place-items:center;
  border-radius:50%; color:var(--navy);
}
.outil:hover{ background:var(--paper); }
.outil .ico{ width:21px; height:21px; stroke-width:1.6; }
.outil__n{
  position:absolute; top:3px; right:3px; min-width:16px; height:16px; padding:0 4px;
  border-radius:8px; background:var(--rose); color:#fff;
  font-size:10px; font-weight:800; line-height:16px; text-align:center;
}

/* ───────────────────────────── La page ───────────────────────────── */
.page{ max-width:var(--page); margin:0 auto; padding:34px 24px 80px; }
.page::after{ content:""; display:block; clear:both; }

.titre{
  margin:0 0 30px; font-size:32px; line-height:1.14;
  font-weight:800; letter-spacing:-.022em; color:var(--navy);
}

/* ──────────────────────── Rail des villes ──────────────────────── */
.rail{ float:left; width:var(--rail); margin:0 40px 32px 0; }
.rail__t{
  margin:0 0 4px; padding-bottom:12px; border-bottom:1px solid var(--line-3);
  font-size:12px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:var(--navy);
}
.rail__l{ margin:0; padding:0; list-style:none; }
.rail__b{
  width:100%; display:flex; align-items:baseline; gap:8px;
  padding:10px 0; border-bottom:1px solid var(--line);
  text-align:left; font-size:14px; font-weight:500; color:var(--navy);
}
.rail__b:hover{ color:var(--rose); }
.rail__b.is-on{ color:var(--rose); font-weight:800; }
.rail__nom{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rail__n{ font-family:var(--font-alt); font-size:12px; color:var(--muted); font-weight:400; }
.rail__b.is-on .rail__n{ color:var(--rose); }
.rail__plus{
  margin-top:14px; text-decoration:underline; text-underline-offset:3px;
  font-size:13px; font-weight:600; color:var(--grey);
}
.rail__plus:hover{ color:var(--rose); }

/* ─────────────────────────── Les pastilles ─────────────────────── */
.boutique{ overflow:hidden; }
.chips{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.chip-wrap{ position:relative; }
.chip-wrap--tri{ margin-left:auto; }

.chip{
  height:40px; padding:0 18px; border-radius:44px;
  border:1px solid var(--line-3); background:#fff;
  display:inline-flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:600; color:var(--navy); white-space:nowrap;
  transition:border-color .16s, background .16s;
}
.chip:hover{ border-color:var(--navy); }
.chip[aria-expanded="true"]{ border-color:var(--navy); background:var(--paper); }
.chip.a-filtre{ border-color:var(--rose); color:var(--rose); background:var(--rose-pale); }
.chip--tri b{ font-weight:800; }
.chip__v{ width:15px; height:15px; stroke-width:2.2; transition:transform .2s; }
.chip[aria-expanded="true"] .chip__v{ transform:rotate(180deg); }
.chip__badge{
  min-width:18px; height:18px; padding:0 5px; border-radius:9px;
  background:var(--rose); color:#fff; font-size:10.5px; font-weight:800;
  line-height:18px; text-align:center;
}

.menu{
  position:absolute; left:0; top:calc(100% + 8px); z-index:30;
  min-width:250px; background:#fff;
  border:1px solid var(--line-3); border-radius:14px;
  box-shadow:0 2px 10px rgba(7,26,60,.05), 0 14px 40px rgba(7,26,60,.13);
  overflow:hidden;
}
.menu[hidden]{ display:none; }
.menu--large{ width:520px; }
.menu--droite{ left:auto; right:0; min-width:240px; }
.menu__corps{ max-height:340px; overflow:auto; padding:10px; }
.menu--large .menu__corps{ display:grid; grid-template-columns:1fr 1fr; gap:0 10px; align-content:start; }
.menu__pied{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 14px; border-top:1px solid var(--line); background:var(--paper);
}
.menu__raz{ font-size:12.5px; font-weight:600; color:var(--grey); text-decoration:underline; text-underline-offset:3px; }
.menu__raz:hover{ color:var(--rose); }
.menu__ok{ height:32px; padding:0 16px; border-radius:16px; background:var(--rose); color:#fff; font-size:12.5px; font-weight:700; }
.menu__ok:hover{ background:#e00945; }

.opt{
  width:100%; display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:9px; text-align:left;
  font-size:13.5px; font-weight:500; color:var(--navy);
}
.opt:hover{ background:var(--paper); }
.opt__case{
  width:17px; height:17px; flex:none; border-radius:4px;
  border:1.5px solid var(--line-3); display:grid; place-items:center; color:#fff;
}
.opt__case .ico{ width:12px; height:12px; stroke-width:3; opacity:0; }
.opt.is-on .opt__case{ background:var(--rose); border-color:var(--rose); }
.opt.is-on .opt__case .ico{ opacity:1; }
.opt.is-on{ font-weight:700; }
.opt__nom{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.opt__n{ font-family:var(--font-alt); font-size:12px; color:var(--muted); font-weight:400; }
.opt[disabled]{ opacity:.38; cursor:default; }
.opt[disabled]:hover{ background:none; }
.opt--radio .opt__case{ border-radius:50%; }

.actifs{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:16px 0 0; }
.actifs[hidden]{ display:none; }
.actif{
  display:inline-flex; align-items:center; gap:7px;
  height:30px; padding:0 8px 0 12px; border-radius:15px;
  background:var(--rose-pale); color:var(--rose); font-size:12.5px; font-weight:700;
}
.actif .ico{ width:13px; height:13px; stroke-width:2.4; opacity:.75; }
.actifs__raz{ font-size:12.5px; font-weight:600; color:var(--grey); text-decoration:underline; text-underline-offset:3px; }
.actifs__raz:hover{ color:var(--rose); }

/* ───────────────────────────── La grille ───────────────────────── */
.grille{
  margin:22px 0 0; padding:0; list-style:none;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:var(--gouttiere);
}

.fiche{
  position:relative; background:#fff;
  border:1px solid var(--line-3); border-radius:12px; overflow:hidden;
  display:flex; flex-direction:column;
  transition:box-shadow .2s, border-color .2s;
}
.fiche:hover{ border-color:var(--line); box-shadow:0 2px 10px rgba(7,26,60,.06), 0 12px 28px rgba(7,26,60,.08); }

.fiche__vue{
  position:relative; aspect-ratio:16 / 11; overflow:hidden;
  display:grid; place-items:center;
}
.fiche__cuisine{
  font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.92); text-align:center; padding:0 14px;
  text-shadow:0 1px 10px rgba(7,26,60,.25);
}
.fiche__couvert{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:78px; height:78px; color:#fff; opacity:.14; stroke-width:1.2;
}

.fiche__coeur{
  position:absolute; right:10px; top:10px; width:32px; height:32px;
  display:grid; place-items:center; border-radius:50%;
  background:rgba(7,26,60,.42); color:#fff;
  transition:background .18s;
}
.fiche__coeur:hover{ background:rgba(7,26,60,.62); }
.fiche__coeur .ico{ width:18px; height:18px; stroke-width:1.8; }
.fiche__coeur.is-on{ background:#fff; color:var(--rose); }
.fiche__coeur.is-on .ico{ fill:var(--rose); }

.fiche__txt{ padding:13px 13px 15px; display:flex; flex-direction:column; flex:1; }
.fiche__haut{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.fiche__nom{
  margin:0; font-size:16px; font-weight:800; letter-spacing:-.015em; color:var(--navy);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fiche__note{ margin:0; flex:none; font-size:16px; font-weight:800; color:var(--vert); }
.fiche__note--vide{ color:var(--muted); font-size:12px; font-weight:600; }

.fiche__lieu{
  margin:5px 0 0; font-size:13.5px; font-weight:500; color:var(--grey);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fiche__det{
  margin:4px 0 0; font-size:13.5px; font-weight:500; color:var(--grey);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.fiche__remise{
  align-self:flex-start; margin-top:12px; padding:5px 10px; border-radius:6px;
  background:var(--vert-pale); color:var(--vert);
  font-size:12px; font-weight:700; white-space:nowrap;
}

/* ──────────────────── Vide, sentinelle ──────────────────── */
.vide{ clear:both; padding:48px 0; text-align:center; font-size:15px; font-weight:500; color:var(--grey); }
.vide[hidden]{ display:none; }
.vide__raz{
  display:block; margin:14px auto 0; height:38px; padding:0 20px; border-radius:19px;
  background:var(--rose); color:#fff; font-size:13px; font-weight:700;
}
.sentinelle{ clear:both; height:4px; }

/* ─────────────────────── Écrans plus étroits ─────────────────────── */
@media (max-width:1180px){
  .grille{ grid-template-columns:repeat(3, 1fr); }
  .rail{ width:200px; margin-right:32px; }
}
@media (max-width:900px){
  .rail{ float:none; width:auto; margin:0 0 28px; }
  .tete__haut{ gap:18px; height:72px; }
}
@media (max-width:640px){
  .grille{ grid-template-columns:repeat(2, 1fr); }
  .titre{ font-size:26px; }
  .chip-wrap--tri{ margin-left:0; }
}
@media (prefers-reduced-motion:reduce){
  .fiche, .chip__v{ transition:none; }
}
