@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Oswald:wght@300;400;600;700&display=swap');

:root {
  --bg:       #f4f0e6;
  --paper:    #ede8d8;
  --aged:     #e0d8c0;
  --ink:      #0a0a0a;
  --ink2:     #1a1a1a;
  --dim:      #555548;
  --muted:    #888878;
  --border:   #c8c0a8;
  --red:      #cc1800;
  --red-dim:  rgba(204,24,0,0.08);
  --stamp:    rgba(204,24,0,0.15);
  --classified: #0a0a0a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  line-height: 1.85;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── Aged paper texture ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(180,160,100,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(180,160,100,0.06) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* ── PROGRESS ── */
#progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--ink); width: 0%;
  z-index: 10000; transition: width 0.1s linear;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 6rem 8vw;
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}

/* Halftone dots background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.file-header {
  display: flex; align-items: center; gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 1;
}

.file-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}

.classified-stamp {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.4em;
  color: var(--red); border: 2px solid var(--red);
  padding: 0.25rem 0.8rem; text-transform: uppercase;
  transform: rotate(-1.5deg);
  background: var(--stamp);
  box-shadow: inset 0 0 0 1px var(--red);
}

h1.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 14rem);
  letter-spacing: -0.02em; line-height: 0.85;
  color: var(--ink);
  position: relative; z-index: 1;
  margin-bottom: 2rem;
}

/* Redaction bar over part of title */
.hero-title .redact {
  background: var(--ink);
  color: transparent;
  user-select: none;
  padding: 0 0.15em;
  position: relative;
}

.hero-title .redact::after {
  content: '████';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.4em; color: var(--ink);
  letter-spacing: 0.3em;
}

.hero-desc {
  font-family: 'Special Elite', serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--dim); max-width: 600px;
  position: relative; z-index: 1;
  border-left: 3px solid var(--red);
  padding-left: 1.2rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px dashed var(--border);
  position: relative; z-index: 1;
}

.meta-item { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); }
.meta-item span { display: block; color: var(--ink); font-weight: 500; margin-top: 0.2rem; letter-spacing: 0; font-size: 0.85rem; }

/* Mask SVG */
.mask-wrap {
  position: absolute; right: 5vw; top: 50%;
  transform: translateY(-50%);
  opacity: 0.04; pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  display: flex; flex-wrap: wrap;
  border-bottom: 2px solid #000;
}

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: #666;
  text-decoration: none; padding: 0.9rem 1.4rem;
  border-right: 1px solid #1a1a1a;
  transition: color 0.15s, background 0.15s;
}

nav a:hover { color: var(--bg); background: var(--red); }

/* ── MAIN ── */
main { max-width: 1200px; margin: 0 auto; padding: 0 4vw; position: relative; z-index: 1; }

/* ── SECTION ── */
.section {
  padding: 5rem 0; border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible { opacity: 1; transform: none; }

.section-label {
  font-size: 0.58rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 1rem;
}

.section-label::before { content: '//'; color: var(--border); }

h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--ink); line-height: 1;
  margin-bottom: 2.5rem; letter-spacing: -0.01em;
}

h2 .acc { color: var(--red); }

p { color: var(--ink2); max-width: 700px; font-size: 0.9rem; }
p + p { margin-top: 1rem; }
strong { color: var(--ink); }
em { font-style: italic; color: var(--dim); border-bottom: 1px solid var(--border); }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media(max-width:700px){ .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ── REDACTED BOX ── */
.redacted-block {
  background: var(--ink); padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  color: #333; line-height: 2.2;
}

.redacted-block .r { /* redacted text */
  background: #333; color: transparent;
  user-select: none; padding: 0 0.3em;
  border-radius: 1px;
}

.redacted-block .ok { color: #888; }
.redacted-block .hi { color: #fff; }
.redacted-block .warn { color: var(--red); }

/* ── PULL QUOTE ── */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.pull-quote p {
  font-family: 'Special Elite', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--ink); max-width: 100%;
  line-height: 1.5; font-style: italic;
}

.pull-quote cite {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 1rem; font-style: normal;
}

/* ── OP CARDS ── */
.op-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px; background: var(--border);
  border: 2px solid var(--ink); margin-top: 2.5rem;
}

.op-card {
  background: var(--paper); padding: 2rem;
  border-top: 3px solid var(--ink);
  transition: background 0.2s;
  position: relative; overflow: hidden;
}

.op-card:hover { background: var(--aged); }

.op-card::after {
  content: attr(data-status);
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-size: 0.5rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-family: 'DM Mono', monospace;
  padding: 0.15rem 0.5rem; border: 1px solid;
}

.op-card[data-status="TERMINÉ"]::after  { color: var(--muted); border-color: var(--muted); }
.op-card[data-status="ACTIF"]::after    { color: var(--red);   border-color: var(--red); animation: blink-status 1.5s step-start infinite; }
.op-card[data-status="INCONNU"]::after  { color: var(--dim);   border-color: var(--dim); }
.op-card[data-status="ARRÊTÉ"]::after   { color: #333;         border-color: #333; text-decoration: line-through; }

@keyframes blink-status { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.op-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--red); text-transform: uppercase; margin-bottom: 0.3rem;
}

.op-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600; font-size: 1.3rem;
  color: var(--ink); margin-bottom: 0.3rem; line-height: 1.1;
}

.op-year {
  font-size: 0.62rem; color: var(--muted);
  margin-bottom: 0.9rem; font-family: 'DM Mono', monospace;
}

.op-card p { font-size: 0.8rem; max-width: 100%; }

/* ── TIMELINE ── */
.timeline { margin-top: 2.5rem; }

.tl-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 2rem; padding: 1.8rem 0;
  border-bottom: 1px dashed var(--border);
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.5s, transform 0.5s;
}

.tl-item.visible { opacity: 1; transform: none; }

.tl-year {
  font-family: 'Oswald', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  color: var(--muted); padding-top: 0.1rem; line-height: 1;
}

.tl-title { font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; font-size: 0.9rem; font-family: 'DM Mono', monospace; }
.tl-item p { font-size: 0.82rem; }

/* ── FIGURE CARDS ── */
.figure-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem; margin-top: 2.5rem;
}

.figure-card {
  border: 1px solid var(--border); padding: 1.8rem;
  background: var(--paper); transition: border-color 0.2s;
}

.figure-card:hover { border-color: var(--ink); }

.fig-alias {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--red); text-transform: uppercase; margin-bottom: 0.4rem;
}

.fig-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600; font-size: 1.2rem;
  color: var(--ink); margin-bottom: 0.3rem; line-height: 1.1;
}

.fig-fate {
  font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); padding: 0.15rem 0.5rem;
  display: inline-block; margin-bottom: 0.8rem; font-family: 'DM Mono', monospace;
}

.fig-fate.convicted { border-color: var(--red); color: var(--red); }
.fig-fate.free      { border-color: var(--dim); color: var(--dim); }
.fig-fate.unknown   { border-color: var(--muted); color: var(--muted); }

.figure-card p { font-size: 0.8rem; max-width: 100%; }

/* ── DEBATE BOX ── */
.debate {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 2px solid var(--ink); margin-top: 2.5rem;
}

@media(max-width:600px){ .debate { grid-template-columns: 1fr; } }

.debate-side { padding: 2.5rem; }
.debate-side.pro   { background: var(--paper); border-right: 2px solid var(--ink); }
.debate-side.contra { background: var(--aged); }

.debate-label {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  font-size: 1.2rem; margin-bottom: 1.5rem;
}

.debate-side.pro .debate-label   { color: var(--ink); }
.debate-side.contra .debate-label { color: var(--red); }

.debate-point {
  display: flex; gap: 0.8rem; margin-bottom: 1rem; font-size: 0.82rem;
}

.debate-point::before {
  flex-shrink: 0;
  font-size: 0.7rem; margin-top: 0.15rem;
}

.debate-side.pro .debate-point::before   { content: '▸'; color: var(--ink); }
.debate-side.contra .debate-point::before { content: '▸'; color: var(--red); }

/* ── BACK TOP ── */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 38px; height: 38px;
  border: 2px solid var(--ink); background: var(--bg);
  color: var(--ink); font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s, color 0.2s;
  font-family: 'DM Mono', monospace;
}

#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--ink); color: var(--bg); }

/* ── FOOTER ── */
footer {
  text-align: center; padding: 3rem 2rem;
  background: var(--ink); color: #333;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase;
}
