:root {
  color-scheme: light;
  --bg: #f3f8f7;
  --surface: #ffffff;
  --surface-soft: #eaf3f1;
  --text: #102b2b;
  --muted: #587070;
  --border: #cfe0dd;
  --accent: #08796f;
  --accent-strong: #055f58;
  --accent-soft: #d9f1ed;
  --chart-cool: #2d8f86;
  --chart-warm: #d75f45;
  --chart-rain: #3e83c6;
  --chart-gold: #c69a3a;
  --chart-violet: #7a68ad;
  --warning: #8a5a00;
  --warning-bg: #fff5d8;
  --danger: #a52a1f;
  --danger-bg: #fff0ed;
  --shadow: 0 12px 32px rgba(17, 58, 55, .08);
  --radius: 20px;
  --max: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1d1d;
  --surface: #172827;
  --surface-soft: #203633;
  --text: #edf8f6;
  --muted: #aec2bf;
  --border: #35514e;
  --accent: #52c7b9;
  --accent-strong: #7bd8cc;
  --accent-soft: #173e3a;
  --chart-cool: #65c7bb;
  --chart-warm: #ff8d74;
  --chart-rain: #79b9f0;
  --chart-gold: #e6bd65;
  --chart-violet: #b3a1e5;
  --warning: #f5c46b;
  --warning-bg: #3a2d16;
  --danger: #ff9b91;
  --danger-bg: #43221f;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--accent-strong); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--text); color: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 42px; display: block; border-radius: 13px; }
.brand span:last-child { display: grid; min-width: 0; }
.brand strong { font-size: 1.02rem; }
.brand small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link { text-decoration: none; font-weight: 650; white-space: nowrap; }
.icon-button { min-width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }

main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.hero, .station-hero { margin: 28px 0 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.home-hero { padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: clamp(24px, 3vw, 38px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .11em; font-size: .75rem; font-weight: 800; color: var(--accent); }
.hero h1 { margin: 0; max-width: 900px; font-size: clamp(2.25rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { display: block; }
.hero-intro { max-width: 760px; font-size: clamp(1.03rem, 1.8vw, 1.24rem); color: var(--muted); margin: 24px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 750; border: 1px solid var(--border); }
.primary-button { background: var(--accent); color: white; border-color: var(--accent); }
.secondary-button { background: var(--surface); color: var(--text); }
.hero-summary { min-width: 0; border-radius: 22px; padding: 24px; background: var(--surface-soft); border: 1px solid var(--border); display: grid; gap: 5px; }
.hero-summary strong { font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; color: var(--accent); }
.hero-summary p { color: var(--muted); margin: 12px 0 0; }
.summary-label { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 800; color: var(--muted); }

.method-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 56px; }
.method-strip article { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.method-strip article > span { color: var(--accent); font-weight: 850; }
.method-strip p { margin: 3px 0 0; color: var(--muted); }

.stations-section, .dashboard-section { margin: 28px 0 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -.025em; }
.section-heading > p { max-width: 590px; margin: 0; color: var(--muted); }
.catalog-controls { display: grid; grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(155px, .7fr)); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); margin-bottom: 20px; }
.catalog-controls label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.catalog-controls input, .catalog-controls select, .period-navigation input, .period-navigation select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg); color: var(--text); }
.catalog-message { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 18px; }
.station-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.station-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; min-height: 280px; transition: transform .18s ease, border-color .18s ease; }
.station-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.station-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.station-card h3 { margin: 12px 0 4px; font-size: 1.35rem; }
.station-card .station-code { color: var(--muted); font-size: .82rem; }
.station-card p { color: var(--muted); }
.station-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 18px; }
.station-card-meta span { display: grid; font-size: .78rem; color: var(--muted); }
.station-card-meta strong { color: var(--text); font-size: .92rem; }
.station-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge, .tag { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); }
.station-card .primary-button { margin-top: 12px; }

.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; margin: 18px 4px 0; }
.station-hero { padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 36px; align-items: center; }
.station-hero h1 { margin: 6px 0 10px; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.station-description { color: var(--muted); max-width: 720px; }
.station-traits { margin: 10px 0 0; color: var(--muted); font-size: .86rem; }
.station-traits strong { color: var(--text); }
.station-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.station-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.station-facts article { padding: 14px; background: var(--surface-soft); border-radius: 14px; border: 1px solid var(--border); display: grid; gap: 3px; }
.station-facts span { color: var(--muted); font-size: .76rem; }
.station-facts strong { font-size: .95rem; }

.control-panel { position: sticky; top: 10px; z-index: 15; margin: 20px 0 34px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--shadow); overflow: hidden; }
.control-panel::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .15s ease; }
.control-panel.is-updating::after { opacity: 1; animation: navigation-progress 1s ease-in-out infinite; }
@keyframes navigation-progress { 0% { transform: scaleX(.08); } 55% { transform: scaleX(.72); } 100% { transform: translateX(100%) scaleX(.18); } }
.mode-switch { display: flex; gap: 4px; padding: 4px; background: var(--surface-soft); border-radius: 12px; }
.mode-switch button { border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 9px 15px; font-weight: 750; }
.mode-switch button.active { background: var(--surface); color: var(--accent-strong); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.period-navigation { display: flex; align-items: center; gap: 8px; min-width: 0; }
.period-navigation input, .period-navigation select { width: 180px; background: var(--surface); }

.state-panel { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.state-panel.error { min-height: auto; text-align: left; place-items: start; padding: 22px; background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--border)); border-radius: 18px; color: var(--text); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice-panel { padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--warning-bg); margin-bottom: 24px; }
.notice-panel strong { display: block; margin-bottom: 4px; }

.quick-reading { display: grid; background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 20px; overflow: hidden; box-shadow: inset 4px 0 0 color-mix(in srgb, var(--accent) 75%, transparent); }
.quick-line { display: grid; grid-template-columns: 145px 1fr; gap: 16px; padding: 15px 18px 15px 22px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); }
.quick-line:last-child { border-bottom: 0; }
.quick-line strong { color: var(--accent-strong); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kpi-card { position: relative; min-height: 170px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; width: 95px; height: 95px; border-radius: 50%; right: -34px; bottom: -38px; background: var(--accent-soft); opacity: .7; }
.kpi-card-label { display: flex; justify-content: space-between; gap: 8px; padding-right: 24px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.kpi-value { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 8px; font-size: 2.4rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.kpi-value small { font-size: .9rem; color: var(--muted); font-weight: 650; }
.kpi-card p { margin: 0; color: var(--muted); font-size: .84rem; max-width: 94%; }
.kpi-detail { line-height: 1.4; }
.info-button { position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-soft); color: var(--accent-strong); font-weight: 800; z-index: 2; }
.threshold-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.threshold-card { position: relative; padding: 16px; min-height: 138px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 34%, var(--surface)), var(--surface) 58%); border: 1px solid var(--border); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.threshold-card span { color: var(--muted); font-size: .79rem; display: block; padding-right: 28px; font-weight: 700; }
.threshold-card strong { font-size: 1.65rem; display: block; margin-top: 12px; letter-spacing: -.025em; }
.threshold-card small { display: block; margin-top: 7px; color: var(--muted); font-size: .73rem; line-height: 1.35; }

#dashboard, .dashboard-section, .charts-stack, .chart-panel, .chart-canvas { width: 100%; min-width: 0; }
.charts-stack { display: grid; gap: 22px; }
.chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px 22px 16px; box-shadow: var(--shadow); overflow: hidden; }
.chart-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 4px; }
.chart-panel h3 { margin: 0 0 4px; font-size: 1.18rem; }
.chart-panel p { color: var(--muted); margin: 0; font-size: .86rem; max-width: 880px; }
.chart-canvas { height: clamp(380px, 42vw, 500px); }
.chart-canvas .js-plotly-plot, .chart-canvas .plot-container, .chart-canvas .svg-container { width: 100% !important; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; }
thead th { background: var(--surface-soft); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.comparison-table thead th span, .comparison-table thead th small { display: block; }
.comparison-table thead th small { margin-top: 4px; font-size: .66rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.comparison-table th.current, .comparison-table td.current { background: color-mix(in srgb, var(--accent-soft) 82%, var(--surface)); }
.comparison-table td.current { font-weight: 750; border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.comparison-table td.current small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; font-weight: 600; }
.comparison-value { display: block; font-size: .94rem; color: var(--text); }
.comparison-table td.unavailable { color: var(--muted); font-size: .76rem; white-space: normal; min-width: 130px; }
.cell-delta { display: block; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.cell-delta.positive { color: #b35022; }
.cell-delta.negative { color: #246c9a; }
.cell-delta.neutral { color: var(--muted); }
.quality-warning { color: var(--warning); font-weight: 850; }
.table-note { color: var(--muted); font-size: .84rem; }

.traceability-panel { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin: 56px 0 24px; }
.traceability-panel article { background: var(--surface); padding: 16px; display: grid; gap: 4px; }
.traceability-panel span { color: var(--muted); font-size: .75rem; }
.traceability-panel strong { font-size: .88rem; }

.indicator-dialog { width: min(92vw, 560px); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); padding: 28px; box-shadow: 0 24px 90px rgba(0,0,0,.22); }
.indicator-dialog::backdrop { background: rgba(2,20,19,.55); backdrop-filter: blur(4px); }
.indicator-dialog h2 { margin: 0 44px 18px 0; font-size: 1.45rem; line-height: 1.2; }
.indicator-dialog-content { display: grid; gap: 12px; }
.indicator-dialog-content p { margin: 0; }
.dialog-section-label { color: var(--accent); text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; font-weight: 850; }
.dialog-lead { font-size: 1rem; line-height: 1.65; }
.dialog-detail { padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); line-height: 1.65; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); }

.site-footer { width: min(calc(100% - 32px), var(--max)); margin: 30px auto 18px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.site-footer > div { display: grid; }
.site-footer span { color: var(--muted); font-size: .78rem; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.site-footer a { text-decoration: none; font-size: .84rem; font-weight: 650; }

@media (max-width: 980px) {
  .home-hero, .station-hero { grid-template-columns: 1fr; }
  .hero-summary { grid-template-columns: auto 1fr; align-items: end; }
  .hero-summary p { grid-column: 1 / -1; }
  .station-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-controls { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .threshold-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .traceability-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  main, .site-header, .site-footer { width: min(calc(100% - 20px), var(--max)); }
  .site-header { margin-top: 10px; }
  .brand small, .header-link { display: none; }
  .home-hero { padding: 24px; }
  .hero h1 { font-size: clamp(2.05rem, 11vw, 3.5rem); }
  .method-strip, .station-grid, .catalog-controls, .kpi-grid, .threshold-grid, .traceability-panel { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .control-panel { top: 4px; align-items: stretch; flex-direction: column; gap: 8px; }
  .mode-switch { display: grid; grid-template-columns: repeat(4, 1fr); }
  .mode-switch button { padding: 8px 4px; }
  .period-navigation { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; }
  .period-navigation input, .period-navigation select { width: 100%; }
  .period-navigation .secondary-button { grid-column: 1 / -1; }
  .quick-line { grid-template-columns: 1fr; gap: 4px; }
  .chart-canvas { height: 330px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer nav { justify-content: flex-start; flex-direction: column; gap: 7px; }
}

@media (min-width: 981px) {
  .home-hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  }
  .home-hero h1 span { white-space: nowrap; }
}


/* Version 3.0.4 — correction définitive du centrage du bandeau */
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.home-page main { width: 100%; max-width: none; margin: 0; overflow: hidden; }
.home-page .home-hero {
  /* La règle générique .home-hero définit une grille.
     Cette page possède déjà sa propre grille dans .home-hero__inner :
     le parent doit donc rester un simple bloc sur toute la largeur. */
  display: block;
  position: relative;
  min-height: 500px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 78% 32%, color-mix(in srgb, var(--accent-soft) 92%, transparent), transparent 24rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--accent-soft)), var(--bg));
}
.home-hero__inner { width: min(calc(100% - 32px), 1120px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 640px) minmax(280px, 380px); justify-content: center; align-items: center; gap: clamp(36px, 5vw, 72px); min-height: 500px; padding-block: 62px; }
.home-hero__content { width: 100%; max-width: 640px; min-width: 0; justify-self: end; }
.home-hero h1 { max-width: 640px; margin: 12px 0 18px; font-size: clamp(2.1rem, 3.2vw, 2.85rem); line-height: .98; letter-spacing: -.055em; }
.home-hero__title span { display: block; white-space: nowrap; }
.home-hero__lead { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.72; }
.home-hero__action { margin-top: 28px; }
.home-hero__visual { position: relative; width: min(100%, 380px); aspect-ratio: 1; justify-self: start; }
.climate-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 50%; }
.climate-orbit--outer { inset: 4%; }
.climate-orbit--inner { inset: 23%; border-style: dashed; }
.climate-symbol { position: absolute; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border)); border-radius: 28px; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--accent); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.climate-symbol svg { width: 48%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.climate-symbol--cloud { inset: 28% 23% 25% 20%; }
.climate-symbol--sun { top: 2%; right: 8%; width: 92px; height: 92px; color: #c38b16; }
.climate-symbol--temperature { bottom: 4%; left: 5%; width: 82px; height: 82px; color: #b84d4d; }
.climate-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-soft) 65%, transparent); }
.climate-dot--one { top: 12%; left: 20%; }
.climate-dot--two { right: 2%; bottom: 33%; width: 9px; height: 9px; }
.climate-dot--three { left: 40%; bottom: 2%; width: 7px; height: 7px; }

.home-page .method-strip { margin-top: 24px; }
.catalog-active-count { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.catalog-active-count strong { color: var(--accent-strong); font-size: 1.05rem; }

.station-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.station-card { position: relative; min-height: 380px; padding: 22px; overflow: hidden; border-radius: 24px; box-shadow: 0 8px 28px rgba(17, 58, 55, .055); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.station-card::after { position: absolute; right: -86px; bottom: -104px; width: 230px; height: 230px; border-radius: 50%; background: color-mix(in srgb, var(--accent-soft) 72%, transparent); content: ""; pointer-events: none; }
.station-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.station-card--historical::after { background: color-mix(in srgb, var(--surface-soft) 80%, transparent); }
.station-card--nivological::after { background: color-mix(in srgb, #dcebf6 70%, transparent); }
.station-card-top, .station-card-statuses, .station-card-identity { display: flex; align-items: center; }
.station-card-top { position: relative; z-index: 1; justify-content: space-between; align-items: flex-start; gap: 12px; }
.station-card-statuses { gap: 7px; flex-wrap: wrap; }
.station-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.station-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.station-status--active i { background: #21966f; }
.station-status--inactive i, .station-status--historical i { background: #7f8f8c; }
.station-status--seasonal i { background: #b27d16; }
.station-status--nivological i { background: #4d86ae; }
.station-card-identity { position: relative; z-index: 1; gap: 14px; margin-top: 22px; }
.station-card-icon { display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center; border-radius: 17px; background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 24%, transparent); }
.station-card-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.station-card h3 { margin: 0; font-size: 1.48rem; letter-spacing: -.03em; line-height: 1.12; }
.station-card-identity p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.station-card-measures-label { position: relative; z-index: 1; margin: 18px 0 8px; color: var(--text); font-size: .78rem; font-weight: 800; }
.station-card-groups { position: relative; z-index: 1; min-height: 30px; }
.station-card-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: auto 0 18px; padding-top: 20px; }
.station-card-meta div { min-width: 0; padding: 11px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.station-card-meta dt { color: var(--muted); font-size: .63rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.station-card-meta dd { margin: 4px 0 0; color: var(--text); font-size: .84rem; font-weight: 800; overflow-wrap: anywhere; }
.station-card-action { position: relative; z-index: 1; justify-content: space-between; gap: 10px; width: 100%; margin-top: 0 !important; }
.station-card-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; }
.footer-project { display: grid; }
.footer-resources { justify-self: center; }
.footer-signature { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .84rem; }
.footer-signature > a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.footer-signature svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 980px) {
  .home-hero__inner { width: min(calc(100% - 32px), 760px); grid-template-columns: 1fr; min-height: 0; padding-block: 54px 42px; }
  .home-hero__content, .home-hero__visual { justify-self: center; }
  .home-hero__visual { width: min(72vw, 340px); }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-resources { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 720px) {
  .shell { width: min(calc(100% - 20px), var(--max)); }
  .home-hero__inner { gap: 28px; padding-block: 40px 30px; }
  .home-hero h1 { font-size: clamp(1.35rem, 5.7vw, 2.35rem); }
  .home-hero__visual { width: min(82vw, 290px); }
  .climate-symbol--sun { width: 68px; height: 68px; }
  .climate-symbol--temperature { width: 62px; height: 62px; }
  .station-card { min-height: 0; padding: 19px; border-radius: 19px; }
  .station-card-meta { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-resources, .footer-signature { justify-self: start; }
}
@media (max-width: 380px) {
  .home-hero h1 { font-size: 1.1rem; }
}

/* Version 3.0.5 — activité binaire et caractéristiques séparées */

/* Version 3.0.6 — finitions des fiches station */
