/* ══════════════════════════════════════════════════════════════
   La ligne de faille — design system « faille / tectonique »
   Deux plaques, une fracture. Le noir minéral, le blanc pierre,
   une seule couleur : la braise au fond de la faille.
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #070707;
  --bg-2: #0d0c0b;
  --fg: #ece9e2;
  --muted: #8f8a80;
  --line: rgba(236, 233, 226, 0.09);
  --line-strong: rgba(236, 233, 226, 0.22);
  --accent: #b0402e;
  --accent-dim: rgba(176, 64, 46, 0.35);
  --maxw: 1160px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; width: 100%;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 clamp(16px, 3vw, 32px); height: 64px;
}
.site-header .brand {
  font-size: clamp(12px, 1.6vw, 15px); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg); text-decoration: none; white-space: nowrap;
  position: relative; padding-left: 18px;
}
/* la petite faille du logotype : un trait brisé */
.site-header .brand::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 18px; transform: translateY(-50%);
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 1.5px 7px,
    linear-gradient(var(--accent), var(--accent)) no-repeat 4.5px 6px / 1.5px 6px,
    linear-gradient(var(--accent), var(--accent)) no-repeat 1.5px 11px / 1.5px 7px;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.site-nav a {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 600;
  transition: color 0.18s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

/* ── Navigation mobile réelle : bouton + panneau plein écran ── */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; margin: -10px; color: var(--fg);
}
.nav-toggle .bars { display: block; width: 22px; height: 14px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
/* les trois barres sont elles-mêmes une petite faille : décalées */
.nav-toggle .bars span:nth-child(1) { top: 0; width: 78%; }
.nav-toggle .bars span:nth-child(2) { top: 6px; left: 22%; width: 78%; }
.nav-toggle .bars span:nth-child(3) { top: 12px; width: 78%; }
.nav-open .nav-toggle .bars span:nth-child(1) { top: 6px; left: 0; width: 100%; transform: rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { top: 6px; width: 100%; transform: rotate(-45deg); }

@media (max-width: 700px) {
  /* backdrop-filter sur l'en-tête ferait de lui le containing block du panneau
     fixed (le fond du menu ne couvrirait pas l'écran) — fond plein sur mobile */
  .site-header {
    height: 60px;
    background: #070707;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 60px; right: 0; bottom: 0; left: 0; z-index: 49;
    background: #070707 !important;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0; padding: 0 clamp(28px, 10vw, 56px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    font-family: var(--serif); font-size: clamp(26px, 8vw, 36px);
    letter-spacing: 0; text-transform: none; font-weight: 700;
    color: var(--fg); width: 100%; padding: 18px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-open .site-nav a { opacity: 1; transform: none; }
  .nav-open .site-nav a:nth-child(1) { transition-delay: 0.05s; }
  .nav-open .site-nav a:nth-child(2) { transition-delay: 0.1s; }
  .nav-open .site-nav a:nth-child(3) { transition-delay: 0.15s; }
  .nav-open .site-nav a:nth-child(4) { transition-delay: 0.2s; }
  /* décalage tectonique alterné des items */
  .site-nav a:nth-child(even) { padding-left: clamp(18px, 6vw, 34px); }
  .nav-open { overflow: hidden; }
}

/* ── La faille verticale (rail gauche, desktop) ─────────────── */
.fault-rail {
  position: fixed; top: 0; bottom: 0; left: clamp(14px, 3vw, 48px);
  width: 20px; pointer-events: none; z-index: 1; opacity: 0.55;
}
.fault-rail svg { width: 100%; height: 100%; display: block; }
.fault-rail path {
  fill: none; stroke: var(--line-strong); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
@media (max-width: 900px) { .fault-rail { display: none; } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(72px, 12vw, 140px) 24px;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; max-width: 900px;
}
.hero-tribute {
  margin: 0; color: var(--fg);
  font-size: clamp(11px, 3vw, 16px);
  letter-spacing: clamp(0.08em, 0.6vw, 0.3em);
  text-transform: uppercase; font-weight: 500;
}
@media (min-width: 521px) { .hero-tribute { white-space: nowrap; } }
.hero-ages {
  margin: 0; color: var(--muted);
  font-size: clamp(12px, 1.4vw, 14px); letter-spacing: 0.18em;
}
/* le titre fracturé : deux plaques décalées, la braise entre les deux */
.hero-punch {
  margin: 18px 0 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 8.4vw, 96px); line-height: 1.02;
  letter-spacing: -0.01em; color: var(--fg);
}
.hero-punch .plate { display: block; }
.hero-punch .plate-a { transform: translateX(clamp(-26px, -3vw, -10px)); }
.hero-punch .plate-b { transform: translateX(clamp(10px, 3vw, 26px)); }
.hero-fracture {
  width: min(420px, 70vw); height: 26px; margin: 8px 0 0;
}
.hero-fracture path {
  fill: none; stroke: var(--accent); stroke-width: 1.6;
}
.hero-cta {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 10px;
  color: rgba(236, 233, 226, 0.75); text-decoration: none;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--line-strong); padding: 14px 28px; border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-cta:hover { color: var(--fg); border-color: var(--accent); transform: translateY(-1px); }
.hero-cta svg { width: 13px; height: 13px; fill: currentColor; }

/* ── Sections & plaques ─────────────────────────────────────── */
main { position: relative; z-index: 2; }
section.block { padding: clamp(72px, 10vw, 150px) 24px; position: relative; }
.container { max-width: var(--maxw); margin: 0 auto; }
/* les deux plaques : le contenu glisse d'un côté ou de l'autre de la faille */
.plate-left  .container { margin-left: clamp(0px, 4vw, 60px); margin-right: auto; }
.plate-right .container { margin-right: clamp(0px, 4vw, 60px); margin-left: auto; }
@media (max-width: 900px) {
  .plate-left .container, .plate-right .container { margin-left: auto; margin-right: auto; }
}

/* séparateur sismique entre sections */
.seism {
  display: block; width: 100%; height: 30px; overflow: visible;
}
.seism path { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.seism .spike { stroke: var(--accent-dim); }

h2 {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: 0; margin: 0 0 26px; line-height: 1.12; font-weight: 700;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  display: inline-block; flex: none;
}
.lead {
  font-size: clamp(17px, 2vw, 21px); color: #d9d5cc;
  max-width: 720px; margin: 0 0 24px; line-height: 1.65;
}
p { color: #c7c2b8; margin: 0 0 16px; }
.muted { color: var(--muted); }

/* ── Récit ──────────────────────────────────────────────────── */
.recit-text { max-width: 720px; position: relative; padding-left: clamp(0px, 2.5vw, 28px); }
.recit-text::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(to bottom,
    transparent 0, var(--line-strong) 8%,
    var(--line-strong) 42%, var(--accent-dim) 50%, var(--line-strong) 58%,
    var(--line-strong) 92%, transparent 100%);
}
@media (max-width: 640px) { .recit-text { padding-left: 0; } .recit-text::before { display: none; } }
.recit-text p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 20px); line-height: 1.75; color: #d3cec5;
}
.recit-question {
  font-family: var(--serif); font-size: clamp(23px, 3vw, 32px);
  color: var(--fg); font-weight: 700; line-height: 1.3;
  margin: 46px 0; padding: 22px 0 22px 24px;
  border-left: 2px solid var(--accent);
}
.signature { font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 36px; }

/* ── Le cercle : la main tendue, sobre, à l'endroit où le récit la promet ── */
.cercle {
  margin-top: 52px; max-width: 560px; position: relative;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 28px 26px 24px;
}
.cercle::before {
  content: ""; position: absolute; top: -1px; left: 24px;
  width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cercle-intro {
  font-family: var(--serif); font-size: clamp(17px, 2vw, 20px);
  color: var(--fg); margin: 0 0 20px; line-height: 1.5;
}
.cercle-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .cercle-form { grid-template-columns: 1fr; } }
.cercle-field label {
  display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.cercle-field input {
  width: 100%; background: #070707; border: 1px solid var(--line);
  color: var(--fg); padding: 13px 15px; font-size: 15px; font-family: var(--sans);
  transition: border-color 0.2s;
}
.cercle-field input:focus { outline: none; border-color: var(--line-strong); }
.cercle-submit {
  grid-column: 1 / -1; background: var(--fg); color: #070707; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; padding: 15px 24px; transition: opacity 0.2s, transform 0.2s;
}
.cercle-submit:hover { opacity: 0.85; transform: translateY(-1px); }
.cercle-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.cercle .form-status {
  grid-column: 1 / -1; display: none; margin: 0; padding: 13px 15px;
  font-size: 14px; line-height: 1.5; font-family: var(--sans);
}
.cercle .form-status.show { display: block; }
.cercle .form-status.ok { background: rgba(236, 233, 226, 0.05); color: var(--fg); border: 1px solid var(--line); }
.cercle .form-status.err { background: rgba(176, 64, 46, 0.1); color: #ffb3a8; border: 1px solid var(--accent-dim); }
.cercle-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; font-family: var(--sans); }

/* ── Réflexion (teaser home + page) ─────────────────────────── */
.reflexion-teaser { max-width: 780px; }
.pull {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45; color: var(--fg); font-weight: 400; font-style: italic;
  margin: 34px 0; padding-left: 24px; border-left: 2px solid var(--accent);
}
.cta-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  color: var(--fg); text-decoration: none; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--accent); padding-bottom: 6px;
  transition: gap 0.2s, color 0.2s;
}
.cta-line:hover { gap: 16px; }
.cta-line svg { width: 13px; height: 13px; fill: currentColor; }

/* ── Créations (grille alimentée par l'API) ─────────────────── */
.creations-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 44px;
}
@media (max-width: 960px) { .creations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .creations-grid { grid-template-columns: 1fr; } }
.creation {
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.creation:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.creation::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0 12%, var(--accent) 12% 34%, transparent 34%);
  opacity: 0; transition: opacity 0.2s;
}
.creation:hover::after { opacity: 1; }
/* vignette au ratio réel : 16/9 par défaut, 9/16 pour le contenu vertical */
.creation .thumb { aspect-ratio: 16 / 9; background: #000; overflow: hidden; position: relative; }
.creation.is-vertical .thumb { aspect-ratio: 9 / 16; }
/* en grille large, une tuile 9:16 pleine hauteur reste contenue dans sa colonne */
.creation.is-vertical { max-width: 420px; }
.creation .thumb img, .creation .thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.creation.is-vertical .thumb img, .creation.is-vertical .thumb video { object-fit: cover; }
.creation .thumb .play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.creation .thumb .play-badge span {
  width: 44px; height: 44px; border-radius: 999px; background: rgba(7,7,7,0.72);
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
}
.creation .thumb .play-badge svg { width: 16px; height: 16px; fill: var(--fg); margin-left: 2px; }
.creation .resp-count { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.creation .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.creation .kind {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.creation .title {
  font-family: var(--serif); font-size: 18px; line-height: 1.35;
  color: var(--fg); font-weight: 700; margin: 0;
}
.creation .date { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.creations-empty {
  margin-top: 44px; padding: 44px 28px; border: 1px dashed var(--line-strong);
  text-align: center; color: var(--muted); font-size: 15px; line-height: 1.7;
  max-width: 620px;
}
.creations-empty .seism { height: 22px; margin-bottom: 14px; opacity: 0.8; }

/* ── Page réflexion ─────────────────────────────────────────── */
.wrap { max-width: 780px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) 24px 100px; position: relative; z-index: 2; }
.wrap h1 {
  font-family: var(--serif); font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.1; margin: 0 0 22px; font-weight: 700;
}
.meta { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.divider { position: relative; height: 30px; margin: 52px 0; }
.divider svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.divider path { fill: none; stroke: var(--line-strong); stroke-width: 1; }

/* tri du journal : décroissant par défaut (ordre du DOM), croissant = colonne inversée */
.sort-toggle { display: flex; gap: 20px; margin: 26px 0 4px; }
.sort-toggle button {
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.sort-toggle button:hover { color: var(--fg); }
.sort-toggle button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); }
#journal { display: flex; flex-direction: column; }
#journal.asc { flex-direction: column-reverse; }

.entry { margin: 0 0 12px; }
.entry-date {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg); font-weight: 600; margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.entry-date::before { content: ""; width: 20px; height: 1px; background: var(--accent); flex: none; }
.entry-date .day { color: var(--muted); font-weight: 400; letter-spacing: 0.12em; }
.entry p { font-family: var(--serif); font-size: clamp(16px, 1.9vw, 19px); line-height: 1.75; color: #d3cec5; }
.entry p.first::first-letter {
  font-size: 2.6em; float: left; line-height: 0.9;
  padding: 4px 10px 0 0; color: var(--fg);
}
.entry strong { color: var(--fg); }
.entry em { color: #e2ddd3; }

/* le fil brut : les deux voix de part et d'autre de la faille */
.thread { position: relative; }
.turn { margin: 0 0 30px; padding-left: 20px; border-left: 2px solid var(--line); }
.turn .who {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 600; margin: 0 0 10px;
}
.turn.human { border-left-color: var(--accent); }
.turn.human .who { color: var(--fg); }
.turn.human .body { color: #e5e0d7; font-family: var(--serif); font-size: clamp(16px, 1.9vw, 19px); }
.turn.ai { border-left-color: var(--line-strong); margin-left: clamp(0px, 3vw, 34px); }
.turn.ai .who { color: var(--muted); }
.turn.ai .body {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 18px 20px; font-size: 15px;
}
.body p { margin: 0 0 12px; color: #c7c2b8; }
.body p:last-child { margin-bottom: 0; }
.body strong { color: var(--fg); }
.body em { color: #ddd8ce; }
.body ul { margin: 0 0 12px; padding-left: 20px; }
.body li { color: #c7c2b8; margin: 0 0 8px; }
.body .lead-line { font-weight: 600; color: var(--fg); }
.body .q { color: var(--fg); }

.endnote {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; line-height: 1.7;
}

/* ── Lightbox média (lecture sur place, pas de sortie vers le CDN) ── */
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60;
  background: #050505;
  display: none; overflow-y: auto;
  padding: clamp(16px, 4vw, 48px) clamp(14px, 4vw, 40px) 80px;
}
.lightbox.open { display: block; }
.lb-inner { max-width: 860px; margin: 0 auto; }
.lb-close {
  position: sticky; top: 0; float: right; z-index: 61;
  background: rgba(7,7,7,0.9); border: 1px solid var(--line-strong); color: var(--fg);
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer;
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.lb-close:hover { border-color: var(--accent); }
.lb-media { margin: 8px 0 14px; display: flex; justify-content: center; background: #000; }
.lb-media video { max-width: 100%; max-height: 58vh; display: block; }
.lb-media.is-vertical video { height: min(58vh, 620px); width: auto; max-width: 100%; }
.lb-media iframe { width: 100%; border: 0; display: block; }
.lb-media iframe.ratio-169 { aspect-ratio: 16 / 9; height: auto; }
.lb-media img { max-width: 100%; max-height: 58vh; display: block; }

/* barre d'action sous le média : répondre + compteur, visibles sans défiler */
.lb-actions {
  display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
  margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.lb-count {
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); padding: 12px 0; transition: color 0.15s;
  border-bottom: 1px solid transparent;
}
.lb-count:hover { color: var(--fg); border-bottom-color: var(--accent); }
.lb-kind { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.lb-title { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--fg); margin: 0 0 6px; line-height: 1.25; }
.lb-date { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin: 0 0 14px; }
.lb-desc { color: #c7c2b8; max-width: 680px; }
.lb-source { font-size: 12px; margin-top: 10px; }
.lb-source a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.lb-source a:hover { color: var(--fg); }

/* réponses sous le média */
.lb-responses { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.lb-responses h3 {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.lb-responses h3::before { content: ""; width: 20px; height: 1px; background: var(--accent); }
.lb-resp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lb-resp {
  background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; padding: 0;
  text-align: left; color: inherit; font-family: inherit; transition: border-color 0.15s;
}
.lb-resp:hover { border-color: var(--line-strong); }
.lb-resp .rthumb { aspect-ratio: 9 / 16; max-height: 240px; background: #000; overflow: hidden; }
.lb-resp .rthumb img, .lb-resp .rthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-resp .rname { font-size: 12px; color: #c7c2b8; padding: 10px 12px; display: block; }

/* formulaire répondre */
.lb-respond { margin-top: 28px; }
.lb-respond-toggle {
  background: none; border: 1px solid var(--line-strong); color: var(--fg); cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; padding: 12px 22px; border-radius: 999px; transition: border-color 0.15s;
}
.lb-respond-toggle:hover { border-color: var(--accent); }
.lb-respond-form { display: none; margin-top: 20px; max-width: 480px; }
.lb-respond-form.open { display: block; }
.lb-respond-form label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.lb-respond-form input[type="text"] {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--fg);
  padding: 12px 14px; font-size: 15px; font-family: inherit;
}
.lb-respond-form input[type="text"]:focus { outline: none; border-color: var(--line-strong); }
.lb-respond-form input[type="file"] { width: 100%; color: var(--muted); font-size: 13px; padding: 10px 0; }
.lb-respond-submit {
  margin-top: 16px; background: var(--fg); color: #070707; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; padding: 14px 26px; transition: opacity 0.15s;
}
.lb-respond-submit:hover { opacity: 0.85; }
.lb-respond-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.lb-respond-status { font-size: 14px; margin-top: 12px; display: none; }
.lb-respond-status.show { display: block; }
.lb-respond-status.ok { color: #cfe8cf; }
.lb-respond-status.err { color: #ffb3b3; }
body.lb-open { overflow: hidden; }

/* ── Bouton Partager (Web Share natif, repli lien copié) ────── */
.share-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 1px solid var(--line-strong); color: var(--muted);
  cursor: pointer; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  transition: color 0.15s, border-color 0.15s;
}
.share-btn:hover, .share-btn.copied { color: var(--fg); border-color: var(--accent); }
.share-btn svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.share-row { margin-top: 26px; }
.entry .share-row { margin-top: 20px; }
.lb-actions .share-btn { align-self: center; }

/* ── Dock social fixe (footer sticky) ───────────────────────── */
.social-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; align-items: center;
  gap: clamp(14px, 4vw, 24px);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: #070707;
  border-top: 1px solid var(--line-strong);
}
.social-dock::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.social-dock a { color: var(--muted); display: inline-flex; padding: 4px; transition: color 0.15s; }
.social-dock a:hover { color: var(--fg); }
.social-dock svg { width: 17px; height: 17px; display: block; fill: currentColor; }
@media (max-width: 380px) { .social-dock { gap: 10px; } .social-dock svg { width: 15px; height: 15px; } }

/* ── Footer ─────────────────────────────────────────────────── */
footer.site-footer {
  padding: 56px 24px calc(44px + 52px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 0.05em;
  position: relative; z-index: 2;
}
.site-footer .brand-line {
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg);
  margin-bottom: 10px; font-size: 12px; font-weight: 600;
}
.powered { margin-top: 18px; font-size: 12px; color: var(--muted); }
.powered a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 0.15s; }
.powered a:hover { color: var(--fg); }

/* ── Reveal au scroll (gaté sur html.js : sans JS, tout reste visible) ── */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-punch .plate-a, .hero-punch .plate-b { transform: none; }
  * { animation: none !important; }
}
