/* ==========================================================
   Chì Femu? — feuille de style
   Palette : papier #fbfbfd · encre #0f1a2b · mer #1f6feb · sable #f1ebdf · maquis #2f6b4f
   Typo : Bricolage Grotesque (titres) + Inter (texte)
   ========================================================== */

:root {
  --paper: #fbfbfd;
  --white: #ffffff;
  --ink: #0f1a2b;
  --ink-2: #3d4757;
  --mute: #6f7a8a;
  --line: rgba(15, 26, 43, .08);
  --line-2: rgba(15, 26, 43, .14);
  --sea: #1f6feb;
  --sea-deep: #1553b8;
  --sea-soft: #e8f0fe;
  --sand: #f1ebdf;
  --sand-deep: #6b5a3a;
  --maquis: #2f6b4f;
  --maquis-soft: #e7f1ea;
  --teal: #0f8b8d;
  --heart: #e11d48;
  --pad: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --hh: calc(60px + var(--safe-top));
  --tabh: calc(64px + var(--safe-bottom));
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --shadow-s: 0 1px 2px rgba(15, 26, 43, .06), 0 4px 14px -6px rgba(15, 26, 43, .14);
  --shadow-m: 0 2px 6px rgba(15, 26, 43, .06), 0 18px 40px -18px rgba(15, 26, 43, .28);
}
@media (min-width: 900px) { :root { --pad: 40px; --hh: calc(68px + var(--safe-top)); --tabh: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hh); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--tabh);
}
body.noscroll, body.on-map { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 300; }
.skip:focus { left: 8px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top);
  background: rgba(251, 251, 253, .82);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: background .35s, border-color .35s, color .35s;
}
.bar { height: calc(var(--hh) - var(--safe-top)); display: flex; align-items: center; gap: 28px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.035em; line-height: 1; }
.logo span { color: var(--sea); transition: color .35s; }
.topnav { display: none; gap: 2px; flex: 1; }
.topnav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.topnav a:hover { background: rgba(15, 26, 43, .05); color: var(--ink); }
.topnav a.on { color: var(--ink); background: rgba(15, 26, 43, .07); }
.me {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; background: var(--sea-soft); color: var(--sea-deep); transition: background .3s, color .3s;
}
.me .ico { width: 20px; height: 20px; }
@media (min-width: 900px) { .topnav { display: flex; } .me { margin-left: 0; } }

/* Barre transparente au-dessus de l'image d'accueil */
.topbar.over { background: transparent; border-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar.over .logo span { color: #a9c8ff; }
.topbar.over .topnav a { color: rgba(255, 255, 255, .86); }
.topbar.over .topnav a:hover, .topbar.over .topnav a.on { background: rgba(255, 255, 255, .16); color: #fff; }
.topbar.over .me { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Barre du bas (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--tabh);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px var(--safe-bottom);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--mute); letter-spacing: -.01em; }
.tabbar a .ico { width: 24px; height: 24px; transition: transform .25s var(--ease); }
.tabbar a.on { color: var(--sea); }
.tabbar a.on .ico { transform: translateY(-1px) scale(1.06); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; font-weight: 600; font-size: 15.5px; white-space: nowrap;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #1c2b44; }
.btn.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.light:hover { box-shadow: inset 0 0 0 1px rgba(15, 26, 43, .3); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-icon { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 0; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .15s; }
.btn-icon:active { transform: scale(.94); }
.btn-icon .ico { width: 22px; height: 22px; }
.btn-icon.on { color: var(--heart); }
[data-fav].on .ico { fill: currentColor; }
[data-fav].pop .ico { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.link { color: var(--sea); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; }
.link:hover { color: var(--sea-deep); }

/* ==========================================================
   Accueil
   ========================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin-top: calc(var(--hh) * -1); padding-top: var(--hh);
  min-height: 100vh; min-height: 100svh; border-radius: 0 0 32px 32px; background: #0b3a5a;
}
@media (min-width: 900px) { .hero { min-height: min(94vh, 900px); border-radius: 0 0 44px 44px; } }
.hero-bg {
  position: absolute; inset: -2%; z-index: -2;
  background: url("images/hero.jpg") center / cover no-repeat,
              radial-gradient(120% 80% at 75% 20%, #4f9cc0 0%, rgba(79, 156, 192, 0) 60%),
              linear-gradient(160deg, #0b3a5a 0%, #145d82 42%, #3c8fb0 70%, #d9cba9 100%);
  transform-origin: 60% 40%;
  animation: heroIn 2.8s var(--ease) both, heroDrift 30s 2.8s ease-in-out infinite alternate;
}
@media (max-width: 899px) { .hero-bg { background-position: 76% 50%, 0 0, 0 0; } }
@keyframes heroIn { from { transform: scale(1.16); filter: saturate(.6) brightness(.85); } to { transform: scale(1.03); filter: none; } }
@keyframes heroDrift { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.6%, -1.2%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 16, 30, .55) 0%, rgba(5, 16, 30, .12) 36%, rgba(5, 16, 30, .18) 62%, rgba(5, 16, 30, .62) 100%); }
.hero-in { position: relative; min-height: calc(100vh - var(--hh)); min-height: calc(100svh - var(--hh)); display: flex; flex-direction: column; justify-content: space-between; gap: 34px; padding-top: 28px; padding-bottom: 26px; }
@media (min-width: 900px) {
  .hero-in { min-height: calc(min(94vh, 900px) - var(--hh)); flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 40px; padding-bottom: 56px; gap: 48px; }
}
.hero-main { max-width: 760px; }
.hero-kicker { font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .7; }
.hero-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .94;
  font-size: clamp(50px, 11.5vw, 112px); margin-top: 18px; text-shadow: 0 2px 40px rgba(0, 0, 0, .2);
}
.hero-title .ln { display: block; overflow: hidden; padding: 0 .04em .07em 0; margin-bottom: -.07em; }
.hero-title .ln > span { display: inline-block; transform: translateY(108%); animation: lineUp 1s var(--ease) forwards; }
.hero-title .ln:nth-child(1) > span { animation-delay: .35s; }
.hero-title .ln:nth-child(2) > span { animation-delay: .5s; }
.hero-title .ln:nth-child(3) > span { animation-delay: .65s; }
@keyframes lineUp { to { transform: none; } }
.hero-sub { margin-top: 20px; max-width: 34ch; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.5; color: rgba(255, 255, 255, .9); }
.rise { opacity: 0; animation: rise .9s var(--ease) forwards; }
.d1 { animation-delay: .15s; } .d3 { animation-delay: .95s; } .d4 { animation-delay: 1.1s; } .d5 { animation-delay: 1.35s; } .d6 { animation-delay: 1.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.search { position: relative; z-index: 5; max-width: 540px; margin-top: 28px; }
.search > .ico { position: absolute; left: 19px; top: 19px; width: 20px; height: 20px; color: var(--mute); pointer-events: none; }
.search input {
  width: 100%; height: 58px; padding: 0 20px 0 50px; border: 0; border-radius: 999px; font: inherit; font-size: 16px;
  color: var(--ink); background: #fff; box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .5);
}
.search input::placeholder { color: var(--mute); }
.search input:focus-visible { outline: 3px solid rgba(169, 200, 255, .9); outline-offset: 3px; }
.search-res { position: absolute; left: 0; right: 0; top: calc(100% + 10px); background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .5); max-height: 340px; overflow: auto; padding: 6px; }
.sr-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 14px; }
.sr-item:hover, .sr-item:focus-visible { background: var(--sea-soft); }
.sr-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--sand-deep); flex: none; }
.sr-item b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.sr-item small { color: var(--mute); font-size: 13px; }
.sr-empty { padding: 14px 16px; color: var(--mute); font-size: 14.5px; }

.feat {
  position: relative; z-index: 1; width: 100%; max-width: 400px; cursor: pointer; color: var(--ink);
  padding: 20px 22px 18px; border-radius: 26px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); transition: transform .3s var(--ease);
}
@media (hover: hover) { .feat:hover { transform: translateY(-3px); } }
.feat-label { font-size: 13px; font-weight: 600; color: var(--sea-deep); }
.feat h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.035em; line-height: 1.05; margin-top: 6px; }
.feat-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.feat-meta span { display: inline-flex; align-items: center; gap: 5px; }
.feat-meta .ico { color: var(--mute); }
.feat p { margin-top: 8px; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 600; color: var(--sea); font-size: 15px; }
.feat-go .ico { transition: transform .25s var(--ease); }
.feat:hover .feat-go .ico { transform: translateX(3px); }
.cue { display: none; }
@media (min-width: 900px) {
  .cue { display: block; position: absolute; left: 50%; bottom: 18px; width: 1.5px; height: 38px; background: rgba(255, 255, 255, .3); overflow: hidden; }
  .cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: cue 2.2s 2.4s ease-in-out infinite; }
}
@keyframes cue { to { top: 110%; } }

/* Accès rapide */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; } }
.tile { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-s); transition: transform .25s var(--ease), box-shadow .25s; }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); } }
.tile-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea-deep); }
.tile-ico .ico { width: 22px; height: 22px; }
.tile.t-h .tile-ico { background: #e9ebef; color: var(--ink); }
.tile.t-p .tile-ico { background: var(--maquis-soft); color: var(--maquis); }
.tile.t-m .tile-ico { background: var(--sand); color: var(--sand-deep); }
.tile b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.tile small { display: block; margin-top: 2px; color: var(--mute); font-size: 13.5px; }
.tile > .ico { position: absolute; right: 16px; top: 18px; color: var(--mute); }

/* Sections */
.sec { margin-top: 76px; }
@media (min-width: 900px) { .sec { margin-top: 112px; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sec-head h2, .h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -.04em; line-height: 1.04; }
.sec-head p { margin-top: 8px; color: var(--mute); font-size: 15.5px; max-width: 52ch; }
.sec-head .link { flex: none; font-size: 15px; padding-bottom: 4px; }

.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 8px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 min(280px, 76vw); scroll-snap-align: start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px 24px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; } .grid .card h3 { font-size: 16px; } .grid .card .meta { font-size: 13px; } }

/* ---------- Cartes (épurées) ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; cursor: pointer; border-radius: 20px; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .card:hover .card-media img, .card:hover .topo { transform: scale(1.05); } }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: #b8aa8b; background: linear-gradient(135deg, #f5efe3, #e8decb); }
.ph .ico { width: 32px; height: 32px; }
.fav {
  position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.fav.on { color: var(--heart); }
.fav .ico { width: 19px; height: 19px; }
.card-body { padding: 0 2px; display: flex; flex-direction: column; gap: 2px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 18.5px; letter-spacing: -.025em; line-height: 1.22; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mute); }
.card .meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta .ico { width: 14px; height: 14px; }
.card .meta b { font-weight: 600; color: var(--ink-2); flex: none; }
.kind { font-size: 12.5px; font-weight: 600; color: var(--maquis); }

/* Cartes de randonnée : courbes de niveau */
.topo-wrap { position: absolute; inset: 0; display: grid; place-items: center; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.topo-badge { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.topo-badge strong { font-family: var(--display); font-size: 22px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.diff { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.diff::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.diff-Facile { color: var(--maquis); } .diff-Moyenne { color: var(--sea-deep); } .diff-Difficile { color: var(--ink); }

/* ---------- Île animée (page d'accueil) ---------- */
.island { margin-top: 76px; background: var(--sand); padding: 64px 0 56px; border-radius: 36px; overflow: hidden; }
@media (min-width: 900px) { .island { margin: 112px var(--pad) 0; padding: 88px 0; border-radius: 44px; } }
.island-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .island-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.island h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.045em; line-height: 1; }
.island p.lead { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 44ch; }
.legend { display: grid; gap: 10px; margin: 26px 0 30px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.legend b { color: var(--ink); font-weight: 700; }
.legend i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.island-art { position: relative; display: grid; place-items: center; }
.island-art svg { width: min(100%, 420px); height: auto; overflow: visible; }
@media (max-width: 899px) { .island-art svg { width: min(78%, 330px); } }
.isl-fill { fill: #fffdf8; opacity: 0; }
.isl-coast { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.isl-gr { fill: none; stroke: var(--maquis); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 7; opacity: 0; }
.isl-pin circle.dot { fill: var(--sea); stroke: #fff; stroke-width: 2.5; }
.isl-pin circle.ring { fill: none; stroke: var(--sea); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.isl-pin { opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.isl-label { font-family: var(--font); font-size: 13px; font-weight: 600; fill: var(--ink); opacity: 0; paint-order: stroke; stroke: var(--sand); stroke-width: 4px; }
.isl-gr-label { font-family: var(--font); font-size: 12px; font-weight: 700; fill: var(--maquis); opacity: 0; }
.island.play .isl-coast { animation: draw 2.6s cubic-bezier(.6, .05, .3, 1) forwards; }
.island.play .isl-fill { animation: fadeIn 1.2s 1.7s ease forwards; }
.island.play .isl-gr { animation: fadeIn .9s 2.4s ease forwards; }
.island.play .isl-gr-label { animation: fadeIn .6s 3s ease forwards; }
.island.play .isl-pin { animation: pinIn .55s calc(2.1s + var(--i) * .07s) cubic-bezier(.3, 1.6, .5, 1) forwards; }
.island.play .isl-pin circle.ring { animation: ring 2.6s calc(3.2s + var(--i) * .07s) ease-out infinite; }
.island.play .isl-label { animation: fadeIn .6s calc(2.6s + var(--i) * .07s) ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pinIn { from { opacity: 0; transform: translateY(-14px) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }

/* Révélation douce au défilement (quelques éléments seulement) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Index des villes */
.atlas { display: grid; gap: 40px 64px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .atlas { grid-template-columns: 1fr 1fr; } }
.atlas h3 { font-size: 14px; font-weight: 600; color: var(--mute); padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.atlas li a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.atlas .n { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; transition: color .2s, transform .3s var(--ease); }
.atlas .c { font-size: 13.5px; color: var(--mute); white-space: nowrap; }
.atlas li a:hover .n { color: var(--sea); transform: translateX(4px); }

/* ==========================================================
   Pages de liste
   ========================================================== */
.page { padding-top: 34px; padding-bottom: 24px; }
@media (min-width: 900px) { .page { padding-top: 56px; } }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -.045em; line-height: .98; }
.page-head p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; max-width: 58ch; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 24px; border-radius: 999px; background: rgba(15, 26, 43, .06); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 26, 43, .14); }
.tabs em { font-style: normal; font-size: 11px; font-weight: 600; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--sand); color: var(--sand-deep); }

.lt { display: flex; gap: 10px; margin-top: 28px; }
.field { position: relative; flex: 1; min-width: 0; }
.field > .ico { position: absolute; left: 16px; top: 15px; color: var(--mute); width: 19px; height: 19px; pointer-events: none; }
.field input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 16px; color: var(--ink); }
.field input:focus-visible { outline: 3px solid rgba(31, 111, 235, .35); outline-offset: 1px; }
.btn-filter { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; flex: none; }
.btn-filter .ico { width: 18px; height: 18px; }
.btn-filter b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sea); color: #fff; font-size: 12.5px; display: grid; place-items: center; }
@media (max-width: 420px) { .btn-filter span { display: none; } .btn-filter { padding: 0 16px; } }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.active:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 14px; border-radius: 999px; border: 0; background: var(--sea-soft); color: var(--sea-deep); font-size: 14px; font-weight: 600; }
.achip .ico { width: 15px; height: 15px; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 20px; font-size: 14.5px; color: var(--mute); }
.sort { display: inline-flex; align-items: center; gap: 8px; }
.sort select { height: 38px; padding: 0 12px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 14.5px; color: var(--ink); }

.empty { text-align: center; padding: 56px 20px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-s); color: var(--ink-2); }
.empty .ico { width: 32px; height: 32px; color: var(--mute); }
.empty h3 { font-family: var(--display); font-size: 23px; margin-top: 10px; letter-spacing: -.03em; color: var(--ink); }
.empty p { margin: 6px auto 20px; max-width: 42ch; }

.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 20px; background: var(--sand); color: #4b3f27; font-size: 14.5px; line-height: 1.5; }
.note .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--sand-deep); }

.soon-box { margin-top: 28px; padding: 64px 24px; text-align: center; border-radius: 32px; background: var(--sand); color: #4b3f27; }
.soon-box .ico { width: 36px; height: 36px; }
.soon-box h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.035em; margin-top: 12px; color: var(--ink); }
.soon-box p { margin: 8px auto 0; max-width: 44ch; }

/* ---------- Profil ---------- */
.profile-card { margin-top: 28px; padding: 26px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-s); }
.who { display: flex; align-items: center; gap: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 28px; flex: none; }
.who h2 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.035em; }
.who p { color: var(--mute); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--sea-soft); color: var(--sea-deep); }
.tag.green { background: var(--maquis-soft); color: var(--maquis); }
.form { display: grid; gap: 24px; }
.lab { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.hint { font-weight: 400; color: var(--mute); font-size: 13.5px; margin-left: 6px; }
.form input[type="text"] { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.wrapchips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: none; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s, box-shadow .15s; }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(15, 26, 43, .3); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.sw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { font-size: 13.5px; color: var(--mute); }
.fav-sec { margin-top: 48px; }
.fav-sec h2 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.035em; margin-bottom: 18px; }
.danger { border: 0; background: none; color: #b42318; font-weight: 600; font-size: 14.5px; padding: 8px 0; }

/* ---------- Pied de page ---------- */
#footer { margin-top: 96px; background: var(--ink); color: rgba(255, 255, 255, .78); border-radius: 36px 36px 0 0; }
body.on-map #footer { display: none; }
.foot { padding-top: 52px; padding-bottom: 40px; display: grid; gap: 34px; }
@media (min-width: 900px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 72px; } }
.foot .logo { color: #fff; font-size: 26px; }
.foot .logo span { color: #a9c8ff; }
.foot p { font-size: 15px; max-width: 42ch; margin-top: 12px; }
.foot h3 { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.foot-links { display: grid; gap: 8px; justify-items: start; }
.foot-links a, .foot-links button { border: 0; background: none; padding: 2px 0; font-size: 15px; color: #fff; }
.foot-links a:hover, .foot-links button:hover { color: #a9c8ff; }
.foot-base { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); display: grid; gap: 6px; }

/* ==========================================================
   Fenêtres (fiche, filtres, infos)
   ========================================================== */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(8, 15, 28, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.overlay.open { display: flex; animation: fadeIn .25s ease; }
.sheet { position: relative; width: 100%; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 30px 30px 0 0; animation: up .42s var(--ease); }
@keyframes up { from { transform: translateY(60px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) { .overlay { align-items: center; padding: 28px; } .sheet { max-width: 720px; max-height: 90vh; border-radius: 32px; } }
.x { position: sticky; top: 14px; float: right; margin: 14px 14px -56px 0; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }

.gal-wrap { position: relative; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 11; background: var(--sand); }
.gal::-webkit-scrollbar { display: none; }
.gal img, .gal .ph { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gal-ph { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: #b8aa8b; background: linear-gradient(135deg, #f5efe3, #e8decb); }
.gal-ph > .ico { width: 44px; height: 44px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
@media (hover: hover) { .gal-nav { display: grid; } }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: all .25s; }
.dots i.on { width: 20px; border-radius: 4px; background: #fff; }

.d-body { padding: 24px 24px 8px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.d-tags span { padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.d-tags .hi { background: var(--sea-soft); box-shadow: none; color: var(--sea-deep); }
.d-body h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 46px); letter-spacing: -.045em; line-height: 1; margin-top: 16px; }
.d-loc { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-2); }
.d-loc .ico { color: var(--mute); }
.d-text { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 22px; border-radius: 20px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fff; padding: 14px 16px; }
.fact small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 500; }
.fact b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.rows { margin-top: 18px; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; background: none; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: #fafbfc; }
.row .rt { flex: 1; min-width: 0; }
.row b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { display: block; font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--sea-soft); color: var(--sea-deep); }
.circle .ico { width: 20px; height: 20px; }
.circle.green { background: var(--maquis-soft); color: var(--maquis); }
.circle.sand { background: var(--sand); color: var(--sand-deep); }
.row .go { color: var(--mute); }
.tip { margin-top: 16px; padding: 16px 18px; border-radius: 20px; background: var(--maquis-soft); color: #23513c; font-size: 15px; }
.tip b { display: block; margin-bottom: 2px; }
.actions { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 16px 24px calc(16px + var(--safe-bottom)); margin-top: 12px; background: linear-gradient(to top, var(--paper) 72%, rgba(251, 251, 253, 0)); }
.actions .btn { flex: 1; }
.sheet-pad { padding: 30px 26px 32px; }
.sheet-pad h2 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.035em; padding-right: 52px; }
.sheet-pad h3 { font-size: 16px; font-weight: 700; margin-top: 22px; }
.sheet-pad p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* Filtres */
.f-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; background: var(--paper); }
.f-head h2 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.035em; }
.f-close { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15, 26, 43, .06); }
.f-body { padding: 4px 24px 8px; display: grid; gap: 26px; }
.f-group h3 { font-size: 14px; font-weight: 600; color: var(--mute); margin-bottom: 10px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(15, 26, 43, .06); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 26, 43, .14); }

/* Message temporaire */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + 18px); transform: translate(-50%, 14px); z-index: 200; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 36px; } }

/* ==========================================================
   Carte interactive
   ========================================================== */
.map-page { position: fixed; z-index: 1; isolation: isolate; left: 0; right: 0; top: var(--hh); bottom: var(--tabh); background: #cfe3ee; }
.map { position: absolute; inset: 0; background: #cfe3ee; }
.map-page.no-tiles .map { background: #cfe3ee; }
.map-top { position: absolute; z-index: 1001; left: 0; right: 0; top: 0; padding: 12px 12px 0; pointer-events: none; display: grid; gap: 8px; }
.layers, .fuels { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; padding: 2px; }
.layers::-webkit-scrollbar, .fuels::-webkit-scrollbar { display: none; }
.lchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink-2); font-size: 14px; font-weight: 600; box-shadow: 0 2px 10px rgba(15, 26, 43, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, color .2s; }
.lchip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-style: normal; }
.lchip i .ico { width: 15px; height: 15px; }
.lchip em { font-style: normal; font-weight: 500; color: var(--mute); font-size: 13px; }
.lchip.off { background: rgba(255, 255, 255, .78); color: var(--mute); }
.lchip.off i { background: #c3cad4; }
.lchip.loading i { animation: spin 1s linear infinite; background: conic-gradient(var(--c) 0 70%, #c3cad4 70%); }
.lchip.err em { color: #b42318; }
@keyframes spin { to { transform: rotate(360deg); } }
.fchip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink-2); font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(15, 26, 43, .12); }
.fchip.on { background: var(--ink); color: #fff; }
.map-ctrl { position: absolute; z-index: 1001; right: 12px; bottom: 16px; display: grid; gap: 8px; }
.map-ctrl button { width: 46px; height: 46px; border-radius: 15px; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 2px 12px rgba(15, 26, 43, .18); }
.map-ctrl button .ico { width: 21px; height: 21px; }
.map-ctrl .grp { display: grid; border-radius: 15px; overflow: hidden; box-shadow: 0 2px 12px rgba(15, 26, 43, .18); }
.map-ctrl .grp button { border-radius: 0; box-shadow: none; }
.map-ctrl .grp button + button { border-top: 1px solid var(--line); }
.map-msg { position: absolute; z-index: 1001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100% - 40px)); padding: 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-m); text-align: center; color: var(--ink-2); font-size: 15px; }
.map-note { position: absolute; z-index: 1001; left: 12px; right: 70px; bottom: 16px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .94); font-size: 13px; color: var(--ink-2); box-shadow: 0 2px 10px rgba(15, 26, 43, .12); }
.msheet { position: absolute; z-index: 1002; left: 10px; right: 10px; bottom: 10px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px -12px rgba(15, 26, 43, .45); transform: translateY(calc(100% + 30px)); transition: transform .38s var(--ease); max-height: 70%; overflow-y: auto; }
.msheet.open { transform: none; }
@media (min-width: 900px) { .msheet { left: 16px; right: auto; bottom: 16px; width: 380px; } .map-ctrl { right: 16px; bottom: 20px; } }
.ms-close { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15, 26, 43, .06); }
.ms-top { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.ms-thumb { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex: none; background: var(--sand); display: grid; place-items: center; color: #b8aa8b; position: relative; }
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ms-thumb .topo { position: absolute; inset: 0; }
.ms-kind { font-size: 12.5px; font-weight: 600; color: var(--c, var(--maquis)); }
.ms-top h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.025em; line-height: 1.15; }
.ms-top p { font-size: 14px; color: var(--mute); }
.ms-info { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.ms-approx { margin-top: 10px; font-size: 13px; color: var(--sand-deep); background: var(--sand); padding: 8px 12px; border-radius: 12px; }
.ms-actions { display: flex; gap: 8px; margin-top: 14px; }
.ms-actions .btn { flex: 1; height: 46px; font-size: 14.5px; padding: 0 14px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.price { padding: 10px; border-radius: 14px; background: #f5f7fa; }
.price small { display: block; font-size: 12px; color: var(--mute); font-weight: 600; }
.price b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.price em { display: block; font-style: normal; font-size: 11.5px; color: var(--mute); }
.price.sel { background: var(--sea-soft); }
.price.out b { color: #b42318; font-size: 14px; font-family: var(--font); }

/* Marqueurs */
.pin { background: none; border: 0; }
.pin .pin-in { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 6px 14px -4px rgba(15, 26, 43, .5); transition: transform .2s var(--ease); }
.pin .pin-in .ico { transform: rotate(45deg); width: 16px; height: 16px; color: #fff; }
.pin.approx .pin-in { border-style: dashed; }
.pin.sel .pin-in { transform: rotate(-45deg) scale(1.22); }
.pin-r { --c: #1f6feb; } .pin-h { --c: #0f1a2b; } .pin-p { --c: #2f6b4f; }
.ev { background: none; border: 0; }
.ev span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); border: 2.5px solid #fff; box-shadow: 0 4px 10px -3px rgba(15, 26, 43, .5); color: #fff; }
.ev span .ico { width: 14px; height: 14px; }
.fp { background: none; border: 0; width: 0 !important; height: 0 !important; }
.fp > span { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 7px)); white-space: nowrap; padding: 5px 9px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; font-size: 12.5px; box-shadow: 0 4px 12px -2px rgba(15, 26, 43, .35); }
.fp > span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.fp.cheap > span { background: var(--maquis); color: #fff; }
.fp.none > span { background: #e3e7ec; color: var(--mute); font-weight: 600; }
.cl { background: none; border: 0; }
.cl span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: var(--c); border: 3px solid rgba(255, 255, 255, .92); box-shadow: 0 6px 16px -4px rgba(15, 26, 43, .5); }
.cl-r { --c: #1f6feb; } .cl-h { --c: #0f1a2b; } .cl-p { --c: #2f6b4f; } .cl-f { --c: #52606f; } .cl-e { --c: #0f8b8d; }
.me-dot { background: none; border: 0; }
.me-dot span { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--sea); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(31, 111, 235, .5); animation: meping 2s infinite; }
@keyframes meping { 0% { box-shadow: 0 0 0 0 rgba(31, 111, 235, .5); } 100% { box-shadow: 0 0 0 18px rgba(31, 111, 235, 0); } }

/* Leaflet (règles essentielles, intégrées pour ne dépendre d'aucune feuille externe) */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; -webkit-tap-highlight-color: transparent; font-family: var(--font); font-size: 12px; outline-offset: 1px; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.leaflet-marker-icon, .leaflet-marker-shadow { display: block; }
.leaflet-container .leaflet-overlay-pane svg { max-width: none !important; max-height: none !important; }
.leaflet-container .leaflet-marker-pane img, .leaflet-container .leaflet-tile-pane img, .leaflet-container .leaflet-tile { max-width: none !important; max-height: none !important; width: auto; padding: 0; }
.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }
.leaflet-container.leaflet-touch-drag { touch-action: none; touch-action: pinch-zoom; }
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { touch-action: none; }
.leaflet-tile { filter: inherit; visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-box { width: 0; height: 0; box-sizing: border-box; z-index: 800; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-zoom-animated { transform-origin: 0 0; }
svg.leaflet-zoom-animated { will-change: transform; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab, .leaflet-dragging .leaflet-grab .leaflet-interactive, .leaflet-dragging .leaflet-marker-draggable { cursor: grabbing; }
.leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-marker-icon.leaflet-interactive, .leaflet-image-layer.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive { pointer-events: auto; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .82); margin: 0; padding: 2px 8px; color: var(--ink-2); line-height: 1.4; font-size: 10.5px; border-radius: 0 10px 0 0; }
.leaflet-control-attribution a { color: var(--ink-2); text-decoration: none; }
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }
.leaflet-cluster-spider-leg { transition: stroke-dashoffset .3s ease-out, stroke-opacity .3s ease-in; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-title .ln > span, .rise, .reveal { transform: none !important; opacity: 1 !important; }
  .isl-coast { stroke-dashoffset: 0 !important; }
  .isl-fill, .isl-gr, .isl-gr-label, .isl-pin, .isl-label { opacity: 1 !important; }
}
