/* ============================================================
   Seignosse — conditions board. Figma "futur-app" (98:12).
   Figtree (self-hosted). UI French, code English.
   ============================================================ */

@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green:      #00463e;   /* brand / active */
  --green-ink:  #00463e;
  --ink:        #111418;
  --ink-soft:   #6b7785;
  --line:       #d7d7d7;
  --line-soft:  #e7e7e7;
  --pill-bg:    rgba(0,0,0,0.07);
  --surface:    #ffffff;

  --good:       #1a9e54;  --good-bg: #e4f4ea;
  --mid:        #df9426;  --mid-bg:  #faecd6;
  --bad:        #e0503f;  --bad-bg:  #fbe3e0;

  --hero-from:  #e0e9f3;
  --hero-to:    #f1ebe4;

  --maxw:       1280px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface);
  line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; /* guard against any full-bleed overflow */
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.ico { width: 1em; height: 1em; display: block; }
a { color: inherit; }

/* Pills (shared) */
.pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--ink);
  background: var(--pill-bg); border-radius: 20px; padding: 9px 16px; transition: .14s; white-space: nowrap;
}
.pill:hover { background: rgba(0,0,0,0.11); }
.pill.is-active { background: var(--green); color: #fff; }
.pill.is-active:hover { background: #00564b; }
.pill.is-soon { opacity: .55; cursor: default; }
.pill.is-soon:hover { background: var(--pill-bg); }

/* -------------------------------------------------- Header */
.top { background: var(--surface); }
.top-inner { display: flex; align-items: center; gap: 14px; padding: 16px 0 12px; }
.top-inner #spot-nav { flex: 1 1 auto; min-width: 0; }
.top-inner .reload-btn { flex: none; }
.logo { flex: none; display: block; }
.logo img { height: 56px; width: auto; display: block; }
.cat-nav { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav .page-pill { flex: none; white-space: nowrap; }
.nav-sep { flex: none; align-self: stretch; width: 1px; background: var(--line); margin: 5px 2px; }
.lang-nav { display: flex; gap: 6px; flex: none; }
.lang-pill { flex: none; font-size: .74rem; font-weight: 800; padding: 7px 9px; letter-spacing: .02em; }
.top-inner .reload-btn { margin-left: auto; }
.reload-btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 50%; color: var(--green); font-size: 18px;
}
.reload-btn:hover { background: #f4f7f6; }
.reload-btn.is-spinning .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------- Full-width webcam hero */
.webcam-hero { position: relative; width: 100%; height: min(56.25vw, 460px); background: #0a1c24; overflow: hidden; }
body:not([data-univers="plage"]) .webcam-hero { display: none; }
.wh-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: #0a1c24; }
.wh-shield { position: absolute; inset: 0; z-index: 2; }            /* transparent layer — non-clickable video */
.wh-live { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #111; font-size: 13px; font-weight: 800; letter-spacing: .1em; padding: 6px 11px; border-radius: 8px; }
.wh-dot { width: 8px; height: 8px; border-radius: 50%; background: #e0503f; animation: pulse 1.4s ease-in-out infinite; }
.wh-time { position: absolute; right: 12px; bottom: 12px; z-index: 3; background: rgba(10,28,36,.6); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 8px; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* -------------------------------------------------- Tool (best-slots selector) */
.tool { padding-top: 18px; }
body:not([data-univers="plage"]) .tool { display: none; }
.spot-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.spot-row::-webkit-scrollbar { display: none; }
.spot-row .spot-pill { flex: none; }

.beach-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 18px; font-size: .9rem; color: var(--ink-soft); }
.bl-name { font-weight: 800; color: var(--ink); }
.bl-item { display: inline-flex; align-items: center; gap: 6px; }
.bl-item .ico, .bl-tel .ico { color: var(--green); font-size: 1rem; }
.bl-tel { display: inline-flex; align-items: center; gap: 8px; }
.tel-btn { cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.tel-btn:hover { background: #f1f6f5; }
.tel-num a { color: var(--green); text-decoration: none; font-weight: 700; }
.tel-num a:hover { text-decoration: underline; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-row[hidden] { display: none; }
.pill-dot .pd { width: 10px; height: 10px; border-radius: 50%; }

/* Best moments */
.moments { margin: 18px 0 8px; }
.moments-title { font-size: 1.08rem; font-weight: 800; color: var(--green); margin: 0 0 12px; }
.moments-empty { color: var(--ink-soft); font-size: .9rem; }
.gear-line[hidden] { display: none; }
.gear-line { display: flex; align-items: center; gap: 7px; margin: -8px 0 14px; font-size: .86rem; color: var(--ink-soft); }
.gear-line .ico { color: var(--sea, var(--green)); font-size: 1rem; }
.gear-line b { color: var(--ink); font-weight: 700; }
.mo-why { margin-top: 5px; font-size: .82rem; line-height: 1.35; color: var(--ink); }

/* Baïnes safety explainer */
.baines[hidden] { display: none; }
.baines { margin: 14px 0 4px; }
.baines-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--bad); }
.baines-toggle .ico { font-size: 1.05rem; }
.baines-toggle:hover { background: var(--bad-bg); }
.baines-toggle.is-active { background: var(--bad-bg); border-color: var(--bad); }
.baines-body[hidden] { display: none; }
.baines-body { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.baine-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto 12px; border-radius: 10px; }
.baines-tips { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: .85rem; color: var(--ink); line-height: 1.4; }
.baines-tips b { color: var(--bad); }
.mo-ctx { margin-top: 4px; font-size: .72rem; font-weight: 700; color: var(--green); text-transform: none; }
.moments-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .moments-list { grid-template-columns: repeat(3, 1fr); } }
.moment { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow-sm); }
.mo-rank { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: .85rem; }
.mo-main { flex: 1; min-width: 0; }
.mo-when { font-weight: 700; color: var(--ink); font-size: .95rem; }
.mo-conds { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: .82rem; color: var(--ink-soft); }
.mo-conds span { display: inline-flex; align-items: center; gap: 4px; }
.mo-conds .ico { color: var(--green); font-size: .95rem; }
.mo-conds .u { font-weight: 500; }
.mo-score { flex: none; display: flex; align-items: baseline; font-size: 1.55rem; font-weight: 800; line-height: 1; background: none; }
.mo-score.good { color: var(--good); background: none; } .mo-score.mid { color: var(--mid); background: none; } .mo-score.bad { color: var(--bad); background: none; }
.mo-score-max { font-size: .68rem; font-weight: 700; color: var(--ink-soft); margin-left: 1px; }

/* Actions + filters panel + calendar */
.tool-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tool-btn { flex: 1; min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font: inherit; font-weight: 700; color: var(--green); cursor: pointer; }
.tool-btn .ico { font-size: 1.05rem; }
.tool-btn:hover { background: #f1f6f5; border-color: var(--green); }
.tool-btn.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.filters-panel[hidden] { display: none; }
.filters-panel { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.fp-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 10px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calendar[hidden] { display: none; }
.calendar { margin-top: 18px; }

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(320px, 0.9fr) 1.6fr; align-items: center; gap: 40px; padding: 40px 0 48px; }
  .hero-title { font-size: 44px; }
}

/* -------------------------------------------------- Status */
.status { margin: 18px 0 0; font-size: .9rem; color: var(--ink-soft); }
.status:empty { display: none; }
.status .loader { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 8px; border: 2.5px solid var(--green); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.status.is-error { background: var(--bad-bg); color: #8c2020; border: 1px solid #f0c2bc; padding: 12px 14px; border-radius: 12px; font-weight: 500; }

main { padding-bottom: 50px; }

/* -------------------------------------------------- Controls */
.controls { display: flex; flex-direction: column; gap: 18px; padding: 26px 0 18px; }
.day-nav { display: flex; gap: 11px; flex-wrap: wrap; }
.day-card {
  flex: none; cursor: pointer; width: 80px; padding: 12px 0; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 7px; transition: .14s;
}
.day-card:hover { border-color: var(--green); }
.dc-dow { font-size: 13px; font-weight: 700; color: var(--ink); }
.dc-date { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.day-card.is-active { background: var(--green); border-color: var(--green); }
.day-card.is-active .dc-dow, .day-card.is-active .dc-date { color: #fff; }
.dc-dot { width: 10px; height: 10px; border-radius: 50%; }

.filters { display: flex; flex-direction: column; gap: 10px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-dot .pd { width: 10px; height: 10px; border-radius: 50%; }

/* verdict dot colours */
.good { background: var(--good); } .mid { background: var(--mid); } .bad { background: var(--bad); }

/* -------------------------------------------------- Matrix */
.matrix {
  display: grid; grid-template-columns: 190px repeat(7, minmax(0, 1fr));
  align-items: center; margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 16px;
}
.mx-row { display: contents; }
.mx-head { display: contents; }

.mx-label {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 30px; position: relative;
  font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.mx-lico { position: absolute; left: 0; color: var(--green); font-size: 18px; display: grid; place-items: center; width: 22px; }
.mx-cell { padding: 7px 14px; border-left: 1px solid var(--line-soft); min-height: 34px; display: flex; align-items: center; }
.mx-val { font-size: 15px; font-weight: 700; color: var(--green-ink); white-space: nowrap; }
.mx-val .u { font-weight: 500; font-size: .8em; color: var(--ink-soft); margin-left: 2px; }
.mv-strong { font-weight: 700; }

/* group spacing — keeps the vertical dividers continuous */
.mx-row.grp-start .mx-label, .mx-row.grp-start .mx-cell { padding-top: 26px; }

/* header row: verdict dot + hour */
.mx-head .mx-cell { flex-direction: column; align-items: flex-start; gap: 5px; padding-bottom: 10px; min-height: 0; }
.mx-dot { width: 11px; height: 11px; border-radius: 50%; }
.mx-score { font-size: 15px; font-weight: 800; line-height: 1; background: none; }
.mx-score.good { color: var(--good); background: none; } .mx-score.mid { color: var(--mid); background: none; } .mx-score.bad { color: var(--bad); background: none; }
.mx-hour { font-size: 12px; font-weight: 700; color: var(--ink-soft); }

.wind-arrow { display: inline-block; font-size: .85em; transform-origin: center; }
.tide-up { color: var(--good); font-weight: 800; font-size: 1.1em; }
.tide-down { color: var(--bad); font-weight: 800; font-size: 1.1em; }
.cat { font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.cat-good { color: var(--good); background: var(--good-bg); }
.cat-mid  { color: #a85e00; background: var(--mid-bg); }
.cat-bad  { color: #b32a2a; background: var(--bad-bg); }

/* -------------------------------------------------- Activities & places */
/* Non-plage tabs hide the webcam + tool (see #webcam-hero / .tool rules above). */
.places[hidden] { display: none; }
.places { margin-top: 32px; }
.places-head h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.2rem; font-weight: 800; color: var(--green); margin: 0 0 14px; }
.places-count { font-size: .82rem; font-weight: 700; color: var(--ink-soft); background: var(--pill-bg); border-radius: 999px; padding: 2px 10px; }
.places-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--ink); transition: .14s; }
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.places-loading { color: var(--ink-soft); }

.places-zones { margin-bottom: 12px; }
.places-zones .chip { font-size: .8rem; }
.places-empty { color: var(--ink-soft); padding: 8px 0 4px; }

/* Season segmented control */
.places-season { display: inline-flex; gap: 2px; background: var(--pill-bg); border-radius: 999px; padding: 3px; margin: -8px 0 20px; }
.places-season .seg { cursor: pointer; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink-soft); border-radius: 999px; padding: 7px 14px; transition: .14s; }
.places-season .seg.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }

.place-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.place-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.place-card:hover, .place-card:focus-visible { border-color: var(--green); box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,.08)); outline: none; }
.pc-photo { position: relative; aspect-ratio: 16 / 9; background: #e7f0ed; overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-credit { position: absolute; right: 6px; bottom: 6px; font-size: .62rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); border-radius: 6px; padding: 2px 7px; backdrop-filter: blur(2px); }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-name { margin: 0; font-size: 1.04rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pc-cat { flex: none; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--green); background: #e7f0ed; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pc-area { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-soft); }
.pc-area .ico { font-size: .95rem; color: var(--green); }
.pc-season { font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.pc-season-annuel { color: #0a6b4f; background: #d7efe6; }
.pc-season-saison { color: #9a5b00; background: #fbecd2; }
.pc-desc { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.place-card.is-open .pc-desc { -webkit-line-clamp: unset; overflow: visible; }
.pc-detail { display: none; flex-direction: column; gap: 8px; }
.place-card.is-open .pc-detail { display: flex; }
.pc-addr { display: flex; align-items: flex-start; gap: 5px; font-size: .8rem; color: var(--ink-soft); }
.pc-addr .ico { font-size: .95rem; color: var(--green); flex: none; }
.pc-open { font-size: .78rem; font-weight: 700; color: var(--green); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag { font-size: .7rem; font-weight: 600; color: var(--ink-soft); background: var(--pill-bg); border-radius: 999px; padding: 3px 9px; }
/* Instagram media carousel (lazy-mounted on scroll) */
.pc-media { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 2px 0; scrollbar-width: thin; }
.pc-media.is-carousel::-webkit-scrollbar { height: 6px; }
.pc-media.is-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.ig-slide { flex: 0 0 auto; width: min(100%, 328px); scroll-snap-align: start; }
.ig-frame { width: 100%; height: 540px; border: 0; border-radius: 12px; background: #f3f6f5; display: block; }
.pc-vidwrap { position: relative; width: 100%; height: 540px; border-radius: 12px; overflow: hidden; background: #000; }
.pc-video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.pc-more { align-self: flex-start; cursor: pointer; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: var(--green); padding: 2px 0; text-decoration: underline; }
.pc-actions { display: flex; gap: 8px; padding-top: 2px; }
.pc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 11px; border: 1px solid var(--line); font-size: .84rem; font-weight: 700; color: var(--green); text-decoration: none; }
.pc-btn .ico { font-size: 1rem; }
.pc-btn:hover { background: #f1f6f5; border-color: var(--green); }

/* -------------------------------------------------- Activity icons (tinted PNG masks) */
.act-ico { display: inline-block; width: 1.18em; height: 1.18em; flex: none; vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: var(--act-img) center / contain no-repeat; mask: var(--act-img) center / contain no-repeat; }
.act-pill { display: inline-flex; align-items: center; gap: 7px; }
.mo-when .act-ico { color: var(--green); margin-right: 3px; }

/* -------------------------------------------------- Pages (Aujourd'hui / Prévisions) */
body:not([data-page="today"]) #webcam-hero { display: none; }
.today-sub { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.today-sub strong { color: var(--ink); font-weight: 700; }
.today-best { margin: 4px 0 20px; }
.tb-title { font-size: 1.05rem; font-weight: 800; color: var(--green); margin: 0 0 10px; }
.tb-list { display: flex; flex-direction: column; gap: 8px; }
.tb-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.tb-act { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; text-transform: capitalize; }
.tb-act .act-ico { color: var(--green); }
.tb-slot { flex: none; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.tb-score { flex: none; min-width: 58px; text-align: center; font-weight: 800; border-radius: 10px; padding: 6px 8px; font-size: .92rem; }
.tb-score.good { color: #0a6b4f; background: #d7efe6; }
.tb-score.mid { color: #9a5b00; background: #fbecd2; }
.tb-score.bad { color: #8a3b30; background: #f6ddd7; }
.tb-max { font-size: .64rem; font-weight: 700; opacity: .75; }
.tb-empty { color: var(--ink-soft); }

/* -------------------------------------------------- Sunset section */
.sunset { margin: 4px 0 18px; }
.sun-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.sun-head h2 { font-size: 1.05rem; font-weight: 800; color: var(--green); margin: 0; }
.sun-head .act-ico { color: #e8791f; width: 1.3em; height: 1.3em; }
.sun-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, #fff 60%, #fff6ec); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.sun-main { flex: 1; min-width: 0; }
.sun-when { font-size: .95rem; font-weight: 700; color: var(--ink); }
.sun-why { font-size: .84rem; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
.sun-verdict { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; padding: 8px 10px; border-radius: 12px; font-size: .82rem; font-weight: 800; text-align: center; }
.sun-verdict.good { color: #0a6b4f; background: #d7efe6; }
.sun-verdict.mid { color: #9a5b00; background: #fbecd2; }
.sun-verdict.bad { color: #8a3b30; background: #f6ddd7; }
.sun-score { font-size: .68rem; font-weight: 700; opacity: .8; margin-top: 2px; }
.sun-toggle { margin-top: 8px; cursor: pointer; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; color: var(--green); padding: 4px 0; text-decoration: underline; }
.sun-body { margin-top: 6px; }
.sun-next { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sun-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--pill-bg); border-radius: 10px; }
.sun-day { font-size: .84rem; font-weight: 600; color: var(--ink); }
.sun-badge { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.sun-badge.good { color: #0a6b4f; background: #d7efe6; }
.sun-badge.mid { color: #9a5b00; background: #fbecd2; }
.sun-badge.bad { color: #8a3b30; background: #f6ddd7; }
.sun-explain p { font-size: .86rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 9px; }
.sun-explain b { color: var(--ink); }

/* -------------------------------------------------- Intro (H1) */
.intro { margin: 4px 0 14px; padding-top: 20px; }
.today-weather { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; margin: 10px 0 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
.today-weather .tw-i { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.today-weather .ico { font-size: 1.02rem; color: var(--green); vertical-align: -.15em; }
.today-weather .tw-sep { color: var(--line); font-weight: 400; }
.today-weather .u { font-size: .8em; font-weight: 600; color: var(--ink-soft); margin-left: 1px; }
.intro h1 { font-size: 1.32rem; font-weight: 800; line-height: 1.18; color: var(--green); margin: 0 0 6px; letter-spacing: -.01em; }
.intro p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.intro strong { color: var(--ink); font-weight: 700; }
@media (min-width: 720px) { .intro h1 { font-size: 1.6rem; } }

/* -------------------------------------------------- SEO / editorial */
.seo { margin: 34px 0 8px; padding-top: 26px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.seo h2 { font-size: 1.06rem; font-weight: 800; color: var(--green); margin: 26px 0 8px; line-height: 1.25; }
.seo h2:first-child { margin-top: 0; }
.seo p { margin: 0 0 10px; font-size: .9rem; line-height: 1.6; max-width: 68ch; color: var(--ink); }
.seo ul { margin: 0 0 10px; padding-left: 1.1rem; max-width: 68ch; }
.seo li { font-size: .9rem; line-height: 1.55; margin-bottom: 5px; color: var(--ink); }
/* Plain regular black body text in paragraphs — no grey, no bold. */
.seo p, .seo li, .seo strong, .sun-explain p, .sun-explain b, .today-sub, .today-sub strong { color: var(--ink); font-weight: 400; }

/* -------------------------------------------------- Footer */
.app-footer { border-top: 1px solid var(--line-soft); padding: 24px 0 36px; margin-top: 20px; color: var(--ink-soft); }
.app-footer p { margin: 0 0 6px; }
.app-footer .sources { font-size: .82rem; }
.app-footer .footer-seo { font-size: .82rem; color: var(--ink-soft); max-width: 68ch; margin-bottom: 10px; }
.app-footer a { color: var(--green); }
.app-footer .disclaimer, .app-footer .contact { font-size: .8rem; }
.app-footer .last-updated { font-size: .76rem; opacity: .8; }

/* -------------------------------------------------- Responsive (matrix scrolls on small screens) */
/* Tablet & below: matrix scrolls horizontally with a sticky label column. */
@media (max-width: 1023px) {
  .matrix { display: block; overflow-x: auto; border-top: none; padding-top: 0; -webkit-overflow-scrolling: touch; }
  .mx-row, .mx-head { display: grid; grid-template-columns: 150px repeat(7, 96px); align-items: center; }
  .mx-row.grp-start { margin-top: 16px; }
  .mx-row.grp-start .mx-label, .mx-row.grp-start .mx-cell { padding-top: 7px; }
  .mx-label {
    position: sticky; left: 0; z-index: 2; background: var(--surface);
    box-shadow: 1px 0 0 var(--line-soft); font-size: 13px;
  }
  .mx-head .mx-label { z-index: 3; }
  /* No hero photo below desktop — the live webcams are listed under the hero. */
  .hero-right { display: none; }
}

@media (max-width: 760px) {
  .top-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .hero-inner { padding-top: 16px; padding-bottom: 22px; }
  .hero-title { font-size: 30px; margin: 2px 0 14px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ============================================================
   REDESIGN v29 — "Ocean editorial" (override layer, reversible)
   ============================================================ */
:root {
  --line-soft: #eceae4;
  --line: #e2e0d8;
  --pill-bg: #eef1ee;
  --r-card: 18px; --r-ctrl: 12px;
  --shadow-sm: 0 1px 3px rgba(12,35,30,.06);
  --shadow-md: 0 6px 20px rgba(12,35,30,.08);
  --shadow-lg: 0 18px 50px rgba(0,40,35,.18);
  --ink: #16211d; --ink-soft: #64726c;
}
body {
  background:
    radial-gradient(120% 80% at 50% -10%, #eaf3f2 0%, rgba(234,243,242,0) 55%),
    linear-gradient(180deg, #f7f8f5 0%, #f6f2ea 100%) fixed;
  background-color: #f7f8f5;
}

/* ---- Header: glassy sticky + segmented tabs ---- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(247,248,245,.72);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(12,35,30,.07); }
.top-inner { padding: 12px 0 12px; gap: 12px; }
.logo img { height: 46px; }
.cat-nav { background: #eceee9; border-radius: 999px; padding: 4px; gap: 3px; }
.page-pill { background: none; color: var(--ink-soft); font-weight: 700; padding: 8px 15px; border-radius: 999px; transition: .15s; }
.page-pill:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.page-pill.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.page-pill.is-active:hover { background: #fff; }
.nav-sep { background: rgba(12,35,30,.12); margin: 6px 3px; }
.lang-pill { background: none; color: var(--ink-soft); }
.lang-pill:hover { background: rgba(0,0,0,.04); }
.lang-pill.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.reload-btn { border-radius: 999px; }

/* ---- Webcam: immersive rounded hero ---- */
.webcam-hero { position: relative; width: calc(100% - 40px); max-width: var(--maxw);
  margin: 16px auto 0; aspect-ratio: 16/9; height: auto; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #dfeceb; }
.webcam-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(0,22,19,.42)); pointer-events: none; z-index: 2; }
.wh-video { width: 100%; height: 100%; object-fit: cover; }
.wh-live, .wh-time { z-index: 3; background: rgba(8,20,17,.4); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .74rem; letter-spacing: .04em; }
.wh-time { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 560px) { .webcam-hero { width: 100%; border-radius: 0; margin-top: 0; } }

/* ---- Today title + weather chips ---- */
.intro { padding-top: 26px; }
#today-title { font-size: clamp(1.5rem, 6vw, 2.05rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; color: var(--green); }
.today-weather { gap: 8px; margin-top: 12px; }
.today-weather .tw-sep { display: none; }
.today-weather .tw-i { background: #fff; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 6px 11px; box-shadow: var(--shadow-sm); font-size: .84rem; }
.today-weather .ico { color: var(--green); }

/* ---- Section titles ---- */
.tb-title, .moments-title, .sun-head h2 { font-size: 1.06rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }

/* ---- Best-activity cards (premium) ---- */
.tb-list { gap: 10px; }
.tb-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 13px 16px;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; }
.tb-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tb-row.tb-top { box-shadow: 0 0 0 1.5px var(--green), var(--shadow-md); border-color: transparent; }
.tb-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--pill-bg); }
.tb-ico .act-ico { width: 22px; height: 22px; color: var(--green); }
.tb-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tb-name { font-size: 1rem; font-weight: 700; color: var(--ink); text-transform: capitalize; }
.tb-meter { height: 6px; border-radius: 999px; background: var(--pill-bg); overflow: hidden; max-width: 190px; }
.tb-meter span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.tb-good .tb-meter span { background: var(--good); }
.tb-mid .tb-meter span  { background: var(--mid); }
.tb-bad .tb-meter span  { background: var(--bad); }
.tb-slot { font-size: .82rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.tb-score { background: none; padding: 0; min-width: auto; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.tb-score.good { color: var(--good); } .tb-score.mid { color: var(--mid); } .tb-score.bad { color: var(--bad); }
.tb-max { font-size: .68rem; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 460px) {
  .tb-row { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 13px; }
  .tb-slot { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -2px; }
  .tb-body { grid-row: 1; }
  .tb-score { grid-column: 3; grid-row: 1 / span 2; }
}

/* ---- Moments cards (Prévisions) ---- */
.moment { border-radius: var(--r-card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease; }
.moment:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mo-score { font-size: 1.55rem; }

/* ---- Sunset: dusk gradient card ---- */
.sun-head .act-ico { color: #e8791f; }
.sun-card { background: linear-gradient(120deg, #fff7ee 0%, #ffe9d2 100%); border-color: #f4ddc1; box-shadow: var(--shadow-sm); }
.sun-verdict.good { background: #fff; }

/* ---- Activity / level / spot pills refine ---- */
.filter-row .pill, .spot-row .spot-pill { border-radius: 999px; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--line-soft); }
.filter-row .pill.is-active, .spot-row .spot-pill.is-active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: var(--shadow-sm); }
.act-pill .act-ico { color: currentColor; }

/* ---- Cards on Prévisions/Tout use the soft shadow language ---- */
.place-card, .baines, .filters-panel, .matrix { border-radius: var(--r-card); }

/* ---- v29b: day conditions as a single white scrolling line under the video ---- */
.webcam-hero { width: calc(100% - 48px); }
@media (max-width: 560px) { .webcam-hero { width: 100%; } }
#today-weather.today-weather {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none;
  margin: 0; padding: 12px 16px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-sm); font-size: .86rem; font-weight: 700; color: var(--ink);
}
#today-weather.today-weather::-webkit-scrollbar { display: none; }
#today-weather .tw-i { background: none; border: 0; box-shadow: none; padding: 0; flex: none; }
#today-weather .tw-sep { display: inline; color: var(--line); font-weight: 400; flex: none; }
#today-weather:empty { display: none; }
body:not([data-page="today"]) #today-weather { display: none; }
.intro { padding-top: 14px; }

/* ---- v30b: clearer "best moments today" cells (no meter, stacked name/hours) ---- */
.tb-list { gap: 12px; }
.tb-row { display: flex; align-items: center; gap: 14px; grid-template-columns: none;
  padding: 14px 16px; }
.tb-row.tb-top { box-shadow: 0 0 0 1.5px var(--green), var(--shadow-md); }
.tb-ico { width: 46px; height: 46px; border-radius: 13px; }
.tb-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tb-name { font-size: 1.04rem; font-weight: 700; color: var(--ink); text-transform: capitalize; }
.tb-slot { font-size: .84rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.tb-score { flex: none; display: inline-flex; align-items: baseline; gap: 2px;
  padding: 0 4px 0 10px; margin: 0; background: none; min-width: auto;
  font-size: 1.7rem; font-weight: 800; line-height: 1; }
.tb-score.good { color: var(--good); } .tb-score.mid { color: var(--mid); } .tb-score.bad { color: var(--bad); }
.tb-max { font-size: .82rem; font-weight: 700; color: var(--ink); }  /* /10 en noir, lisible */
