/* Direction: pharmacie moderne — papier vert pâle, encre forêt, accent émeraude, display géométrique */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f5f8f4;
  --surface: #fbfcfa;
  --surface-2: #e9ece9;
  --border: #d3d8d4;
  --border-strong: #acb3af;
  --ink: #10261e;
  --muted: #5b6762;
  --accent: #0b7a64;
  --accent-hover: #096855;
  --accent-ink: #ffffff;
  --accent-text: #0a6552;
  --accent-strong: #0a705c;
  --accent-soft: #d4e6e0;
  --accent-border: #8cbfb3;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #daeade;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #ede4d8;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #eededa;
  --danger-strong: #b91c1c;
  --chart-1: #0b7a64;
  --chart-2: #1c8dbf;
  --chart-3: #573f91;
  --chart-4: #b65882;
  --chart-5: #793d0b;
  --chart-6: #7f8710;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 18px;
  --radius-btn: 999px;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --x-on-photo: #ffffff;
  --x-band: #0d2a22;
  --x-band-ink: #e8f3ee;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #02110e;
  --surface: #1b2926;
  --surface-2: #0f1d1a;
  --border: #253230;
  --border-strong: #4e5856;
  --ink: #f5f8f4;
  --muted: #949c98;
  --accent: #0b7a64;
  --accent-hover: #308e7b;
  --accent-ink: #ffffff;
  --accent-text: #50a090;
  --accent-strong: #419886;
  --accent-soft: #042821;
  --accent-border: #064035;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #062918;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #29200d;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2a1311;
  --danger-strong: #d16969;
  --chart-1: #18806a;
  --chart-2: #0994cb;
  --chart-3: #856fc6;
  --chart-4: #bd5e88;
  --chart-5: #ba6828;
  --chart-6: #858e1c;
}

.scrim { background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.05) 70%); }
.band-dark { background: var(--x-band); color: var(--x-band-ink); }
.tile img { transition: transform 0.5s ease; }
.tile:hover img { transform: scale(1.06); }
.rise { animation: rise 0.7s ease both; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
html.reduced-motion .rise { animation: none; }
html.reduced-motion .tile img { transition: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 0.6rem 0.75rem; white-space: nowrap; border-bottom: 1px solid var(--border); }
.tbl td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.track-dot { fill: var(--accent); stroke: var(--canvas); }
.leaflet-container { font-family: inherit; z-index: 0; }
dialog.modal::backdrop { background: rgb(0 0 0 / 0.5); }
