/* WindSpots — feuille de style principale (mobile d'abord, thèmes clair/sombre). */

/* ---------- Jetons de design ---------- */
:root {
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  --ocean-900: #061a33;
  --ocean-700: #0a3d73;
  --ocean-500: #0b6bcb;
  --ocean-400: #2f8cf0;
  --lagoon: #12b5a6;
  --sand: #f4c86a;
  --coral: #ef5b4b;
  --good: #19a463;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #0c1d30;
  --muted: #5a6b7e;
  --border: #e1e7ef;
  --primary: var(--ocean-500);
  --primary-ink: #ffffff;
  --link: #0a5fb8;
  --focus: #2f8cf0;
  --shadow-sm: 0 1px 2px rgba(12, 29, 48, 0.06), 0 1px 1px rgba(12, 29, 48, 0.04);
  --shadow: 0 6px 24px -8px rgba(12, 29, 48, 0.18), 0 2px 6px -2px rgba(12, 29, 48, 0.08);
  --shadow-lg: 0 18px 50px -18px rgba(6, 26, 51, 0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --container: 1200px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #08121e;
    --surface: #0f1c2b;
    --surface-2: #16263a;
    --text: #e5edf6;
    --muted: #91a3b8;
    --border: #1f3147;
    --primary: #2f8cf0;
    --link: #6cb2ff;
    --shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #08121e;
  --surface: #0f1c2b;
  --surface-2: #16263a;
  --text: #e5edf6;
  --muted: #91a3b8;
  --border: #1f3147;
  --primary: #2f8cf0;
  --link: #6cb2ff;
  --shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 750;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 720px) {
  .container {
    padding: 0 1.5rem;
  }
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 1000;
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-xl {
  width: 3rem;
  height: 3rem;
}

/* ---------- Boutons, pastilles ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 6px 16px -6px rgba(11, 107, 203, 0.6);
}

.btn-primary:hover {
  background: var(--ocean-400);
}

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

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text);
}

.chip-windsurf {
  color: #0a62bb;
  background: #e2effc;
}

.chip-kitesurf {
  color: #b2430e;
  background: #fdebdf;
}

.chip-wingfoil {
  color: #0d8277;
  background: #ddf5f2;
}

[data-theme="dark"] .chip-windsurf {
  color: #8cc4ff;
  background: #10294a;
}

[data-theme="dark"] .chip-kitesurf {
  color: #ffb48c;
  background: #3a2112;
}

[data-theme="dark"] .chip-wingfoil {
  color: #7ae4d8;
  background: #0d332f;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .chip-windsurf {
    color: #8cc4ff;
    background: #10294a;
  }

  [data-theme="auto"] .chip-kitesurf {
    color: #ffb48c;
    background: #3a2112;
  }

  [data-theme="auto"] .chip-wingfoil {
    color: #7ae4d8;
    background: #0d332f;
  }
}

.sport-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.sport-chips.compact .chip span {
  display: none;
}

.sport-chips.compact .chip {
  padding: 0.25rem;
}

.sport-chips.compact .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.level {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.level-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.level-bars i {
  width: 4px;
  border-radius: 1px;
  background: var(--border);
}

.level-bars i:nth-child(1) {
  height: 40%;
}

.level-bars i:nth-child(2) {
  height: 60%;
}

.level-bars i:nth-child(3) {
  height: 80%;
}

.level-bars i:nth-child(4) {
  height: 100%;
}

.level-debutant .level-bars i.on {
  background: #19a463;
}

.level-intermediaire .level-bars i.on {
  background: #0b6bcb;
}

.level-confirme .level-bars i.on {
  background: #e08a00;
}

.level-expert .level-bars i.on {
  background: #d62f45;
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-count {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0 0.45rem;
}

/* Pastille de vent : fond coloré selon l'échelle (voir WIND_SCALE) */
.wind-pill {
  display: inline-block;
  min-width: 3.4em;
  text-align: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--wind);
  color: var(--wind-ink);
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Indice de navigabilité */
.score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: #8696a8;
  font-size: 0.85rem;
  line-height: 1.3;
}

.score strong {
  font-size: 1.05em;
}

.score small {
  opacity: 0.8;
  font-size: 0.75em;
}

.score-top {
  background: linear-gradient(135deg, #0fae6b, #0b8f5a);
}

.score-good {
  background: linear-gradient(135deg, #7cc244, #4ea630);
}

.score-fair {
  background: linear-gradient(135deg, #f1b630, #e08a00);
}

.score-poor {
  background: #8a99ab;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand strong {
  color: var(--primary);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--ocean-500), var(--lagoon));
  box-shadow: 0 4px 12px -4px rgba(11, 107, 203, 0.7);
}

.brand-mark .icon {
  width: 22px;
  height: 22px;
}

.header-search {
  order: 10;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.header-search:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  padding: 0.55rem 0;
  outline: none;
}

.main-nav {
  display: none;
  order: 11;
  flex: 1 1 100%;
  flex-direction: column;
  padding-bottom: 0.75rem;
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 560;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--primary);
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.unit-select select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.5rem;
  cursor: pointer;
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .theme-icon-light {
    display: none;
  }

  [data-theme="auto"] .theme-icon-dark {
    display: inline;
  }
}

@media (min-width: 980px) {
  .header-search {
    order: 0;
    flex: 0 1 300px;
    margin: 0 0 0 1rem;
  }

  .main-nav,
  .main-nav.open {
    display: flex;
    order: 0;
    flex: 0 1 auto;
    flex-direction: row;
    padding: 0;
    gap: 0.15rem;
  }

  .main-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.93rem;
  }

  .nav-toggle {
    display: none;
  }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.35rem 0 0.1rem;
  opacity: 0.6;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

/* ---------- Mise en page ---------- */
.site-main {
  flex: 1;
}

.section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.section-head h2,
.section-head p {
  margin-bottom: 0.2rem;
}

.section-head .count {
  font-weight: 500;
  font-size: 0.8em;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.page-head {
  padding-top: 1.5rem;
}

.page-head h1 {
  margin-bottom: 0.3rem;
}

.flag-lg {
  font-size: 1.3rem;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

.empty-state p {
  margin: 0;
  max-width: 46ch;
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(18, 181, 166, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(47, 140, 240, 0.5), transparent 60%),
    linear-gradient(160deg, var(--ocean-900) 0%, var(--ocean-700) 55%, var(--ocean-500) 100%);
  padding: 3.5rem 0 6.5rem;
}

.hero-bg {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 110px;
  color: var(--bg);
  pointer-events: none;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
}

.hero .eyebrow {
  color: #9fe7dd;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero .accent {
  background: linear-gradient(90deg, #7ef0de, var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.85);
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 680px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 20px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-shadow: var(--shadow-lg);
  margin: 1.5rem 0 1rem;
}

.hero-search input {
  flex: 1 1 200px;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  padding: 0.6rem 0;
}

.hero-search select {
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  font: inherit;
  color: var(--text);
  padding: 0.6rem 0.5rem;
}

.hero-search .btn {
  flex: 1 1 100%;
}

@media (min-width: 620px) {
  .hero-search {
    flex-wrap: nowrap;
    border-radius: 999px;
  }

  .hero-search .btn {
    flex: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature .icon {
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.feature p {
  margin: 0;
}

/* ---------- Cartes de spots ---------- */
.spot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.spot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.spot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.spot-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.spot-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.spot-card:hover .spot-card-media img {
  transform: scale(1.04);
}

.spot-card-media.no-photo {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, var(--ocean-700), var(--ocean-500) 60%, var(--lagoon));
}

.spot-card-media.type-lac,
.spot-card-media.type-lagon {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, #0b6f8f, #12b5a6 70%, #7ee0c9);
}

.spot-card-media.type-recif,
.spot-card-media.type-pointe {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, #102a5c, #2c5fb8 60%, #f4c86a);
}

.spot-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.spot-card-placeholder .icon {
  width: 3.2rem;
  height: 3.2rem;
}

.spot-card-score {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.spot-card-score .score {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.spot-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.spot-card-title {
  margin: 0;
  font-size: 1.05rem;
}

.spot-card-title a {
  color: var(--text);
  text-decoration: none;
}

.spot-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.spot-card-loc {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.85rem;
}

.spot-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spot-card-wind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* ---------- Pays ---------- */
.country-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}

.country-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.country-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.country-flag {
  grid-row: span 2;
  font-size: 2rem;
  line-height: 1;
}

.country-name {
  font-weight: 650;
}

.country-count {
  font-size: 0.82rem;
}

.country-grid-lg .country-card {
  padding: 1.2rem;
}

/* ---------- Cartes Leaflet ---------- */
.spots-map {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  z-index: 0;
}

.map-preview {
  height: 380px;
}

.map-medium {
  height: 340px;
}

.map-sticky {
  height: 360px;
}

@media (min-width: 900px) {
  .map-preview {
    height: 460px;
  }

  .region-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
  }

  .region-map {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .map-sticky {
    height: calc(100vh - var(--header-h) - 2rem);
    max-height: 640px;
  }
}

.region-map {
  margin-top: 1rem;
}

.ws-marker {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--wind, #8696a8);
  color: var(--wind-ink, #0c1d30);
  font: 700 10px/1 var(--font);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  font-family: var(--font);
}

.leaflet-popup-content {
  margin: 12px 14px;
  font-size: 0.88rem;
}

.map-popup strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.map-popup .row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.3rem 0;
}

.wind-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.wind-legend span[data-kn] {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.12rem 0.25rem;
  background: var(--wind);
  color: var(--wind-ink);
}

.wind-legend span[data-kn]:first-child {
  border-radius: 6px 0 0 6px;
}

.wind-legend span[data-kn]:nth-last-child(2) {
  border-radius: 0 6px 6px 0;
}

.wind-legend-unit {
  margin-left: 0.4rem;
}

/* ---------- Erreurs ---------- */
.error-page {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 640px;
}

.error-code {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--ocean-500), var(--lagoon));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-code .icon {
  color: var(--lagoon);
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.brand-footer {
  margin-bottom: 0.6rem;
}

.footer-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Tuiles légèrement assombries en thème sombre */
[data-theme="dark"] .leaflet-tile-pane {
  filter: brightness(0.82) contrast(1.05);
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .leaflet-tile-pane {
    filter: brightness(0.82) contrast(1.05);
  }
}

/* ---------- Fiche spot ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.card h2 .icon {
  color: var(--primary);
}

.card p:last-child {
  margin-bottom: 0;
}

.prose p {
  max-width: 70ch;
}

.btn-block {
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
}

.wind-pill-sm {
  font-size: 0.75rem;
  min-width: 0;
  padding: 0.05rem 0.4rem;
}

.spot-hero {
  position: relative;
  display: grid;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(18, 181, 166, 0.45), transparent 60%),
    linear-gradient(150deg, var(--ocean-900), var(--ocean-700) 60%, var(--ocean-500));
  color: #fff;
  padding: 0;
}

.spot-hero-media {
  grid-area: 1 / 1;
}

.spot-hero.has-photo .spot-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-hero.has-photo .spot-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 51, 0.15) 0%, rgba(6, 26, 51, 0.55) 45%, rgba(6, 26, 51, 0.92) 100%);
}

.spot-hero-body {
  grid-area: 1 / 1;
  position: relative;
  align-self: end;
  padding: 2.5rem 1.25rem 1.4rem;
}

.spot-hero.has-photo .spot-hero-body {
  padding-top: 9rem;
}

.spot-hero h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.spot-hero .eyebrow {
  color: #a8ecdf;
}

.spot-hero .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.spot-hero .eyebrow a:hover {
  text-decoration: underline;
}

.spot-hero .level {
  color: #fff;
}

.spot-hero .tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
}

.spot-hero .chip {
  backdrop-filter: blur(6px);
}

.spot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.spot-hero .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-fav.is-favorite {
  background: var(--sand);
  color: #3b2a00;
}

.btn-fav.is-favorite .icon {
  fill: currentColor;
}

@media (min-width: 720px) {
  .spot-hero-body {
    padding: 3rem 2.2rem 2rem;
  }

  .spot-hero.has-photo .spot-hero-body {
    padding-top: 14rem;
  }
}

.spot-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.spot-main,
.spot-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

@media (min-width: 960px) {
  .spot-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
  }
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.info-danger {
  border-color: color-mix(in srgb, var(--coral) 45%, var(--border));
  background: color-mix(in srgb, var(--coral) 7%, var(--surface));
}

.info-danger h2 .icon {
  color: var(--coral);
}

.facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.facilities li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.88rem;
  font-weight: 550;
}

.months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.months li {
  display: grid;
  place-items: center;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.months li.on {
  background: linear-gradient(180deg, #3cc36a, #19a463);
  color: #fff;
}

.months li.now {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface-2);
}

.gallery figure.broken img {
  visibility: hidden;
}

.gallery figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Rose des vents */
.rose-card {
  text-align: center;
}

.wind-rose {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.rose-ring {
  fill: var(--surface-2);
}

.rose-neutral {
  fill: color-mix(in srgb, var(--muted) 22%, var(--surface));
}

.rose-good {
  fill: #2bb673;
}

.rose-off {
  fill: #e5484d;
}

.wind-rose path {
  stroke: var(--surface);
  stroke-width: 1.5;
}

.rose-label {
  fill: var(--text);
  font: 700 13px var(--font);
  text-anchor: middle;
  dominant-baseline: central;
}

.rose-shore line {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  marker-end: none;
}

.rose-shore circle {
  fill: var(--primary);
}

.rose-legend {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.3rem;
  text-align: left;
  font-size: 0.85rem;
}

.sw {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  vertical-align: -0.1em;
  margin-right: 0.3rem;
}

.sw-good {
  background: #2bb673;
}

.sw-off {
  background: #e5484d;
}

.sw-shore {
  background: var(--primary);
  height: 0.25rem;
  vertical-align: 0.15em;
}

.map-mini {
  height: 240px;
}

.nearby-item {
  position: relative;
}

.distance {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(6, 26, 51, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  pointer-events: none;
}

/* ---------- Prévisions ---------- */
.forecast-head-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.day-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}

.day-card {
  display: grid;
  gap: 0.3rem;
  justify-items: start;
  padding: 0.8rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  border-top: 4px solid #b9c4d0;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.day-card.score-top {
  border-top-color: #0fae6b;
}

.day-card.score-good {
  border-top-color: #7cc244;
}

.day-card.score-fair {
  border-top-color: #f1b630;
}

.day-card .score {
  background-clip: padding-box;
}

.day-card.score-top,
.day-card.score-good,
.day-card.score-fair,
.day-card.score-poor {
  background: var(--surface);
  color: var(--text);
}

.day-name {
  font-weight: 750;
}

.day-date,
.day-gust,
.day-extra,
.day-window {
  font-size: 0.8rem;
}

.day-wind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.skeleton .day-card {
  height: 170px;
  cursor: default;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.forecast-error {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--coral) 45%, var(--border));
  background: color-mix(in srgb, var(--coral) 7%, var(--surface));
}

.forecast-error .icon {
  color: var(--coral);
}

.forecast-error p {
  margin: 0.2rem 0 0.8rem;
}

[hidden] {
  display: none !important;
}

.forecast-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  scroll-behavior: smooth;
}

.forecast-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.forecast-table th,
.forecast-table td {
  padding: 0.32rem 0.25rem;
  min-width: 2.6rem;
  border-bottom: 1px solid var(--border);
}

.forecast-table tbody th,
.forecast-table thead tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  padding: 0.32rem 0.6rem;
  background: var(--surface);
  font-weight: 650;
  box-shadow: 1px 0 0 var(--border);
  min-width: 5.6rem;
}

.forecast-table .day-head {
  font-weight: 750;
  text-align: left;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
  text-transform: capitalize;
}

.forecast-table .day-start {
  border-left: 2px solid var(--border);
}

.forecast-table .hours td {
  color: var(--muted);
  font-weight: 600;
}

.forecast-table td.night {
  background: color-mix(in srgb, var(--muted) 10%, var(--surface));
}

.forecast-table .wcell {
  font-weight: 750;
  font-size: 0.85rem;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.forecast-table .wcell.gust {
  font-weight: 600;
  font-size: 0.78rem;
}

.dir-arrow {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  margin: 0 auto;
  color: var(--text);
  transition: transform 0.2s;
}

.dir-arrow.dir-off {
  color: var(--coral);
}

.dir-arrow.dir-wave {
  color: var(--primary);
}

.dir-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}

.day-wind .dir-arrow {
  margin: 0;
}

.rain {
  display: inline-block;
  padding: 0 0.25rem;
  border-radius: 4px;
  background: rgba(47, 140, 240, calc(0.15 + var(--rain) * 0.6));
}

.score-sm {
  padding: 0.05rem 0.35rem;
  font-size: 0.75rem;
}

.forecast-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin: 0.6rem 0 0;
}

.chart-card {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.chart-card h3 {
  margin-bottom: 0.4rem;
}

.chart-box {
  position: relative;
  height: 260px;
}

.score-none {
  background: #b9c4d0;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

.map-popup .btn {
  margin-top: 0.4rem;
  color: #fff;
}

.map-popup > .muted {
  display: block;
  font-size: 0.8rem;
}

/* ---------- Formulaires ---------- */
.field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.seg label {
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
}

.seg input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* ---------- Carte plein écran ---------- */
.page-map .site-footer {
  display: none;
}

.fullmap {
  position: relative;
  height: calc(100vh - var(--header-h) - 58px);
  height: calc(100dvh - var(--header-h) - 58px);
  min-height: 420px;
}

@media (min-width: 980px) {
  .fullmap {
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
  }
}

.fullmap-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface-2);
}

.map-panel {
  position: absolute;
  z-index: 500;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  max-height: calc(100% - 1.5rem);
  overflow: auto;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

@media (min-width: 720px) {
  .map-panel {
    right: auto;
    width: 340px;
    top: 1rem;
    left: 1rem;
  }
}

.map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.map-panel h1 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.15rem;
  margin: 0;
}

.map-panel h1 .icon {
  color: var(--primary);
}

.map-panel-body {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.map-count {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.map-legend .score {
  font-size: 0.72rem;
  font-weight: 700;
}

.map-error {
  position: absolute;
  z-index: 600;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--coral);
  font-weight: 600;
}

.ws-cluster {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ocean-700);
  color: #fff;
  font: 750 13px/1 var(--font);
  border: 4px solid var(--ring, #b9c4d0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* ---------- Recherche ---------- */
.search-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.search-form {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 960px) {
  .search-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
  }

  .search-form {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.results-head h2 {
  margin: 0;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.active-filters .icon {
  width: 0.9em;
  height: 0.9em;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Où naviguer ---------- */
.ranking-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow-x: auto;
  max-width: 100%;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.tab[aria-current="page"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.inline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-filters .field {
  min-width: 150px;
}

.ranking {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num main score"
    "stats stats stats";
  gap: 0.6rem 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}

.rank-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.rank-num {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.podium-1 .rank-num {
  background: linear-gradient(135deg, #ffd864, #e9a400);
  color: #3b2a00;
}

.podium-2 .rank-num {
  background: linear-gradient(135deg, #e9eef3, #aab6c3);
  color: #1e2a36;
}

.podium-3 .rank-num {
  background: linear-gradient(135deg, #f3c39a, #c97a3a);
  color: #3a1d05;
}

.rank-main {
  grid-area: main;
  display: grid;
  gap: 0.2rem;
}

.rank-title {
  margin: 0;
  font-size: 1.05rem;
}

.rank-title a {
  color: var(--text);
  text-decoration: none;
}

.rank-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.rank-loc {
  margin: 0;
  font-size: 0.85rem;
}

.rank-score {
  grid-area: score;
}

.rank-score .score {
  font-size: 1.05rem;
  padding: 0.3rem 0.7rem;
}

.rank-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  font-size: 0.85rem;
}

.rank-stats dt {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-stats dd {
  margin: 0.1rem 0 0;
  font-weight: 650;
}

@media (min-width: 860px) {
  .rank-item {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr) auto;
    grid-template-areas: "num main stats score";
  }
}

/* ---------- Favoris ---------- */
.fav-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.fav-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.fav-head h2 {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
}

.fav-head h2 a {
  color: var(--text);
  text-decoration: none;
}

.fav-head p {
  font-size: 0.85rem;
}

.icon-btn.is-favorite {
  color: #e9a400;
}

.icon-btn.is-favorite .icon {
  fill: currentColor;
}

.fav-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.75rem;
}

.fav-day {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.fav-wind {
  width: 100%;
  padding: 0.35rem 0;
  border-radius: 8px;
  font-weight: 750;
  font-size: 0.85rem;
}

.fav-unit {
  font-size: 0.75rem;
  margin: 0.6rem 0 0;
}
