/* =========================================================
   Guide Alicante
   Design system méditerranéen · mobile-first · dark mode
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f2ea;            /* sable clair */
  --surface: #ffffff;
  --surface-2: #fdfaf5;
  --ink: #14293d;           /* encre marine */
  --ink-soft: #5c6d7d;
  --primary: #0b3954;       /* bleu profond */
  --primary-ink: #ffffff;
  --accent: #0fa3b1;        /* turquoise */
  --coral: #e76f51;         /* terracotta */
  --sun: #f2b234;           /* soleil */
  --line: rgba(20, 41, 61, .10);
  --shadow: 0 4px 20px rgba(20, 41, 61, .10);
  --shadow-lg: 0 12px 40px rgba(20, 41, 61, .18);
  --radius: 18px;
  --header-h: 58px;
  --nav-h: calc(62px + env(safe-area-inset-bottom, 0px));
  --font-display: ui-serif, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0e1621;
  --surface: #17222f;
  --surface-2: #1c2938;
  --ink: #ecf2f8;
  --ink-soft: #9db0c2;
  --primary: #123a55;
  --line: rgba(236, 242, 248, .10);
  --shadow: 0 4px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--nav-h);
  min-height: 100vh;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px calc(0px) 16px;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  margin-right: auto; white-space: nowrap;
}
.header .logo .logo-ico { font-size: 22px; }
.lang-switch { display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang {
  font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 99px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.lang.active { background: var(--primary); color: #fff; }
:root[data-theme="dark"] .lang.active { background: var(--accent); color: #06222a; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 99px; font-size: 17px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s;
}
.icon-btn:active { transform: scale(.9); }

/* ---------- Layout ---------- */
#view, #map-wrap { max-width: 680px; margin: 0 auto; }
#view { padding: 14px 16px 28px; }
.fade-in { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding: 18px 2px 6px; }
.hero-brand { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.hero-brand strong { color: var(--coral); }
.hero h1 {
  font-size: clamp(42px, 12vw, 64px); line-height: 1;
  background: linear-gradient(100deg, var(--primary) 20%, var(--accent) 60%, var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
:root[data-theme="dark"] .hero h1 {
  background: linear-gradient(100deg, #9fd8e8 10%, var(--accent) 50%, var(--sun));
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub { color: var(--ink-soft); font-size: 15px; margin: 8px 0 12px; max-width: 46ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; font-weight: 600; }
.hero-badges span { background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: all .2s;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow); }
:root[data-theme="dark"] .chip.active { background: var(--accent); border-color: var(--accent); color: #06222a; }
.chip:active { transform: scale(.95); }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.card:active { transform: scale(.98); }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.card-media { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--accent), var(--primary)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.noimg img { display: none; }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 25, 40, .55));
  pointer-events: none;
}
.card-emoji {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 54px; opacity: 0; pointer-events: none; text-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.card-emoji.big { font-size: 74px; opacity: 1; }
.noimg .card-emoji { opacity: 1; }
.card-cat {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(10, 25, 40, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 99px;
}
.card-body { padding: 13px 15px 15px; }
.card-body h3 { font-size: 18.5px; margin-bottom: 5px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Bouton favori ---------- */
.fav-btn {
  position: absolute; z-index: 3; width: 36px; height: 36px; border-radius: 99px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .15s;
}
.fav-btn.on-media { top: 10px; right: 10px; }
.fav-btn.on-side { position: static; flex: 0 0 auto; align-self: center; margin-right: 12px; }
.fav-btn svg { fill: none; stroke: #d04f37; stroke-width: 2; transition: fill .2s, transform .2s; }
.fav-btn.is-fav svg { fill: #e0492d; stroke: #e0492d; animation: pop .3s ease; }
.fav-btn:active { transform: scale(.85); }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- Sections / titres ---------- */
.page-head { padding: 18px 2px 12px; }
.page-head h1 { font-size: clamp(28px, 7vw, 36px); margin-bottom: 6px; }
.page-head p { color: var(--ink-soft); font-size: 14.5px; max-width: 52ch; }
.section-title { font-size: 21px; margin: 24px 2px 12px; }
.btn-back { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14.5px;
  transition: transform .15s, filter .2s; text-align: center;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: linear-gradient(120deg, var(--accent), #0b8994); color: #fff; box-shadow: var(--shadow); }
.btn--sun { background: linear-gradient(120deg, var(--sun), var(--coral)); color: #3a1c07; box-shadow: var(--shadow); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.linklike { text-decoration: underline; color: var(--ink-soft); font-size: inherit; }

/* ---------- Parcours ---------- */
.routes { display: grid; gap: 14px; }
.route-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s;
}
.route-card:active { transform: scale(.98); }
.route-icon {
  flex: 0 0 52px; height: 52px; border-radius: 16px; font-size: 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--sun) 22%, var(--surface)));
}
.route-body { min-width: 0; }
.route-body h3 { font-size: 17.5px; margin-bottom: 3px; }
.route-meta { font-size: 12.5px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.route-desc { font-size: 13.5px; color: var(--ink-soft); }
.route-arrow { margin-left: auto; font-size: 26px; color: var(--ink-soft); flex: 0 0 auto; }

/* ---------- Étapes de parcours ---------- */
.steps { list-style: none; display: grid; gap: 12px; }
.step {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px 10px 10px; box-shadow: var(--shadow); cursor: pointer;
}
.step img { width: 76px; height: 58px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.step-num {
  flex: 0 0 26px; height: 26px; border-radius: 99px; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; background: var(--coral); color: #fff;
}
.step h3 { font-size: 15.5px; }
.step p { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Sortir (venues) ---------- */
.venues { display: grid; gap: 12px; }
.card--venue { display: flex; align-items: stretch; }
.venue-icon {
  flex: 0 0 64px; font-size: 30px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--coral) 16%, var(--surface)), color-mix(in srgb, var(--accent) 14%, var(--surface)));
}
.card--venue .card-body { flex: 1; min-width: 0; padding: 12px 8px 12px 14px; }
.card--venue h3 { font-size: 16.5px; }
.venue-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, transparent);
  padding: 3px 8px; border-radius: 99px; margin-bottom: 5px;
}

/* ---------- CTA réservation ---------- */
.book-cta {
  margin-top: 28px; padding: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: linear-gradient(120deg, var(--primary), #0d5068);
  border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-lg);
}
.book-emoji { font-size: 38px; }
.book-cta h3 { font-size: 18px; }
.book-cta p { font-size: 13px; opacity: .85; }
.book-cta .btn { margin-left: auto; }
.footer { text-align: center; padding: 22px 0 8px; font-size: 12.5px; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 8px; }
.footer-links a, .footer-links button { color: var(--ink-soft); font-size: 12.5px; text-decoration: underline; }
.footer-note { font-size: 11.5px; opacity: .8; max-width: 40ch; margin: 6px auto 0; }

/* =========================================================
   Monétisation — emplacements publicitaires
   ========================================================= */
.ad-zone {
  margin: 22px 0;
  min-height: 120px;              /* réserve la place : évite le décalage (CLS) */
  display: flex; flex-direction: column; gap: 4px;
}
.ad-zone .adsbygoogle { width: 100%; }
.ad-label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); opacity: .65; text-align: center;
}
/* Emplacement non encore configuré : visible seulement avec ?ads=preview */
.ad-fake {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 110px; padding: 16px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent, transparent 10px,
              color-mix(in srgb, var(--ink) 4%, transparent) 10px,
              color-mix(in srgb, var(--ink) 4%, transparent) 20px);
  color: var(--ink-soft); font-size: 12.5px;
}
.ad-fake strong { font-size: 14px; color: var(--ink); }
.ad-zone--feed { margin: 4px 0; grid-column: 1 / -1; }

/* =========================================================
   Monétisation — blocs partenaires (affiliation)
   ========================================================= */
.aff-block { margin: 26px 0 8px; }
.aff-block--sheet { margin: 22px 0 0; }
.aff-title { font-size: 19px; margin-bottom: 10px; }
.aff-block--sheet .aff-title { font-size: 16.5px; }
.aff-disclosure { font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 10px; }

.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.aff-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); transition: transform .15s, box-shadow .2s;
}
.aff-card:active { transform: scale(.98); }
.aff-card-ico { font-size: 26px; line-height: 1; }
.aff-card strong { font-size: 15px; }
.aff-card small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }

.aff-rows { display: grid; gap: 8px; }
.aff-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  transition: transform .15s;
}
.aff-row:active { transform: scale(.98); }
.aff-row-ico { font-size: 24px; line-height: 1; }
.aff-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aff-row-txt strong { font-size: 14.5px; }
.aff-row-txt small { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.aff-row-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 99px;
  padding: 3px 7px; white-space: nowrap;
}
.aff-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: 14.5px;
  background: linear-gradient(120deg, var(--sun), var(--coral)); color: #3a1c07;
  box-shadow: var(--shadow);
}

/* =========================================================
   Offre du guide PDF (produit payant)
   ========================================================= */
.pdf-offer {
  margin: 26px 0; padding: 22px 20px; border-radius: var(--radius);
  background: linear-gradient(145deg, #0b3954, #0d5068);
  color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.pdf-offer::after {
  content: "📕"; position: absolute; right: -12px; bottom: -18px;
  font-size: 110px; opacity: .12; pointer-events: none;
}
.pdf-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; background: var(--sun); color: #3a1c07;
  padding: 4px 11px; border-radius: 99px; margin-bottom: 10px;
}
.pdf-offer h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.pdf-offer p { color: rgba(255,255,255,.86); font-size: 14.5px; line-height: 1.6; }
.pdf-bullets { list-style: none; margin: 12px 0 16px; display: grid; gap: 6px; }
.pdf-bullets li {
  font-size: 14px; color: rgba(255,255,255,.92); padding-left: 22px; position: relative;
}
.pdf-bullets li::before {
  content: "✓"; position: absolute; left: 0; color: var(--sun); font-weight: 800;
}
.pdf-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 99px; font-weight: 800; font-size: 15.5px;
  background: linear-gradient(120deg, var(--sun), var(--coral));
  color: #3a1c07; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  text-decoration: none !important; transition: transform .15s;
}
.pdf-cta:active { transform: scale(.97); }
.pdf-note { font-size: 11.5px !important; opacity: .7; margin-top: 9px; }

/* =========================================================
   Bandeau de consentement (RGPD)
   ========================================================= */
.consent {
  position: fixed; z-index: 1200;
  left: 10px; right: 10px; bottom: calc(var(--nav-h) + 10px);
  padding: 15px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.consent.show { transform: translateY(0); opacity: 1; }
.consent p { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 12px; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; justify-content: center; padding: 10px 14px; font-size: 14px; }
@media (min-width: 640px) {
  .consent { left: auto; right: 16px; max-width: 420px; }
}

/* =========================================================
   Pages légales (about / contact / mentions / confidentialité)
   ========================================================= */
body.legal { padding-bottom: 40px; }
.legal-main { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.legal-main h1 { font-size: clamp(26px, 6.5vw, 34px); margin: 14px 0 10px; }
.legal-main h2 { font-size: 19px; margin: 26px 0 8px; }
.legal-main p, .legal-main li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.legal-main p + p { margin-top: 10px; }
.legal-main ul { margin: 8px 0 0 20px; }
.legal-main a { text-decoration: underline; }
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); padding: 12px 0 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: underline; }
.legal-lang { display: flex; gap: 6px; margin: 14px 0 4px; }
.legal-lang button {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
}
.legal-lang button.active { background: var(--primary); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .legal-lang button.active { background: var(--accent); color: #06222a; }
/* =========================================================
   Pages statiques de contenu (lieux / parcours / guides)
   ========================================================= */
body.doc { padding-bottom: 0; }
.doc-nav { display: flex; gap: 14px; margin-left: auto; }
.doc-nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.doc-nav a:hover { color: var(--accent); }
.doc-main { max-width: 760px; margin: 0 auto; padding: 0 16px 44px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .5; }

.article h1 { font-size: clamp(27px, 6.2vw, 38px); line-height: 1.15; margin: 12px 0 12px; }
.article h2 { font-size: clamp(20px, 4.4vw, 24px); margin: 32px 0 10px; }
.article h3 { font-size: 17px; margin-bottom: 4px; }
.article p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.article p + p { margin-top: 12px; }
.article strong { color: var(--ink); }
.article .lead { font-size: 17.5px; line-height: 1.6; color: var(--ink); margin-bottom: 20px; }
.article a { text-decoration: underline; }
/* …sauf les composants qui sont déjà des blocs cliquables */
.article .aff-row, .article .aff-card, .article .aff-btn, .article .btn,
.article .linklist a, .article .doc-card, .article .step-card a { text-decoration: none; }
.place-desc { border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 18px; font-style: italic; }

.article-media { margin: 18px 0 24px; }
.article-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-media figcaption { font-size: 11.5px; color: var(--ink-soft); opacity: .85; margin-top: 6px; text-align: center; }
.article-media figcaption a { color: inherit; }

/* Encadré « En bref » */
.infobox {
  margin: 22px 0; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.infobox h2 { font-size: 16px; margin: 0 0 10px; }
.infobox dl { display: grid; gap: 8px; margin-bottom: 14px; }
.infobox dl > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.infobox dt { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); min-width: 150px; }
.infobox dd { font-size: 15px; font-weight: 600; }
.infobox .btn { width: 100%; justify-content: center; }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px;
}
.faq-item summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: " +"; color: var(--accent); font-weight: 800; }
.faq-item[open] summary::after { content: " –"; }
.faq-item p { margin-top: 8px; font-size: 14.5px; }

/* Listes de liens (à proximité, autres parcours…) */
.linklist { list-style: none; display: grid; gap: 8px; }
.linklist a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px;
}
.linklist small { margin-left: auto; color: var(--ink-soft); font-weight: 600; font-size: 12.5px; }

/* Étapes d'un parcours */
.steps-list { list-style: none; display: grid; gap: 12px; counter-reset: step; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.step-card > a { display: flex; gap: 13px; padding: 12px; text-decoration: none; color: var(--ink); }
.step-card img { width: 96px; height: 74px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.step-card h3 { font-size: 16.5px; }
.step-card p { font-size: 13px; margin: 0; }
.step-desc { margin-top: 4px !important; }
.step-next { font-size: 12.5px; color: var(--ink-soft); padding: 0 14px 10px; font-weight: 600; }

/* Grille de cartes des pages d'index */
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 22px 0; }
@media (min-width: 620px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
.doc-card {
  display: block; text-decoration: none; color: var(--ink); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) { .doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.doc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.doc-card-body { padding: 13px 15px 16px; }
.doc-card-body h2 { font-size: 18px; margin: 4px 0 6px; }
.doc-card-body p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.doc-card-tag { font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.doc-card-meta { margin-top: 8px; font-weight: 600; font-size: 12.5px; }

/* Appel vers l'application */
.cta-app {
  margin: 30px 0 10px; padding: 20px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(140deg, var(--primary), #0d5068); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-app h2 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.cta-app p { color: rgba(255,255,255,.85); font-size: 14.5px; margin-bottom: 14px; }
.cta-app .btn--primary { background: #fff; color: var(--primary); }

.site-footer { border-top: 1px solid var(--line); padding: 20px 16px 28px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 10px; }
.site-footer a, .site-footer button { font-size: 12.5px; color: var(--ink-soft); text-decoration: underline; }
.site-footer p { font-size: 11.5px; color: var(--ink-soft); opacity: .8; }
.site-footer .nd-credit { font-size: 12.5px; opacity: 1; margin-bottom: 4px; }
.site-footer .nd-credit strong { color: var(--ink); font-weight: 700; }
.site-footer .nd-credit em { color: var(--coral); font-style: normal; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 56px 24px; }
.empty-icon { font-size: 56px; display: block; margin-bottom: 14px; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-soft); font-size: 14px; max-width: 34ch; margin: 0 auto; }

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: flex; justify-content: space-around;
  height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; color: var(--ink-soft);
  transition: color .2s, transform .15s;
}
.nav-btn .nav-ico { font-size: 21px; line-height: 1; position: relative; transition: transform .2s; }
.nav-btn.active { color: var(--coral); }
.nav-btn.active .nav-ico { transform: translateY(-2px) scale(1.12); }
.nav-btn:active { transform: scale(.92); }
.badge {
  position: absolute; top: -4px; right: -10px;
  background: var(--coral); color: #fff; font-size: 9.5px; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 99px; display: grid; place-items: center; padding: 0 3px;
}

/* ---------- Carte ---------- */
#map-wrap { position: relative; }
#map-el {
  height: calc(100vh - var(--header-h) - var(--nav-h) - env(safe-area-inset-top, 0px));
  height: calc(100dvh - var(--header-h) - var(--nav-h));
  background: var(--surface-2);
}
#map-chips {
  position: absolute; z-index: 800; top: 10px; left: 0; right: 0;
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px;
  scrollbar-width: none;
}
#map-chips::-webkit-scrollbar { display: none; }
#map-chips .chip { box-shadow: var(--shadow); }
#btn-locate {
  position: absolute; z-index: 800; bottom: 108px; right: 12px;
  width: 46px; height: 46px; border-radius: 99px; font-size: 20px;
  background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.pin-wrap { background: none; border: 0; }
.pin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--accent); box-shadow: 0 3px 10px rgba(0,0,0,.3);
  display: grid; place-items: center; border: 2.5px solid #fff;
}
.pin span { transform: rotate(45deg); font-size: 17px; }
.pin--monument { background: #c65b3f; }
.pin--museum { background: #7c5cbf; }
.pin--beach { background: #0fa3b1; }
.pin--district { background: #2a9d8f; }
.pin--out { background: #f2a134; }
.pin--me { background: #2f6fed; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,111,237,.45); } 50% { box-shadow: 0 0 0 14px rgba(47,111,237,0); } }
.leaflet-popup-content-wrapper { border-radius: 14px; font-family: var(--font-body); }
.pop strong { font-size: 14px; }
.pop-actions { display: flex; gap: 12px; margin-top: 7px; font-weight: 700; font-size: 13px; }

/* ---------- Fiche lieu (sheet) ---------- */
#sheet {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 18, 28, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s;
}
#sheet.open { opacity: 1; }
#sheet-content {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 680px; margin: 0 auto;
  max-height: calc(100% - 40px - env(safe-area-inset-top, 0px));
  background: var(--bg); border-radius: 24px 24px 0 0; overflow-y: auto;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,.34,1);
  overscroll-behavior: contain;
}
#sheet.open #sheet-content { transform: none; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 99px; font-size: 15px;
  background: rgba(10, 25, 40, .5); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sheet-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--accent), var(--primary)); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media.noimg img { display: none; }
.sheet-body { padding: 18px 20px calc(26px + env(safe-area-inset-bottom, 0px)); }
.sheet-body h2 { font-size: 26px; margin: 8px 0 6px; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.sheet-desc { font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* ---------- Modal / partage ---------- */
#modal {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: end center;
  background: rgba(8, 18, 28, .5); opacity: 0; transition: opacity .2s;
}
#modal.open { opacity: 1; }
#modal-content { width: 100%; max-width: 480px; }
.share-menu {
  background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 10px;
  transform: translateY(24px); transition: transform .25s;
}
#modal.open .share-menu { transform: none; }
.share-menu h3 { font-size: 18px; margin-bottom: 4px; }
.share-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; font-weight: 700; font-size: 15px; color: var(--ink); text-align: left;
}
.share-row:active { transform: scale(.97); }
.credits { list-style: none; display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-soft); max-height: 50vh; overflow-y: auto; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); z-index: 1200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 99px; box-shadow: var(--shadow-lg);
  transition: all .3s; max-width: calc(100vw - 40px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Signature & page À propos NovaDigital (charte --nd-*) ---------- */
.nd-sign {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 6px; text-decoration: none;
}
.nd-word { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.nd-word em { font-style: normal; color: #D97706; }
.nd-card {
  --nd-primary: #2563EB; --nd-primary-dark: #1D4ED8; --nd-primary-light: #EFF6FF;
  --nd-text: #0F172A; --nd-text-secondary: #475569; --nd-border: #E2E8F0;
  --nd-accent: #D97706; --nd-accent-light: #FFFBEB;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #FFFFFF; color: var(--nd-text);
  border: 1px solid var(--nd-border); border-radius: 0.75rem;
  padding: 1.5rem; margin: 0 2px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  display: grid; gap: 1rem; justify-items: start;
}
.nd-card h1 { font-family: inherit; font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.nd-card p { font-size: 1rem; line-height: 1.6; color: var(--nd-text-secondary); }
.nd-logo { width: 240px; max-width: 80%; height: auto; }
.nd-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem; background: var(--nd-accent-light); color: var(--nd-accent);
  border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.025em; text-transform: uppercase;
}
.nd-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; background: var(--nd-primary); color: #fff;
  border-radius: 0.5rem; font-weight: 600; font-size: 1rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nd-btn:hover { background: var(--nd-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06); }
.nd-qr { display: grid; gap: 0.5rem; justify-items: center; margin: 0 auto; text-align: center; }
.nd-qr img { width: 180px; height: 180px; border: 1px solid var(--nd-border); border-radius: 0.75rem; padding: 8px; background: #fff; }
.nd-qr figcaption { font-size: 0.875rem; color: var(--nd-text-secondary); }
.nd-contact { font-size: 0.875rem; }
.nd-contact a { color: var(--nd-primary); font-weight: 600; }

/* L'attribut hidden doit toujours gagner sur les display du design */
[hidden] { display: none !important; }

/* ---------- Accessibilité / divers ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
