/*
  StreetNow - pages publiques légales.
  CSS unique, sans dépendance externe, sans JavaScript.
  Palette par variables, thème clair par défaut et sombre via
  prefers-color-scheme.
*/

:root {
  color-scheme: light dark;

  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-alt: #eef3f1;
  --text: #10231c;
  --text-muted: #47584f;
  --border: #d9e3df;
  --accent: #14775a;
  --accent-strong: #0f5c46;
  --accent-ink: #ffffff;
  --danger: #a4341f;
  --danger-soft: #fbeee9;
  --danger-border: #f0cdc1;
  --shadow: 0 1px 2px rgba(16, 35, 28, 0.06), 0 10px 28px rgba(16, 35, 28, 0.06);
  --radius: 16px;
  --max-width: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1311;
    --surface: #131e1a;
    --surface-alt: #182620;
    --text: #e8f1ed;
    --text-muted: #a3b7af;
    --border: #26362f;
    --accent: #46c39b;
    --accent-strong: #6ad6b2;
    --accent-ink: #072019;
    --danger: #f0a58f;
    --danger-soft: #2a1a15;
    --danger-border: #4a2b22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 0;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner,
.page,
.site-footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.2px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.brand-name {
  font-size: 1.1rem;
}

.page {
  padding-top: 2.4rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.6rem;
  letter-spacing: -0.2px;
}

h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.06rem;
  color: var(--text-muted);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.3rem 0;
}

ol.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin: 0.7rem 0;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 800;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.dot--deleted {
  background: var(--danger);
}

.dot--anon {
  background: var(--accent);
}

.dot--kept {
  background: var(--text-muted);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.tag--deleted {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.tag--anon,
.tag--kept {
  background: var(--surface-alt);
  color: var(--accent-strong);
  border: 1px solid var(--border);
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  margin: 1.2rem 0;
}

.notice strong {
  display: block;
  margin-bottom: 0.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 1.2rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-strong);
}

.button--ghost {
  display: inline-block;
  width: auto;
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
}

.button--ghost:hover {
  background: var(--surface-alt);
}

.mail-template {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0.8rem 0 1rem;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.94rem;
}

caption {
  text-align: left;
  padding-bottom: 0.5rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

.small {
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer-inner p {
  margin: 0.25rem 0;
}
