/* ==========================================================================
   Groupe Radio SCOOP — thème vitrine
   ========================================================================== */

:root {
  --color-bg: #0b0c10;
  --color-bg-elevated: #14161c;
  --color-bg-soft: #1b1e27;
  --color-surface: #ffffff;
  --color-text: #f4f5f7;
  --color-text-muted: #a7adbb;
  --color-text-dark: #16181f;
  --color-text-dark-muted: #5c6370;
  --color-brand: #e30613;
  --color-brand-dark: #b80510;
  --color-brand-soft: rgba(227, 6, 19, 0.12);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-dark: rgba(22, 24, 31, 0.1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
  --transition: 180ms ease;
}

/* Reset léger */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: #f6f7fa;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-brand-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  background: var(--color-brand);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-dark);
  border-color: var(--color-border-dark);
}

.btn--ghost:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-branding .custom-logo {
  max-height: 44px;
  width: auto;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover {
  color: #fff;
  opacity: 0.9;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 680px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(11, 12, 16, 0.92) 0%, rgba(11, 12, 16, 0.72) 55%, rgba(227, 6, 19, 0.35) 100%),
    var(--hero-image, radial-gradient(circle at 80% 20%, #3a1014 0%, #0b0c10 55%));
  background-size: cover;
  background-position: center;
  color: var(--color-text);
  overflow: hidden;
}

.hero--full-visual {
  min-height: clamp(520px, 78vh, 820px);
  background: #0b0c10;
}

.hero__visual {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(11, 12, 16, 0.92) 0%,
      rgba(11, 12, 16, 0.55) 38%,
      rgba(11, 12, 16, 0.25) 65%,
      rgba(11, 12, 16, 0.35) 100%
    ),
    radial-gradient(circle at 15% 80%, rgba(227, 6, 19, 0.22), transparent 42%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 4rem;
  max-width: 760px;
  margin-left: max(1rem, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, var(--container));
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--color-brand-soft);
  border: 1px solid rgba(227, 6, 19, 0.35);
  color: #ffb4b8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.75rem;
  color: #fff;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  margin: 0;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section--about {
  position: relative;
  isolation: isolate;
  background: var(--color-surface);
  overflow: hidden;
}

/* Filigrane skyline Lyon — bas à droite, max 75% largeur × 90% hauteur */
.section--about__watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  width: 75%;
  height: 90%;
  background-image: url("../images/lyon-contours.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  /* Contient l’image dans le cadre max (largeur/hauteur) */
  background-size: contain;
  opacity: 0.07;
}

.section--about > .container {
  position: relative;
  z-index: 1;
}

.section--stations {
  background: var(--color-bg);
  color: var(--color-text);
}

.section--news {
  background: #f6f7fa;
}

.section--cta {
  background: var(--color-surface);
  padding-top: 0;
}

.section--page-content {
  background: var(--color-surface);
}

.section__label {
  margin: 0 0 0.5rem;
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section--stations .section__label {
  color: #ff7a82;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0;
  color: inherit;
}

.section--about .section__title,
.section--news .section__title {
  color: var(--color-text-dark);
}

.section__lead {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  color: var(--color-text-muted);
}

.section__intro--center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__intro--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.section__body {
  font-size: 1.05rem;
  color: var(--color-text-dark-muted);
}

/* Couverture / carte */
.section--coverage {
  background: #1a1d24; /* gris anthracite, distinct du noir des radios */
  color: var(--color-text);
}

.section--coverage .section__title {
  color: #fff;
}

.section--coverage .section__lead {
  color: var(--color-text-muted);
}

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.coverage-legend__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.coverage-legend__btn:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--swatch, #fff) 45%, transparent);
  background: color-mix(in srgb, var(--swatch, #fff) 12%, rgba(255, 255, 255, 0.04));
}

.coverage-legend__btn.is-active {
  color: #fff;
  border-color: color-mix(in srgb, var(--swatch, #fff) 55%, transparent);
  background: color-mix(in srgb, var(--swatch, #fff) 18%, rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--swatch, #fff) 20%, transparent);
}

.coverage-legend__btn:not(.is-active) {
  opacity: 0.45;
}

.coverage-legend__swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--swatch, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--swatch) 35%, transparent);
  flex-shrink: 0;
}

.coverage-map-wrap {
  position: relative;
}

/* Shortcode [grs_coverage_map] dans le contenu des pages radio */
.coverage-map-wrap--embed {
  margin: 1.75rem 0 2rem;
}

.entry-content .coverage-map-wrap--embed {
  max-width: none;
}

.entry-content .coverage-map-wrap--embed .coverage-map {
  border-radius: 1rem;
  overflow: hidden; /* coins arrondis du conteneur, pas des tuiles */
}

/*
 * Les tuiles Leaflet sont des <img> : .prose img { border-radius } les arrondit
 * une par une → « carreaux » visibles. On annule dans la carte.
 */
.prose .coverage-map img,
.prose .coverage-map .leaflet-tile,
.entry-content .coverage-map img,
.entry-content .coverage-map .leaflet-tile,
.coverage-map .leaflet-tile,
.coverage-map img.leaflet-tile {
  border-radius: 0 !important;
}

/*
 * Toolbar / légende : sur l’accueil le fond est anthracite (styles blancs).
 * En embed (article clair), on force des couleurs lisibles.
 */
.coverage-map-wrap--embed .coverage-locate-btn,
.coverage-map-wrap--embed .coverage-fit-btn,
.coverage-map-wrap--embed .coverage-goto__btn {
  border-color: rgba(15, 23, 42, 0.14);
  background: #f3f4f6;
  color: #111827;
}

.coverage-map-wrap--embed .coverage-locate-btn:hover:not(:disabled),
.coverage-map-wrap--embed .coverage-fit-btn:hover:not(:disabled),
.coverage-map-wrap--embed .coverage-goto__btn:hover:not(:disabled) {
  background: #e5e7eb;
  border-color: rgba(15, 23, 42, 0.22);
}

.coverage-map-wrap--embed .coverage-goto__input {
  border-color: rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #111827;
}

.coverage-map-wrap--embed .coverage-goto__input::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

.coverage-map-wrap--embed .coverage-goto__input:focus {
  border-color: rgba(15, 23, 42, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/*
 * Suggestions light (shortcode / article) — spécificité > .entry-content ul.coverage-goto__suggest
 * (sinon fond anthracite + texte foncé illisible).
 */
.coverage-map-wrap--embed .coverage-goto__suggest,
.prose .coverage-map-wrap--embed .coverage-goto__suggest,
.entry-content .coverage-map-wrap--embed .coverage-goto__suggest,
.entry-content .coverage-map-wrap--embed ul.coverage-goto__suggest,
.prose .coverage-map-wrap--embed ul.coverage-goto__suggest {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  color: #111827;
}

.coverage-map-wrap--embed .coverage-goto__suggest-item,
.prose .coverage-map-wrap--embed .coverage-goto__suggest-item,
.entry-content .coverage-map-wrap--embed .coverage-goto__suggest-item {
  color: #111827;
  background: transparent;
}

.coverage-map-wrap--embed .coverage-goto__suggest-item:hover,
.coverage-map-wrap--embed .coverage-goto__suggest-item.is-active,
.prose .coverage-map-wrap--embed .coverage-goto__suggest-item:hover,
.prose .coverage-map-wrap--embed .coverage-goto__suggest-item.is-active,
.entry-content .coverage-map-wrap--embed .coverage-goto__suggest-item:hover,
.entry-content .coverage-map-wrap--embed .coverage-goto__suggest-item.is-active {
  background: #f3f4f6;
  color: #0f172a;
}

/* Préfixe surligné (saisie) : foncé en light */
.coverage-map-wrap--embed .coverage-goto__suggest-item mark,
.prose .coverage-map-wrap--embed .coverage-goto__suggest-item mark,
.entry-content .coverage-map-wrap--embed .coverage-goto__suggest-item mark {
  background: transparent;
  color: #0f172a;
  font-weight: 700;
}

.coverage-map-wrap--embed .coverage-locate-status {
  color: #4b5563;
}

.coverage-map-wrap--embed .coverage-locate-status.is-error {
  color: #b91c1c;
}

.coverage-map-wrap--embed .coverage-legend__btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: #f9fafb;
  color: #374151;
}

.coverage-map-wrap--embed .coverage-legend__btn.is-active {
  border-color: color-mix(in srgb, var(--swatch, #e30613) 45%, transparent);
  background: color-mix(in srgb, var(--swatch, #e30613) 12%, #fff);
  color: #111827;
}

.coverage-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.85rem;
}

.coverage-map-toolbar__left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.coverage-map-toolbar .coverage-goto {
  margin-left: auto;
  flex-shrink: 0;
}

.coverage-goto {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
  position: relative;
  z-index: 20;
}

.coverage-goto__field {
  position: relative;
  min-width: 0;
}

.coverage-goto__input {
  width: 11.5rem;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  /* ≥ 16px : évite le zoom automatique iOS au focus (sinon scroll horizontal). */
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

/* Suggestions custom (villes des fréquences — pas l’autofill navigateur) */
.coverage-goto__suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 11.5rem;
  max-height: 14rem;
  margin: 0;
  padding: 0.35rem 0;
  padding-left: 0;
  list-style: none;
  list-style-type: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1a1d24;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 30;
}

/* Reset liste dans .prose / .entry-content (sans imposer le thème dark) */
.prose .coverage-goto__suggest,
.entry-content .coverage-goto__suggest,
.entry-content ul.coverage-goto__suggest,
.prose ul.coverage-goto__suggest {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding-left: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  padding-right: 0;
}

.coverage-goto__suggest > li,
.prose .coverage-goto__suggest > li,
.entry-content .coverage-goto__suggest > li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.coverage-goto__suggest[hidden] {
  display: none !important;
}

.coverage-goto__suggest-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  color: #f4f5f7;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.coverage-goto__suggest-item:hover,
.coverage-goto__suggest-item.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.coverage-goto__suggest-item mark {
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.coverage-goto__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.coverage-goto__input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.coverage-goto__btn,
.coverage-fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.coverage-goto__btn-icon,
.coverage-fs-btn__icon {
  display: inline-flex;
  line-height: 0;
}

.coverage-goto__btn:hover:not(:disabled),
.coverage-fs-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.coverage-goto__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 640px) {
  .coverage-map-toolbar {
    flex-wrap: nowrap;
    gap: 0.4rem 0.5rem;
  }

  .coverage-map-toolbar__left {
    flex: 0 1 auto;
    min-width: 0;
  }

  .coverage-goto__input {
    width: 7.25rem;
    max-width: 38vw;
    padding: 0.5rem 0.7rem;
    font-size: 16px; /* conserver 16px sur mobile (anti-zoom iOS) */
  }

  .coverage-goto__suggest {
    min-width: 10rem;
    right: auto;
    max-width: min(70vw, 16rem);
  }

  .coverage-map-wrap,
  .section--coverage {
    overflow-x: hidden;
    max-width: 100%;
  }

  .coverage-map-toolbar {
    max-width: 100%;
  }

  .coverage-goto__btn,
  .coverage-fs-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  /* Libellés longs hors écran étroit : icône seule (géoloc + voir tout) */
  .coverage-locate-btn,
  .coverage-fit-btn {
    padding: 0.5rem 0.7rem;
    gap: 0.35rem;
  }

  .coverage-locate-btn__label,
  .coverage-fit-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .coverage-locate-status {
    font-size: 0.78rem;
    max-width: 7.5rem;
    line-height: 1.25;
  }
}

.coverage-locate-btn,
.coverage-fit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.coverage-locate-btn:hover:not(:disabled),
.coverage-fit-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.coverage-locate-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.coverage-fit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.coverage-locate-btn.is-loading {
  opacity: 0.75;
}

.coverage-locate-btn__icon,
.coverage-fit-btn__icon {
  display: inline-flex;
  line-height: 0;
}

.coverage-locate-btn.is-loading .coverage-locate-btn__icon {
  animation: grs-locate-pulse 1s ease-in-out infinite;
}

@keyframes grs-locate-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.92);
  }
}

.coverage-locate-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.coverage-locate-status.is-error {
  color: #fca5a5;
}

.coverage-map-frame {
  position: relative;
}

.coverage-map {
  width: 100%;
  height: clamp(380px, 58vh, 560px);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: #12141a;
  z-index: 0;
}

@media (min-width: 900px) {
  .coverage-map {
    height: clamp(480px, 62vh, 640px);
  }
}

.coverage-fs-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 12, 16, 0.82);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 160ms ease, border-color 160ms ease;
}

.coverage-fs-close__icon {
  display: inline-flex;
  line-height: 0;
}

.coverage-fs-close:hover {
  background: rgba(11, 12, 16, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

body.grs-coverage-map-fs-open {
  overflow: hidden;
}

.coverage-map-wrap.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 12px;
  background: #0b0c10;
  overflow: hidden;
}

.coverage-map-wrap.is-fullscreen .coverage-map-toolbar {
  margin: 0;
  flex-shrink: 0;
}

.coverage-map-wrap.is-fullscreen .coverage-fs-btn {
  display: none;
}

.coverage-map-wrap.is-fullscreen .coverage-fs-close {
  display: inline-flex;
}

.coverage-map-wrap.is-fullscreen .coverage-map-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.coverage-map-wrap.is-fullscreen .coverage-map {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .coverage-fs-close {
    width: 2.35rem;
    height: 2.35rem;
    top: 8px;
    right: 8px;
  }

  .coverage-map-wrap.is-fullscreen {
    padding: 10px;
    gap: 0.55rem;
  }
}

/*
 * Fond sombre conservé : on éclaircit un peu les tuiles (toponymes / routes)
 * sans basculer sur un style clair. Les pastilles (hors pane tuiles) restent intactes.
 */
.coverage-map .leaflet-tile-pane {
  filter: brightness(2) contrast(1.1) saturate(0.92);
}

/* Point utilisateur (géoloc) */
.grs-map-user-marker {
  background: transparent !important;
  border: 0 !important;
}

.grs-map-user-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35), 0 4px 12px rgba(0, 0, 0, 0.45);
}

.coverage-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Pastilles carte (Leaflet divIcon) */
.grs-map-marker {
  background: transparent !important;
  border: 0 !important;
}

/* Tooltip ville au survol des pastilles */
.leaflet-tooltip.grs-map-city-tooltip {
  background: rgba(11, 12, 16, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #f3f4f6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.28rem 0.55rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.leaflet-tooltip.grs-map-city-tooltip::before {
  border-top-color: rgba(11, 12, 16, 0.94);
}

/* Embed page claire : même lisibilité */
.coverage-map-wrap--embed .leaflet-tooltip.grs-map-city-tooltip {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111827;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.coverage-map-wrap--embed .leaflet-tooltip.grs-map-city-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.96);
}

.grs-map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.grs-map-pin__badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pin-color, #e30613);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pin-color) 45%, transparent);
  overflow: hidden;
}

.grs-map-pin__badge img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.grs-map-pin__freq {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(11, 12, 16, 0.9);
  border: 1px solid color-mix(in srgb, var(--pin-color) 55%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
  white-space: nowrap;
  line-height: 1.2;
}

/*
 * Popup carte — style d’origine (neutre sombre), conservé pour rollback :
 *
 * .leaflet-popup-content-wrapper {
 *   background: #1b1e27;
 *   color: #f4f5f7;
 *   border-radius: 12px;
 *   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
 * }
 * .leaflet-popup-tip { background: #1b1e27; }
 * .grs-map-popup__station { color: #c8cdd8; }
 * .grs-map-popup__freq { border-top: 1px solid rgba(255, 255, 255, 0.1); }
 */

/* Popup teintée selon --station-color (injecté au popupopen). */
.leaflet-popup.grs-map-popup-shell .leaflet-popup-content-wrapper {
  background: color-mix(in srgb, var(--station-color, #e30613) 26%, #1b1e27);
  color: #f4f5f7;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--station-color, #e30613) 48%, transparent);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--station-color, #e30613) 12%, transparent);
}

.leaflet-popup.grs-map-popup-shell .leaflet-popup-tip {
  background: color-mix(in srgb, var(--station-color, #e30613) 26%, #1b1e27);
  border: none;
  box-shadow: none;
}

/* Fallback si pas encore de class shell (autres popups éventuelles). */
.leaflet-popup-content-wrapper {
  background: #1b1e27;
  color: #f4f5f7;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-tip {
  background: #1b1e27;
}

.grs-map-popup__city {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.grs-map-popup__station {
  margin-top: 0.2rem;
  color: color-mix(in srgb, var(--station-color, #c8cdd8) 55%, #e8ebf2);
  font-weight: 500;
}

.grs-map-popup__freq {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--station-color, #fff) 28%, rgba(255, 255, 255, 0.08));
  font-size: 0.88rem;
}

.grs-map-popup__coverage {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.9;
  font-style: italic;
  color: color-mix(in srgb, var(--station-color, #fff) 45%, #d0d4de);
}

/* Légende zones FM / DAB dans la bulle */
.grs-map-popup__legend {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--station-color, #fff) 28%, rgba(255, 255, 255, 0.08));
  display: grid;
  gap: 0.35rem;
}

.grs-map-popup__legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #e8ebf2;
}

.grs-map-popup__swatch {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  box-sizing: border-box;
}

/* Aligné sur fillOpacity carte : FM 0.25 · DAB 0.20 */
.grs-map-popup__swatch--fm {
  background: color-mix(in srgb, var(--station-color, #e30613) 25%, transparent);
  border: 2px solid color-mix(in srgb, var(--station-color, #e30613) 90%, #fff);
}

.grs-map-popup__swatch--dab {
  background: color-mix(in srgb, var(--station-color, #e30613) 20%, transparent);
  border: 1.5px dashed color-mix(in srgb, var(--station-color, #e30613) 80%, #fff);
}

.grs-map-popup__freq--na {
  color: #8b92a1;
  font-style: italic;
}

/* Bouton vue pleine page (modale publique dédiée) */
.grs-map-popup__fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: color-mix(in srgb, var(--station-color, #e30613) 88%, #000);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--station-color, #e30613) 45%, transparent);
  transition: filter 0.15s ease, transform 0.15s ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.grs-map-popup__fullscreen:hover,
.grs-map-popup__fullscreen:focus-visible {
  filter: brightness(1.1);
  color: #fff;
  outline: none;
}

.grs-map-popup__fullscreen-icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
}

/* Modale zone de diffusion (carte d’accueil — hors admin) */
body.grs-coverage-modal-open {
  overflow: hidden;
}

.grs-coverage-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 30px;
  box-sizing: border-box;
  overflow: hidden;
}

.grs-coverage-modal[hidden] {
  display: none !important;
}

.grs-coverage-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(3px);
}

.grs-coverage-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0c10;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 80px rgba(0, 0, 0, 0.6);
  border: 2px solid #6b7280; /* gris moyen, plus discret que le blanc */
}

.grs-coverage-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0c10;
  overflow: hidden;
}

@media (max-width: 640px) {
  .grs-coverage-modal {
    padding: 0;
  }

  .grs-coverage-modal__dialog {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

/* Stations */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.station-card {
  --station-color: #e30613;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--station-color) 22%, transparent) 0%,
      color-mix(in srgb, var(--station-color) 6%, var(--color-bg-elevated)) 42%,
      var(--color-bg-elevated) 100%
    );
  border: 1px solid color-mix(in srgb, var(--station-color) 32%, var(--color-border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow:
    var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--station-color) 8%, transparent);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.station-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--station-color) 55%, transparent);
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--station-color) 18%, rgba(0, 0, 0, 0.28)),
    0 0 0 1px color-mix(in srgb, var(--station-color) 20%, transparent);
}

/* Lien principal vers la page de présentation (toute la carte sauf actions). */
.station-card__main {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
}

.station-card__body {
  position: relative;
  z-index: 0;
}

.station-card__socials,
.station-card__actions {
  position: relative;
  z-index: 2;
}

.station-card__badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--station-color) 18%, transparent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.station-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--station-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--station-color) 18%, transparent);
}

.station-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  margin-bottom: 1.1rem;
  padding: 0.75rem;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--station-color) 14%, rgba(255, 255, 255, 0.08)) 0%,
      color-mix(in srgb, var(--station-color) 6%, rgba(255, 255, 255, 0.03)) 100%
    );
  border: 1px solid color-mix(in srgb, var(--station-color) 28%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--station-color) 18%, transparent);
}

.station-card__logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.station-card__logo img {
  max-width: 160px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.station-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.station-card__desc {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* Page présentation radio */
.radio-hero {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--station-color, #e30613) 28%, #0b0c10) 0%,
      #0b0c10 55%,
      color-mix(in srgb, var(--station-color, #e30613) 12%, #14161c) 100%
    );
  color: #fff;
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--station-color, #e30613) 35%, transparent);
}

.radio-hero__inner {
  display: grid;
  gap: 1.5rem;
}

.radio-hero__crumb {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.radio-hero__crumb a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.radio-hero__crumb a:hover {
  opacity: 1;
  color: #fff;
}

.radio-hero__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

.radio-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 96px;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid color-mix(in srgb, var(--station-color, #e30613) 40%, transparent);
}

.radio-hero__logo img {
  max-width: 180px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.radio-hero__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: #fff;
}

.radio-hero__claim {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.radio-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Bouton Écouter : couleur de la radio (pas le rouge marque par défaut). */
.radio-hero__listen.btn--primary {
  background: color-mix(in srgb, var(--station-color, #e30613) 88%, #111);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--station-color, #e30613) 28%, transparent);
}

.radio-hero__listen.btn--primary:hover {
  background: color-mix(in srgb, var(--station-color, #e30613) 98%, #000);
  color: #fff;
}

.radio-hero .btn--ghost,
.radio-hero__map-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.radio-hero .btn--ghost:hover,
.radio-hero__map-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.radio-hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radio-hero__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--station-color, #e30613) 28%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--station-color, #e30613) 45%, transparent);
}

.radio-hero__social-link:hover {
  color: #fff;
  background: color-mix(in srgb, var(--station-color, #e30613) 55%, rgba(255, 255, 255, 0.1));
}

.radio-hero__social-link .station-card__social-icon {
  fill: currentColor;
}

.content-wrap--radio {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.radio-page__thumb {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

/*
 * Largeur pleine du .container (1120px) — évite l’effet « colonne vide » à droite
 * d’un bloc texte calé à gauche en 720px.
 */
.entry--radio .entry-content {
  max-width: none;
  width: 100%;
}

.station-card__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.station-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--station-color) 22%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--station-color) 40%, transparent);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.station-card__social-link:hover {
  color: #fff;
  background: color-mix(in srgb, var(--station-color) 55%, rgba(255, 255, 255, 0.08));
  border-color: color-mix(in srgb, var(--station-color) 70%, transparent);
  transform: translateY(-1px);
}

.station-card__social-icon {
  display: block;
  fill: currentColor;
}

.station-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.65rem;
  margin-top: auto;
}

/* Boutons carte : même logique que page présentation (primary / ghost sur fond sombre). */
.station-card__actions .btn {
  font-size: 0.88rem;
  padding: 0.5rem 0.95rem;
}

.station-card__listen.btn--primary {
  background: color-mix(in srgb, var(--station-color) 88%, #111);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--station-color) 28%, transparent);
}

.station-card__listen.btn--primary:hover {
  background: color-mix(in srgb, var(--station-color) 98%, #000);
  color: #fff;
}

.station-card__listen-icon {
  font-size: 0.75rem;
  line-height: 1;
}

/* Contour couleur radio, texte + flèche blancs. */
.station-card__visit.btn--primary,
.station-card__visit.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--station-color);
  box-shadow: none;
}

.station-card__visit.btn--primary:hover,
.station-card__visit.btn--ghost:hover {
  color: #fff;
  background: color-mix(in srgb, var(--station-color) 28%, transparent);
  border-color: var(--station-color);
}

/* Posts grid / cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(16, 18, 28, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16, 18, 28, 0.1);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eaef;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__media--placeholder {
  background:
    linear-gradient(135deg, #1b1e27, #3a1014);
}

.post-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-dark-muted);
  margin-bottom: 0.5rem;
}

.post-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-card__title a {
  color: var(--color-text-dark);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--color-brand);
}

.post-card__excerpt {
  color: var(--color-text-dark-muted);
  font-size: 0.95rem;
  flex: 1;
}

.post-card__more {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

/* CTA */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background:
    linear-gradient(120deg, #16181f 0%, #2a0d11 55%, #e30613 160%);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}

.cta-banner__title {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-banner__text p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 36rem;
}

/* Contenu pages / articles */
.content-wrap {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.content-wrap--narrow {
  max-width: 720px;
}

.page-header,
.entry-header {
  margin-bottom: 1.75rem;
}

.page-title,
.entry-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  color: var(--color-text-dark);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--color-text-dark-muted);
  font-size: 0.9rem;
}

.entry-thumbnail {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
}

.prose {
  font-size: 1.05rem;
  color: var(--color-text-dark);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose img {
  border-radius: var(--radius-sm);
}

.entry-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-dark);
  color: var(--color-text-dark-muted);
  font-size: 0.9rem;
}

.post-navigation {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-dark);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-dark-muted);
  margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
  font-weight: 600;
  color: var(--color-text-dark);
}

.navigation.pagination {
  margin-top: 2.5rem;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--color-border-dark);
  padding: 0 0.75rem;
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 500;
}

.navigation.pagination .current {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* Contact page */
.content-wrap--contact {
  max-width: 1100px;
}

.grs-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.grs-contact-layout__form {
  min-width: 0;
}

.grs-contact-layout__aside {
  min-width: 0;
}

.grs-contact {
  margin-top: 0;
}

.grs-contact-services {
  position: sticky;
  top: 1.25rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 10px 30px rgba(16, 18, 28, 0.05);
}

.grs-contact-services__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.grs-contact-services__intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-dark-muted);
  line-height: 1.45;
}

.grs-contact-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.grs-contact-services__item {
  margin: 0;
}

.grs-contact-services__link {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--color-border-dark);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.grs-contact-services__link:hover,
.grs-contact-services__link:focus-visible {
  border-color: color-mix(in srgb, var(--color-brand) 45%, #ccc);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
  outline: none;
}

.grs-contact-services__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.grs-contact-services__desc {
  font-size: 0.84rem;
  color: var(--color-text-dark-muted);
  line-height: 1.4;
}

.grs-contact-services__mail {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand);
  word-break: break-all;
}

@media (max-width: 900px) {
  .grs-contact-layout {
    grid-template-columns: 1fr;
  }

  .grs-contact-services {
    position: static;
  }
}

.grs-contact__notice {
  margin-bottom: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.grs-contact__notice--success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.grs-contact__notice--error {
  background: rgba(227, 6, 19, 0.08);
  color: #9f1239;
  border: 1px solid rgba(227, 6, 19, 0.25);
}

.grs-contact__form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 10px 30px rgba(16, 18, 28, 0.06);
}

.grs-contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grs-contact__field {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.grs-contact__field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-dark);
}

.grs-contact__field .required {
  color: var(--color-brand);
}

.grs-contact__field input,
.grs-contact__field select,
.grs-contact__field textarea {
  width: 100%;
  border: 1px solid var(--color-border-dark);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.grs-contact__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5c6370 50%), linear-gradient(135deg, #5c6370 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.grs-contact__field input:focus,
.grs-contact__field select:focus,
.grs-contact__field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-brand) 55%, #ccc);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.grs-contact__field textarea {
  resize: vertical;
  min-height: 160px;
}

.grs-contact__actions {
  margin: 0.25rem 0 0;
}

.grs-contact__form.is-submitting .grs-contact__actions .btn {
  cursor: wait;
}

.grs-contact__recipient {
  display: grid;
  gap: 0.65rem;
  margin: 0.35rem 0 0;
  padding-top: 0.35rem;
}

.grs-contact__recipient.is-empty,
.grs-contact__recipient[hidden] {
  display: none;
}

.grs-contact__recipient-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-dark-muted);
  line-height: 1.45;
}

.grs-contact__recipient-btn {
  justify-self: start;
  max-width: 100%;
  word-break: break-all;
  text-align: center;
  text-decoration: none;
}

.grs-contact__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-dark-muted);
}

.grs-contact__fax {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .grs-contact__row {
    grid-template-columns: 1fr;
  }
}

/* Search */
.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.search-field {
  flex: 1 1 200px;
  min-height: 46px;
  border: 1px solid var(--color-border-dark);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
}

/* Footer */
.site-footer {
  background: var(--color-bg);
  color: var(--color-text-muted);
  padding-top: 3rem;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.site-footer__tagline {
  margin: 0 0 1rem;
  max-width: 28rem;
}

.site-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav__list,
.contact-list,
.social-links {
  display: grid;
  gap: 0.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.1rem 0;
  font-size: 0.9rem;
}

.site-footer__bottom p {
  margin: 0;
}

.widget {
  margin-bottom: 1rem;
}

.widget-title {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Alignements WP */
.alignwide {
  max-width: min(100%, 960px);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-block-image figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--color-text-dark-muted);
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 860px) {
  .section__inner--split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 12, 16, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav li a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__content {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .hero--full-visual {
    min-height: clamp(460px, 70vh, 680px);
  }

  .hero__visual img {
    object-position: center center;
  }
}

/* ==========================================================================
   Page zone de couverture (URL directe /zone-couverture/{id}/)
   Header / menus du thème + barre + carte
   ========================================================================== */

body.grs-zone-view {
  background: #0b0c10;
}

body.grs-zone-view .site-footer {
  margin-top: 0;
}

.grs-zone-page {
  --grs-fs-bg: #0b0c10;
  --grs-fs-bar: #14171f;
  --grs-fs-text: #f4f5f7;
  --grs-fs-muted: rgba(244, 245, 247, 0.72);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h, 72px));
  background: var(--grs-fs-bg);
  color: var(--grs-fs-text);
}

.grs-zone-page .grs-fs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grs-fs-bar);
  flex-shrink: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--grs-fs-color, #e30613) 35%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--grs-fs-color, #e30613) 18%, transparent);
}

.grs-zone-page .grs-fs-bar__left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.grs-zone-page .grs-fs-bar__left > div {
  min-width: 0;
}

.grs-zone-page .grs-fs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: color-mix(in srgb, var(--grs-fs-color, #e30613) 88%, #000);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--grs-fs-color, #e30613) 40%, transparent);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.grs-zone-page .grs-fs-back:hover {
  filter: brightness(1.08);
  color: #fff;
}

.grs-zone-page .grs-fs-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--grs-fs-color, #e30613) 55%, transparent);
}

.grs-zone-page .grs-fs-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--grs-fs-text);
}

.grs-zone-page .grs-fs-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--grs-fs-muted);
  line-height: 1.35;
}

.grs-zone-page .grs-fs-legends {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.grs-zone-page .grs-fs-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--grs-fs-text);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.grs-zone-page .grs-fs-legend:hover {
  background: rgba(255, 255, 255, 0.16);
}

.grs-zone-page .grs-fs-legend.is-off {
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  text-decoration: line-through;
}

.grs-zone-page .grs-fs-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--grs-fs-color, #e30613) 25%, transparent);
}

.grs-zone-page .grs-fs-swatch--fm {
  border: 2px solid var(--grs-fs-color, #e30613);
  background: color-mix(in srgb, var(--grs-fs-color, #e30613) 25%, transparent);
}

.grs-zone-page .grs-fs-swatch--dab {
  border: 1.5px dashed var(--grs-fs-color, #e30613);
  background: color-mix(in srgb, var(--grs-fs-color, #e30613) 20%, transparent);
}

.grs-zone-page #grs-fs-map {
  flex: 1 1 auto;
  min-height: 55vh;
  width: 100%;
  background: #111;
}

/* Même lisibilité de fond que la carte d’accueil */
.grs-zone-page #grs-fs-map .leaflet-tile-pane {
  filter: brightness(2) contrast(1.1) saturate(0.92);
}

.grs-zone-page .leaflet-control-attribution {
  font-size: 10px !important;
}

@media (max-width: 640px) {
  .grs-zone-page .grs-fs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .grs-zone-page .grs-fs-bar__left {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .grs-zone-page .grs-fs-legends {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .grs-zone-page .grs-fs-title {
    font-size: 17px;
  }

  .grs-zone-page .grs-fs-meta {
    font-size: 12px;
  }

  .grs-zone-page .grs-fs-logo {
    width: 36px;
    height: 36px;
  }

  .grs-zone-page #grs-fs-map {
    min-height: 50vh;
  }
}
