/* ============================================================
   Kasheo — feuille de style (mobile-first, épuré, 2026)
   ============================================================ */

:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --ink: #14161a;
  --ink-soft: #5a616b;
  --ink-faint: #969ca6;
  --line: #ecedf0;
  --line-strong: #dfe1e6;
  --brand: #1f7a5c;
  --brand-soft: #e7f3ee;
  --brand-ink: #155943;
  --accent: #f5a623;
  --open: #1f9d62;
  --closed: #c0392b;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .05), 0 1px 3px rgba(20, 22, 26, .04);
  --shadow-md: 0 6px 24px rgba(20, 22, 26, .10);
  --shadow-lg: 0 16px 48px rgba(20, 22, 26, .18);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ---------- Barre supérieure ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
}
.brand__mark svg { width: 32px; height: 32px; }
.brand__name { font-size: 1.32rem; }

.location {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.location__geo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: border-color .15s, background .15s;
}
.location__geo svg { width: 16px; height: 16px; }
.location__geo:hover { border-color: var(--brand); background: var(--brand-soft); }
.location__geo.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.location__manual {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.location__manual input {
  border: 0;
  outline: none;
  padding: 9px 6px 9px 15px;
  font-size: .9rem;
  width: 170px;
  background: transparent;
  color: var(--ink);
}
.location__manual input::placeholder { color: var(--ink-faint); }
.location__manual button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  padding: 0 13px 0 8px;
  height: 100%;
}
.location__manual button svg { width: 17px; height: 17px; }
.location__manual:focus-within { border-color: var(--brand); }

/* Autocomplétion ville / code postal (liste fermée, sous le champ) */
.ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 260px;
  max-width: 86vw;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .15);
  max-height: 320px;
  overflow-y: auto;
}
.ac-list[hidden] { display: none; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.ac-item__ic {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}
.ac-item__ic svg { width: 16px; height: 16px; }
.ac-item__txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ac-item__main {
  font-weight: 600; font-size: .92rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-item__sub {
  font-size: .76rem; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-item__count {
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 8px;
}
.ac-item.is-active, .ac-item:hover { background: var(--brand-soft); }

/* Sélecteur de certification */
.selectwrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.selectwrap select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 30px 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.selectwrap select:hover { border-color: var(--brand); }
.selectwrap select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.selectwrap > svg {
  position: absolute;
  right: 11px;
  width: 15px; height: 15px;
  color: var(--ink-soft);
  pointer-events: none;
}

/* Entête de résultats : compteur + tri */
.results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.selectwrap--sort select { font-size: .82rem; padding: 7px 28px 7px 12px; }

/* Galerie photo de la fiche */
.sheet__hero.gal { height: 230px; padding: 0; }
.gal__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  pointer-events: none;
}
.gal__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: background .15s, transform .15s;
}
.gal__dot.is-active { background: #fff; transform: scale(1.25); }

/* Section Menu (photos du menu) */
.menu-shots {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.menu-shot {
  flex: 0 0 auto;
  width: 120px; height: 160px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.menu-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.location__status {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px 10px;
  font-size: .82rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.location__status[hidden] { display: none; }
.radius[hidden] { display: none; }
.location__geo:disabled, .location__manual input:disabled { opacity: .55; cursor: progress; }
.location__geo.is-busy svg { animation: spin .8s linear infinite; }

.spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
.dot-error {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--closed);
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loc-pin { font-size: .95em; }
#locText { font-weight: 600; color: var(--ink); }
.radius {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.radius__lbl { color: var(--ink-faint); font-size: .82rem; }
.radius__btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.radius__btn:hover { border-color: var(--brand); }
.radius__btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Mise en page ---------- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px;
}

/* ---------- Filtres ---------- */
.filters { margin-bottom: 16px; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 11px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.searchbar:focus-within { border-color: var(--brand); }
.searchbar > svg { width: 19px; height: 19px; color: var(--ink-faint); flex: 0 0 auto; }
.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: .95rem;
  color: var(--ink);
  min-width: 0;
}
.searchbar input::placeholder { color: var(--ink-faint); }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar__clear {
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  display: grid;
  place-items: center;
  padding: 2px;
  flex: 0 0 auto;
}
.searchbar__clear svg { width: 18px; height: 18px; }
.searchbar__clear:hover { color: var(--ink); }

.filters__row { display: flex; gap: 9px; }

/* Catégories sur une seule ligne, défilables, avec flèches ‹ › sur ordinateur. */
.cuisines {
  position: relative;
  margin-bottom: 12px;
}
.filters__cuisines {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 0;
}
.filters__cuisines::-webkit-scrollbar { display: none; }

.cuisines__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: background .15s, border-color .15s;
}
.cuisines__arrow[hidden] { display: none; }
.cuisines__arrow:hover { background: var(--brand-soft); border-color: var(--brand); }
.cuisines__arrow svg { width: 18px; height: 18px; }
.cuisines__arrow--left { left: -6px; }
.cuisines__arrow--right { right: -6px; }
/* Dégradé de fondu sous les flèches pour signaler la continuité */
.cuisines::before, .cuisines::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 46px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .15s;
}
.cuisines::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.cuisines::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.cuisines.has-prev::before, .cuisines.has-next::after { opacity: 1; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px 8px 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.chip:hover { border-color: var(--ink-faint); }
.chip__ic {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.chip__ic svg { width: 17px; height: 17px; }
.chip.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.filters__toggles {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg__btn {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.seg__btn.is-active { background: var(--ink); color: #fff; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 40px; height: 23px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background .18s;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(17px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-ghost {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 4px;
}
.btn-ghost:hover { color: var(--ink); }

.viewtabs {
  margin-left: auto;
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.viewtabs__btn {
  border: 0;
  background: transparent;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.viewtabs__btn.is-active { background: var(--brand); color: #fff; }

/* ---------- Résultats ---------- */
.results__count {
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 2px 2px 14px;
}
.results__count b { color: var(--ink); font-weight: 700; }
.count-split { color: var(--ink-faint); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
/* `display:grid` l'emporterait sur l'attribut [hidden] (UA) : sans ceci, la
   bascule Liste→Carte ne masquerait pas la liste. */
.cards[hidden] { display: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, border-color .14s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Hero : vraie photo (hero__img) sinon illustration travaillée (dégradé + motif + icône) */
.hero {
  position: relative;
  height: 148px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero::after { /* lumière douce pour donner du relief */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 25% 18%, rgba(255, 255, 255, .22), transparent 60%);
  pointer-events: none;
}
.hero__bg { /* grands motifs translucides en arrière-plan */
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: rgba(255, 255, 255, .12);
}
.hero__bg svg { position: absolute; }
.hero__bg svg:first-child { width: 168px; height: 168px; right: -34px; bottom: -40px; }
.hero__bg svg:last-child { width: 84px; height: 84px; left: -16px; top: -20px; color: rgba(255, 255, 255, .10); }
.hero__art {
  position: relative;
  z-index: 1;
  color: #fff;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .14));
}
.hero__art svg { width: 58px; height: 58px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

.card__pill {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card__rating {
  position: absolute;
  top: 11px; right: 11px;
  z-index: 2;
  background: rgba(20, 22, 26, .72);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card__rating span { font-weight: 500; opacity: .85; }
.card__body {
  padding: 13px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.card__name {
  font-size: 1.07rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card__cuisine { font-size: .85rem; color: var(--ink-soft); margin-top: -5px; }

/* Mise en avant discrète (« Coup de cœur ») — établissements partenaires */
.card--featured { border-color: #f0cd87; box-shadow: 0 0 0 1px #f0cd87, var(--shadow-sm); }
.card--featured:hover { border-color: #e9bf6a; }
.card__feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #8a5a00;
  background: #fff6e3;
  border: 1px solid #f0cd87;
  padding: 3px 9px;
  border-radius: 999px;
}
.sheet__feature { margin: 0 0 10px; }

.card__meta { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .76rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ink-soft);
}
.tag--teouda { color: #fff; }
.tag--certif { background: var(--brand-soft); color: var(--brand-ink); }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  margin-top: auto;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status--open { color: var(--open); }
.status--closed { color: var(--closed); }
.status--unknown { color: var(--ink-faint); }
.distance {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Carte ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
#map { height: min(72vh, 640px); width: 100%; }
.leaflet-container { font-family: inherit; }

.pin {
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  border: 2px solid #fff;
}
.pin svg { width: 17px; height: 17px; transform: rotate(45deg); color: #fff; }

.popup-card { font-family: inherit; min-width: 170px; }
.popup-card b { font-size: .98rem; display: block; margin-bottom: 2px; }
.popup-card span { font-size: .82rem; color: var(--ink-soft); }
.popup-card button {
  margin-top: 9px;
  width: 100%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: 8px;
  border-radius: 9px;
}

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 48px 20px;
  font-size: .95rem;
}

/* ---------- Fiche établissement ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 22, 26, .42);
  backdrop-filter: blur(2px);
  animation: fade .2s ease;
}
.sheet__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  animation: slidein .26s cubic-bezier(.22,.61,.36,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slidein { from { transform: translateX(100%); } }

.sheet__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  /* Au-dessus de la photo de couverture/galerie (hero__img = z-index 2), sinon
     l'image se peint par-dessus la croix et on ne peut plus fermer la fiche. */
  z-index: 10;
}
.sheet__close svg { width: 18px; height: 18px; color: var(--ink); }

.sheet__hero {
  height: 168px;
  display: grid;
  place-items: center;
  position: relative;
}
.sheet__hero .hero__art svg { width: 66px; height: 66px; }

.sheet__content { padding: 20px 22px 30px; }
.sheet__name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.sheet__sub { color: var(--ink-soft); margin: 0 0 14px; font-size: .92rem; }
.sheet__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }

.sheet__actions { display: flex; gap: 10px; margin-bottom: 22px; }
.action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  transition: background .15s, border-color .15s;
}
.action svg { width: 18px; height: 18px; }
.action:hover { border-color: var(--brand); background: var(--brand-soft); }
.action--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.action--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }

.sheet__section { margin-bottom: 20px; }
.sheet__section h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin: 0 0 9px;
}
.info-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: .92rem;
}
.info-row svg { width: 18px; height: 18px; color: var(--ink-faint); flex: 0 0 auto; margin-top: 2px; }
.info-row a { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.info-row a:hover { text-decoration: underline; }

.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:first-child { color: var(--ink-soft); width: 92px; text-transform: capitalize; }
.hours td:last-child { text-align: right; }
.hours tr.is-today td { font-weight: 700; color: var(--ink); }
.hours tr.is-today td:first-child { color: var(--brand-ink); }
.hours .closed { color: var(--ink-faint); }
.hours-nc { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
}
.socials a:hover { border-color: var(--brand); color: var(--brand-ink); }

.sitefoot {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 22px 18px 34px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .8rem;
  text-align: center;
}
.sitefoot a { color: var(--ink-soft); }
.sitefoot__cta {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.sitefoot__cta a {
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brand);
  padding-bottom: 1px;
}
.sitefoot__cta a:hover { color: var(--brand); }
.sitefoot__pro {
  font-size: .85rem;
  color: var(--ink-faint);
  margin: -6px 0 14px;
}
.sitefoot__pro a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brand);
  padding-bottom: 1px;
}
.sitefoot__pro a:hover { color: var(--brand); }

.report {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.report svg { width: 16px; height: 16px; color: var(--ink-faint); }
.report:hover { color: var(--closed); }
.report:hover svg { color: var(--closed); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .topbar__inner { padding: 11px 14px; gap: 10px; }
  .brand__name { font-size: 1.18rem; }
  /* Localisation : les deux contrôles en pleine largeur, empilés et explicites
     (sur mobile, l'icône seule « autour de moi » n'était pas parlante). */
  .location { width: 100%; gap: 8px; }
  .location__geo { width: 100%; justify-content: center; padding: 11px 14px; }
  .location__manual { width: 100%; flex: none; }
  .location__manual input { width: 100%; }
  .layout { padding: 14px; }

  /* Filtres empilés : chaque contrôle en pleine largeur, confortable au pouce.
     Évite l'enroulement anarchique des segments + select + switch sur une ligne. */
  .filters__toggles {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  /* Segments (Restaurant/Commerce, Lait/Viande) pleine largeur, boutons répartis */
  .filters__toggles .seg { width: 100%; }
  .filters__toggles .seg__btn {
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    white-space: nowrap;
  }
  /* Certification : sélecteur pleine largeur */
  #certifWrap { display: flex; width: 100%; }
  #certifWrap select { flex: 1; width: 100%; padding-top: 11px; padding-bottom: 11px; }
  /* Ouvert maintenant : ligne de réglage (libellé à gauche, interrupteur à droite) */
  .switch {
    width: 100%;
    justify-content: space-between;
    padding: 4px 2px;
  }
  .switch__label { order: 1; }
  .switch__track { order: 2; }
  /* Réinitialiser : lien pleine largeur, bien visible quand des filtres sont actifs */
  .btn-ghost { align-self: flex-start; padding: 4px 2px; }

  /* Onglets Liste / Carte : pleine largeur, placés en tête des filtres */
  .viewtabs { order: -1; margin-left: 0; width: 100%; }
  .viewtabs__btn { flex: 1; padding: 9px 18px; }

  /* Entête résultats : compteur au-dessus, tri pleine largeur dessous */
  .results__head { flex-direction: column; align-items: stretch; gap: 8px; }
  .results__count { margin-bottom: 0; }
  .selectwrap--sort { display: flex; }
  .selectwrap--sort select { flex: 1; width: 100%; padding-top: 10px; padding-bottom: 10px; }

  /* Mobile : défilement tactile des catégories, flèches inutiles. */
  .cuisines__arrow { display: none; }
  .cuisines::before, .cuisines::after { display: none; }
  .cards { grid-template-columns: 1fr; }
  .sheet__panel { width: 100%; }
  /* Fiche plein écran : bouton de fermeture TOUJOURS visible (fixe, ne défile pas
     avec le contenu), plus gros pour le pouce, sous l'encoche éventuelle. */
  .sheet__close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 12px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-md);
  }
  .sheet__close svg { width: 20px; height: 20px; }
}

/* Très petits écrans : compacte encore segments et puces */
@media (max-width: 380px) {
  .filters__toggles .seg__btn { font-size: .8rem; padding: 9px 2px; }
  .chip { padding: 7px 12px 7px 8px; font-size: .85rem; }
}
