/*
 * Annuaire public WiicMenu — charte du site vitrine (brief docs/brief-php-charte-fichiers/, non versionné).
 *
 * Couleurs relevées sur les captures du site (2026-11-25) : fond crème, cartes
 * blanches très arrondies, menthe pour les appels, encre presque noire, ombre
 * « dure » (décalée, sans flou) pour ce qui est mis en avant, bleu clair en
 * accent. Police Outfit, auto-hébergée.
 */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/app/fonts/outfit/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/app/fonts/outfit/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --creme: #FAEEE0;
  --creme-fonce: #F2E2CF;
  --blanc: #FFFFFF;
  --menthe: #94D8A7;
  --menthe-pale: #DCF1E2;
  --encre: #1A1A1A;
  --texte-doux: #5D625B;      /* 5,6:1 sur crème */
  --vert: #246C38;            /* étiquettes : 5,4:1 sur crème */
  --bleu: #8AC6DE;
  --bleu-pale: #E4F2F8;
  --bordure: #DAD3C8;
  --ombre-dure: 6px 6px 0 var(--encre);
  --ombre-douce: 0 10px 30px rgba(26, 26, 26, .08);
  --rayon-carte: 24px;
  --rayon-pilule: 999px;
  --police: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --entete-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

/* `[hidden]` ne pèse rien face à un `display` d'auteur (piège déjà payé sur la
   roue et l'impression) : on le rend prioritaire dans cette page. */
[hidden] { display: none !important; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.lien-evitement {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--encre); color: var(--blanc); padding: 10px 16px;
  border-radius: var(--rayon-pilule); text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1.5px solid transparent; border-radius: var(--rayon-pilule);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bouton--menthe { background: var(--menthe); color: var(--encre); }
.bouton--menthe:hover { box-shadow: 4px 4px 0 var(--encre); transform: translate(-2px, -2px); }
.bouton--contour { background: var(--blanc); border-color: var(--encre); color: var(--encre); }
.bouton--contour:hover { background: var(--creme); }
.bouton--encre { background: var(--encre); color: var(--blanc); }
.bouton--petit { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.bouton--mini { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.lien-action {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.entete {
  max-width: 1360px; margin: 0 auto; height: var(--entete-h);
  padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.entete__logo img { height: 28px; width: auto; }
.entete__nav { display: flex; align-items: center; gap: 12px; }

.langues {
  display: flex; background: var(--blanc); border-radius: var(--rayon-pilule); padding: 4px;
}
.langues__bouton {
  border: 0; background: transparent; cursor: pointer; min-width: 40px; min-height: 32px;
  border-radius: var(--rayon-pilule); font-weight: 600; font-size: 14px; color: var(--texte-doux);
}
.langues__bouton[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }

/* ── Accroche et recherche ───────────────────────────────────────────────── */

.accroche { max-width: 1360px; margin: 0 auto; padding: 24px 32px 28px; }

.accroche__titre {
  margin: 0 0 14px; max-width: 900px;
  font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.025em;
}
/* Le surligneur menthe du site : une bande sous la moitié basse du texte. */
.surligne {
  background: linear-gradient(transparent 58%, var(--menthe) 58%, var(--menthe) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
}
.accroche__texte { margin: 0 0 26px; max-width: 640px; font-size: 18px; color: var(--texte-doux); }

.recherche {
  position: relative; display: flex; align-items: stretch;
  max-width: 980px; background: var(--blanc);
  border: 1.5px solid var(--encre); border-radius: var(--rayon-pilule);
  box-shadow: var(--ombre-dure); padding: 6px;
}
.recherche__champ { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 56px; }
.recherche__champ--quoi { flex: 1.5 1 0; }
.recherche__champ--ou { flex: 1 1 0; border-left: 1.5px solid var(--bordure); }
.recherche__champ > i { color: var(--vert); font-size: 17px; }
.recherche input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-size: 17px; font-weight: 500; padding: 14px 0;
}
.recherche input::placeholder { color: #8A8F87; font-weight: 400; }
.recherche input::-webkit-search-cancel-button { cursor: pointer; }
.recherche__champ:focus-within { background: var(--creme); border-radius: var(--rayon-pilule); }
.recherche__champ--ou:focus-within { border-left-color: transparent; }
.recherche__bouton { min-height: 56px; padding: 0 28px; font-size: 16px; }

.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30;
  list-style: none; margin: 0; padding: 6px;
  background: var(--blanc); border: 1.5px solid var(--encre); border-radius: 20px; box-shadow: var(--ombre-douce);
}
.suggestions li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 14px; cursor: pointer; font-weight: 500;
}
.suggestions li small { color: var(--texte-doux); font-weight: 400; white-space: nowrap; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--creme); }
.suggestions .suggestions__moi { color: var(--vert); font-weight: 600; justify-content: flex-start; }

.envies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; max-width: 980px; }
.pastille {
  border: 1.5px solid var(--bordure); background: var(--blanc); border-radius: var(--rayon-pilule);
  padding: 7px 15px; min-height: 38px; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease;
}
.pastille:hover { border-color: var(--encre); }
.pastille[aria-pressed="true"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }

/* `position: relative` retient la case masquée (en absolu) DANS la rangée :
   sans lui, elle s'échappait de la rangée défilante du téléphone et élargissait
   la page de 260 px. */
.interrupteur {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
  font-size: 15px; font-weight: 500; cursor: pointer; min-height: 38px;
}
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur__piste {
  position: relative; width: 44px; height: 26px; border-radius: var(--rayon-pilule);
  background: var(--bordure); transition: background .15s ease; flex: none;
}
.interrupteur__piste::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--blanc); transition: transform .15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.interrupteur input:checked + .interrupteur__piste { background: var(--vert); }
.interrupteur input:checked + .interrupteur__piste::after { transform: translateX(18px); }
.interrupteur input:focus-visible + .interrupteur__piste { outline: 3px solid var(--bleu); outline-offset: 2px; }

/* ── Liste + carte ───────────────────────────────────────────────────────── */

.explorer {
  max-width: 1360px; margin: 0 auto; padding: 8px 32px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start;
}
.explorer__entete { margin-bottom: 14px; }
.explorer__titre { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.explorer__resume { margin: 4px 0 0; color: var(--texte-doux); min-height: 24px; }

.explorer__carte { position: sticky; top: 16px; }
.carte {
  height: calc(100vh - 32px); min-height: 460px; border-radius: 28px; overflow: hidden;
  border: 1.5px solid var(--encre); background: var(--creme-fonce);
}
.carte__ici {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 5;
  box-shadow: var(--ombre-douce);
}
.carte__indispo {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 24px;
  text-align: center; color: var(--texte-doux); border-radius: 28px;
}

.message {
  margin: 0 0 16px; padding: 18px 20px; background: var(--blanc); border-radius: 20px;
  color: var(--texte-doux);
}
.message strong { color: var(--encre); }

.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

/* ── Fiche restaurant ────────────────────────────────────────────────────── */

.resto {
  position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px;
  background: var(--blanc); border-radius: var(--rayon-carte); padding: 14px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.resto:hover { box-shadow: var(--ombre-douce); }
.resto.est-active { border-color: var(--encre); box-shadow: var(--ombre-dure); transform: translate(-2px, -2px); }

.resto__visuel { position: relative; align-self: start; }
.resto__photo {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 18px; background: var(--creme-fonce);
}
.resto__initiale {
  width: 100%; aspect-ratio: 4 / 3.4; border-radius: 18px; background: var(--menthe-pale);
  display: grid; place-items: center; font-size: 52px; font-weight: 600; color: var(--vert);
}
.resto__rang {
  position: absolute; top: 8px; left: 8px; min-width: 28px; height: 28px; padding: 0 8px;
  display: grid; place-items: center; border-radius: var(--rayon-pilule);
  background: var(--encre); color: var(--blanc); font-size: 13px; font-weight: 700;
}
.resto__cadeau {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 8px; border-radius: var(--rayon-pilule);
  background: var(--bleu); color: var(--encre); font-size: 12.5px; font-weight: 700;
  border: 1.5px solid var(--encre);
}

/* Carrousel de la fiche : couverture, carrousel du mini-site, plats.
   Flèches un peu au-dessus du milieu : en bas vivent la pastille « Cadeau » et
   le nom du plat, en haut le rang et le compteur. */
.resto__visuel--photos { touch-action: pan-y; }
.resto__visuel--photos .resto__photo { transition: opacity .2s ease; }
.resto__visuel.est-chargement .resto__photo { opacity: .55; }
.resto__fleche {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--blanc); color: var(--encre); font-size: 13px;
  border: 1.5px solid var(--encre); box-shadow: 2px 2px 0 var(--encre);
  transition: background .15s ease;
}
.resto__fleche--prec { left: 6px; }
.resto__fleche--suiv { right: 6px; }
.resto__fleche:hover { background: var(--menthe); }
.resto__fleche:focus-visible { outline: 3px solid var(--encre); outline-offset: 2px; }
.resto__compteur {
  position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: var(--rayon-pilule);
  background: rgba(26, 26, 26, .78); color: var(--blanc); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.resto__legende {
  position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0;
  padding: 4px 9px; border-radius: 10px;
  background: rgba(26, 26, 26, .78); color: var(--blanc);
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.resto__visuel--cadeau .resto__legende { bottom: 45px; }

.resto__corps { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.resto__haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.resto__nom { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.resto__nom a { text-decoration: none; }
.resto__nom a:hover { text-decoration: underline; text-underline-offset: 3px; }

.note {
  flex: none; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: 12px; background: var(--menthe); white-space: nowrap;
}
.note__valeur { font-size: 17px; font-weight: 700; }
.note__valeur i { color: var(--vert); font-size: 13px; margin-right: 3px; }
.note__nombre { font-size: 12.5px; color: var(--encre); opacity: .75; }
.note--nouveau { background: var(--creme); font-size: 13px; font-weight: 600; padding: 5px 10px; }

.resto__infos { margin: 0; font-size: 14.5px; color: var(--texte-doux); }
.resto__infos .point { margin: 0 6px; }
.resto__distance { color: var(--encre); font-weight: 600; }

/* `minmax(0, 1fr)` : sans lui, la colonne de la grille prend la largeur d'un
   nom de plat sur une ligne, et la fiche déborde au lieu de le couper. */
.resto__plats { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.resto__plats li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.resto__plats .plat-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resto__plats .plat-points { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--bordure); transform: translateY(-4px); }
/* Un prix peut être un texte libre du restaurateur : il passe à la ligne, à
   droite, plutôt que d'élargir la fiche. « 19 € » ne se coupe pas (espace
   insécable). */
.resto__plats .plat-prix { flex: 0 1 auto; max-width: 60%; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* Prix à quantités : le nom sur sa ligne, les quantités dessous. */
.resto__plats li.plat--variantes { display: grid; gap: 1px; }
.resto__plats .plat-variantes { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; }
.resto__plats .plat-variante { display: inline-flex; gap: 5px; max-width: 100%; }
.resto__plats .plat-variante .plat-prix { max-width: none; white-space: nowrap; }
.resto__plats .plat-quantite { min-width: 0; color: var(--texte-doux); overflow-wrap: anywhere; }
.resto__plats-plus { font-size: 13.5px; color: var(--texte-doux); }
mark {
  background: linear-gradient(transparent 55%, var(--menthe) 55%, var(--menthe) 95%, transparent 95%);
  color: inherit; padding: 0 1px;
}

.resto__mots { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.resto__mots li {
  font-size: 13px; padding: 3px 10px; border-radius: var(--rayon-pilule);
  background: var(--creme); border: 1px solid var(--bordure);
}

.resto__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--rayon-pilule); background: var(--menthe-pale); color: var(--vert);
}

.roue {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 16px; background: var(--bleu-pale); border: 1.5px dashed var(--bleu);
}
.roue__icone {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bleu); color: var(--encre); font-size: 16px;
}
.roue__titre { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.roue__lots { margin: 1px 0 0; font-size: 13.5px; color: var(--texte-doux); line-height: 1.35; }

.resto__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }

.plus { margin: 20px auto 0; display: flex; }

.note-explication {
  display: flex; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .55); font-size: 13.5px; color: var(--texte-doux);
}
.note-explication p { margin: 0; }
.note-explication i { margin-top: 3px; }

/* ── Épingles de carte ───────────────────────────────────────────────────── */

.epingle {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: var(--rayon-pilule);
  display: grid; place-items: center; cursor: pointer;
  background: var(--encre); color: var(--blanc); font: 700 13px/1 var(--police);
  border: 2px solid var(--blanc); box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  transition: transform .12s ease, background-color .12s ease;
}
.epingle--cadeau { background: var(--bleu); color: var(--encre); border-color: var(--encre); }
.epingle.est-active { transform: scale(1.22); background: var(--menthe); color: var(--encre); border-color: var(--encre); z-index: 2; }
.epingle-moi {
  width: 18px; height: 18px; border-radius: 50%; background: #2B7BE4; border: 3px solid var(--blanc);
  box-shadow: 0 0 0 6px rgba(43, 123, 228, .25);
}

.mapboxgl-popup-content {
  font-family: var(--police); border-radius: 16px; padding: 12px 14px; border: 1.5px solid var(--encre);
  box-shadow: var(--ombre-douce);
}
.bulle__nom { margin: 0 0 2px; font-weight: 700; font-size: 15px; }
.bulle__ville { margin: 0 0 8px; font-size: 13px; color: var(--texte-doux); }

/* ── Pied de page ────────────────────────────────────────────────────────── */

.pied {
  margin-top: 24px; padding: 40px 32px calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, var(--menthe) 0%, #BFE7CB 100%); text-align: center;
}
.pied img { margin: 0 auto 12px; height: 23px; width: auto; }
.pied p { margin: 4px auto; max-width: 620px; font-size: 14.5px; }
.pied__liens { font-size: 13.5px !important; }

/* ── Bascule carte / liste (téléphone) ───────────────────────────────────── */

.bascule-carte { display: none; }

@media (max-width: 1023px) {
  .explorer { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
  .explorer__carte {
    position: fixed; inset: 0; z-index: 40; top: 0; padding: 12px;
    background: var(--creme); display: none;
  }
  .explorer.voir-carte .explorer__carte { display: block; }
  .carte { height: calc(100vh - 24px); height: calc(100dvh - 24px); min-height: 0; }
  .bascule-carte {
    display: inline-flex; position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
    bottom: calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  }
}

@media (max-width: 720px) {
  .entete { padding: 0 16px; }
  .entete .bouton--contour { display: none; }
  .accroche { padding: 12px 16px 20px; }
  .accroche__texte { font-size: 16px; margin-bottom: 20px; }
  .recherche { flex-direction: column; border-radius: 24px; padding: 6px; box-shadow: 4px 4px 0 var(--encre); }
  .recherche__champ { min-height: 52px; padding: 0 14px; }
  .recherche__champ--ou { border-left: 0; border-top: 1.5px solid var(--bordure); }
  .recherche__champ:focus-within { border-radius: 18px; }
  .recherche__bouton { margin-top: 6px; min-height: 52px; }
  .envies { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .envies::-webkit-scrollbar { display: none; }
  .pastille { flex: none; }
  .interrupteur { margin-left: 4px; flex: none; }
  .explorer { padding: 4px 16px 96px; }
  .explorer__titre { font-size: 22px; }
  .resto { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .resto__photo, .resto__initiale { aspect-ratio: 16 / 9; }
  .resto__fleche { top: 50%; width: 38px; height: 38px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .resto.est-active, .bouton--menthe:hover { transform: none; }
}
