/* ============================================================
   plages.com redesign — design tokens, typography, components
   ============================================================ */

:root {
  --ink: #1D2733;
  --paper: #faf6ee;
  --paper-2: #f3ead9;
  --paper-3: #ede2cc;
  --accent: #023E8A;
  --accent-soft: rgba(2, 62, 138, 0.08);
  --accent-pin: #FF7F50;
  --muted: #5e6b78;
  --line: rgba(29, 39, 51, 0.12);
  --line-strong: rgba(29, 39, 51, 0.22);

  --display-family: "Bricolage Grotesque", system-ui, sans-serif;
  --display-italic-style: normal;
  --display-weight: 500;
  --display-em-weight: 700;
  --display-tracking: -0.035em;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 25, 35, 0.04), 0 2px 8px rgba(20, 25, 35, 0.04);
  --shadow-md: 0 4px 14px rgba(20, 25, 35, 0.06), 0 12px 40px rgba(20, 25, 35, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 25, 35, 0.10), 0 30px 80px rgba(20, 25, 35, 0.12);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; cursor: pointer; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.muted--light { color: rgba(255, 255, 255, 0.75); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--paper-2); }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.section__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  margin: 0;
  letter-spacing: var(--display-tracking);
}
.section__lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
  line-height: 1.5;
}

.block-title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 30px;
  line-height: 1.1;
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}
.block-title:first-child { margin-top: 0; }
/* Le wrapper .beach-details annule le margin-top du 1er titre : on le restaure
   quand un bloc "À propos" (.prose) le précède. */
.prose + .beach-details > .block-title:first-child { margin-top: 56px; }
.prose { font-size: 17px; line-height: 1.7; color: rgba(29, 39, 51, 0.85); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-pin); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-pin) 88%, #000); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(29, 39, 51, 0.05); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

.chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background .15s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.24); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}
.tag--muted { color: var(--muted); background: rgba(29, 39, 51, 0.06); }

.select {
  font: inherit; font-size: 13px;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 7px 28px 7px 12px;
  border-radius: 999px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ===== Sticky search (accueil) ===== */
.sticky-search {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 45;
  background: var(--paper);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  transform: translateY(-110%);
  transition: transform .2s var(--ease);
  pointer-events: none;
}
.sticky-search.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-search__form {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.sticky-search__form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.sticky-search__form > svg:first-child { color: var(--muted); flex-shrink: 0; }
.sticky-search__form .search-input {
  padding: 6px 0;
}
.search-form__btn-icon { display: none; }
.sticky-search__form .search-form__btn-icon,
.hero .search-form__btn-icon { color: #fff; }

@media (max-width: 400px) {
  /* icône seule uniquement dans le sticky */
  .sticky-search__form .search-form__btn-icon { display: block; }
  .sticky-search__form .search-form__btn-label { display: none; }
  .sticky-search__form .btn { padding: 8px 10px; border-radius: 50%; }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #F7F7F5;
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display-family);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand__dot { color: var(--accent-pin); }
.nav { display: flex; gap: 28px; }
.nav__link {
  font-size: 14px;
  color: rgba(29, 39, 51, 0.7);
  position: relative;
  padding: 4px 0;
  transition: color .15s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent-pin); border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: min(60vh, 532px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); transform: rotate(0.3deg) scale(1.03); }
.hero__veil {
  position: absolute; inset: 0;
}
.hero__inner { position: relative; z-index: 1; padding: 84px 0 56px; max-width: 920px; }
.hero__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.92;
  margin: 0 0 24px;
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}
.hero__title em { font-style: var(--display-italic-style); font-weight: var(--display-em-weight); color: #f6c89a; }
.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink);
  margin: 0 0 36px;
}

.search {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}
.search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 12px 4px;
}
.search-input::placeholder { color: var(--muted); }
.hero__chips {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 22px;
}

/* ===== Ribbon ===== */
.ribbon {
  background: var(--ink); color: var(--paper);
  padding: 28px 0;
}
.ribbon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ribbon__grid > div {
  display: flex; align-items: baseline; gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 20px;
}
.ribbon__grid > div:first-child { border-left: 0; padding-left: 0; }
.ribbon__grid b {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.ribbon__grid span {
  font-size: 13px; color: rgba(255, 255, 255, 0.65);
  text-transform: lowercase;
}

/* ===== Regions ===== */
.regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.region {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.region:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.region__num {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: #fff; background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(6px);
}
.region__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.region__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.region:hover .region__photo img { transform: scale(1.06); }
.region__body { padding: 22px 22px 22px; }
.region__body h3 {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 30px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.region__meta {
  display: flex; gap: 14px; margin-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.region__meta span + span { border-left: 1px solid var(--line); padding-left: 14px; }
.region__cta {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 14px; font-weight: 500;
}
.region:hover .region__cta { color: var(--accent); }

/* ===== Departments board ===== */
.dept-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 40px;
}
.dept-board__h {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 24px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  display: flex; align-items: baseline; justify-content: space-between;
}
.dept-board__list { list-style: none; padding: 0; margin: 0; }
.dept-board__list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed rgba(29, 39, 51, 0.08);
  transition: color .15s var(--ease), padding .15s var(--ease);
}
.dept-board__list a:hover { color: var(--accent); padding-left: 4px; }
.dept-board__num {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.dept-board__count {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ===== Featured (editorial mosaic) ===== */
.featured {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}
.feat {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  cursor: pointer;
  isolation: isolate;
}
.feat--0 { grid-column: span 4; grid-row: span 2; }
.feat--1 { grid-column: span 2; }
.feat--2 { grid-column: span 2; }
.feat--3 { grid-column: span 2; grid-row: span 2; }
.feat--4 { grid-column: span 2; }
.feat--5 { grid-column: span 2; }
.feat__photo { position: absolute; inset: 0; }
.feat__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feat:hover .feat__photo img { transform: scale(1.05); }
.feat__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
}
.feat__tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  padding: 3px 8px; border-radius: 4px;
  margin-bottom: 10px;
}
.feat__overlay h3 {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 6px;
}
.feat--0 .feat__overlay h3 { font-size: 38px; }
.feat__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }

.featured--compact { grid-auto-rows: 200px; }
.featured--airy { grid-auto-rows: 320px; gap: 24px; }

/* ===== Pavillon Bleu banner ===== */
.pavillon-bleu-banner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 48px;
  background: linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
  border-radius: var(--r-lg);
  color: #fff;
}
.pavillon-bleu-banner__icon { flex-shrink: 0; }
.pavillon-bleu-banner__icon img { display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.2)); }
.pavillon-bleu-banner__text .eyebrow { color: rgba(255,255,255,.7); }
.pavillon-bleu-banner__text .section__title { color: #fff; }
.pavillon-bleu-banner__text p { color: rgba(255,255,255,.85) !important; }
.pavillon-bleu-banner .btn--primary { background: #fff; color: #023E8A; }
.pavillon-bleu-banner .btn--primary:hover { background: rgba(255,255,255,.9); }
@media (max-width: 700px) {
  .pavillon-bleu-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }
  .pavillon-bleu-banner__text p { margin-left: auto; margin-right: auto; }
}

/* ===== Editorial CTA block ===== */
.editorial { background: var(--paper-2); }
.editorial__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.editorial__text p { font-size: 17px; color: rgba(29, 39, 51, 0.78); max-width: 48ch; }
.editorial__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.editorial__cards { display: grid; gap: 12px; }
.ed-card {
  display: block;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.ed-card:hover { transform: translateX(4px); border-color: var(--accent); }
.ed-card__kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-pin);
}
.ed-card h4 {
  font-family: var(--sans); font-weight: 500; font-size: 19px;
  margin: 6px 0 12px; line-height: 1.3; letter-spacing: -0.01em;
}
.ed-card__meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--paper); padding: 64px 0 24px; }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__brand .brand { color: var(--paper); }
.site-footer__brand p { color: rgba(255, 255, 255, 0.6); max-width: 32ch; margin-top: 14px; }
.site-footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.site-footer__cols h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px; font-weight: 400;
}
.site-footer__cols a {
  display: block; padding: 5px 0; font-size: 14px;
  color: rgba(255, 255, 255, 0.85); transition: color .15s var(--ease);
}
.site-footer__cols a:hover { color: var(--accent-pin); }
.site-footer__base {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Breadcrumbs ===== */
.crumbs {
  display: flex; gap: 8px; align-items: center;
  padding: 20px 0 0;
  font-size: 15.6px; color: var(--muted);
}
.crumbs a:hover { color: var(--accent); }
.crumbs__cur { color: var(--ink); }
.crumbs > span { color: var(--line-strong); }

/* Crumb interactive dropdowns — region / département switchers */
.crumb-wrap { position: relative; display: inline-flex; }
.crumb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 2px 0;
  font: inherit; font-size: 15.6px; color: var(--ink);
  cursor: pointer;
}
.crumb-btn:hover { color: var(--accent); }
.crumb-btn--cur { color: var(--ink); }.crumb-btn.is-open { color: var(--accent); }
.crumb-btn__caret {
  width: 0; height: 0;
  border-left: 5.25px solid transparent;
  border-right: 5.25px solid transparent;
  border-top: 6px solid currentColor;
  opacity: .55; margin-top: 1px;
  transition: transform .15s var(--ease);
}
.crumb-btn.is-open .crumb-btn__caret { transform: rotate(180deg); opacity: 1; }

.crumb-menu {
  position: absolute;
  top: calc(100% + 10px); left: -8px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px -22px rgba(15,30,45,.28), 0 8px 22px -12px rgba(15,30,45,.18);
  z-index: 60;
  overflow: hidden;
  animation: crumbMenuIn .14s var(--ease);
}
.crumb-menu::before {
  content: ""; position: absolute; top: -6px; left: 18px;
  width: 10px; height: 10px; background: var(--paper);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
@keyframes crumbMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.crumb-menu--region { width: 560px; }
.crumb-menu--region .crumb-menu__cols {
  display: grid; grid-template-columns: 200px 1fr;
}
.crumb-menu__list {
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 1px;
}
.crumb-menu--region .crumb-menu__list:first-child {
  background: color-mix(in oklab, var(--paper) 70%, var(--ink) 4%);
  border-right: 1px solid var(--line);
}
.crumb-menu__h {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  padding: 6px 8px 10px;
}
.crumb-menu__r {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 8px 10px;
  border-radius: 8px; text-align: left; cursor: pointer;
  color: var(--ink); font: inherit;
  transition: background .12s var(--ease);
}
.crumb-menu__r:hover, .crumb-menu__r.is-hover { background: rgba(21,33,43,.05); }
.crumb-menu__r.is-on { background: var(--accent-soft); color: var(--accent); }
.crumb-menu__r-name {
  font-family: var(--display-family);
  font-weight: var(--display-em-weight); letter-spacing: var(--display-tracking);
  font-size: 16px;
}
.crumb-menu__r-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}
.crumb-menu__list--depts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  max-height: 320px; overflow-y: auto;
}
.crumb-menu--dept { width: 460px; padding: 0; }
.crumb-menu--dept .crumb-menu__h { padding: 14px 16px 4px; }
.crumb-menu--dept .crumb-menu__list--depts { padding: 6px 12px 12px; }
.crumb-menu__d {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px;
  background: transparent; border: 0; padding: 7px 10px;
  border-radius: 7px; text-align: left; cursor: pointer;
  color: var(--ink); font: inherit; font-size: 13px;
  transition: background .12s var(--ease);
}
.crumb-menu__d:hover { background: rgba(21,33,43,.05); }
.crumb-menu__d.is-on { background: var(--ink); color: var(--paper); }
.crumb-menu__d.is-on .crumb-menu__d-num,
.crumb-menu__d.is-on .crumb-menu__d-count { color: var(--paper); opacity: .85; }
/* .crumbs--light span a spécificité (0,1,1) et cible aussi les spans du dropdown — on surcharge */
.crumb-menu .crumb-menu__d-name { color: var(--ink); }
.crumb-menu .crumb-menu__d-count { color: var(--muted); }
.crumb-menu__d.is-on .crumb-menu__d-name { color: var(--paper); }
.crumb-menu__d-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  color: var(--muted);
  background: rgba(21,33,43,.06); padding: 2px 5px; border-radius: 4px;
  text-align: center;
}
.crumb-menu__d-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb-menu__d-count {
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  color: var(--muted);
}
@media (max-width: 760px) {
  /* Les menus sont ancrés sur le fil d'Ariane (et non sur le bouton) pour rester
     dans l'écran : le bouton peut être tout à droite sur un petit écran. */
  .crumbs { position: relative; }
  .crumbs .crumb-wrap { position: static; }
  .crumb-menu::before { display: none; }
  .crumb-menu--region { width: calc(100vw - 32px); }
  .crumb-menu--region .crumb-menu__cols { grid-template-columns: 1fr; }
  .crumb-menu--region .crumb-menu__list:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .crumb-menu--dept { width: calc(100vw - 32px); }

  /* Recherche hero : bouton sous l'input sur mobile */
  .search {
    flex-wrap: wrap;
    border-radius: var(--r-lg, 18px);
    padding: 14px 16px;
  }
  .search-input { flex: 1 1 auto; min-width: 0; padding: 8px 0; }
  .search .btn--primary { flex: 1 1 100%; border-radius: 999px; justify-content: center; text-align: center; }
}

/* ===== Region hero ===== */
.region-hero {
  position: relative;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
}
.region-hero__crumbs {
  position: relative; z-index: 2;
  padding-top: 16px;
}
/* Crumbs blancs sur fond sombre (hero image) */
.crumbs--light { color: rgba(255,255,255,.7); }
.crumbs--light a { color: rgba(255,255,255,.7); }
.crumbs--light a:hover { color: #fff; }
.crumbs--light span { color: rgba(255,255,255,.35); }
.crumbs--light .crumb-btn { color: rgba(255,255,255,.7); }
.crumbs--light .crumb-btn--cur,
.crumbs--light .crumb-btn.is-open { color: #fff; }
.crumbs--light .crumb-btn__caret { border-top-color: rgba(255,255,255,.6); }
.region-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.region-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.region-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,25,35,.35) 0%, rgba(10,25,35,.12) 30%, rgba(10,25,35,.72) 100%),
    linear-gradient(90deg, rgba(10,25,35,.4) 0%, transparent 60%);
}
.region-hero__inner {
  position: relative; z-index: 1;
  padding: 0 0 48px;
}
.region-hero__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.92; margin: 0 0 16px;
  letter-spacing: var(--display-tracking);
}
.region-hero__tagline {
  font-size: 18px; color: rgba(255,255,255,.82);
  margin: 0 0 28px; max-width: 50ch;
}
.region-hero__stats {
  display: flex; gap: 40px; margin-bottom: 28px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22);
  width: fit-content;
}
.region-hero__stats > div { display: flex; flex-direction: column; }
.region-hero__stats b {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 40px; line-height: 1; letter-spacing: -0.01em;
}
.region-hero__stats span {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,.65); margin-top: 4px;
  text-transform: lowercase; letter-spacing: .04em;
}
.region-hero__zones {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}
.region-hero__zone-pill {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.region-hero__zone-pill:hover { background: rgba(255,255,255,.26); color: #fff; }
.region-hero__zone-pill.is-active {
  background: rgba(255,255,255,.96); color: var(--ink);
  border-color: transparent;
}

/* ===== Department cards grid (page région) ===== */
.dept-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.dept-card {
  cursor: pointer;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dept-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.dept-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.dept-card:hover .dept-card__photo img { transform: scale(1.05); }
.dept-card__num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: #fff; background: rgba(0,0,0,.35);
  padding: 3px 8px; border-radius: 4px;
  backdrop-filter: blur(6px);
}
.dept-card__body { padding: 18px 20px 20px; }
.dept-card__body h3 {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 24px; margin: 0 0 6px;
  line-height: 1.1; letter-spacing: -0.01em;
}
.dept-card__count {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .06em; text-transform: lowercase;
  color: var(--muted); margin-bottom: 14px;
}
.dept-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: color .15s var(--ease), gap .15s var(--ease);
}
.dept-card:hover .dept-card__cta { color: var(--accent); gap: 12px; }

@media (max-width: 1100px) { .dept-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dept-cards { grid-template-columns: 1fr; } }

/* ===== Department hero ===== */
.dept-hero { padding: 32px 0 48px; }
.dept-hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.dept-hero__title {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 0.95; margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.dept-hero__title em { font-style: var(--display-italic-style); font-weight: var(--display-em-weight); color: var(--accent); }
.dept-hero__lede { font-size: 17px; color: rgba(29, 39, 51, 0.78); max-width: 50ch; margin: 0 0 28px; }
.dept-hero__stats {
  display: flex; gap: 32px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.dept-hero__stats > div { display: flex; flex-direction: column; }
.dept-hero__stats b {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 36px; line-height: 1; letter-spacing: -0.01em;
}
.dept-hero__stats span {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-top: 4px;
  text-transform: lowercase; letter-spacing: .04em;
}
.dept-hero__map { position: relative; z-index: 1; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.dept-hero__map-cap {
  background: var(--ink); color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 10px 16px;
}

/* ===== Filters ===== */
.filters {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px; margin-bottom: 32px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.filters__group { display: flex; gap: 6px; flex-wrap: wrap; }
.filters__btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink);
  transition: all .15s var(--ease);
}
.filters__btn:hover { border-color: var(--accent); }
.filters__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* ===== Beach cards (grid) ===== */
.beach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.beach-grid--compact { grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.beach-grid--airy { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }

.bcard { cursor: pointer; transition: transform .25s var(--ease); }
.bcard:hover { transform: translateY(-3px); }
.bcard__photo {
  aspect-ratio: 4 / 3; border-radius: var(--r-md);
  overflow: hidden; background: var(--paper-3);
}
.bcard__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.bcard:hover .bcard__photo img { transform: scale(1.04); }
.bcard__body { padding: 14px 4px 0; }
.bcard__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bcard__row h3 {
  font-family: var(--display-family); font-weight: var(--display-weight); font-size: 22px;
  margin: 0; line-height: 1.15; letter-spacing: -0.01em;
}
.bcard__note {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 13px; color: var(--accent-pin);
}
.bcard__rating { position: relative; align-self: flex-start; }
.bcard__avis {
  position: absolute; top: 100%; right: 0; margin-top: 2px;
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.bcard__meta {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px; font-size: 13px; color: var(--muted);
}
.bcard__tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.bcard__dist { color: var(--muted); }

/* ===== Beach detail ===== */
.beach-hero { padding: 24px 0 56px; }
/* Fil d'Ariane remonté sur la fiche plage, avec un peu d'air avant le titre */
.beach-hero .crumbs { padding: 0 0 14px; }
/* Lien « (N avis) » du hero vers la section Avis visiteurs */
.rating__link { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.rating__link:hover { color: var(--accent); text-decoration-color: currentColor; }
/* Décalage d'ancrage : le header sticky fait 68px */
#avis { scroll-margin-top: 88px; }
.beach-hero__top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.beach-hero__title {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: clamp(22px, 3vw, 40px);
  margin: 0; line-height: 1; letter-spacing: var(--display-tracking);
}
.beach-hero__meta {
  display: flex; gap: 12px; align-items: center;
  margin-top: 14px; font-size: 14px;
}
.rating {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-pin);
}
.rating b { color: var(--ink); }
.beach-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Gallery */
/* Gallery-row : galerie + carte côte à côte */
.gallery-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: stretch;
}
.gallery-row__map { display: flex; min-width: 0; }
.gallery-row__map .aside-card {
  margin-bottom: 0;
  width: 100%;
  display: flex; flex-direction: column;
}
.gallery-row__map .aside-card__map {
  flex: 1 1 auto;
  min-height: 240px;
  margin-top: -22px;
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: -22px;
  border-radius: 0;
}
.gallery-row__map #map { height: 100%; }
.aside-card__map-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.aside-card__map-head h2 { margin: 0; }

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.gallery__main {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__main:hover img { transform: scale(1.02); }
.gallery__more {
  position: absolute; right: 18px; bottom: 18px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.gallery__counter {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: baseline; gap: 4px;
  background: rgba(0,0,0,.45); color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  pointer-events: none;
}
.gallery__counter-cur { font-weight: 600; }
.gallery__counter-sep, .gallery__counter-total { opacity: .65; }
.gallery__credit {
  position: absolute; right: 14px; top: 14px;
  max-width: calc(100% - 28px);
  background: rgba(0,0,0,.45); color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; letter-spacing: .02em;
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery__credit[hidden] { display: none; }

/* Thumbnail strip horizontal */
.gstrip { position: relative; display: flex; align-items: center; min-width: 0; }
.gstrip__track {
  display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(21,33,43,.25) transparent;
  padding: 4px 2px 10px;
  width: 100%; min-width: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.gstrip__track::-webkit-scrollbar { height: 6px; }
.gstrip__track::-webkit-scrollbar-thumb { background: rgba(21,33,43,.22); border-radius: 999px; }
.gstrip__track::-webkit-scrollbar-track { background: transparent; }
.gstrip__thumb {
  position: relative; flex: 0 0 auto;
  width: 120px; height: 80px;
  border: 0; padding: 0; background: var(--paper-3);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
  opacity: .78;
}
.gstrip__thumb::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid transparent; border-radius: var(--r-md);
  transition: border-color .15s var(--ease);
  pointer-events: none;
}
.gstrip__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gstrip__thumb:hover { opacity: 1; }
.gstrip__thumb:hover img { transform: scale(1.05); }
.gstrip__thumb.is-active { opacity: 1; transform: translateY(-2px); }
.gstrip__thumb.is-active::after { border-color: var(--accent-pin); }

/* 2-col layout */
.beach-grid-2col {
  /* mêmes colonnes que .gallery-row : l'aside s'aligne sur la carte */
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 28px;
  align-items: flex-start;
}

/* Infos grid */
.infos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.info {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.info:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.info:nth-child(even) { padding-left: 24px; }
.info__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
}
.info__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.info__body { font-size: 15px; line-height: 1.5; color: rgba(29, 39, 51, 0.85); }

/* Reviews (fiche plage) */
.reviews {
  display: grid; grid-template-columns: 160px minmax(0, 1fr);
  padding: 28px 0 0;
  align-items: start;
}
.reviews__big {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 72px; line-height: 1; letter-spacing: -0.02em;
}
.reviews__stars {
  display: flex; gap: 2px; color: var(--accent-pin);
  margin: 8px 0 6px;
}
.reviews__list {
  display: flex; flex-direction: column; gap: 24px;
  min-width: 0; width: 100%;
}
.review { width: 100%; min-width: 0; }
.review header {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; margin-bottom: 8px;
}
.review__rating { color: var(--accent-pin); display: inline-flex; gap: 1px; margin-left: 4px; }
.review__text { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(29, 39, 51, 0.85); max-width: none; }
.review__text--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review__more {
  display: none; align-items: center; gap: 4px;
  margin-top: 6px; padding: 0; border: none; background: none;
  font-size: 13px; font-weight: 600; color: var(--accent-pin);
  cursor: pointer;
}
.review__more:not([hidden]) { display: inline-flex; }
.review__more svg { transition: transform .2s ease; }
.review__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Aside */
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 18px;
}
.aside-card h2,
.aside-card h3 {
  margin: 0 0 16px;
  font-family: var(--display-family); font-weight: var(--display-weight); font-size: 22px; line-height: 1;
}
.aside-card__map { border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px; }
.aside-card .btn { margin-bottom: 8px; }

/* Bouton « Calques » sur la carte (bascule plan / satellite, façon Google Maps) */
.map-layers-btn {
  position: relative; display: block;
  width: 64px; height: 64px; padding: 0; margin: 10px;
  border: 2px solid #fff; border-radius: 8px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  transition: transform .15s var(--ease);
}
.map-layers-btn:hover { transform: scale(1.04); }
.map-layers-btn__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3px 0;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1.2;
  text-align: center; letter-spacing: .01em;
}

/* Variante Street View : voile sombre + pictogramme centré */
.map-sv-btn { text-decoration: none; }
.map-sv-btn::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(20, 30, 40, .42);
}
.map-sv-btn__icon {
  position: absolute; left: 0; right: 0; top: 0; bottom: 17px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.weather { display: flex; gap: 16px; align-items: baseline; }
.weather__temp {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 56px; line-height: 1; letter-spacing: -0.02em;
}
.weather__sub { font-size: 13px; color: var(--ink); }
.weather__sub > div + div { margin-top: 2px; }
.flag {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 12px;
  border-radius: var(--r-md); font-size: 13px;
  background: rgba(70, 150, 95, 0.12);
  color: #2a6f5a;
}
.flag__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2a6f5a; box-shadow: 0 0 0 4px rgba(70, 150, 95, 0.18);
}

/* Nearby */
.nearby {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.nearby__card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nearby__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.nearby__photo { aspect-ratio: 5 / 3; }
.nearby__photo img { width: 100%; height: 100%; object-fit: cover; }
.nearby__body { padding: 16px; }
.nearby__body h3 {
  margin: 0 0 4px;
  font-family: var(--display-family); font-weight: var(--display-weight); font-size: 19px; line-height: 1.15;
}
.nearby__dist {
  margin-top: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--accent);
}

/* ===== FakeMap ===== */
.fmap {
  width: 100%; aspect-ratio: 16 / 10;
  background: #cfe6ec;
}
.fmap--sm { aspect-ratio: 4 / 3; border-radius: var(--r-md); }

/* ===== Print / Canva canvas — pages as labeled blocks ===== */
.print-canvas {
  background: #2a3441;
  padding: 80px 56px 80px;
  min-height: 100vh;
}
.print-canvas__title {
  max-width: 1240px;
  margin: 0 auto 56px;
  color: #faf6ee;
}
.print-canvas__title .eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: #f6c89a; margin-bottom: 12px;
}
.print-canvas__title h1 {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 56px; letter-spacing: var(--display-tracking);
  margin: 0 0 12px; line-height: 1; color: #faf6ee;
}
.print-canvas__title p { font-size: 17px; color: rgba(250, 246, 238, 0.65); margin: 0; }

.page-block {
  max-width: 1340px;
  margin: 0 auto 64px;
  background: #faf6ee;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.page-block__head {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 28px;
  background: #15212b; color: #faf6ee;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-block__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #f6c89a;
}
.page-block__label {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 22px; letter-spacing: -0.02em; flex: 1;
}
.page-block__url {
  font-family: var(--mono); font-size: 12px;
  color: rgba(250, 246, 238, 0.5);
}
.page-block__frame {
  position: relative;
  background: var(--paper);
}
.page-block__inner {
  /* Each page renders here with its own Header + content + Footer */
}

/* Hide the original sticky offset & Footer inside the global app — only the per-block ones are needed */
.print-canvas > .site-header,
.print-canvas > .site-footer { display: none; }

/* Inside a block, header shouldn't be sticky (we want it scrolling with the block) */
.page-block .site-header { position: static; background: #F7F7F5; }

/* Hide tweaks panel in print mode */
.print-canvas ~ .twk-root,
.print-canvas + * .twk-root { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
  .dept-board { grid-template-columns: repeat(2, 1fr); }
  .nearby { grid-template-columns: repeat(2, 1fr); }
  .section__head { grid-template-columns: 1fr; }
  .editorial__inner { grid-template-columns: 1fr; }
  .beach-grid-2col { grid-template-columns: 1fr; gap: 0; }
  /* Mobile : remonter l'aside (Services et activités + Météo) juste après
     le bloc "À propos", avant les informations pratiques et les avis. */
  .beach-grid-2col > div { display: contents; }
  .beach-grid-2col > aside { order: 1; margin-top: 48px; }
  .beach-grid-2col .beach-details { order: 2; }
  .reviews { grid-template-columns: 1fr; gap: 24px; }
  .dept-hero__inner { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-row__map { height: 320px; }
  .gallery-row__map .aside-card { height: 100%; }
  .gallery { width: 100%; min-width: 0; }
  .gallery__main { width: 100%; min-width: 0; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .ribbon__grid { grid-template-columns: repeat(2, 1fr); }
  .ribbon__grid > div { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .ribbon__grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .regions { grid-template-columns: 1fr; }
  .featured { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .feat { grid-column: span 2 !important; grid-row: span 1 !important; }
  .beach-grid, .beach-grid--compact, .beach-grid--airy { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  /* Réorganisation carte mobile : nom / ville / note+avis */
  .bcard__body { display: flex; flex-direction: column; }
  .bcard__row { display: contents; }
  .bcard { min-width: 0; }
  .bcard__row h3 { order: 1; font-size: 14px; line-height: 1.2; margin: 8px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bcard__meta { order: 2; font-size: 12px; margin-bottom: 2px; }
  .bcard__rating { order: 3; position: static; align-self: auto; display: flex; align-items: center; gap: 6px; }
  .bcard__avis { position: static; margin-top: 0; font-size: 12px; white-space: nowrap; }
  .bcard__note { font-size: 12px; }
  .bcard__tags { order: 4; display: none; }
  .dept-board { grid-template-columns: 1fr; }
  .nearby { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 16px; }
  .infos { grid-template-columns: 1fr; }
  .info { padding: 18px 0 !important; border-right: 0 !important; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 56px 0 42px; }
  .beach-hero__top { flex-direction: column; align-items: flex-start; }
  .nearby__photo img { width: 100%; max-width: 100%; }

  /* ── Beach hero mobile ── */
  .beach-hero { padding: 16px 0 36px; }
  .beach-hero__top { gap: 20px; margin-bottom: 20px; }
  .beach-hero__actions { width: 100%; }
  .beach-hero__actions .btn { flex: 1; justify-content: center; }
  .beach-hero__meta { flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
  .beach-hero__meta .tag { font-size: 12px; padding: 4px 10px; }

  /* Breadcrumbs : fil d'Ariane défilable de gauche à droite quand il dépasse
     (variante --scroll uniquement : les crumbs à dropdown ne doivent pas être
     rognés par un conteneur scrollable) */
  .crumbs--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .crumbs--scroll::-webkit-scrollbar { display: none; }
  .crumbs--scroll > * { flex: 0 0 auto; white-space: nowrap; }

  /* Galerie : ratio plus compact sur mobile */
  .gallery__main { aspect-ratio: 4 / 3; }

  /* Revues : colonne unique, section résumé masquée */
  .reviews { gap: 16px; }
  .reviews__big { font-size: 56px; }
}

/* ===== Search page ===== */
.search-bar {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 68px; z-index: 40;
  backdrop-filter: blur(8px);
}
.search-bar__row {
  display: flex; align-items: center; gap: 14px;
}
/* Le .search dans la search-bar hérite du style accueil + surcharges */
.search-bar__row .search {
  flex: 1;
  min-width: 0;
  max-width: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: none;
  padding: 6px 6px 6px 18px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  overflow: hidden;
}
.search-bar__row .search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-bar__row .search-input {
  font-size: 15px; padding: 10px 0;
}
.search__divider {
  width: 1px; height: 22px; background: var(--line);
}
.search__location {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink);
  padding-right: 10px;
}

@media (max-width: 520px) {
  .search-bar__row .search {
    flex-wrap: wrap;
    border-radius: var(--r-lg, 18px);
    padding: 10px 14px;
  }
  .search-bar__row .search-input { flex: 1 1 auto; padding: 6px 0; font-size: 16px; }
  .search-bar__row .search-bar__submit { flex: 1 1 100%; border-radius: 10px; justify-content: center; }
  .search__divider,
  .search__location { display: none; }
}

/* ── Search bar compact (scroll) ── */
.search-bar--compact {
  padding: 10px 0;
  transition: padding .2s var(--ease);
}
.search-bar--compact .filter-bar { display: none; }
.search-bar--compact .search-bar__row .search {
  flex-wrap: nowrap;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}
.search-bar--compact .search-bar__row .search > svg:first-child { display: none; }
.search-bar--compact .search-bar__row .search-input { padding: 7px 0; font-size: 15px; flex: 1 1 auto; }
.search-bar--compact .search__divider,
.search-bar--compact .search__location { display: none; }
.search-bar--compact .search-bar__submit {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 50%;
}
.search-bar--compact .search-form__btn-icon { display: block; }
.search-bar--compact .search-form__btn-label { display: none; }

/* ── Search suggest dropdown ── */
.search-suggest {
  position: fixed;
  z-index: 9999;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 8px 28px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  min-width: 300px;
  max-width: 480px;
  overflow: hidden;
  padding: 6px 0;
}
.suggest__group-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 16px 4px;
}
.suggest__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; cursor: pointer; font-size: 14px;
  transition: background .1s;
}
.suggest__item:hover { background: var(--paper-2); }
.suggest__item.is-active { background: var(--paper-2); }
.suggest__icon { color: var(--muted); flex-shrink: 0; }
.suggest__label { flex: 1; }
.suggest__remove {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 2px;
  border-radius: 3px; transition: color .1s, background .1s;
  flex-shrink: 0;
}
.suggest__remove:hover { color: var(--ink); background: var(--paper-3); }
.suggest__footer {
  padding: 6px 16px 4px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}

/* ── Recent searches on empty state ── */
.search-empty__section-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px; margin-top: 28px;
}
.empty-history {
  margin-bottom: 8px;
}
.empty-history__list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 4px;
}
.empty-history__item {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--paper);
  padding: 7px 12px; border-radius: 999px; font-size: 13px;
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.empty-history__item:hover { border-color: var(--ink); background: var(--paper-2); }
.empty-history__remove {
  border: 0; background: transparent; color: var(--muted);
  font-size: 14px; line-height: 1; padding: 0 0 0 4px; cursor: pointer;
}
.empty-history__clear {
  font-size: 12px; color: var(--muted); background: none; border: 0;
  cursor: pointer; padding: 0; margin-top: 8px;
  font-family: var(--mono); letter-spacing: .04em;
  text-decoration: underline; text-underline-offset: 3px;
}
.empty-history__clear:hover { color: var(--ink); }

.filter-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--accent); }
.filter-pill.is-on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.filter-pill__caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .6;
}
.filter-pill__count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-pin); color: #fff;
  font-family: var(--mono); font-size: 10px;
  min-width: 16px; height: 16px;
  border-radius: 999px; padding: 0 5px;
}

/* Active filter chips */
.active-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 5px 6px 5px 11px;
  border-radius: 999px;
  color: var(--ink);
}
.active-chip__x {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  border-radius: 50%;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}
.active-chip__x:hover { background: rgba(21,33,43,.08); color: var(--ink); }
.active-clear {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  padding: 6px 4px; background: transparent; border: 0;
  cursor: pointer;
}
.active-clear:hover { color: var(--accent-pin); }

/* Search results header */
.results-head {
  padding: 22px 0 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.results-head__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05; letter-spacing: var(--display-tracking);
  margin: 0 0 6px;
}
.results-head__title em {
  font-style: var(--display-italic-style);
  font-weight: var(--display-em-weight);
  color: var(--accent);
}
.results-head__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.results-head__tools {
  display: flex; align-items: center; gap: 14px; font-size: 13px;
}
.results-head__save {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent);
  border: 1px dashed var(--accent);
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft);
  text-decoration: none;
}

/* Split layout — results left, sticky map right */
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0 64px;
}
.search-layout--map-left { grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); }
.search-layout--map-left .search-results { order: 2; }
.search-layout--map-left .search-map { order: 1; }
.search-layout--list { grid-template-columns: 1fr; }
.search-layout--list .search-map { display: none; }
.search-layout--grid { grid-template-columns: 1fr; }
.search-layout--grid .search-map { display: none; }

.search-results { min-width: 0; }
.search-results__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.search-layout--grid .search-results__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

/* Sticky map column */
.search-map {
  position: sticky; top: 168px;
  height: calc(100vh - 188px);
  min-height: 540px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #cfe6ec;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.search-map__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.search-map__body {
  position: relative; flex: 1; overflow: hidden;
}
.search-map__controls {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 4;
}
.search-map__btn {
  width: 32px; height: 32px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-sm);
}
.search-map__btn:hover { border-color: var(--accent); }
.search-map__legend {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  box-shadow: var(--shadow-sm);
  z-index: 4;
}
.search-map__legend div { display: flex; align-items: center; gap: 6px; }
.search-map__legend div + div { margin-top: 4px; }
.search-map__legend i {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}

/* Horizontal beach result card */
.r-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
  color: inherit;
}
.r-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.r-card.is-hovered {
  border-color: var(--accent-pin);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, .12);
}
.r-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--paper-3);
}
.r-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.r-card:hover .r-card__photo img { transform: scale(1.04); }
.r-card__pin {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink);
  color: var(--paper);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.r-card.is-hovered .r-card__pin {
  background: var(--accent-pin);
  transform: scale(1.08);
}
.r-card__fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92);
  border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
  transition: color .15s var(--ease), transform .15s var(--ease), background .15s var(--ease);
}
.r-card__fav:hover { color: var(--accent-pin); transform: scale(1.1); background: #fff; }
.r-card__fav.is-on {
  color: var(--accent-pin);
  background: rgba(224,122,95,.12);
}
.r-card__fav.is-on svg path { fill: var(--accent-pin); stroke: var(--accent-pin); }
.r-card__fav.is-on:hover { transform: scale(1.1); }
.r-card__body {
  display: flex; flex-direction: column;
  padding: 4px 6px 4px 0;
  min-width: 0;
}
.r-card__topline {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 4px;
}
.r-card__name {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 22px;
  line-height: 1.1;
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
}
.r-card__loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--muted);
}
.r-card__note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.r-card__note b { color: var(--ink); }
.r-card__note .rating-star { color: var(--accent-pin); }
.r-card__note span { color: var(--muted); }


.r-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.r-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.r-badge svg {
  fill: currentColor;
}
.r-badge--plage {
  color: #e98d2a;
  background: #f9f0e8;
  border-color: rgba(233,141,42,.30);
}
.r-badge--confort {
  color: #1b6938;
  background: #eceee5;
  border-color: rgba(27,105,56,.28);
}
.r-badge--nautique {
  color: #005fbb;
  background: #ebeef1;
  border-color: rgba(0,95,187,.28);
}

.r-card__feat {
  display: inline-flex; align-items: center; gap: 5px;
}
.r-card__feat.is-off { color: var(--line-strong); text-decoration: line-through; }

/* Grid view cards */
.search-layout--grid .r-card {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  background: transparent;
}
.search-layout--grid .r-card:hover { box-shadow: none; border: 0; }
.search-layout--grid .r-card__photo { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.search-layout--grid .r-card__body { padding: 12px 4px 0; }

/* Map pin */
.mpin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 2;
}
.mpin__bubble {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  white-space: nowrap;
  transition: all .15s var(--ease);
  position: relative;
}
.mpin__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(-4px) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--paper);
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  z-index: -1;
}
.mpin.is-hovered { z-index: 5; }
.mpin.is-hovered .mpin__bubble {
  background: var(--accent-pin);
  color: #fff;
  border-color: var(--accent-pin);
  transform: scale(1.08);
}
.mpin.is-hovered .mpin__bubble::after {
  background: var(--accent-pin);
  border-color: var(--accent-pin);
}
.mpin .rating-star { color: var(--accent-pin); }
.mpin.is-hovered .rating-star { color: #fff; }

/* Map preview card on pin hover */
.mpin__preview {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s var(--ease);
}
.mpin.is-hovered .mpin__preview { opacity: 1; }
.mpin__preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mpin__preview-body { padding: 8px 10px; }
.mpin__preview-name {
  font-family: var(--display-family); font-weight: var(--display-weight);
  font-size: 14px; margin: 0 0 2px; letter-spacing: -0.01em;
}
.mpin__preview-meta { font-size: 11px; color: var(--muted); }

/* Refinement section */
.refine {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.refine__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.refine__lede {
  font-size: 14px; color: var(--muted);
  margin: 0 0 24px;
}
.refine__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.refine__card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  transition: all .15s var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column;
  gap: 4px;
  text-decoration: none; color: inherit;
}
.refine__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.refine__card-kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-pin);
}
.refine__card-title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.refine__card-meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-top: 6px;
}

/* Related searches */
.related {
  padding: 56px 0 24px;
}
.related__list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.related__list a {
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.related__list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Search empty state */
.search-empty {
  text-align: center;
  padding: 80px 24px 120px;
}
.search-empty__icon {
  width: 64px; height: 64px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}
.search-empty__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-size: 32px; line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: var(--display-tracking);
}
.search-empty__lede {
  font-size: 16px; color: var(--muted);
  max-width: 44ch; margin: 0 auto 32px;
}

/* View toggle buttons */
.view-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}
.view-toggle__btn {
  border: 0;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.view-toggle__btn.is-active {
  background: var(--ink);
  color: var(--paper);
}
.view-toggle__btn:hover:not(.is-active) {
  background: rgba(21,33,43,.05);
}

/* Pagination */
.search-pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.search-pagination__meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* ===== Filter dropdowns ===== */
.fd-panel {
  position: fixed;
  z-index: 9999;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 8px 28px rgba(0,0,0,.13), 0 2px 6px rgba(0,0,0,.07);
  min-width: 200px;
  padding: 10px 0 6px;
  display: none;
}
.fd-panel.is-open { display: block; }
.fd-panel__title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 14px 8px; border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.fd-option {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; cursor: pointer;
  font-size: 14px; color: var(--ink);
  transition: background .1s;
}
.fd-option:hover { background: var(--paper-2); }
.fd-option input[type=checkbox] {
  width: 15px; height: 15px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.fd-panel__footer {
  display: flex; justify-content: flex-end; gap: 6px;
  padding: 8px 14px 4px; border-top: 1px solid var(--line); margin-top: 4px;
}
.filter-pill.has-value {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.filter-pill__count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-pin); color: #fff; font-size: 10px;
  font-weight: 700; margin-left: 2px;
}

/* ===== Leaflet map pins ===== */
.lpin { background: transparent !important; border: none !important; }
.lpin__inner {
  width: 28px; height: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  font-family: var(--mono);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  border: 2px solid #fff;
  transition: background .15s var(--ease), transform .15s var(--ease);
  cursor: pointer;
}
.lpin.is-hovered .lpin__inner,
.lpin.leaflet-marker-icon:focus .lpin__inner {
  background: var(--accent-pin);
  transform: scale(1.25);
}
/* Pin Punaise (image + numéro) */
.lpin__punaise, .vmap-punaise {
  position: relative; display: inline-block;
  width: 42px; height: 42px;
  transition: transform .15s var(--ease);
  cursor: pointer;
}
.lpin__punaise img, .vmap-punaise img {
  width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.lpin__punaise span, .vmap-punaise span {
  position: absolute; top: 28%; left: 0; right: 0;
  text-align: center; color: #fff;
  font-size: 10px; font-weight: 700;
  font-family: var(--mono);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  pointer-events: none;
}
.vmap-punaise.is-principal { filter: drop-shadow(0 0 6px rgba(224,122,95,.6)); }
.lpin.is-hovered .lpin__punaise { transform: scale(1.25); }
.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { display: none !important; }
#rmap { width: 100%; height: 100%; border-radius: inherit; }

/* Responsive */
@media (max-width: 1100px) {
  .search-layout, .search-layout--map-left { grid-template-columns: 1fr; }
  .search-map { display: none; }
  .refine__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .r-card { grid-template-columns: 1fr; }
  .r-card__photo { aspect-ratio: 16 / 10; }
  .refine__grid { grid-template-columns: 1fr; }
  .search-layout--grid .search-results__list { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .results-head__tools { flex-wrap: wrap; gap: 8px; }
}

/* ===== Dept pagination ===== */
.dept-pag {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.dept-pag__btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.dept-pag__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.dept-pag__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dept-pag__btn:disabled { opacity: .35; cursor: default; }
.dept-pag__ellipsis { font-size: 13px; color: var(--muted); line-height: 36px; padding: 0 4px; }
.dept-pag__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-left: 12px;
}

/* ===== Error pages (404 / 410 / 403 / 500) ===== */
.errpage__hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
}
.errpage__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.errpage__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 26px;
}
.errpage__badge-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-pin);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-pin) 22%, transparent);
}
.errpage__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-style: var(--display-italic-style);
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  margin: 0 0 20px;
  text-wrap: balance;
}
.errpage__lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}
.errpage__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 34px;
}
.errpage__report {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: .02em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: color .15s var(--ease);
}
.errpage__report:hover { color: var(--ink); text-decoration-color: var(--ink); }

.errpage__art { min-width: 0; }
.escene {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #eaf3f2;
}
.escene svg { display: block; width: 100%; height: 100%; }
.escene--storm { box-shadow: var(--shadow-lg); }

/* Suggestions */
.errpage__suggest {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) 0;
}
.errsuggest__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: 32px;
}
.errsuggest__title {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-style: var(--display-italic-style);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.errsuggest__lede {
  font-size: 15px; color: var(--muted);
  max-width: 34ch; margin: 0; text-align: right;
}
.errsuggest__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.errsuggest__card {
  display: flex; flex-direction: column;
  padding: 20px 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  cursor: pointer;
}
.errsuggest__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.errsuggest__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.errsuggest__count {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--muted);
}
.errsuggest__name {
  font-family: var(--display-family);
  font-weight: var(--display-weight);
  font-style: var(--display-italic-style);
  font-size: 22px; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.errsuggest__tag {
  font-size: 13.5px; color: var(--muted); line-height: 1.45;
  margin: 0 0 18px; flex: 1;
}
.errsuggest__go {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--accent);
}
.errsuggest__card:hover .errsuggest__go { gap: 9px; }

@media (max-width: 860px) {
  .errpage__grid { grid-template-columns: 1fr; }
  .errpage__art { order: -1; max-width: 480px; }
  .errsuggest__grid { grid-template-columns: 1fr 1fr; }
  .errsuggest__head { grid-template-columns: 1fr; }
  .errsuggest__lede { text-align: left; }
}
@media (max-width: 520px) {
  .errsuggest__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Ville (commune) page
   ============================================================ */

/* Hero — un peu plus de présence sur le nom de commune */
.ville-hero .dept-hero__title { font-size: clamp(26px, 3.4vw, 50px); }
.ville-hero .dept-hero__stats b { white-space: nowrap; }
.ville-beaches__head { margin-bottom: 32px; }
.ville-beaches__head .section__title { font-size: clamp(22px, 3vw, 36px); white-space: nowrap; }

/* Badge numéroté sur chaque carte de plage (rappelle les pins de la carte) */
.bcard__photo { position: relative; }
.bcard__index {
  position: absolute; top: 12px; left: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(21, 33, 43, 0.5); color: #fff;
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
}

/* Drapeaux de baignade */
.flag--green  { background: rgba(70, 150, 95, 0.12);  color: #2a6f5a; }
.flag--green  .flag__dot { background: #2a6f5a; box-shadow: 0 0 0 4px rgba(70, 150, 95, 0.18); }
.flag--yellow { background: rgba(234, 179, 8, 0.14);  color: #7a5800; }
.flag--yellow .flag__dot { background: #d4a000; box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.20); }
.flag--red    { background: rgba(200, 60, 60, 0.14);  color: #7a1a1a; }
.flag--red    .flag__dot { background: #dc2626; box-shadow: 0 0 0 4px rgba(200, 60, 60, 0.20); }

/* Carte aside météo (largeur fixée par .beach-grid-2col) */
.ville-aside .weather__sub > div { white-space: nowrap; }

/* Pin numéroté de la carte MapLibre */
.vmap-pin {
  width: 26px; height: 26px; border-radius: 50%;
  background: #15212b; color: #fff;
  border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
}
.vmap-pin.is-principal { background: var(--accent-pin); }

/* Carte commune voisine — étend .nearby__card */
.nearby__body h4 {
  margin: 0 0 4px;
  font-family: var(--display-family); font-weight: var(--display-weight); font-size: 19px; line-height: 1.15;
}
.commune-card .nearby__photo { position: relative; }
.commune-card__num {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: #fff; background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  padding: 3px 7px; border-radius: 4px;
}
.commune-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.commune-card__count { font-size: 13px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.commune-card .nearby__dist { margin-top: 0; white-space: nowrap; }

@media (max-width: 760px) {
  .ville-aside { grid-template-columns: 1fr; }
}

/* ===== POPUP DE RECHERCHE (navbar) ===== */
.nav-search { position: fixed; inset: 0; z-index: 10000; }
.nav-search[hidden] { display: none; }
.nav-search__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 25, 35, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.nav-search.is-open .nav-search__backdrop { opacity: 1; }
.nav-search__panel {
  position: relative;
  max-width: 680px;
  margin: 84px auto 0;
  padding: 0 20px;
  transform: translateY(-12px) scale(.98);
  opacity: 0;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-search.is-open .nav-search__panel { transform: translateY(0) scale(1); opacity: 1; }
.nav-search__form {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.10);
}
.nav-search__icon { color: var(--muted); flex-shrink: 0; }
.nav-search__input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; padding: 12px 4px; color: var(--ink);
}
.nav-search__input::placeholder { color: var(--muted); }
.nav-search__submit { flex-shrink: 0; border-radius: 999px; }
.nav-search__close {
  flex-shrink: 0; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; padding: 8px; border-radius: 50%; line-height: 0;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-search__close:hover { color: var(--ink); background: var(--paper-2); }
.nav-search__suggest {
  margin: 10px 0 0;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: 0 12px 36px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden auto;
  max-height: min(60vh, 460px);
  padding: 6px 0;
}
.nav-search__suggest[hidden] { display: none; }

@media (max-width: 600px) {
  .nav-search__panel { margin-top: 64px; padding: 0 12px; }
  .nav-search__form { padding: 6px 6px 6px 16px; }
  .nav-search__submit .btn, .nav-search__submit { padding: 8px 12px; }
}
