:root {
  --ink: #101820;
  --muted: #65727d;
  --paper: #f3f6f8;
  --panel: #ffffff;
  --line: #d9e1e6;
  --sea: #14728a;
  --sea-dark: #0b3448;
  --sun: #f2b84b;
  --coral: #d35f43;
  --pine: #27815f;
  --storm: #1d2b3a;
  --shadow: 0 18px 46px rgba(13, 28, 42, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 114, 138, 0.1), transparent 32%),
    linear-gradient(180deg, #fbfcfd 0%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--storm), var(--sea-dark));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(13, 28, 42, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.main-nav a,
.report-link,
.primary-action,
.secondary-action,
.report-form button {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 800;
}

.main-nav a {
  padding: 0 12px;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(20, 114, 138, 0.08);
}

.main-nav .active-page,
.report-link.active-page {
  color: var(--ink);
  background: rgba(242, 184, 75, 0.22);
}

.report-link,
.primary-action,
.report-form button {
  padding: 0 16px;
  background: var(--storm);
  color: white;
  box-shadow: 0 10px 22px rgba(13, 28, 42, 0.12);
}

.secondary-action {
  padding: 0 16px;
  border-color: rgba(20, 32, 42, 0.18);
  background: rgba(255, 255, 255, 0.6);
}

.hero-section {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 34px;
  padding: 38px 0 56px;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 30px 0 46px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(13, 28, 42, 0.82), rgba(13, 28, 42, 0.52) 52%, rgba(13, 28, 42, 0.16)),
    radial-gradient(circle at 78% 34%, rgba(242, 184, 75, 0.36), transparent 20%),
    linear-gradient(125deg, rgba(11, 52, 72, 0.96), rgba(20, 114, 138, 0.78) 46%, rgba(243, 246, 248, 0.2) 47%),
    repeating-linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 20px);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
  padding: 44px 0 44px 42px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f7cf73;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6.3vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action {
  background: var(--sun);
  color: var(--ink);
}

.secondary-action {
  color: white;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.live-card {
  align-self: end;
  margin-bottom: 86px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--sea-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(217, 104, 76, 0.48);
  animation: pulse 1.8s infinite;
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.current-grid div {
  min-height: 86px;
  padding: 14px;
  border-radius: 8px;
  background: #f2f6f5;
}

.current-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.current-grid dd {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 850;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: -28px;
  margin-bottom: 58px;
  padding: 15px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.ticker strong {
  color: var(--ink);
}

.dashboard,
.bulletin-band,
.observations,
.article-section,
.signalement {
  padding: 58px 0;
}

.page-main {
  padding: 42px 0 76px;
}

.page-hero {
  max-width: 820px;
  padding: 34px 0 30px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 40px 0 70px;
}

.feature-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(20, 32, 42, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.feature-card:hover {
  border-color: rgba(20, 114, 138, 0.32);
  box-shadow: 0 18px 46px rgba(13, 28, 42, 0.13);
  transform: translateY(-2px);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--sea);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.panel-copy {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.signalement h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.risk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.map-workspace {
  display: grid;
  gap: 14px;
}

.windy-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.windy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.windy-heading h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.windy-open {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--storm);
  color: white;
  font-weight: 850;
  white-space: nowrap;
}

#windy-frame {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  min-height: 430px;
  border: 0;
  background: #0f6f88;
}

.live-map-page #windy-frame {
  height: calc(100vh - 250px);
  min-height: 560px;
}

.model-dashboard {
  display: grid;
  gap: 16px;
}

.model-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(13, 28, 42, 0.08);
}

.model-tabs,
.parameter-grid,
.run-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-tab,
.parameter-button,
.run-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #f6f9fa;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.model-tab.active,
.parameter-button.active,
.run-button.active {
  border-color: rgba(20, 32, 42, 0.22);
  background: var(--storm);
  color: white;
}

.run-strip {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.model-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.model-map-card,
.model-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.model-map-card {
  overflow: hidden;
}

.model-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.model-map-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.run-badge {
  min-height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f8f4ea;
  color: #a46f22;
  font-weight: 900;
  white-space: nowrap;
}

#model-frame {
  display: block;
  width: 100%;
  height: min(68vh, 640px);
  min-height: 520px;
  border: 0;
  background: #0f6f88;
}

.model-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.model-summary p,
.model-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.model-table {
  display: grid;
  gap: 10px;
}

.model-table div {
  padding: 13px;
  border-radius: 8px;
  background: #f2f6f5;
}

.model-table span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-table strong {
  font-size: 1rem;
}

.model-note {
  padding: 16px;
  border-radius: 8px;
  background: #f8f4ea;
}

.admin-login-page,
.install-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-card {
  width: min(100%, 460px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.admin-card h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.login-card {
  display: grid;
  gap: 14px;
}

.login-card label,
.admin-zone-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.login-card input,
.admin-zone-form input,
.admin-zone-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #f8fafb;
  color: var(--ink);
  font: inherit;
}

.login-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--storm);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.success-message,
.error-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.success-message {
  background: rgba(39, 129, 95, 0.12);
  color: #1e6b4e;
}

.error-message {
  background: rgba(179, 52, 59, 0.12);
  color: #9e2d34;
}

.admin-vigilance-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}

.coord-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-line {
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center;
}

.checkbox-line input {
  min-height: auto;
}

.delete-zone-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(179, 52, 59, 0.28);
  border-radius: 8px;
  background: rgba(179, 52, 59, 0.08);
  color: #9e2d34;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.vigilance-builder {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.vigilance-controls,
.blank-france-card,
.vigilance-list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.vigilance-controls,
.vigilance-list-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.vigilance-controls label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.vigilance-controls input,
.vigilance-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #f8fafb;
  color: var(--ink);
  font: inherit;
}

.vigilance-controls input[type="range"] {
  padding: 0;
}

.vigilance-actions {
  display: grid;
  gap: 8px;
}

.vigilance-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9fa;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.vigilance-actions button:first-child {
  background: var(--storm);
  color: white;
}

.blank-france-card {
  overflow: hidden;
}

.vigilance-page {
  --vigilance-map-max-height: min(58vh, calc(100vh - 350px), 640px);
}

.vigilance-page .page-main {
  padding: 18px 0 58px;
}

.vigilance-page .page-hero {
  max-width: none;
  padding: 14px 0 16px;
}

.vigilance-page .page-hero h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.vigilance-page .page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.vigilance-page .vigilance-builder,
.vigilance-page .admin-vigilance-grid {
  grid-template-columns: minmax(220px, 255px) minmax(360px, 1fr) minmax(220px, 255px);
  gap: 14px;
}

.vigilance-page .vigilance-controls,
.vigilance-page .vigilance-list-card {
  padding: 16px;
}

.blank-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.blank-map-head h2 {
  margin-bottom: 0;
}

.blank-map-head span {
  min-height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f2f6f5;
  color: var(--sea-dark);
  font-weight: 900;
  white-space: nowrap;
}

.blank-france-map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: white;
  cursor: crosshair;
}

.vigilance-page .blank-france-map {
  padding: 10px;
}

.keraunos-style-map {
  background: #ffffff;
}

.france-map-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  background: white;
  line-height: 0;
}

.blank-france-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blank-france-image {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--vigilance-map-max-height, none);
  object-fit: initial;
  background: white;
  user-select: none;
}

.blank-page {
  fill: white;
}

.france-fill,
.corsica-fill {
  fill: #fdfdf9;
}

.relief {
  fill: rgba(20, 32, 42, 0.08);
  filter: blur(0.4px);
}

.relief-alps {
  fill: rgba(20, 32, 42, 0.13);
}

.relief-pyrenees,
.relief-massif {
  fill: rgba(20, 32, 42, 0.09);
}

.department-lines {
  fill: none;
  stroke: rgba(16, 24, 32, 0.34);
  stroke-dasharray: 2 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.85;
}

.coast-outline {
  fill: none;
  stroke: #111820;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.corsica-lines {
  stroke-width: 0.75;
}

.vigilance-zone-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vigilance-marker {
  position: absolute;
  width: var(--zone-width);
  height: var(--zone-height);
  border: 2px solid currentColor;
  border-radius: var(--zone-radius);
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, currentColor 34%, transparent);
  box-shadow: inset 0 0 32px color-mix(in srgb, currentColor 20%, transparent);
  cursor: pointer;
  pointer-events: auto;
}

.vigilance-marker.sector {
  border-radius: 50% 50% 46% 46%;
  clip-path: ellipse(50% 42% at 50% 50%);
  transform: translate(-50%, -50%) rotate(var(--zone-rotate, -18deg));
}

.vigilance-marker::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 120px;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.vigilance-marker.selected {
  outline: 4px solid rgba(16, 24, 32, 0.22);
  outline-offset: 3px;
  z-index: 3;
}

.vigilance-marker.green,
.vigilance-list-item.green i {
  color: #2f7d65;
}

.vigilance-marker.yellow,
.vigilance-list-item.yellow i {
  color: #f2df4b;
}

.vigilance-marker.orange,
.vigilance-list-item.orange i {
  color: #f1a333;
}

.vigilance-marker.red,
.vigilance-list-item.red i {
  color: #b8343b;
}

.vigilance-marker.purple,
.vigilance-list-item.purple i {
  color: #7d4aa1;
}

.vigilance-list {
  display: grid;
  gap: 8px;
}

.vigilance-list-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8faf8;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.vigilance-list-item.selected {
  border-color: rgba(20, 32, 42, 0.4);
  background: #f8f4ea;
}

.vigilance-list-item i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  background: currentColor;
}

.vigilance-list-item strong,
.vigilance-list-item small {
  display: block;
}

.vigilance-list-item small {
  color: var(--muted);
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(13, 28, 42, 0.08);
}

.segmented-control,
.forecast-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-button,
.risk-tool,
.clear-map {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #f6f9fa;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.tool-button.active,
.risk-tool.active {
  border-color: rgba(20, 32, 42, 0.22);
  background: var(--storm);
  color: white;
}

.risk-tool.low.active {
  background: var(--pine);
}

.risk-tool.watch.active {
  background: var(--storm);
}

.risk-tool.medium.active {
  background: #b77c28;
}

.risk-tool.high.active {
  background: var(--coral);
}

.clear-map {
  background: white;
}

.france-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.france-map {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 42, 0.08);
  border-radius: 8px;
  background: #0f6f88;
  box-shadow: var(--shadow);
  cursor: crosshair;
}

.base-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-sea {
  fill: #0f6f88;
}

.neighbor-land {
  fill: rgba(215, 231, 217, 0.36);
}

.france-shape {
  fill: #e5eadf;
  stroke: rgba(20, 32, 42, 0.2);
  stroke-width: 3;
}

.river {
  fill: none;
  stroke: rgba(15, 111, 136, 0.42);
  stroke-linecap: round;
  stroke-width: 8;
}

.relief {
  fill: rgba(47, 125, 101, 0.28);
}

.base-map text {
  fill: rgba(20, 32, 42, 0.54);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
}

.base-map text:nth-of-type(3) {
  fill: rgba(255, 255, 255, 0.7);
  font-size: 22px;
}

.live-layer,
.forecast-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.live-layer {
  opacity: 0;
  transition: opacity 160ms ease;
}

.active-layer {
  opacity: 1;
}

.cell,
.radar-ring,
.bolt,
.wind-arrow,
.forecast-zone {
  position: absolute;
  display: block;
}

.cell {
  border-radius: 999px;
  filter: blur(6px);
  mix-blend-mode: multiply;
}

.cell-strong {
  left: 61%;
  top: 63%;
  width: 132px;
  height: 74px;
  background: radial-gradient(circle, rgba(217, 104, 76, 0.82), rgba(243, 182, 66, 0.7) 44%, rgba(47, 125, 101, 0.22) 70%, transparent);
  animation: breathe 4s ease-in-out infinite;
}

.cell-rain {
  left: 33%;
  top: 25%;
  width: 150px;
  height: 94px;
  background: radial-gradient(circle, rgba(15, 111, 136, 0.58), rgba(47, 125, 101, 0.34) 58%, transparent);
  animation: drift 8s ease-in-out infinite;
}

.cell-south {
  left: 43%;
  top: 69%;
  width: 140px;
  height: 76px;
  background: radial-gradient(circle, rgba(243, 182, 66, 0.72), rgba(217, 104, 76, 0.42) 52%, transparent);
  animation: drift 7s ease-in-out infinite reverse;
}

.radar-ring {
  left: 62%;
  top: 64%;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  animation: ping 2.6s ease-out infinite;
}

.ring-two {
  animation-delay: 1.2s;
}

.bolt {
  width: 18px;
  height: 34px;
  clip-path: polygon(46% 0, 86% 0, 62% 41%, 92% 41%, 28% 100%, 43% 53%, 12% 53%);
  background: #f3b642;
  filter: drop-shadow(0 0 8px rgba(243, 182, 66, 0.9));
  animation: flash 2s steps(2, end) infinite;
}

.bolt-one {
  left: 62%;
  top: 60%;
}

.bolt-two {
  left: 54%;
  top: 31%;
  animation-delay: 0.7s;
}

.bolt-three {
  left: 39%;
  top: 27%;
  animation-delay: 1.1s;
}

.bolt-four {
  left: 47%;
  top: 70%;
  animation-delay: 1.5s;
}

.wind-arrow {
  width: 86px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  transform: rotate(142deg);
}

.wind-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -6px;
  width: 14px;
  height: 14px;
  border-right: 3px solid rgba(255, 255, 255, 0.84);
  border-bottom: 3px solid rgba(255, 255, 255, 0.84);
  transform: rotate(-45deg);
}

.arrow-one {
  left: 26%;
  top: 24%;
}

.arrow-two {
  left: 46%;
  top: 38%;
}

.arrow-three {
  left: 60%;
  top: 55%;
}

.arrow-four {
  left: 38%;
  top: 70%;
}

.forecast-zone {
  width: var(--zone-size, 112px);
  height: var(--zone-size, 112px);
  border: 3px solid currentColor;
  border-radius: 48% 52% 45% 55%;
  background: color-mix(in srgb, currentColor 28%, transparent);
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 30px rgba(20, 32, 42, 0.18);
}

.forecast-zone::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.forecast-zone.low {
  color: var(--pine);
}

.forecast-zone.watch {
  color: var(--storm);
}

.forecast-zone.medium {
  color: #b77c28;
}

.forecast-zone.high {
  color: var(--coral);
}

.forecast-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.forecast-help {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.forecast-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.forecast-stats div {
  min-height: 82px;
  padding: 13px;
  border-radius: 8px;
  background: #f2f6f5;
}

.forecast-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forecast-stats dd {
  margin: 8px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
}

.legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 750;
}

.legend i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.legend i.low {
  background: var(--pine);
}

.legend i.watch {
  background: var(--storm);
}

.legend i.medium {
  background: #b77c28;
}

.legend i.high {
  background: var(--coral);
}

.map-note {
  padding: 18px;
  border-radius: 8px;
  background: #f8f4ea;
}

.map-note p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.map-panel {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 22%, rgba(243, 182, 66, 0.32), transparent 12%),
    linear-gradient(116deg, #d7e7d9 0 47%, var(--sea) 48% 100%);
  box-shadow: var(--shadow);
}

.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(55deg, transparent 0 30%, rgba(255, 255, 255, 0.32) 31% 32%, transparent 33%),
    linear-gradient(15deg, transparent 0 38%, rgba(47, 125, 101, 0.24) 39% 40%, transparent 41%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 46px);
  opacity: 0.8;
}

.coast-line {
  position: absolute;
  inset: 0;
  clip-path: polygon(42% 0, 52% 20%, 48% 39%, 56% 56%, 50% 72%, 58% 100%, 46% 100%, 42% 72%, 45% 57%, 39% 38%, 43% 18%);
  background: rgba(255, 255, 255, 0.64);
}

.sea-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-transform: uppercase;
}

.zone {
  position: absolute;
  z-index: 3;
  width: 118px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(20, 32, 42, 0.18);
}

.zone:focus-visible,
.report-form input:focus,
.report-form select:focus,
.report-form button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(243, 182, 66, 0.78);
  outline-offset: 3px;
}

.zone-high {
  left: 42%;
  top: 40%;
  background: var(--coral);
}

.zone-medium {
  left: 58%;
  top: 63%;
  background: #b77c28;
}

.zone-low {
  left: 22%;
  top: 26%;
  background: var(--pine);
}

.zone-watch {
  left: 28%;
  top: 70%;
  background: var(--storm);
}

.radar-sweep {
  position: absolute;
  left: 40%;
  top: 38%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(243, 182, 66, 0.35), transparent 27%);
  animation: spin 5s linear infinite;
  transform-origin: center;
}

.risk-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.risk-card,
.bulletin-grid article,
.article-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.risk-card {
  opacity: 0.62;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.risk-card.active {
  opacity: 1;
  transform: translateX(6px);
  border-color: rgba(217, 104, 76, 0.46);
}

.risk-card h3,
.bulletin-grid h3,
.article-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.risk-card p,
.bulletin-grid p,
.article-card p,
.signalement p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.level,
.article-card span {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.high {
  color: var(--coral);
}

.medium {
  color: #a46f22;
}

.low {
  color: var(--pine);
}

.watch {
  color: var(--storm);
}

.bulletin-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bulletin-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bulletin-grid time {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--sea-dark);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f1f6f3;
}

.article-section {
  border-top: 1px solid var(--line);
}

.article-card {
  min-height: 230px;
}

.article-card span {
  color: var(--sea);
}

.signalement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
  padding-inline: 28px;
  border-radius: 8px;
  background: var(--storm);
  color: white;
}

.signalement .eyebrow {
  color: #f7cf73;
}

.signalement p {
  color: rgba(255, 255, 255, 0.76);
}

.report-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.report-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.report-form input,
.report-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
}

.report-form button {
  border: 0;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
}

.editor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.forecast-editor {
  display: grid;
  grid-column: 1;
  gap: 14px;
}

.forecast-editor label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.forecast-editor input,
.forecast-editor select,
.forecast-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8faf8;
  color: var(--ink);
  font: inherit;
}

.forecast-editor button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--storm);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.forecast-preview {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 22px;
  border-radius: 8px;
  background: #f8f4ea;
}

.forecast-preview p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(217, 104, 76, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 104, 76, 0);
  }
}

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

@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: 0.78;
  }
}

@keyframes drift {
  50% {
    transform: translate(18px, -10px);
  }
}

@keyframes ping {
  to {
    opacity: 0;
    transform: scale(4.6);
  }
}

@keyframes flash {
  50% {
    opacity: 0.25;
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, 720px);
  }

  .topbar,
  .main-nav {
    align-items: flex-start;
  }

  .topbar {
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .risk-layout,
  .france-layout,
  .model-controls,
  .model-viewer,
  .admin-vigilance-grid,
  .vigilance-builder,
  .signalement {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-copy {
    padding: 70px 22px 160px;
  }

  .live-card {
    margin: -150px 18px 48px;
  }

  .bulletin-grid,
  .article-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 480px;
  }

  .france-map {
    min-height: 560px;
  }

  .signalement {
    padding: 30px 18px;
  }

  .editor-panel,
  .forecast-preview {
    grid-template-columns: 1fr;
    grid-column: auto;
    grid-row: auto;
  }

  .vigilance-page {
    --vigilance-map-max-height: min(44vh, 390px);
  }

  .vigilance-page .page-main {
    padding-top: 8px;
  }

  .vigilance-page .page-hero {
    padding: 10px 0;
  }

  .vigilance-page .page-hero .eyebrow,
  .vigilance-page .page-hero p:not(.eyebrow) {
    display: none;
  }

  .vigilance-page .page-hero h1 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }

  .vigilance-page .main-nav a {
    white-space: nowrap;
  }

  .vigilance-page .vigilance-builder,
  .vigilance-page .admin-vigilance-grid {
    grid-template-columns: 1fr;
  }

  .vigilance-page .blank-france-card {
    order: 1;
  }

  .vigilance-page .vigilance-controls {
    order: 2;
  }

  .vigilance-page .vigilance-list-card {
    order: 3;
  }

  .vigilance-page .blank-map-head {
    padding: 12px 14px;
  }

  .vigilance-page .blank-map-head .eyebrow {
    margin-bottom: 8px;
  }

  .vigilance-page .blank-map-head h2 {
    font-size: 1.16rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 18px, 420px);
  }

  .brand {
    min-width: 0;
  }

  .report-link {
    width: 100%;
  }

  h1 {
    font-size: 2.72rem;
  }

  .hero-copy {
    padding-inline: 16px;
  }

  .current-grid {
    grid-template-columns: 1fr;
  }

  .ticker {
    margin-top: -10px;
  }

  .zone {
    width: 96px;
    font-size: 0.84rem;
  }

  .zone-high {
    left: 38%;
  }

  .zone-medium {
    left: 52%;
  }

  .zone-low {
    left: 12%;
  }

  .zone-watch {
    left: 18%;
  }

  .map-toolbar {
    align-items: stretch;
  }

  .segmented-control,
  .forecast-tools,
  .clear-map {
    width: 100%;
  }

  .tool-button,
  .risk-tool,
  .clear-map,
  .model-tab,
  .parameter-button,
  .run-button {
    flex: 1 1 120px;
  }

  .france-map {
    min-height: 430px;
  }

  .windy-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .windy-open {
    width: 100%;
  }

  #windy-frame {
    min-height: 360px;
  }

  .live-map-page #windy-frame {
    height: 70vh;
    min-height: 420px;
  }

  #model-frame {
    min-height: 420px;
  }

  .blank-france-map {
    min-height: 0;
  }

  .forecast-zone {
    --zone-size: 82px;
  }
}
