/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #c0392b;
  --primary-dk:  #7a2218;
  --primary-lt:  rgba(192,57,43,.1);
  --accent:      #e67e22;
  --bg:          #faf8f5;
  --surface:     #ffffff;
  --border:      #e8e2d8;
  --text:        #2c2418;
  --text-light:  #7a6e60;
  --disabled:    #b0a99a;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --radius:      14px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w:       480px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* === Layout === */
.app-header {
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
}

.app-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  flex: 1;
}

.village-select-wrap {
  position: relative;
  flex: 1;
}
.village-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  pointer-events: none;
}
.village-select {
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: 20px;
  padding: 7px 28px 7px 13px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  letter-spacing: .01em;
  transition: background .15s, border-color .15s;
}
.village-select:hover,
.village-select:focus {
  background: rgba(255,255,255,.32);
  border-color: rgba(255,255,255,.75);
  outline: none;
}
.village-select option { color: var(--text); background: #fff; }

.lang-toggle {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .85rem;
  font-weight: 600;
}

.service-bar {
  display: flex;
  gap: 4px;
  padding: 8px 0 10px;
}

.service-btn {
  flex: 1;
  padding: 7px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-align: center;
  transition: background .15s, color .15s;
}

.service-btn.active {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px;
}

/* === Interstitiel === */
.interstitiel {
  text-align: center;
  padding: 60px 24px;
}

.interstitiel .emoji { font-size: 3rem; margin-bottom: 16px; }
.interstitiel h2 { font-size: 1.4rem; margin-bottom: 8px; }
.interstitiel p { color: var(--text-light); font-size: 1rem; }

/* === Carte restaurant === */
.cards { display: flex; flex-direction: column; gap: 16px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s;
}

.card:active { transform: scale(.99); }

.card.no-menu {
  opacity: .55;
  order: 10;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
}

.card-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.card-logo img { width: 100%; height: 100%; object-fit: cover; }

.card-info { flex: 1; min-width: 0; }
.card-nom { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-heure { font-size: .8rem; color: var(--text-light); margin-top: 2px; }

.card-fav {
  padding: 6px;
  color: var(--text-light);
  font-size: 1.3rem;
  transition: color .15s, transform .2s;
  flex-shrink: 0;
}

.card-fav.active { color: var(--accent); }
.card-fav:active { transform: scale(1.3); }

.card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  background: var(--bg);
}

.card-no-menu {
  padding: 20px 16px;
  text-align: center;
  color: var(--disabled);
  font-style: italic;
  font-size: .95rem;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.card-stats {
  flex: 1;
  font-size: .82rem;
  color: var(--text-light);
}

.card-stats strong { color: var(--text); }

.btn-like {
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  padding: 9px 18px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.btn-like:active { transform: scale(.96); }
.btn-like:hover { background: var(--primary-dk); }
.btn-like.done { background: #27ae60; }
.btn-like:disabled { background: var(--disabled); cursor: default; }

.btn-fiche {
  font-size: .8rem;
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Popup like === */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn .15s ease;
}

.overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } }

.popup {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: var(--max-w);
  animation: slideUp .2s ease;
}

@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }

.popup-titre {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.popup-info {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

.popup-personnes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.btn-personnes {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  transition: background .12s, border-color .12s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-personnes:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-personnes:active { transform: scale(.92); }

.popup-annuler {
  width: 100%;
  padding: 10px;
  color: var(--text-light);
  font-size: .9rem;
  text-align: center;
}

/* === Fiche restaurant === */
.fiche-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  overflow-y: auto;
  animation: slideRight .2s ease;
}

.fiche-overlay.hidden { display: none; }

@keyframes slideRight { from { transform: translateX(100%); } }

.fiche-header {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
}

.btn-retour {
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.fiche-nom { font-size: 1.15rem; font-weight: 700; flex: 1; }

.fiche-body { padding: 20px 16px; max-width: var(--max-w); margin: 0 auto; }

.fiche-info-ligne {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}

.fiche-info-ligne:last-child { border-bottom: none; }
.fiche-info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.btn-appel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 1rem;
  margin: 20px 0;
  justify-content: center;
}

.historique-titre {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.historique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.historique-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

.historique-item .hist-label {
  font-size: .75rem;
  color: var(--text-light);
  margin-top: 4px;
  text-align: center;
}

/* === Footer === */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  font-size: .72rem;
  color: var(--text-light);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}
.footer-brand {
  font-weight: 700;
  color: var(--primary);
}
.footer-sep {
  opacity: .4;
}
.footer-link {
  color: var(--text-light);
  text-decoration: none;
  opacity: .85;
  transition: color .15s, opacity .15s;
}
.footer-link:hover { color: var(--primary); opacity: 1; }

/* === Spinner === */
.spinner {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Toast === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #2c2418;
  color: #fff;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: .9rem;
  z-index: 500;
  transition: transform .3s ease;
  white-space: nowrap;
  max-width: 90vw;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* === Responsive desktop === */
@media (min-width: 600px) {
  .main { padding: 24px 16px; }
  .popup, .fiche-body { max-width: var(--max-w); }
}

/* ============================================================
   NOUVEAUX STYLES v2
   ============================================================ */

/* === Icônes SVG custom === */
.card-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-lt);
  border: 1.5px solid rgba(192,57,43,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-dk);
}
.card-logo-img { width: 100%; height: 100%; object-fit: cover; }
.card-logo-default { display: flex; align-items: center; justify-content: center; }

/* Favoris */
.card-fav { color: var(--text-light); padding: 6px; transition: color .15s, transform .2s; flex-shrink: 0; }
.card-fav.active { color: var(--accent); }
.card-fav:active { transform: scale(1.3); }

/* Bouton voir la fiche (redesign) */
.btn-fiche-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-dk);
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid rgba(192,57,43,.35);
  border-radius: 20px;
  padding: 6px 11px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-fiche-card:hover { background: var(--primary-lt); border-color: var(--primary-dk); }
.btn-fiche-card svg { color: var(--primary-dk); }

/* Card info cliquable (nom restaurant) */
.card-info { cursor: pointer; flex: 1; min-width: 0; }
.card-info:hover .card-nom { text-decoration: underline; text-underline-offset: 2px; }

/* === Vue liste (compact) === */
.cards.view-list { gap: 10px; }

.view-list .card {
  display: grid;
  grid-template-columns: 90px 1fr;
  grid-template-areas:
    "media header"
    "media footer";
  grid-template-rows: auto auto;
  min-height: 90px;
}
.view-list .card-header {
  grid-area: header;
  padding: 10px 12px 4px;
  align-items: flex-start;
}
.view-list .card-media {
  grid-area: media;
  width: 90px;
  height: 100%;
  min-height: 90px;
}
.view-list .card-photo {
  width: 90px;
  height: 100%;
  min-height: 90px;
  aspect-ratio: unset;
  object-fit: cover;
  border-radius: 0;
}
.view-list .card-no-menu {
  grid-area: media;
  width: 90px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  padding: 8px;
}
.view-list .card-footer {
  grid-area: footer;
  padding: 4px 12px 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.view-list .card-nom { font-size: .95rem; }
.view-list .card-heure { font-size: .72rem; }
.view-list .btn-like { font-size: .8rem; padding: 7px 12px; }
.view-list .btn-fiche-card { font-size: .75rem; padding: 5px 9px; }
.view-list .btn-expand { display: none; }

/* === Toggle vue grille/liste === */
.view-toggle {
  display: flex;
  gap: 3px;
}
.view-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.7);
  border-radius: 7px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.view-btn.active {
  background: rgba(255,255,255,.3);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

/* === Lightbox plein écran === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .15s ease;
}
.lightbox.hidden { display: none; }

.lightbox-img {
  max-width: 100%;
  max-height: 100dvh;
  object-fit: contain;
  display: block;
  cursor: zoom-out;
  touch-action: pinch-zoom;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #fff;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(0,0,0,.75); }

/* === btn-expand sur photo === */
.card-media { position: relative; cursor: pointer; display: block; }
.btn-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.52);
  color: #fff;
  border-radius: 7px;
  padding: 7px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .2s;
  backdrop-filter: blur(2px);
}
.card-media:hover .btn-expand,
.card-media:focus .btn-expand { opacity: 1; }
/* Mobile : toujours visible */
@media (hover: none) { .btn-expand { opacity: .7; } }

/* === Fiche — bouton retour amélioré === */
.fiche-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
}
.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 13px;
  flex-shrink: 0;
  transition: background .15s;
}
.btn-retour:hover { background: rgba(255,255,255,.28); }
.btn-retour span { line-height: 1; }

/* === Icônes dans la fiche === */
.fiche-icon {
  color: var(--primary-dk);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.fiche-desc {
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 16px;
  padding: 0 2px;
}
.fiche-infos { margin-bottom: 4px; }

/* === Historique photos — hover pour lightbox === */
.historique-photo-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.historique-photo-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.hist-expand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.hist-expand svg { width: 22px; height: 22px; }
.historique-photo-wrap:hover .hist-expand { opacity: 1; }
@media (hover: none) {
  .hist-expand { opacity: 0; }
  .historique-photo-wrap:active .hist-expand { opacity: 1; }
}

/* === Stats avec icône === */
.card-stats-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-light);
}
.card-stats-inner svg { color: var(--primary-dk); }
.card-stats-inner strong { color: var(--text); }

/* === Like button done state === */
.btn-like.done { background: #27ae60; }
.btn-like.done svg { stroke: #fff; }

/* === Message vide / erreur === */
.empty-msg {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-light);
  font-size: .95rem;
}

/* === Interstitiel — icône SVG === */
.interstitiel-icon {
  color: var(--primary);
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.interstitiel-icon svg { width: 48px; height: 48px; }

/* === Admin login — grille restaurants === */
.resto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}
.resto-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  text-align: center;
  background: var(--bg);
}
.resto-card:hover { border-color: var(--primary); background: var(--primary-lt); }
.resto-card.selected {
  border-color: var(--primary);
  background: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(192,57,43,.15);
}
.resto-card:active { transform: scale(.97); }
.resto-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(192,57,43,.08);
  border: 1.5px solid rgba(192,57,43,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dk);
  flex-shrink: 0;
}
.resto-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.resto-card-nom {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.resto-card.hidden-filter { display: none; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  background: var(--bg);
  margin-bottom: 10px;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar svg { color: var(--text-light); flex-shrink: 0; }
.search-bar input {
  border: none;
  background: none;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  outline: none;
  width: 100%;
}

.pwd-section {
  margin-top: 16px;
  animation: slideUp .2s ease;
}
.selected-resto-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-lt);
  border: 1.5px solid rgba(192,57,43,.25);
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--primary-dk);
}
.selected-resto-banner svg { color: var(--primary-dk); flex-shrink: 0; }

/* ============================================================
   VITE1PLAT v3 — Nouveaux composants
   ============================================================ */

/* === Carte OpenStreetMap dans la fiche === */
.fiche-map-wrap {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.fiche-map {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
  background: var(--bg);
}
.fiche-map-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-dk);
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s;
}
.fiche-map-link:hover { background: var(--primary-lt); }
.fiche-map-link svg { flex-shrink: 0; }

/* === Section titre fiche === */
.fiche-section-titre {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 22px 0 10px;
}

/* === Menu fixe — scroll horizontal === */
.menu-fixe-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.menu-fixe-scroll::-webkit-scrollbar { height: 3px; }
.menu-fixe-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.menu-fixe-item {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border: 1.5px solid var(--border);
  transition: border-color .15s;
}
.menu-fixe-item:hover { border-color: var(--primary); }
.menu-fixe-item img {
  width: 220px;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.menu-fixe-expand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.menu-fixe-expand svg { width: 28px; height: 28px; }
.menu-fixe-item:hover .menu-fixe-expand { opacity: 1; }
@media (hover: none) {
  .menu-fixe-expand { opacity: 0; }
  .menu-fixe-item:active .menu-fixe-expand { opacity: 1; }
}

/* === Historique — compact, horizontal, tout en bas === */
.fiche-hist-titre {
  margin-top: 28px;
  font-size: .75rem;
  opacity: .7;
}
.historique-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.historique-scroll::-webkit-scrollbar { height: 3px; }
.historique-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.historique-item-h {
  flex-shrink: 0;
  width: 90px;
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color .15s;
}
.historique-item-h:hover { border-color: var(--primary); }
.historique-item-h img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  display: block;
}
.hist-label-h {
  font-size: .62rem;
  color: var(--text-light);
  text-align: center;
  padding: 3px 4px;
  background: var(--bg);
  line-height: 1.2;
}

/* === Interstitiel avec boutons de choix === */
.interstitiel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-service-choice {
  padding: 10px 22px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .15s;
}
.btn-service-choice:hover { background: var(--primary-dk); }

/* === Formulaire d'inscription restaurateur === */
.popup-inscription {
  max-height: 90dvh;
  overflow-y: auto;
}
.inscription-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.form-input-light {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s;
  outline: none;
}
.form-input-light:focus { border-color: var(--primary); }
.btn-primary-full {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary-full:hover { background: var(--primary-dk); }
.btn-primary-full:disabled { background: var(--disabled); cursor: default; }
