/* :root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --text: #102033;
  --muted: #667085;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #1d4ed8;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 78, 216, 0.1), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.08), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(220, 38, 38, 0.05), transparent 26%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.navbar {
  position: sticky;
  top: 14px;
  z-index: 1000;
  padding: 0 14px;
}

.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.22);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}




.message {
  margin-top: 10px;
  font-weight: bold;
}

.message.success {
  color: green;
}

.message.error {
  color: red;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.logo-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.msg {
  margin-bottom: 10px;
  font-weight: bold;
}

.msg.success {
  color: green;
}

.msg.error {
  color: red;
}

.nav-link,
.nav-secondary,
.nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 0;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-secondary {
  margin-inline-start: auto;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.nav-primary {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
}

.nav-secondary:hover,
.nav-secondary:focus-visible,
.nav-primary:hover,
.nav-primary:focus-visible {
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    width 180ms ease;
}

.menu-btn:focus-visible,
.nav-link:focus-visible,
.nav-secondary:focus-visible,
.nav-primary:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.18);
  outline-offset: 3px;
}

.navbar.is-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.is-open .menu-btn span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.navbar.is-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-kicker {
  margin: 0 0 8px;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-desc {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  max-width: 48ch;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.hero-stat {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #4b5563;
  font-size: 0.95rem;
}

.hero-stat strong {
  font-size: 1.2rem;
  line-height: 1;
  color: #1d4ed8;
}

.hero-stat:nth-child(2) strong {
  color: #dc2626;
}

.hero-stat:nth-child(3) strong {
  color: #d97706;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
}

.disasters {
  margin: 28px 0 44px;
}

.disasters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.disasters-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.disasters-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

.disaster-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

.disaster-table th,
.disaster-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.disaster-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.disaster-table tbody tr:hover {
  background: rgba(29, 78, 216, 0.03);
}

.disaster-table td:first-child {
  font-weight: 600;
}

.time-cell {
  color: var(--muted);
  white-space: nowrap;
}

.row-details {
  display: inline-block;
}

.row-details summary {
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.row-details summary::-webkit-details-marker {
  display: none;
}

.details-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.status-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.status-critical {
  color: #dc2626;
}

.status-progress {
  color: #1d4ed8;
}

.status-high {
  color: #d97706;
}

.status-muted {
  color: #475569;
}

.status-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.add-disaster {
  margin: 28px 0 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.add-disaster.is-hidden {
  display: none;
}

.form-head {
  margin-bottom: 12px;
}

.form-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.form-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.disaster-form {
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

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

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.18);
  outline-offset: 2px;
}

.stats {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.stat-box {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  text-align: center;
}

.stat-box h3 {
  margin: 0;
  color: var(--accent);
}

.disasters-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.search {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
}

.filter {
  padding: 10px;
  border: 1px solid var(--border);
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.auth {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.map-section {
  margin: 24px 0;
}

.map-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

#map {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
}







main {
  flex: 1;
}
.auth-box h2 {
  margin-bottom: 16px;
}

.auth-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.btn-view {
  padding: 6px 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-delete {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.form-submit {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  margin-top: 32px;
  padding: 32px 0 18px;
  background: #102033;
  color: #f8fafc;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.footer h2,
.footer h3 {
  margin: 0 0 10px;
}

.footer h2 {
  font-size: 1.1rem;
}

.footer h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer p {
  margin: 0 0 8px;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 10px;
}

.status {
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}

.critique { background: red; }
.encours { background: orange; }
.elevee { background: green; }

.card button {
  margin-top: 10px;
}

.footer-links a {
  color: #f8fafc;
  text-decoration: none;
  width: fit-content;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #93c5fd;
}



.details-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.details-header h1 {
  font-size: 24px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
}

.status-Critique { background: #e74c3c; }
.status-Encours { background: #f39c12; }
.status-Elevee { background: #e67e22; }

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

#map {
  height: 300px;
  margin-top: 20px;
  border-radius: 8px;
}

.actions {
  margin-top: 20px;
  text-align: right;
}

.btn {
  background: #2c3e50;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.9rem;
}

:root {
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.55;
}

.navbar-inner,
.hero,
.stat-box,
.disaster-form,
.auth-box,
.details-card,
.card,
#map,
.menu-btn,
.nav-link,
.nav-secondary,
.nav-primary,
.field input,
.field select,
.field textarea,
.form-submit,
.btn {
  border-radius: var(--radius-lg);
}

.logo-mark {
  border-radius: var(--radius-md);
}

.hero,
.auth-box,
.details-card,
.card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(16px);
}

.hero-image img {
  filter: drop-shadow(0 20px 32px rgba(15, 23, 42, 0.08));
}

.stats {
  flex-wrap: wrap;
  gap: 14px;
}

.stat-box {
  min-width: 180px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.disasters-tools {
  flex-wrap: wrap;
}

.search,
.filter {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.auth {
  padding: 28px 0 48px;
}

.auth-box {
  max-width: 460px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.auth-box h2 {
  margin-top: 0;
}

.message,
.msg {
  margin: 0 0 14px;
  padding: 12px 14px;
  min-height: 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
}

.message.success,
.msg.success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.message.error,
.msg.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.disaster-form {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.search:focus-visible,
.filter:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.16);
  outline-offset: 2px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(29, 78, 216, 0.12);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card-body {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.card-body p {
  margin: 0;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.empty-state {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  text-align: center;
}

.empty-state.error {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--critical,
.status-critical {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.badge--progress,
.status-progress {
  background: rgba(29, 78, 216, 0.12);
  color: #1d4ed8;
}

.badge--high,
.status-high {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.badge--neutral,
.status-neutral {
  background: rgba(71, 85, 105, 0.12);
  color: #334155;
}

.details-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.details-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

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

.info-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
}

#map {
  overflow: hidden;
  min-height: 320px;
  margin-top: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.actions {
  margin-top: 22px;
  text-align: left;
}

.btn,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn {
  background: linear-gradient(135deg, #334155, #1f2937);
  color: #fff;
}

.btn-view {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn.edit {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.btn.delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn:hover,
.btn:focus-visible,
.form-submit:hover,
.form-submit:focus-visible,
.nav-link:hover,
.nav-link:focus-visible,
.nav-secondary:hover,
.nav-secondary:focus-visible,
.nav-primary:hover,
.nav-primary:focus-visible,
.menu-btn:hover,
.menu-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.footer {
  margin-top: 44px;
  padding: 34px 0 18px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #93c5fd;
}

@media (max-width: 920px) {
  .navbar {
    padding: 0 10px;
  }

  .menu-btn {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 12px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .navbar.is-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-secondary {
    margin-inline-start: 0;
  }

  .nav-link,
  .nav-secondary,
  .nav-primary {
    width: 100%;
    min-height: 46px;
  }

  .stats {
    flex-direction: column;
  }

  .disasters-tools {
    flex-direction: column;
  }

  .search,
  .filter {
    width: 100%;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-stats {
    gap: 8px;
  }

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

  .card-header {
    flex-direction: column;
  }

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

  .field-full {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .navbar {
    top: 8px;
  }

  .navbar-inner {
    padding: 12px 14px;
    border-radius: var(--radius-lg);
  }

  .logo-text small {
    display: none;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 16px;
    margin-top: 18px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .details-card {
    padding: 18px;
  }

  .disasters-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .disaster-form {
    padding: 14px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-submit {
    width: 100%;
  }

  .footer {
    padding: 28px 0 16px;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }
}







 */
 
 :root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --text: #102033;
  --muted: #667085;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #1d4ed8;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(29, 78, 216, 0.1), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.08), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(220, 38, 38, 0.05), transparent 26%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}


.container {
  width: 98%;
  max-width: 100%;
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 14px;
  z-index: 1000;
  padding: 0 14px;
}

.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.22);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.message {
  margin-top: 10px;
  font-weight: bold;
}

.message.success {
  color: green;
}

.message.error {
  color: red;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.logo-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}



.msg {
  margin-bottom: 10px;
  font-weight: bold;
}

.msg.success {
  color: green;
}

.msg.error {
  color: red;
}



.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-link,
.nav-secondary,
.nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 0;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-secondary {
  margin-inline-start: auto;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.nav-primary {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.22);
}

.nav-secondary:hover,
.nav-secondary:focus-visible,
.nav-primary:hover,
.nav-primary:focus-visible {
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    width 180ms ease;
}

.navbar.is-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.is-open .menu-btn span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.navbar.is-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.7);
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-kicker {
  margin: 0 0 8px;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-desc {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
  max-width: 48ch;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.hero-stat {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #4b5563;
  font-size: 0.95rem;
}

.hero-stat strong {
  font-size: 1.2rem;
  line-height: 1;
  color: #1d4ed8;
}

.hero-stat:nth-child(2) strong {
  color: #dc2626;
}

.hero-stat:nth-child(3) strong {
  color: #d97706;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
}

.disasters {
  margin: 28px 0 44px;
}

.disasters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.disasters-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.disasters-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--border);
}

.disaster-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

.disaster-table th,
.disaster-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.disaster-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.disaster-table tbody tr:hover {
  background: rgba(29, 78, 216, 0.03);
}

.disaster-table td:first-child {
  font-weight: 600;
}

.time-cell {
  color: var(--muted);
  white-space: nowrap;
}

.row-details {
  display: inline-block;
}

.row-details summary {
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
}

.row-details summary::-webkit-details-marker {
  display: none;
}

.details-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.status-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.status-critical {
  color: #dc2626;
}

.status-progress {
  color: #1d4ed8;
}

.status-high {
  color: #d97706;
}

.status-muted {
  color: #475569;
}

.status-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.add-disaster {
  margin: 28px 0 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.add-disaster.is-hidden {
  display: none;
}

.form-head {
  margin-bottom: 12px;
}

.form-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.form-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.disaster-form {
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

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

.field-full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.18);
  outline-offset: 2px;
}



.disasters-tools {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.search {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
}

.filter {
  padding: 10px;
  border: 1px solid var(--border);
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.auth {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.map-section {
  margin: 24px 0;
}

.map-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

#map {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
}

main {
  flex: 1;
}
.auth-box h2 {
  margin-bottom: 16px;
}

.auth-link {
  margin-top: 12px;
  font-size: 0.9rem;
}

.btn-view {
  padding: 6px 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-delete {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.form-submit {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* .footer {
  margin-top: 32px;
  padding: 32px 0 18px;
  background: #102033;
  color: #f8fafc;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0 16px;
}

.footer h2,
.footer h3 {
  margin: 0 0 10px;
}

.footer h2 {
  font-size: 1.1rem;
}

.footer h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer p {
  margin: 0 0 8px;
  color: rgba(248, 250, 252, 0.72);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
} */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 10px;
}

.status {
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}

.critique { background: red; }
.encours { background: orange; }
.elevee { background: green; }

.card button {
  margin-top: 10px;
}

/* .footer-links a {
  color: #f8fafc;
  text-decoration: none;
  width: fit-content;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #93c5fd;
} */

.footer {
  background-color: #ffffff;
  border-top: 1px solid #d1d6e6;
  padding: 60px 0 30px 0;
  margin-top: 100px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 0 10%;
}

.footer-brand h2 {
  font-size: 20px;
  font-weight: 700;
  color: #121c2d;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #606b85;
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 12px;
  text-transform: uppercase;
  color: #121c2d;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links a,
.footer-contact p {
  display: block;
  color: #606b85;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #001489;
}

.footer-bottom {
  margin-top: 60px;
  padding: 30px 10% 0;
  border-top: 1px solid #f4f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #606b85;
  font-size: 12px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

.details-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.details-header h1 {
  font-size: 24px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
}

.status-Critique { background: #e74c3c; }
.status-Encours { background: #f39c12; }
.status-Elevee { background: #e67e22; }

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

#map {
  height: 300px;
  margin-top: 20px;
  border-radius: 8px;
}

.actions {
  margin-top: 20px;
  text-align: right;
}

.btn {
  background: #2c3e50;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .container {
    width: 97%;
  }

  .navbar {
    padding: 0 10px;
  }

  .menu-btn {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 12px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .navbar.is-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-secondary {
    margin-inline-start: 0;
  }

  .nav-link,
  .nav-secondary,
  .nav-primary {
    width: 100%;
    min-height: 46px;
  }

  .stats {
    flex-direction: column;
  }

  .disasters-tools {
    flex-direction: column;
  }

  .search,
  .filter {
    width: 100%;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-stats {
    gap: 8px;
  }

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

  .card-header {
    flex-direction: column;
  }

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

  .field-full {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: 96%;
  }

  .navbar {
    top: 8px;
  }

  .navbar-inner {
    padding: 12px 14px;
  }

  .logo-text small {
    display: none;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: 16px;
    margin-top: 18px;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .details-card {
    padding: 18px;
  }

  .disasters-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .disaster-form {
    padding: 14px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-submit {
    width: 100%;
  }

  .footer {
    padding: 28px 0 16px;
  }
}


main.container {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  padding: 0;
  background-color: #f4f5f9;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 10%;
  background-color: #06033a;
  color: #ffffff;
  border-bottom: 6px solid #f22f46;
  gap: 80px;
}

.hero-kicker {
  color: #f22f46;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-desc {
  font-size: 19px;
  color: #c1c9d2;
  line-height: 1.6;
  max-width: 520px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
}

.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: -50px;
  padding: 0 10%;
  z-index: 20;
}

.stat {
  flex: 1;
  background: #ffffff;
  padding: 40px;
  border: 1px solid #d1d6e6;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat:not(:last-child) {
  border-right: none;
}

.stat h3 {
  font-size: 12px;
  color: #606b85;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.stat span {
  font-size: 54px;
  font-weight: 700;
  color: #121c2d;
  line-height: 1;
}

.stat:hover {
  background-color: #fafbfc;
  box-shadow: inset 0 -4px 0 #f22f46;
}




#criticalCount {
  border-bottom: 4px solid #f22f46;
}

.map-section {
  padding: 22px 3%  20px ;
  /* padding-bottom: 30%; */
  background-color: #fcfcfc;
}
#map {
  height: 500px;
  width: 100%;
  border-radius: 10px;
}

/* .map-head {
  border-bottom: 2px solid #d1d6e6;
  margin-bottom: 30px;
  padding-bottom: 15px;
} */
/* 
.map-head h2 {
  font-size: 28px;
  color: #121c2d;
  font-weight: 700;
} */
/* 
#map {
  height: 500px;
  border-radius: 0;
  border: 1px solid #d1d6e6;
  background: #fff;
} */

/* .disasters {
  padding: 40px 10% 100px;
}

.search, .filter {
  height: 50px;
  border: 1px solid #d1d6e6;
  border-radius: 2px;
  padding: 0 20px;
  font-size: 15px;
  background: #fff;
} */

/* @media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 5%;
  }
  .hero-image { display: none; }
  .stats {
    flex-direction: column;
    margin-top: 20px;
  }
  .stat {
    border-right: 1px solid #d1d6e6 !important;
    border-bottom: none;
  }
} */


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.card {
  background-color: #ffffff;
  border: 1px solid #d1d6e6;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-image {
  width: 100%;
  height: 180px;
  background-color: #f4f5f9;
  border-bottom: 1px solid #d1d6e6;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #121c2d;
  margin: 0 0 10px 0;
}

.card p {
  font-size: 14px;
  color: #606b85;
  margin: 5px 0;
  line-height: 1.5;
}

.card-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge.critical { background: #f22f46; color: #ffffff; }
.badge.progress { background: #001489; color: #ffffff; }

.btn-details {
  text-decoration: none;
  color: #001489;
  font-size: 14px;
  font-weight: 700;
}

.btn-delete {
  background: none;
  border: 1px solid #d1d6e6;
  color: #f22f46;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.btn-edit {
  background: #f4f5f9;
  border: 1px solid #d1d6e6;
  color: #121c2d;
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
}