/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }

:root {
  --bg:     #e9e8e5;
  --card:   #ffffff;
  --s1:     #f4f3f0;
  --s2:     #eeede9;
  --border: #d8d5cf;
  --text:   #1a2a38;
  --muted:  #8a9aa8;
  --blue:   #3d82c4;
  --terra:  #c85c3a;
  --green:  #3aaa6e;
  --orange: #d97c10;
  --red:    #c83030;
  --cyan:   #3d82c4;
  --r:      16px;
}

html { font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
body::before { display: none; }

/* ── NAV ────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--blue);
}
.nav-logo { font-size: 1rem; font-weight: 600; flex: 1; color: var(--text); letter-spacing: -.01em; }
.nav-logo b { color: var(--blue); font-weight: 700; }
.nav-update { font-size: .7rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.nav-refresh {
  background: none; border: 1.5px solid var(--border);
  color: var(--blue); width: 32px; height: 32px;
  border-radius: 8px; font-size: 1rem; cursor: pointer;
  transition: border-color .15s;
}
.nav-refresh:active { background: var(--s1); }
.spin { display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOADER ─────────────────────────────────────────────────────────────── */
.loader-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 60dvh; gap: 16px; color: var(--muted);
}
.loader-bars { display: flex; gap: 5px; }
.loader-bars span {
  display: block; width: 5px; height: 32px;
  background: var(--blue); border-radius: 3px;
  animation: bar .8s ease-in-out infinite; opacity: .7;
}
.loader-bars span:nth-child(2){animation-delay:.1s}
.loader-bars span:nth-child(3){animation-delay:.2s}
.loader-bars span:nth-child(4){animation-delay:.3s}
.loader-bars span:nth-child(5){animation-delay:.4s}
@keyframes bar { 0%,100%{transform:scaleY(.3)} 50%{transform:scaleY(1)} }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 36px 20px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  overflow: hidden;
  background: #0a1420 center / cover no-repeat;
  transition: background-image .4s ease;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(10,20,35,.20) 0%,
    rgba(10,20,35,.52) 50%,
    rgba(10,20,35,.94) 80%,
    rgba(10,20,35,1)   100%
  );
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  opacity: .22;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-color, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }

.hero-best   { --glow-color: #3d82c4; }
.hero-go     { --glow-color: #3aaa6e; }
.hero-expert { --glow-color: #d97c10; }
.hero-nogo   { --glow-color: #c85c3a; }

/* Badges */
.hero-badge {
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 24px; border: 1.5px solid currentColor;
}
.badge-best   { color: #7ac8ee; border-color: #7ac8ee; background: rgba(61,130,196,.15); }
.badge-go     { color: #6adda0; border-color: #6adda0; background: rgba(58,170,110,.15); }
.badge-light  { color: #9de87a; border-color: #9de87a; background: rgba(90,200,60,.12); }
.badge-expert { color: #f0b050; border-color: #f0b050; background: rgba(217,124,16,.15); }
.badge-nogo   { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.badge-danger {
  color: #fff; border-color: var(--terra);
  background: var(--terra);
  animation: danger-pulse 2.5s ease-in-out infinite;
}
@keyframes danger-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,92,58,0); }
  50%      { box-shadow: 0 0 0 6px rgba(200,92,58,.25); }
}

.hero-main { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.hero-speed { font-size: 6.5rem; font-weight: 200; letter-spacing: -5px; color: #fff; }
.hero-unit  { font-size: 1.2rem; color: rgba(255,255,255,.55); font-weight: 400; }

.hero-sub { display: flex; gap: 22px; align-items: center; }
.hero-dir { display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.9); }
.mini-compass { width: 34px; height: 34px; flex-shrink: 0; }
.hero-gust { font-size: .8rem; color: rgba(255,255,255,.5); }
.hero-gust b { color: #f0b050; font-weight: 600; }
.hero-kite { font-size: .82rem; color: rgba(255,255,255,.5); }
.hero-kite b { color: #7ac8ee; font-weight: 600; }

/* ── BADGE DÉTECTION KITE ────────────────────────────────────────────────── */
.kite-detection-badge {
  position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 20px; font-size: .8rem; font-weight: 600;
  backdrop-filter: blur(8px); white-space: nowrap; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.2);
}
.kite-badge-found  { background: rgba(34,197,94,.25);  color: #bbf7d0; border-color: rgba(34,197,94,.4); }
.kite-badge-none   { background: rgba(100,116,139,.25); color: #cbd5e1; border-color: rgba(100,116,139,.3); }
.kite-badge-skip   { background: rgba(71,85,105,.2);    color: #94a3b8; border-color: rgba(71,85,105,.3); }

/* ── BOUTON PARTAGE ──────────────────────────────────────────────────────── */
.share-btn {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; transition: background .2s;
}
.share-btn:hover { background: rgba(255,255,255,.25); }
.share-btn svg { width: 18px; height: 18px; }

.share-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #1e3a5f; color: white; padding: 10px 20px; border-radius: 24px;
  font-size: .9rem; font-weight: 500; opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 9999; white-space: nowrap;
}
.share-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PODCAST PLAYER ──────────────────────────────────────────────────────── */
.podcast-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 8px 16px 8px 8px;
  max-width: 320px;
}
.podcast-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  font-size: 1rem; line-height: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.podcast-btn:hover { background: #fff; transform: scale(1.08); }
.podcast-btn:active { transform: scale(.95); }
.podcast-info { flex: 1; min-width: 0; }
.podcast-label { font-size: .72rem; color: rgba(255,255,255,.75); display: block; margin-bottom: 4px; }
.podcast-progress {
  height: 3px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden;
}
.podcast-fill {
  height: 100%; width: 0%; background: rgba(255,255,255,.85);
  border-radius: 2px; transition: width .5s linear;
}

/* ── QUESTIONS GRID ──────────────────────────────────────────────────────── */
.questions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: var(--bg);
}

.q-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 13px;
  display: flex; flex-direction: column; gap: 5px;
  min-height: 100px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* Statuts colorés */
.q-card.q-ideal  { border-left: 3px solid var(--green);  background: #f6fdf8; }
.q-card.q-go     { border-left: 3px solid var(--green);  background: #f6fdf8; }
.q-card.q-ok     { border-left: 3px solid var(--blue);   background: #f5f9ff; }
.q-card.q-warn   { border-left: 3px solid var(--orange); background: #fffbf2; }
.q-card.q-nogo   { }
.q-card.q-danger { border-left: 3px solid var(--terra);  background: #fdf5f3; }

.q-label {
  font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted);
}
.q-icon   { font-size: 1.5rem; line-height: 1.2; }
.q-answer { font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.q-sub    { font-size: .7rem; color: var(--muted); line-height: 1.4; }

/* Prochains jours */
.q-weekend { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.q-wday { display: grid; grid-template-columns: 32px 1fr 32px 28px auto; align-items: center; gap: 6px; font-size: .82rem; }
.wday-label { font-weight: 700; color: var(--text); }
.wday-bar-wrap { height: 5px; background: var(--s2); border-radius: 3px; overflow: hidden; }
.wday-bar { height: 100%; border-radius: 3px; }
.wday-kt  { font-weight: 700; font-size: .82rem; text-align: right; }
.wday-dir { font-size: .68rem; color: var(--muted); font-weight: 600; }
.wday-offshore { font-size: .6rem; font-weight: 700; color: var(--terra); white-space: nowrap; }

/* Météo */
.q-weather { grid-column: 1/-1; }
.weather-temp { font-size: 2.4rem; font-weight: 200; color: var(--blue); line-height: 1; margin: 6px 0 10px; }
.weather-slots { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.weather-slots::-webkit-scrollbar { display: none; }
.weather-slot { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 46px;
  background: var(--s1); border-radius: 10px; padding: 8px 4px; }
.ws-hour { font-size: .6rem; color: var(--muted); font-weight: 600; }
.ws-icon { font-size: 1.2rem; line-height: 1; }
.ws-temp { font-size: .75rem; font-weight: 700; color: var(--text); }
.ws-prob { font-size: .6rem; color: var(--blue); font-weight: 700; }

/* Coefficient de marée */
.tide-coeff-row {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 6px;
}
.tide-coeff-val { font-size: 1.6rem; font-weight: 700; min-width: 44px; color: var(--text); }
.tide-coeff-label { font-size: .68rem; font-weight: 700; min-width: 80px; }
.coeff-high  { color: var(--blue); }
.coeff-mid   { color: var(--orange); }
.coeff-low   { color: var(--muted); }
.tide-coeff-bar { flex: 1; height: 6px; background: var(--s2); border-radius: 3px; overflow: hidden; }
.tide-coeff-fill { height: 100%; border-radius: 3px; transition: width .6s; }
.tide-coeff-fill.coeff-high { background: var(--blue); }
.tide-coeff-fill.coeff-mid  { background: var(--orange); }
.tide-coeff-fill.coeff-low  { background: var(--muted); }

/* Marées */
.q-tide-row { display: flex; align-items: center; gap: 7px; font-size: .82rem; padding: 3px 0; }
.q-tide-type { font-weight: 700; font-size: .78rem; min-width: 36px; }
.q-tide-type.hw { color: var(--blue); }
.q-tide-type.lw { color: var(--orange); }
.q-tide-time { font-weight: 600; }
.q-tide-h { font-size: .72rem; color: var(--muted); }

/* Vent de terre/mer — pleine largeur */
.q-wind-origin { grid-column: 1 / -1; min-height: 0; }

/* Vagues / autres — pleine largeur optionnelle */
.q-full { grid-column: 1 / -1; }

/* Marées — pleine largeur */
.q-tides { grid-column: 1 / -1; min-height: 0; }
.q-origin-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.q-origin-dir  { font-size: .78rem; color: var(--muted); font-weight: 600; flex-shrink: 0; }

/* Vent de terre — accent coloré */
.q-card.q-danger.q-wind-origin { background: #fdf0ec; border-color: var(--terra); border-left-width: 3px; }
.q-card.q-danger.q-wind-origin .q-answer { color: var(--terra); }
.q-card.q-warn.q-wind-origin   .q-answer { color: var(--orange); }
.q-card.q-ideal.q-wind-origin  .q-answer { color: var(--green); }
.q-card.q-ok.q-wind-origin     .q-answer { color: var(--blue); }

/* ── VAGUES ──────────────────────────────────────────────────────────────── */
.wave-display { display: flex; align-items: baseline; gap: 3px; margin: 6px 0 4px; }
.wave-h-num {
  font-size: 2.2rem; font-weight: 300; line-height: 1;
  color: var(--blue); letter-spacing: -1px;
}
.wave-h-unit { font-size: .9rem; color: var(--muted); font-weight: 500; }
.wave-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 32px; margin: 0 0 6px;
}
.wave-bar {
  flex: 1; min-height: 4px; max-height: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  opacity: 0.3;
  animation: waveBarAnim 2s ease-in-out infinite;
  transform-origin: bottom;
}
.q-waves.q-warn  .wave-bar { background: var(--orange); }
.q-waves.q-danger .wave-bar { background: var(--terra); }
@keyframes waveBarAnim {
  0%, 100% { opacity: 0.25; transform: scaleY(.88); }
  50%       { opacity: 0.55; transform: scaleY(1.0); }
}


/* ── TIDE JAUGE HORIZONTALE ──────────────────────────────────────────────── */
.tide-hbar {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 8px;
}
.tide-hbar-lbl {
  font-size: .65rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.tide-hbar-lbl.lw { color: var(--orange); }
.tide-hbar-lbl.hw { color: var(--blue); }
.tide-hbar-track {
  flex: 1; height: 6px;
  background: var(--s2);
  border-radius: 3px; position: relative;
  border: 1px solid var(--border);
}
.tide-hbar-tick {
  position: absolute; left: 50%; top: -3px;
  width: 1px; height: 12px;
  background: var(--border);
  transform: translateX(-50%);
}
.tide-hbar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(to right, var(--orange), var(--blue));
  transition: width .6s ease;
}
.tide-hbar-dot {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--card);
  border-radius: 50%;
  border: 2px solid var(--blue);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: left .6s ease;
}
.tide-hbar-val {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: .68rem; font-weight: 700;
  color: var(--text);
  white-space: nowrap; pointer-events: none;
  background: var(--card);
  padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
.chart-section,
.map-section,
.days-detail,
.webcam-section {
  padding: 18px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.webcam-section { padding-bottom: 36px; }

.section-title {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); opacity: .55; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 11px;
  background: var(--blue);
  border-radius: 2px;
  opacity: 1;
  flex-shrink: 0;
}
.badge-arome {
  font-size: .6rem; background: rgba(61,130,196,.10);
  color: var(--blue); border: 1px solid rgba(61,130,196,.25);
  padding: 2px 8px; border-radius: 8px;
  text-transform: none; letter-spacing: 0; font-weight: 600;
}
.chart-wrap { height: 180px; }

/* ── TABLEAU WINDGURU ────────────────────────────────────────────────────── */
.wg-section {
  padding: 18px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.wg-wrap {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
}

/* Colonne labels fixe gauche */
.wg-label-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 38px;
  background: var(--card);
  border-right: 2px solid var(--border);
  position: relative;
  z-index: 1;
}
.wg-lrow {
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  flex-shrink: 0;
}
.wg-l-date { height: 26px; border-bottom: 1px solid var(--border); background: var(--s1); }
.wg-l-h    { height: 28px; background: var(--s2); }
.wg-l-wind { height: 42px; font-size: .68rem; color: var(--text); font-weight: 800; }
.wg-l-raf  { height: 28px; border-top: 1px solid var(--border); }
.wg-l-dir  { height: 34px; }
.wg-l-temp { height: 28px; border-top: 1px solid var(--border); }

/* Zone scrollable */
.wg-data {
  display: flex;
  overflow-x: auto;
  flex: 1; min-width: 0;
}
.wg-data::-webkit-scrollbar { height: 3px; }
.wg-data::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Colonne par jour */
.wg-day-col {
  display: flex; flex-direction: column;
  flex-shrink: 0;
  border-left: 2px solid var(--border);
}
.wg-day-col:first-child { border-left: none; }

.wg-day-hdr {
  height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: .64rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text); background: var(--s1);
  padding: 0 4px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
  text-transform: capitalize;
}
.wg-today .wg-day-hdr { color: var(--blue); background: rgba(61,130,196,.08); }

.wg-drow { display: flex; }

/* Cellule de base */
.wg-dcell {
  width: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

/* Heures */
.wg-row-h .wg-dcell {
  height: 28px; font-size: .68rem; font-weight: 600;
  color: var(--muted); background: var(--s2);
}

/* Vent — coloré, le plus grand */
.wg-row-wind .wg-dcell {
  height: 42px; font-size: .95rem; font-weight: 800;
  border-radius: 4px; margin: 2px 1px; width: 40px;
  transition: background .3s;
}

/* Rafales */
.wg-row-raf .wg-dcell {
  height: 28px; font-size: .7rem; font-weight: 600;
  color: var(--muted); border-top: 1px solid var(--border);
}

/* Direction — flèche SVG */
.wg-row-dir .wg-dcell {
  height: 34px; color: var(--text);
}
.wg-offshore { color: var(--terra) !important; }

/* Température */
.wg-row-temp .wg-dcell {
  height: 28px; font-size: .7rem; font-weight: 600;
  color: var(--muted); border-top: 1px solid var(--border);
}

/* Passé — atténué */
.wg-past { opacity: .28; }

/* ── WEBCAMS ─────────────────────────────────────────────────────────────── */
.webcam-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.webcam-scroll::-webkit-scrollbar { height: 2px; }
.webcam-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.webcam-thumb {
  flex-shrink: 0; width: 155px; cursor: pointer;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--s1);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: transform .1s;
}
.webcam-thumb:active { transform: scale(.97); }
.webcam-preview {
  position: relative; width: 100%; height: 88px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0e2540 100%);
  overflow: hidden;
}
.webcam-preview img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .3s;
}
.webcam-preview img.loaded { opacity: 1; }
.webcam-live-badge {
  position: absolute; top: 6px; left: 6px;
  background: rgba(239,68,68,.85); color: white;
  font-size: .6rem; font-weight: 700; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.webcam-name { font-size: .63rem; padding: 5px 8px; color: var(--muted); font-weight: 600; }

/* ── MODAL ───────────────────────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(5,15,28,.7); z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.modal-box {
  width: 100%; max-width: 640px; background: #0d1f32;
  border-radius: 16px;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.modal-title {
  font-weight: 700; font-size: .92rem; color: white;
  display: flex; align-items: center; gap: 8px;
}
.modal-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.modal-close {
  background: rgba(255,255,255,.1); border: none;
  color: rgba(255,255,255,.7); width: 30px; height: 30px; border-radius: 50%;
  font-size: .85rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,.2); color: white; }
.modal-iframe-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.modal-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  font-size: .72rem; color: rgba(255,255,255,.45);
}
.modal-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ── MAP ─────────────────────────────────────────────────────────────────── */
#berck-map {
  height: 290px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── TEMP EAU ───────────────────────────────────────────────────────────── */
.weather-top {
  display: flex; align-items: baseline; gap: 14px;
}
.sea-temp {
  font-size: .9rem; color: var(--muted);
}
.sea-temp b { color: #38bdf8; }
.leaflet-container { background: #0d1f30; }
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { display: none; }
.berck-label {
  background: rgba(61,130,196,.12) !important;
  border: 1px solid var(--blue) !important;
  color: var(--blue) !important;
  font-size: .63rem !important; font-weight: 700 !important;
  padding: 2px 7px !important; border-radius: 6px !important;
  box-shadow: none !important; white-space: nowrap;
}
.berck-label::before { display: none !important; }
.leaflet-velocity-el {
  background: rgba(255,255,255,.92) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important; font-size: .68rem !important;
  padding: 4px 10px !important;
}

/* ── TIDE LABEL ──────────────────────────────────────────────────────────── */
.tide-now-label { font-size: .7rem; color: var(--muted); text-align: center; margin-bottom: 2px; }

/* ── DERNIER KITE DÉTECTÉ ────────────────────────────────────────────────── */
.last-kite-section {
  padding: 32px 16px 40px;
  max-width: 680px;
  margin: 0 auto;
}
.last-kite-section .section-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.last-kite-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.last-kite-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.last-kite-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.last-kite-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.kite-expand-hint {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
  letter-spacing: .02em;
}

/* ── MODAL KITE PLEIN ÉCRAN ──────────────────────────────────────────────── */
.kite-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.kite-modal-canvas {
  display: block;
  width: 96vw;
  height: 92vh;
  max-width: 1400px;
}
.kite-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.15);
  border: none; color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.kite-modal-close:hover { background: rgba(255,255,255,.28); }
.last-kite-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.last-kite-date {
  font-size: .82rem;
  color: var(--muted);
}
.last-kite-count {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
}
.last-kite-conf {
  font-size: .78rem;
  color: var(--muted);
}

/* ── ERROR ───────────────────────────────────────────────────────────────── */
.error-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 50dvh; gap: 14px; color: var(--terra);
}
.error-screen button {
  background: var(--card); border: 1.5px solid var(--terra);
  color: var(--terra); padding: 8px 22px; border-radius: 10px;
  cursor: pointer; font-size: .88rem; font-weight: 600; font-family: inherit;
}
