:root {
  --bg: #0d0f12; --bg2: #14171c; --bg3: #1b1f26; --line: #272c35;
  --text: #e9ebef; --muted: #9aa2ae;
  --accent: #e4b45a; --accent-ink: #1a1407;
  --ok: #6fcf97; --bad: #f08a8a; --warn: #e4b45a; --info: #86b7f2;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: 21px; margin-top: 1.6em; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 40px; padding-bottom: 64px; }
.narrow { max-width: 640px; margin: 0 auto; }
.narrow-left { max-width: 760px; }
.wrap.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(13, 15, 18, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { font-weight: 800; letter-spacing: .14em; font-size: 15px; color: var(--text); text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .word span { color: var(--accent); }
.mark { flex: none; width: 26px; height: 26px; fill: var(--accent); transition: filter .25s; }
.logo:hover .mark { filter: drop-shadow(0 0 8px rgba(228, 180, 90, .55)); }
.nav { display: flex; align-items: center; gap: 6px 18px; margin-left: auto; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--accent-ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { color: var(--muted); padding: 4px 11px; font-size: 12px; font-weight: 600; text-decoration: none; }
.lang a.on { background: var(--text); color: var(--bg); }

/* Boutons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 7px 13px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); filter: none; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.inline { display: inline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cartes, alertes, badges */
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; font-size: 18px; }
.card.highlight { border-color: var(--accent); }
.card.danger { border-color: #5a2f33; }
.card.empty { text-align: center; padding: 40px 22px; }
.alert { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; background: var(--bg2); }
.alert.ok { border-left-color: var(--ok); }
.alert.bad { border-left-color: var(--bad); }
.alert.warn { border-left-color: var(--warn); }
.alert.info { border-left-color: var(--info); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.badge.ok { color: var(--ok); border-color: #2d5a41; }
.badge.bad { color: var(--bad); border-color: #5a2f33; }
.badge.warn { color: var(--warn); border-color: #5c4a23; }
.badge.info { color: var(--info); border-color: #2f4763; }
details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: 12px; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 16px; }
.form > * { margin: 0; }
.form .btn { align-self: flex-start; }
.field > label, .field > legend, .checks > legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=file], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 16px;
}
textarea { resize: vertical; min-height: 110px; }
::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.check-grid.codes { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.consent { font-size: 14px; color: var(--muted); }
.secret { display: block; font: 600 17px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: 9px; padding: 12px; margin: 10px 0; word-spacing: 4px; overflow-wrap: anywhere; }
ol.plain { padding-left: 20px; }
ol.plain li { margin-bottom: 12px; }

/* Vitrine */
.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.05; letter-spacing: -.03em; max-width: 820px; margin: 0 auto 22px; }
.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; color: var(--muted); font-size: 14px; }
.trust li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.band { padding: 68px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 0; }
.sec-lead { color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.grid .card { margin: 0; }
.grid .card p { color: var(--muted); font-size: 15px; margin: 0; }
.card.rule { border-left: 3px solid var(--accent); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.steps li { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.band details { border-top: 1px solid var(--line); padding: 16px 0; }
.band details p { color: var(--muted); margin: 0; }

/* Espace connecté */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.head-row h1 { margin: 0; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text); text-decoration: none; }
.row-card:hover { border-color: var(--muted); }
.row-card .muted { display: block; font-size: 14px; }
.count { font-size: 14px; color: var(--muted); font-weight: 400; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
.dl dt { color: var(--muted); font-size: 14px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.prose p { margin-bottom: .8em; overflow-wrap: anywhere; }
.prose h2 { font-size: 19px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.choice-card { color: var(--text); text-decoration: none; margin: 0; }
.choice-card:hover { border-color: var(--accent); }
.choice-card p { color: var(--muted); margin: 0; }
.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.5 ui-monospace, Menlo, monospace; margin: 0; }

/* Administration */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; }
.tile strong { font-size: 30px; line-height: 1.1; }
.tile span { color: var(--muted); font-size: 14px; }
.tile.warn { border-color: var(--warn); }
.tile.warn strong { color: var(--warn); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; }
.tabs a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--bg2); color: var(--muted); font-weight: 600; white-space: nowrap; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.cols > div { min-width: 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 7px 0 7px 16px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.pager { display: flex; gap: 10px; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding: 56px 0 48px; }
  .band { padding: 52px 0; }
  .split, .cols { grid-template-columns: 1fr; }
  .page { padding-top: 28px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 6px 16px; }
  .lang { margin-left: auto; }
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
}

/* ---- Ambiance : faisceau de lumière, grain, vignette ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -20% 0;
  background: radial-gradient(ellipse 38% 62% at 50% 0%, rgba(228, 180, 90, .17), transparent 72%);
  animation: sweep 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 50% 30%, transparent 35%, rgba(0, 0, 0, .6) 100%);
}
@keyframes sweep { from { transform: translateX(-14%) rotate(-4deg); } to { transform: translateX(14%) rotate(4deg); } }
.hero h1, .door strong, .band h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; letter-spacing: -.015em; }
.hero-sub { padding: 72px 0 56px; }
.hero-foot { margin: 30px 0 0; color: var(--muted); font-size: 14px; }
.after { margin: 28px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.tag { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
.tag span { color: var(--accent); }
.tag::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--line); }
.band.dark { background: #090a0d linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 48px; }

/* Deux portes : particuliers et pro */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; text-align: left; }
.door {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 14px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(27, 31, 38, .95), rgba(13, 15, 18, .95));
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.door:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(228, 180, 90, .1); }
.door-no { color: var(--accent); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.door strong { font-size: 26px; }
.door span:not(.door-no) { color: var(--muted); font-size: 15px; }
.door em { margin-top: 10px; color: var(--accent); font-style: normal; font-weight: 700; font-size: 14px; }

/* Ce qui se prépare : tout est flouté */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.soon-title { margin-top: 2.4em; }
.classified { position: relative; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.classified-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.classified-head h3 { margin: 0; }
.blur { filter: blur(7px) saturate(.85); opacity: .9; padding: 18px; pointer-events: none; user-select: none; }
.veil { position: absolute; inset: 52px 0 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(13, 15, 18, .05), rgba(13, 15, 18, .5)); }
.stamp {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 6px;
  background: rgba(13, 15, 18, .82); color: var(--accent); transform: rotate(-3deg);
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase;
}
.lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.map { display: block; width: 100%; height: auto; }
.map .land { fill: #1c2230; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.map .dot { fill: var(--accent); }
.map .halo { fill: var(--accent); opacity: .18; transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
.map .h1 { animation-delay: 1s; }
.map .h2 { animation-delay: 2s; }
@keyframes pulse { 0%, 100% { transform: scale(.6); opacity: .08; } 50% { transform: scale(1.5); opacity: .32; } }
.scan { position: relative; display: flex; flex-direction: column; min-height: 250px; }
.scan-bar { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.scan-glass { flex: none; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; }
.scan-row { display: flex; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 3.6s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.redact { display: inline-block; height: 12px; border-radius: 3px; background: #3b4252; vertical-align: middle; }
.redact.w1 { width: 18%; } .redact.w2 { width: 30%; } .redact.w3 { width: 42%; } .redact.w4 { width: 56%; } .redact.w5 { width: 72%; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.file { position: relative; overflow: hidden; padding: 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px 12px 12px 12px; }
.file-tab { margin-bottom: 10px; color: var(--accent); font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.file-name { min-height: 22px; margin-bottom: 10px; font-weight: 600; }
.file ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file li { line-height: 12px; min-height: 12px; }
.file .redact { display: block; filter: blur(2px); }
/* Liste en clair (détective validé) */
.files.open { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.files.open .file li { line-height: 1.35; font-size: 14px; color: var(--text); }
.files.open .badge { font-size: 10px; padding: 0 7px; margin-left: 4px; }
.file-stamp {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border: 1px solid var(--bad); border-radius: 4px; color: var(--bad);
  background: rgba(13, 15, 18, .7); opacity: .8; transform: rotate(-8deg);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase;
}

/* Choix du type de demande (particuliers) */
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-card input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.radio-card small { display: block; color: var(--muted); font-size: 13px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: rgba(228, 180, 90, .06); }
.field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }

@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .hero-sub { padding: 48px 0 40px; }
}
/* ---- Photo d'ambiance, brouillard, titre décaviardé, bandeau, apparitions ---- */
.hero-photo { padding-top: 120px; padding-bottom: 104px; }
.hero-photo.hero-sub { padding-top: 96px; padding-bottom: 72px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: var(--bg) url(/assets/hero-1920.webp) 30% center / cover no-repeat;
  animation: drift 38s ease-in-out infinite alternate;
}
.hero-sub .hero-bg { background-position: 12% 60%; }
.hero-fog {
  position: absolute; inset: -10% -30%; z-index: -2; pointer-events: none; opacity: .6;
  background:
    radial-gradient(ellipse 30% 45% at 26% 72%, rgba(170, 200, 210, .2), transparent 70%),
    radial-gradient(ellipse 36% 40% at 72% 62%, rgba(170, 200, 210, .14), transparent 70%);
  animation: fog 26s ease-in-out infinite alternate;
}
.hero-photo::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(13, 15, 18, .78) 0%, rgba(13, 15, 18, .38) 38%, rgba(13, 15, 18, .62) 78%, var(--bg) 100%);
}
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.13) translateX(-1.5%); } }
@keyframes fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

.unredact .w { position: relative; display: inline-block; }
.unredact .w::after {
  content: ""; position: absolute; inset: .12em -.04em .08em; border-radius: 3px; background: #2a2f3a;
  transform-origin: right center; animation: unredact .65s cubic-bezier(.75, 0, .2, 1) both;
}
.unredact .w:nth-child(1)::after { animation-delay: .3s; }
.unredact .w:nth-child(2)::after { animation-delay: .45s; }
.unredact .w:nth-child(3)::after { animation-delay: .6s; }
.unredact .w:nth-child(4)::after { animation-delay: .75s; }
.unredact .w:nth-child(5)::after { animation-delay: .9s; }
.unredact .w:nth-child(6)::after { animation-delay: 1.05s; }
.unredact .w:nth-child(n+7)::after { animation-delay: 1.2s; }
@keyframes unredact { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.w.glow { color: var(--accent); font-style: italic; text-shadow: 0 0 30px rgba(228, 180, 90, .4); }
.hero .eyebrow, .hero .lead, .hero .doors, .hero .cta-row, .hero .trust, .hero-foot { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lead { animation-delay: 1s; }
.hero .doors, .hero .cta-row { animation-delay: 1.2s; }
.hero .trust, .hero-foot { animation-delay: 1.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ticker { overflow: hidden; padding: 13px 0; border-block: 1px solid var(--line); background: #0a0b0e; }
.ticker-track { display: flex; width: max-content; animation: ticker 44s linear infinite; }
.ticker span { padding-left: 26px; color: var(--muted); white-space: nowrap; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; text-transform: uppercase; }
.ticker span::after { content: "◆"; margin-left: 26px; color: var(--accent); font-size: 8px; vertical-align: 1px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .2s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal:nth-child(4) { transition-delay: .24s; }
.js .reveal:nth-child(n+5) { transition-delay: .32s; }
.grid .card, .steps li { transition: border-color .2s, transform .25s; }
.grid .card:hover, .steps li:hover { border-color: #444b59; transform: translateY(-4px); }
.btn { transition: filter .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:not(.btn-ghost):not(.btn-danger):hover { box-shadow: 0 10px 28px rgba(228, 180, 90, .22); }
.door { position: relative; overflow: hidden; }
.door::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at 85% 0%, rgba(228, 180, 90, .16), transparent 60%);
}
.door:hover::after { opacity: 1; }
/* Sur la photo, les portes laissent deviner la rue derrière elles. */
.hero-photo .door { background: linear-gradient(160deg, rgba(27, 31, 38, .74), rgba(13, 15, 18, .84)); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.door em { transition: transform .2s; }
.door:hover em { transform: translateX(6px); }

@media (max-width: 760px) {
  .hero-photo { padding-top: 84px; padding-bottom: 72px; }
  .hero-photo.hero-sub { padding-top: 64px; padding-bottom: 52px; }
  .hero-bg, .hero-sub .hero-bg { background-image: url(/assets/hero-mobile.webp); background-position: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .unredact .w::after { display: none; }
}


/* ---- Corrections de relecture : mise en page, accessibilité ---- */
/* Lien d'évitement (caché jusqu'au focus clavier) */
.skip { position: absolute; left: 8px; top: -48px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; transition: top .15s; }
.skip:focus { top: 0; }

/* Ancres non masquées par l'en-tête collant (au clic et au défilement clavier) */
html { scroll-padding-top: 76px; }

/* Titre d'aperçu caviardé */
.classified-head .redacted { margin: 0; display: flex; align-items: center; min-height: 22px; }
.classified-head .redacted .redact { height: 15px; width: 150px; filter: blur(2px); }

/* Focus visible sur le sélecteur de langue malgré overflow:hidden */
.lang a:focus-visible { outline-offset: -2px; }

/* Lignes de liste : le badge ne déborde plus, et passe sous le titre sur petit écran */
.row-card > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .row-card { flex-wrap: wrap; }
  .row-card .badge { margin-top: 2px; }
}

/* Listes de détails : couper proprement les mots longs (e-mails, mots composés allemands) */
.dl dd { hyphens: auto; }
@media (max-width: 480px) { .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dt { margin-top: 8px; } }

/* Deux formulaires (ou form + details) qui se suivent dans une carte : un peu d'air */
.card > form + form, .card > form + details, .card > details + form, .card > form + .form { margin-top: 16px; }

/* Aperçu seul : ne pas l'étirer sur toute la largeur */
.duo:has(.classified:only-child) { grid-template-columns: minmax(0, 520px); }

/* Tableaux admin défilables au clavier + colonnes qui ne se coupent pas n'importe où */
.table-wrap { position: relative; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
td.nowrap, th { white-space: nowrap; }

/* Zones cliquables plus hautes sur téléphone */
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .nav a { padding: 4px 0; }
  .foot-links a { padding: 4px 0; display: inline-block; }
  .lang a { padding: 7px 13px; }
}

/* ---- Outils détective : dossiers, pièces scellées ---- */
.actions-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.timeline-cards { display: flex; flex-direction: column; gap: 12px; }
.entry { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.entry-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.entry .prose { margin: 0; }
.hash { margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.hash code { display: inline-block; margin-top: 2px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 7px; }

/* ---- Carte de l'annuaire ---- */
.map-wrap { max-width: 620px; margin: 8px auto 20px; }
.chmap { display: block; width: 100%; height: auto; }
.chmap .land { fill: #141820; stroke: #2b3240; stroke-width: 1.5; stroke-linejoin: round; }
.chmap .pin { fill: var(--accent); opacity: .8; transition: opacity .2s, r .2s; }
.chmap a:hover .pin, .chmap .pin.on { opacity: 1; fill: #f3c76a; }
.chmap .pin-n { fill: #1a1407; font: 700 9px/1 ui-monospace, Menlo, monospace; text-anchor: middle; pointer-events: none; }
.canton-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.canton-filter a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; }
.canton-filter a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.listing .listing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.listing h3 { margin: 0; }
.listing.is-verified { border-color: var(--accent); }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--muted); }
.chip strong { color: var(--text); }
