/* ===========================================================
   Clicavis Hôtel V2 - style.css
   Mobile-first guest webapp · Bunny Fonts · max-width 480px
   =========================================================== */

@import url('https://fonts.bunny.net/css?family=fraunces:300,400,500,600&family=manrope:300,400,500,600,700&display=swap');

/* a11y : skip-link vers la zone app principale (cible #app).
   Cache hors viewport sauf au focus clavier. Charte ivoire/encre. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #1B1815;
  color: #F4EFE6;
  padding: 12px 20px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  font-family: inherit;
  transition: top .15s ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #c8a45a;
  outline-offset: 2px;
}

:root {
  --bg: #F7F1E8;
  --bg-soft: #FBF7F0;
  --bg-frame: #EFE5D2;
  --card: #FFFFFF;
  --ink: #1B1815;
  --ink-2: #2C2620;
  --ink-soft: #3A332C;
  --muted: #736857;       /* WCAG : passe de #8A7F73 (3.63:1) a 5.1:1 sur --bg-soft */
  --line: #E8DFD2;
  --accent: #B5895A;      /* a reserver aux icones / decorations non-textuelles */
  --accent-deep: #8E6839; /* 4.92:1 sur --bg-soft, OK pour texte AA */
  --accent-soft: #E7D9C3;
  --green: #5C7A4D;
  --red: #B5564A;
  --shadow: 0 2px 8px rgba(27,24,21,.06);
  --shadow-lg: 0 12px 32px rgba(27,24,21,.10);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-frame);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- App shell ---------- */
.app {
  background: var(--bg);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 88px;
  position: relative;
}

@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app {
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: calc(100vh - 48px);
  }
}

/* ---------- Icons ---------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }

/* ---------- Hero ---------- */
.hero {
  padding: 28px 20px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.hero-meta .room {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.hero-greet {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-greet strong { font-weight: 500; color: var(--accent-deep); font-style: italic; }
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Weather card ---------- */
.weather-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 14px;
}
.weather-icon-wrap {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.10);
  border-radius: 14px;
  color: #fff;
}
.weather-icon-wrap .icon { width: 32px; height: 32px; stroke-width: 1.75; }
.weather-info { flex: 1; }
.weather-temp {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.weather-desc { font-size: 13px; opacity: .82; margin-top: 3px; }
.weather-city {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78); /* sur fond weather-card sombre : contraste OK */
  text-align: right;
}

/* ---------- Suggestion ---------- */
.suggestion {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.suggestion .icon { color: var(--accent); margin-top: 1px; }
.suggestion em { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* ---------- Section title ---------- */
.section { padding: 22px 20px 0; }
.section-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-title small { font-family: var(--sans); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }

/* ---------- Quick actions ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  transition: transform .15s ease, background .2s ease;
}
.quick-btn:active { transform: scale(.96); background: var(--bg-soft); }
.quick-btn .icon { color: var(--accent); width: 24px; height: 24px; }

/* ---------- POI cards (horizontal scroll on home) ---------- */
.poi-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 20px 8px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.poi-scroll::-webkit-scrollbar { display: none; }
.poi-card-mini {
  min-width: 160px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poi-card-mini .poi-icon-wrap {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 10px;
  margin-bottom: 4px;
}
.poi-card-mini .poi-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.poi-card-mini .poi-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.poi-card-mini .poi-meta .icon { width: 12px; height: 12px; color: var(--accent); }

/* ---------- List items (sections L'hôtel) ---------- */
.list {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--bg-soft); }
.list-item-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 10px;
  flex-shrink: 0;
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.list-item-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.list-item-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.list-item-chev { color: var(--muted); flex-shrink: 0; }

/* ---------- Wi-Fi card ---------- */
.wifi-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.wifi-card .label { font-size: 11px; opacity: .65; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.wifi-card .value { font-family: var(--serif); font-weight: 500; font-size: 17px; word-break: break-all; line-height: 1.25; }
.wifi-card .pw-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  background: rgba(255,255,255,.06);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.wifi-card .pw-row .icon { color: var(--accent); }
.wifi-card .pw-row .pw-text { flex: 1; font-family: monospace; font-size: 14px; letter-spacing: .04em; }
.wifi-qr {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  width: 110px; height: 110px;
  display: grid; place-items: center;
}
.wifi-qr svg { width: 100%; height: 100%; }
.wifi-hint { font-size: 11px; color: var(--muted); margin-top: 10px; text-align: center; }
.wifi-open-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft, #FAF6EE); color: var(--muted, #736857); font-size: 11px; font-weight: 500; }
.wifi-card-text { display: block; }
.wifi-copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; background: var(--ink, #1B1815); color: #fff; border: none; border-radius: 6px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity .15s; }
.wifi-copy-btn:hover { opacity: .85; }
.wifi-copy-btn .icon { width: 14px; height: 14px; }
.list-item-phone { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft, #F0E8DA); color: var(--accent-deep, #8E6839); flex-shrink: 0; transition: background .15s, transform .12s; }
.list-item-phone:hover { background: var(--accent, #B5895A); color: #fff; }
.list-item-phone:active { transform: scale(.92); }
.list-item-phone .icon { width: 16px; height: 16px; }
.wifi-captive-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px; background: var(--accent, #B5895A); color: #fff; text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 600; transition: opacity .15s; }
.wifi-captive-btn:hover { opacity: .9; }
.wifi-captive-btn .icon { width: 16px; height: 16px; }
.wifi-instructions { margin-top: 12px; font-size: 13px; color: var(--ink, #1B1815); line-height: 1.5; padding: 10px 12px; background: var(--bg-soft, #FAF6EE); border-left: 3px solid var(--accent, #B5895A); border-radius: 0 6px 6px 0; white-space: pre-wrap; }

/* ---------- CTA primary ---------- */
.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  margin-top: 14px;
  transition: background .2s ease;
}
.cta-primary:active { background: var(--ink-soft); }
.cta-primary .icon { color: var(--accent); }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
}

/* ---------- Transports ---------- */
.transport-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.transport-item:last-child { border-bottom: none; }
.transport-item.is-main {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-deep);
  padding-left: 13px;
}
.line-badge {
  min-width: 42px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  letter-spacing: .02em;
  padding: 0 8px;
}
.transport-body { min-width: 0; }
.transport-station {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.transport-main-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.transport-main-badge .icon { width: 12px; height: 12px; }
.transport-direction { font-size: 11px; color: var(--muted); margin-top: 2px; }
.transport-times { display: flex; gap: 6px; margin-top: 6px; }
.time-pill {
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.time-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Around mode toggle (Autour de l'hotel / Autour de moi) ---------- */
.around-mode-toggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 12px;
  width: 100%;
}
.around-mode-toggle .mode-pill {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.around-mode-toggle .mode-pill .icon { width: 14px; height: 14px; color: var(--accent-deep); }
.around-mode-toggle .mode-pill:active:not(.disabled) { transform: scale(.98); }
.around-mode-toggle .mode-pill.active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.around-mode-toggle .mode-pill.active .icon { color: var(--accent); }
.around-mode-toggle .mode-pill.disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ---------- Skeleton (chargement Overpass) ---------- */
.poi-card-skeleton {
  pointer-events: none;
  cursor: default;
}
.poi-card-skeleton .poi-icon-wrap { background: transparent; }
.skeleton-bar {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--accent-soft) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
.skel-line { height: 12px; }
.skel-line-name { width: 55%; margin-bottom: 6px; }
.skel-line-meta { width: 35%; height: 10px; }
@keyframes skel-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.overpass-status {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0 12px;
  font-style: italic;
}
.overpass-error {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.overpass-error-text { font-size: 13px; color: var(--ink-soft); }
.overpass-empty {
  text-align: center;
  color: var(--muted);
  padding: 30px;
  font-size: 13px;
}

/* Toast actionnable (suggestion "far from hotel") */
.toast-action {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px);
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px 16px 14px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
}
.toast-action.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-action .toast-action-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 22px;
}
.toast-action .toast-action-row .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--green);
}
.toast-action span.toast-action-msg {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.toast-action button#toast-action-cta {
  align-self: stretch;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: auto;
}
.toast-action button#toast-action-cta:active { background: var(--accent-deep); }
.toast-action button.toast-action-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.toast-action button.toast-action-close:hover { color: #fff; }

/* ---------- POI filters ---------- */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 20px;
  margin: 0 -20px 12px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.filter-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
/* Variante "raccourci" : aspect identique au filter-chip normal (blanc,
   border claire, texte foncé). Au clic, classe .filter-chip-tapped
   l affiche brievement en noir pour confirmer l action, puis on rend
   la main au filtre POI actif. */
.filter-chip-shortcut .icon { width: 14px; height: 14px; }
.filter-chip-tapped {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}

/* ---------- Geo opt-in card ---------- */
.geo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.geo-card-head { display: flex; gap: 12px; align-items: flex-start; }
.geo-card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 10px;
  flex-shrink: 0;
}
.geo-card-body { flex: 1; min-width: 0; }
.geo-card-title { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.3; }
.geo-card-text { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.geo-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  width: 100%;
  transition: background .2s ease;
}
.geo-card-cta:active { background: var(--ink-soft); }
.geo-card-cta .icon { color: var(--accent); }
.geo-card-disclaimer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.geo-card-disclaimer .icon { color: var(--green); flex-shrink: 0; }
.geo-card-active {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border-color: var(--accent-soft);
}
.geo-card-active .geo-card-icon { background: var(--green); color: #fff; }
.geo-card-active .geo-card-disclaimer { margin-top: 2px; }
.geo-card-disable {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  flex-shrink: 0;
}
.geo-card-disable:active { background: var(--bg-soft); }

/* ---------- "Y aller" button ---------- */
.go-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}
.go-btn:active { background: var(--accent-soft); border-color: var(--accent); }
.go-btn .icon { color: var(--accent-deep); }
.go-btn-compact {
  padding: 8px;
  width: 36px; height: 36px;
  justify-content: center;
}
.go-btn-compact .icon { color: var(--accent-deep); width: 16px; height: 16px; }

/* ---------- Cards cliquables (POIs + transports) ---------- */
.poi-card[data-go-url],
.transport-item[data-go-url] {
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.poi-card[data-go-url]:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.poi-card[data-go-url]:active { transform: scale(.99); }
.transport-item[data-go-url]:hover { background: var(--bg-soft); }
.transport-item[data-go-url]:active { background: var(--accent-soft); }
.poi-card[data-go-url]:focus-visible,
.transport-item[data-go-url]:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}
.poi-card[data-go-url] .go-btn,
.transport-item[data-go-url] .go-btn { pointer-events: auto; }

/* ---------- Transport : affichage 2 directions (SIRI temps reel IDFM) ---------- */
.transport-distance {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.transport-directions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.transport-direction-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.transport-direction-row:first-child { border-top: 0; padding-top: 0; }
.transport-direction-row .td-arrow {
  color: var(--accent-deep);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 13px;
}
.transport-direction-row .td-dest {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transport-direction-row .td-times {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.transport-direction-row .td-times .time-pill {
  font-size: 11px;
  padding: 2px 8px;
}
.transport-direction-row .td-times .time-pill-empty {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-style: italic;
}
.transport-direction-row.is-empty .td-arrow,
.transport-direction-row.is-empty .td-dest { opacity: .75; }
@media (max-width: 420px) {
  .transport-direction-row { flex-wrap: wrap; }
  .transport-direction-row .td-times { width: 100%; padding-left: 22px; }
}

/* ---------- POI big cards ---------- */
.poi-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  align-items: center;
}
.poi-card .poi-icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.poi-card .poi-body { flex: 1; min-width: 0; }
.poi-card .poi-name { font-weight: 600; font-size: 14px; }
.poi-card .poi-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 3px;
  flex-wrap: wrap;
}
.poi-card .poi-meta .rating { color: var(--accent-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.poi-card .poi-meta .rating .icon { width: 12px; height: 12px; }
.poi-card .poi-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 999px;
}

/* ---------- Review card (more) ---------- */
.review-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.review-stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
  margin-bottom: 10px;
}
.review-stars .icon { width: 18px; height: 18px; }
.review-card h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.review-card p { font-size: 13px; opacity: .82; margin-bottom: 16px; }
.review-card .cta-primary {
  background: #fff;
  color: var(--ink);
  margin-top: 0;
}
.review-card .cta-primary .icon { color: var(--accent-deep); }

/* ---------- Preferences ---------- */
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.pref-row:last-child { border-bottom: none; }
.pref-label { font-weight: 500; font-size: 14px; }
.pref-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.lang-switch { display: flex; gap: 4px; background: var(--bg-soft); padding: 3px; border-radius: 999px; }
.lang-switch button {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-transform: uppercase;
}
.lang-switch button.active { background: var(--ink); color: #fff; }

.toggle {
  width: 46px; height: 26px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  transition: background .2s ease;
  cursor: pointer;
}
.toggle::after {
  content: ""; position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  transition: transform .2s ease;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(20px); }

/* ---------- Footer ---------- */
.powered-by {
  text-align: center;
  padding: 28px 20px 16px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}
.powered-by a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color .15s ease;
}
.powered-by a:hover { color: var(--accent-deep); }
.powered-by .bee-icon { width: 16px; height: 16px; color: var(--accent); }
.powered-by strong { color: var(--ink); font-weight: 600; }

/* ---------- Bottom tab bar ---------- */
.tab-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 520px) {
  .tab-bar { border-radius: 0 0 28px 28px; }
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .15s ease;
}
.tab .icon { color: var(--muted); transition: color .15s ease, transform .15s ease; }
.tab.active { color: var(--ink); }
.tab.active .icon { color: var(--accent-deep); transform: translateY(-1px); }

/* ---------- Views ---------- */
.view { display: none; animation: fadeIn .25s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.view-title-block { padding: 28px 20px 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.view-title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; }
.view-subtitle { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
  display: inline-flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .icon { color: var(--green); }

/* ---------- Standalone pages (mentions / privacy) ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  background: var(--bg);
  min-height: 100vh;
}
.legal h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 8px; }
.legal h2 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 28px 0 10px; color: var(--accent-deep); }
.legal p, .legal li { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--accent-deep); text-decoration: underline; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.legal .back:hover { color: var(--ink); }


/* ============================================================
   URGENCES & SECOURS - SECTION
   ============================================================ */
.section-urgences {
  margin-top: 20px;
}
.urgences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.urgence-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line, #E5DFD6);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink, #1B1815);
  transition: transform 0.1s, box-shadow 0.15s, border-color 0.15s;
}
.urgence-btn:active { transform: scale(0.98); }
.urgence-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.urgence-num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: serif;
  width: 56px;
  text-align: center;
  flex-shrink: 0;
}
.urgence-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft, #4A453F);
}
.urgence-samu     { border-left: 4px solid #DC2626; }
.urgence-samu     .urgence-num { color: #DC2626; }
.urgence-police   { border-left: 4px solid #1D4ED8; }
.urgence-police   .urgence-num { color: #1D4ED8; }
.urgence-pompiers { border-left: 4px solid #B91C1C; }
.urgence-pompiers .urgence-num { color: #B91C1C; }
.urgence-eu       { border-left: 4px solid #047857; }
.urgence-eu       .urgence-num { color: #047857; }
.urgences-hint {
  font-size: 12px;
  color: var(--muted, #8B847B);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ============================================================
   SECOURS - VIEW (5e onglet)
   Cartes numeros sobres, liseré ink uniquement sur 15 et 112.
   Pas de rouge, pas de pulsation, alignement charte hospitalité.
   ============================================================ */
.secours-num-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.secours-num-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s, box-shadow 0.15s;
}
.secours-num-card:active { transform: scale(0.98); }
.secours-num-card:hover { box-shadow: var(--shadow); }
.secours-num-card.is-critical {
  border-left: 3px solid var(--ink);
}
.secours-num-big {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.secours-num-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}

.secours-geo-invite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.secours-geo-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
}
.secours-geo-icon svg { width: 18px; height: 18px; }
.secours-geo-body { flex: 1; min-width: 0; }
.secours-geo-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.secours-geo-text {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}
.secours-geo-cta {
  flex-shrink: 0;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.secours-geo-cta:active { transform: scale(0.96); }

/* Hospitals-block au sein de Secours : pas de border-top dashed (la section a deja son propre titre) */
#view-secours .hospitals-block {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}

/* Boutons d'appel CTA (Section A et B de Secours)
   Cartes filled, look bouton evident, ambiance feutree (ink avec touches sable). */

/* ----- Section A : grille 2x2 numeros nationaux, cartes filled ink ----- */
.secours-num-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.secours-num-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 12px;
  padding: 14px 14px 12px;
  background: var(--ink);
  color: var(--bg-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(27,24,21,0.15);
  transition: transform 0.1s, box-shadow 0.15s;
  overflow: hidden;
}
.secours-num-cta:active { transform: scale(0.97); }
.secours-num-cta:hover { box-shadow: 0 6px 18px rgba(27,24,21,0.22); }
.secours-num-cta.is-critical {
  background: var(--accent-deep);
  color: #fff;
}
.secours-num-cta-phone {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.secours-num-cta-phone .icon { color: var(--accent); width: 18px; height: 18px; }
.secours-num-cta.is-critical .secours-num-cta-phone .icon { color: #fff; }
.secours-num-cta-num {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: inherit;
}
.secours-num-cta-label {
  grid-column: 2;
  grid-row: 2;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}
.secours-num-cta-action {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--accent);
}
.secours-num-cta.is-critical .secours-num-cta-action {
  color: #fff;
  border-top-color: rgba(255,255,255,0.25);
}

/* ----- Section B : CTA full-width ink pour numeros hotel ----- */
.secours-hotel-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--bg-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(27,24,21,0.15);
  transition: transform 0.1s, box-shadow 0.15s;
}
.secours-hotel-cta:active { transform: scale(0.99); }
.secours-hotel-cta:hover { box-shadow: 0 6px 18px rgba(27,24,21,0.22); }
.secours-hotel-cta-phone {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.secours-hotel-cta-phone .icon { color: var(--accent); width: 20px; height: 20px; }
.secours-hotel-cta-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.secours-hotel-cta-title {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}
.secours-hotel-cta-sub {
  font-size: 12px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* Entree Secours dans la vue Plus : carte feature marquee
   Liseré accent gold, icone large, ombre legere, sans rouge ni effet d'alarme. */
.secours-feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.1s, box-shadow 0.15s;
}
.secours-feature-card:active { transform: scale(0.99); }
.secours-feature-card:hover { box-shadow: 0 16px 40px rgba(27,24,21,.14); }
.secours-feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.secours-feature-icon .icon { width: 30px; height: 30px; }
.secours-feature-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.secours-feature-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.secours-feature-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.secours-feature-chev {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.secours-feature-chev .icon { width: 18px; height: 18px; }

/* Mise en valeur visuelle quand on arrive sur une section via lien rapide.
   Espace en haut pour que la section ne se colle pas au bord du viewport
   apres scrollIntoView, sinon l utilisateur a l impression d etre dans la
   section suivante. */
#section-transports,
#section-urgences {
  scroll-margin-top: 20px;
}
.section-flash {
  animation: section-flash-anim 1.8s ease;
  border-radius: 14px;
}
@keyframes section-flash-anim {
  0%   { background: rgba(200, 164, 90, 0);    box-shadow: 0 0 0 0 rgba(200, 164, 90, 0); }
  15%  { background: rgba(200, 164, 90, 0.22); box-shadow: 0 0 0 4px rgba(200, 164, 90, 0.20); }
  100% { background: rgba(200, 164, 90, 0);    box-shadow: 0 0 0 0 rgba(200, 164, 90, 0); }
}


/* ============================================================
   HÔPITAUX - LISTE AVEC BOUTONS D'APPEL
   ============================================================ */
.hospitals-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line, #E5DFD6);
}
.hospitals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.hospitals-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #1B1815);
  margin: 0;
}
.hospitals-toggle {
  display: inline-flex;
  background: var(--bg-soft, #F2EEE8);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.hosp-pill {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft, #4A453F);
  cursor: pointer;
  transition: all 0.2s;
}
.hosp-pill.active {
  background: #fff;
  color: var(--ink, #1B1815);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.hosp-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hospitals-loading,
.hospitals-empty,
.hospitals-error {
  text-align: center;
  padding: 18px 12px;
  color: var(--muted, #8B847B);
  font-size: 13px;
}
.hospitals-error { color: #B91C1C; }

.hospital-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line, #E5DFD6);
  border-radius: 12px;
  margin-bottom: 8px;
}
.hospital-info { flex: 1; min-width: 0; }
.hospital-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #1B1815);
  margin-bottom: 2px;
  word-wrap: break-word;
  line-height: 1.3;
}
/* Mobile : stack vertical pour ne pas tronquer le nom */
@media (max-width: 520px) {
  .hospital-card { flex-direction: column; align-items: stretch; gap: 8px; }
  .hospital-actions { justify-content: flex-end; }
}
.hospital-meta {
  font-size: 12px;
  color: var(--muted, #8B847B);
}
.hospital-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.hospital-call,
.hospital-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.hospital-call {
  background: #DC2626;
  color: #fff;
}
.hospital-call:hover { background: #B91C1C; }
.hospital-call svg { width: 14px; height: 14px; }
.hospital-go {
  background: var(--bg-soft, #F2EEE8);
  color: var(--ink, #1B1815);
}
.hospital-go:hover { background: #E5DFD6; }
.hospital-go svg { width: 14px; height: 14px; }
.hospital-no-phone {
  font-size: 11px;
  color: var(--muted, #8B847B);
  font-style: italic;
}
