/* Feuille de style unique. Police Inter hébergée sur le site (aucune ressource externe = aucun transfert de données).
   Style : fond noir pur (« le vide »), un seul violet pour les actions, ambre pour les étiquettes, titres immenses et fins. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs */
  --void: #000000;
  --bone: #ffffff;
  --ash: #9a9a9a;
  --silver: #bdbdbd;
  --iris: #8052ff;
  --iris-hover: #9470ff;
  --saffron: #ffb829;
  --verdant: #15846e;
  --blood: #ff4d5e;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --focus: #ffb829;

  /* Gravités */
  --sev-faible: #2fd3b0;
  --sev-moderee: #ffb829;
  --sev-elevee: #ff8a3d;
  --sev-critique: #ff4d5e;

  /* Rôles utilisés par les pages */
  --bg: var(--void);
  --surface: var(--void);
  --text: var(--bone);
  --muted: var(--ash);
  --border: var(--line);
  --primary: var(--iris);
  --danger: var(--blood);

  --radius: 24px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--void); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "ss01" on, "cv11" on;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--bone);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Champ de particules d'ambiance : petits triangles colorés, très discrets */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' fill='none' stroke-width='1'%3E%3Cpath d='M40 60l5 9h-10z' stroke='%238052ff' opacity='.5'/%3E%3Cpath d='M300 30l4 7h-8z' stroke='%23ffb829' opacity='.4'/%3E%3Cpath d='M470 140l5 9h-10z' stroke='%2315846e' opacity='.6'/%3E%3Cpath d='M150 250l3 6h-6z' stroke='%23ff4d9a' opacity='.35'/%3E%3Cpath d='M390 330l4 8h-8z' stroke='%238052ff' opacity='.35'/%3E%3Cpath d='M80 430l4 7h-8z' stroke='%23ffb829' opacity='.3'/%3E%3Cpath d='M250 470l5 9h-10z' stroke='%234aa3ff' opacity='.35'/%3E%3Cpath d='M480 470l3 6h-6z' stroke='%23ff4d9a' opacity='.3'/%3E%3C/svg%3E");
  background-size: 520px 520px;
}

a { color: var(--bone); text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--saffron); text-decoration-color: var(--saffron); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: var(--iris); color: #fff; }

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.04em; line-height: 1.1; color: var(--bone); }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.875rem); margin: .1em 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.625rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.25; }
strong, b { font-weight: 600; }
p { margin: 0 0 1em; }
code { font-size: .85em; background: rgba(255, 255, 255, .08); padding: .1em .4em; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }

.container { width: min(1280px, 100% - 3rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--iris); color: #fff; padding: .5rem 1rem; z-index: 50; border-radius: var(--radius); }
.skip-link:focus { top: .5rem; }
.small { font-size: .875rem; }
.muted { color: var(--ash); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline { display: inline; }
.hp { position: absolute; left: -9999px; }
.full-bleed { margin-inline: calc(50% - 50vw); }
.label, .section-kicker {
  display: block; margin: 0 0 .9rem; color: var(--saffron);
  font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em;
}
.lead, .hero-lead { font-size: 1.125rem; font-weight: 200; color: var(--bone); max-width: 34rem; }

/* ---------- En-tête ---------- */
/* Le menu reste toujours accessible : collé en haut, transparent au départ, fond noir dès qu'on défile */
.site-header { position: sticky; top: 0; z-index: 40; background: transparent; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(0, 0, 0, .86); border-bottom-color: var(--line); }
/* Le menu garde la même hauteur en défilant : sinon toute la page « saute » de quelques pixels. */
.header-inner { transition: padding .3s; }
/* Les ancres (« Passer l'intro ») ne se cachent pas sous le menu */
[id] { scroll-margin-top: 6rem; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--bone); text-decoration: none; }
.brand:hover { color: var(--bone); }
.brand svg { flex-shrink: 0; }
.brand:hover .brand-pupil { transform: translateX(2px); }
.brand-pupil { transition: transform .3s; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.8rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a, .nav .link-button {
  color: var(--ash); text-decoration: none; font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .025em; padding: .4rem 0; background: none; border: 0;
}
.nav a:hover, .nav .link-button:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav .nav-search {
  display: inline-flex; align-items: center; gap: .45rem; color: #fff; background: var(--iris);
  padding: .9rem 1.1rem; border-radius: var(--radius); line-height: 1;
}
.nav .nav-search:hover, .nav .nav-search[aria-current="page"] { background: var(--iris-hover); color: #fff; }
.nav-toggle {
  display: none; align-items: center; gap: .55rem; font: inherit; font-size: .875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .025em; color: var(--bone); background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .55rem 1rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  /* Menu ouvert : fond noir, et défilement à l'intérieur si l'écran est petit */
  .site-header:has(.site-nav.is-open) { background: #000; }
  .js .site-nav.is-open { max-height: calc(100svh - 5rem); overflow-y: auto; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; animation: dropIn .25s ease-out; }
  .js .site-nav .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 0 1.5rem; }
  .js .site-nav .nav a, .js .site-nav .nav .link-button { display: block; width: 100%; text-align: left; padding: .9rem 0; font-size: 1rem; }
  .js .site-nav .nav .nav-search { display: inline-flex; width: auto; margin-top: .8rem; padding: .9rem 1.2rem; }
}

main { padding-block: 1.5rem 7.5rem; min-height: 60vh; }

/* ---------- Pied de page ---------- */
.site-footer { color: var(--ash); padding-block: 3.75rem; font-size: .875rem; }
.site-footer .footer-inner { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.site-footer strong { color: var(--bone); font-weight: 500; }
.site-footer p { max-width: 46rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.footer-links a { color: var(--ash); text-decoration: none; text-transform: uppercase; font-weight: 600; letter-spacing: .025em; font-size: .8rem; }
.footer-links a:hover { color: var(--bone); }
.footer-credit { margin: 2rem 0 0; font-size: .8rem; color: var(--ash); }

/* ---------- Boutons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--iris); border: 1px solid var(--iris);
  padding: .9rem 1.1rem; border-radius: var(--radius); transition: background .2s, border-color .2s, color .2s;
}
.button:hover { background: var(--iris-hover); border-color: var(--iris-hover); color: #fff; }
.button-ghost, .button-secondary, .button-light, .button-outline-light {
  background: transparent; color: var(--bone); border-color: var(--line-strong);
}
.button-ghost:hover, .button-secondary:hover, .button-light:hover, .button-outline-light:hover { background: transparent; border-color: var(--bone); color: var(--bone); }
.button-danger { background: transparent; color: var(--blood); border-color: rgba(255, 77, 94, .5); }
.button-danger:hover { background: var(--blood); border-color: var(--blood); color: #000; }
.button-small { padding: .55rem .9rem; font-size: .75rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--bone); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-button.danger { color: var(--blood); }
.badge { display: inline-block; min-width: 1.4em; padding: .05em .45em; border-radius: 999px; background: var(--saffron); color: #000; font-size: .75rem; text-align: center; font-weight: 700; margin-left: .2rem; }

/* ---------- Alertes ---------- */
.alert { padding: .2rem 0 .2rem 1.2rem; margin: 0 0 2rem; border-left: 2px solid currentColor; font-weight: 300; animation: fadeUp .35s ease-out both; }
.alert p { margin: .25rem 0; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.alert-success { color: var(--sev-faible); }
.alert-error { color: var(--blood); }
.alert-info { color: var(--silver); border-left-color: var(--iris); }
.alert a { color: inherit; font-weight: 500; }

/* ---------- Récit au défilement (accueil) ---------- */
/* Sans JavaScript ou avec « réduire les animations » : les chapitres s'affichent simplement les uns sous les autres. */
.story { position: relative; margin-top: -1.5rem; }
.story-stage { position: relative; }
.story-canvas, .story-glow, .story-chips, .scroll-hint { display: none; }
.story-panel { padding: 10vh 0; max-width: 46rem; }
.story-title { font-size: clamp(2.6rem, 6.2vw, 5.5rem); line-height: .98; margin: 0 0 1.4rem; }
.story-lead { font-size: 1.125rem; font-weight: 200; color: var(--bone); max-width: 32rem; }
.story-lead strong { font-weight: 500; }
.story-source { font-size: .8rem; color: var(--ash); }
.story-source a { color: var(--ash); }
.story-skip { margin-top: 2rem; }
.story-skip a { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--ash); text-decoration: none; }
.story-skip a:hover { color: var(--bone); }
.label.is-red { color: var(--blood); }
.accent-iris { color: var(--iris-hover); }
.story-counts { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.4rem; }
.story-counts strong { display: block; font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 400; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.story-counts span { color: var(--ash); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.story-counts .is-red strong { color: var(--blood); }
.story-counts .is-amber strong { color: var(--saffron); }
.story-types { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.story-types li { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; padding: .45rem .9rem; border: 1px solid currentColor; border-radius: 999px; }
.story-types small { font-size: .8em; font-weight: 400; opacity: .75; text-transform: none; }
.chip-0 { color: #ffb829; } .chip-1 { color: #ff4d9a; } .chip-2 { color: #4aa3ff; } .chip-3 { color: #2fd3b0; }
.chip-4 { color: #ff8a3d; } .chip-5 { color: #b38cff; } .chip-6 { color: #ff4d5e; } .chip-7 { color: #8052ff; }
.consequences { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.2rem; }
.consequence { border-left: 2px solid var(--c); padding-left: 1rem; }
.consequence h3 { color: var(--c); font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 .35rem; }
.consequence p { margin: 0; color: var(--silver); font-weight: 200; font-size: .95rem; }
.conseq-0 { --c: #ffb829; } .conseq-1 { --c: #9470ff; } .conseq-2 { --c: #ff4d9a; }
.conseq-3 { --c: #ff4d5e; } .conseq-4 { --c: #2fd3b0; } .conseq-5 { --c: #4aa3ff; }

/* Avec JavaScript : la scène reste fixe pendant qu'on fait défiler */
.motion .story { height: 720vh; }
.motion .story .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .story .story-canvas { display: block; position: absolute; top: 0; right: 0; width: 62%; height: 100%; transition: opacity .6s; }
.motion .story .story-glow {
  display: block; position: absolute; top: 15%; right: 6%; width: 50%; height: 70%; border-radius: 50%;
  background: var(--glow, #8052ff); opacity: var(--glow-strength, .18); transition: background-color .8s, opacity .4s;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  will-change: opacity;
}
.motion .story .story-chips { display: block; position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.story-chip { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.story-chip span { display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; padding: .35rem .8rem; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; background: rgba(0, 0, 0, .65); }
.motion .story .story-text { position: relative; height: 100%; }
.motion .story .story-panel { position: absolute; top: 50%; left: 0; width: min(36rem, 44%); padding: 0; opacity: 0; transform: translateY(-50%); pointer-events: none; will-change: opacity, transform; }
.motion .story .story-panel.is-active { pointer-events: auto; }
.motion .story .story-panel-wide { width: min(44rem, 45%); }
.motion .story .story-panel-wide .consequences { gap: 1.3rem 1.8rem; }
.motion .story .scroll-hint { display: block; width: 1px; height: 64px; margin-top: 2.5rem; background: linear-gradient(var(--bone), transparent); transform-origin: top; animation: scrollHint 1.8s ease-in-out infinite; }
.motion .story .consequence { opacity: 0; transform: translateX(-16px); transition: opacity .5s, transform .5s; }
.motion .story .consequence.is-shown { opacity: 1; transform: none; }
@keyframes scrollHint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) {
  .motion .story .story-canvas { width: 100%; height: 58%; }
  .motion .story .story-glow { top: 8%; right: 10%; width: 80%; height: 40%; }
  .motion .story .story-panel, .motion .story .story-panel-wide { top: 72%; width: 100%; }
  .motion .story .story-title { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .motion .story .story-counts { grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
  .motion .story .story-counts strong { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .motion .story .story-counts span { font-size: .65rem; }
  .motion .story .story-lead { font-size: 1rem; }
  /* Chapitre des conséquences : l'œil s'efface derrière le texte, qui prend tout l'écran */
  .motion .story [data-chapter="3"] .story-canvas { opacity: .25; }
  .motion .story .story-panel-wide { top: 50%; }
  .consequences { grid-template-columns: 1fr; gap: .9rem; }
  .consequence h3 { font-size: 1rem; margin-bottom: .15rem; }
  .consequence p { font-size: .85rem; line-height: 1.4; }
}
@media (max-width: 900px) and (max-height: 740px) {
  .consequences { gap: .6rem; }
  .consequence h3 { font-size: .92rem; }
  .consequence p { font-size: .76rem; line-height: 1.32; }
  .motion .story .story-title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ---------- Accueil ---------- */
.home-hero { position: relative; margin-top: 0; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; }
.home-hero h1 {
  font-size: clamp(3rem, 8.8vw, 7.0625rem); letter-spacing: -0.04em; line-height: .95; margin: 0 0 2.2rem;
}
.accent-word { color: var(--saffron); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; }
.live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--blood); box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: livePulse 2s infinite; }
.hero-lead { margin-bottom: 2.2rem; }
.hero-search {
  display: flex; align-items: center; gap: .5rem; max-width: 34rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .35rem .35rem .35rem 1.2rem;
  transition: border-color .2s;
}
.hero-search:focus-within { border-color: var(--iris); }
.hero-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bone); font: inherit; font-weight: 300; font-size: 1.05rem; padding: .6rem 0;
}
.hero-search input[type="search"]::placeholder { color: var(--ash); }
/* Un seul bouton violet par écran (celui du menu) : la recherche de l'accueil est blanche */
.hero-search .button { background: var(--bone); border-color: var(--bone); color: #000; }
.hero-search .button:hover { background: var(--saffron); border-color: var(--saffron); color: #000; }
.hero-search input[type="search"]:focus { outline: none; box-shadow: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hero-chips a { color: var(--ash); text-decoration: none; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.hero-chips a::before { content: "↳ "; color: var(--iris); }
.hero-chips a:hover { color: var(--bone); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.hero-anim { animation: fadeUp .8s ease-out both; }
.hero-anim-2 { animation-delay: .1s; }
.hero-anim-3 { animation-delay: .2s; }
.hero-anim-4 { animation-delay: .3s; }

/* L'œil : un nuage de triangles animé (canvas), avec une version fixe si JavaScript est absent */
.hero-visual { position: relative; width: 100%; aspect-ratio: 1; max-width: 640px; justify-self: center; }
.eye-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; display: none; }
.js .eye-canvas { display: block; }
.js .eye-fallback { display: none; }
.eye-fallback { width: 100%; height: 100%; }

/* Chiffres clés : de la typographie pure */
.stats-band { margin-top: 1rem; }
.home-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.home-stats li { animation: fadeUp .6s ease-out both; }
.home-stats li:nth-child(2) { animation-delay: .1s; }
.home-stats li:nth-child(3) { animation-delay: .2s; }
.home-stats strong { display: block; font-size: clamp(2.6rem, 6vw, 4.875rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.home-stats span { display: block; margin-top: .6rem; color: var(--ash); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }

.home-section { margin-top: clamp(5rem, 10vw, 7.5rem); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; margin-bottom: 3rem; }
.section-head h2 { margin: 0; font-size: clamp(2.2rem, 5.5vw, 4.875rem); line-height: 1; }

/* « Se protéger » : une liste à cocher ; chaque réflexe coché ferme un peu plus le petit œil */
.protect-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.protect-intro { position: sticky; top: 7rem; }
.protect-intro h2 { margin: 0 0 1.2rem; font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: .95; }
.protect-lead { margin: 0 0 2rem; color: var(--silver); font-weight: 200; font-size: 1.15rem; max-width: 30rem; }
.mini-eye { --closed: 0; width: min(220px, 60%); margin: 0 0 1rem; }
.mini-eye svg { display: block; width: 100%; height: auto; overflow: visible; }
.mini-open { transform-box: fill-box; transform-origin: center; transform: scaleY(calc(1 - .9 * var(--closed))); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s ease; }
.mini-pupil { transform-box: fill-box; transform-origin: center; animation: miniLook 5s ease-in-out infinite; }
.mini-closed { opacity: 0; transition: opacity .5s ease .25s; }
.mini-eye.is-closed .mini-open { opacity: 0; transform: scaleY(.04); }
.mini-eye.is-closed .mini-closed { opacity: 1; }
@keyframes miniLook { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-9px); } 60% { transform: translateX(8px); } }
.protect-status { margin: 0 0 2rem; color: var(--saffron); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; min-height: 1.4em; }
.protect-status.is-done { color: #2fd3b0; }

.checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checklist li { border-bottom: 1px solid var(--line); }
.check { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; padding: 2rem 1rem 2rem 0; cursor: pointer; transition: background-color .3s ease; font-size: 1rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--bone); }
.check:hover { background: linear-gradient(90deg, rgba(128, 82, 255, .08), transparent 70%); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-num { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 200; letter-spacing: -0.04em; line-height: .85; color: var(--iris); transition: color .3s ease; font-variant-numeric: tabular-nums; }
.check-body strong { display: block; margin-bottom: .5rem; font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; transition: color .3s ease; }
.check-body span { display: block; color: var(--silver); font-weight: 200; font-size: 1.05rem; max-width: 34rem; }
.check-box { position: relative; width: 2rem; height: 2rem; margin-top: .3rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .3s ease, background-color .3s ease, transform .3s ease; }
.check-box::after { content: ""; position: absolute; left: .68rem; top: .4rem; width: .5rem; height: .95rem; border: solid var(--void); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s ease; }
.check:hover .check-box { border-color: var(--bone); }
.check input:focus-visible ~ .check-box { outline: 2px solid var(--iris); outline-offset: 4px; }
.check input:checked ~ .check-box { background: #2fd3b0; border-color: #2fd3b0; transform: scale(1.05); }
.check input:checked ~ .check-box::after { transform: rotate(45deg) scale(1); }
.check input:checked ~ .check-num { color: #2fd3b0; }
.check input:checked ~ .check-body strong { color: var(--silver); }

/* « Nous écrire » : deux grandes moitiés cliquables, une lueur au survol */
.contact { margin-top: clamp(5rem, 10vw, 7.5rem); }
.contact > .section-kicker { display: inline-block; margin-bottom: 1.5rem; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 1rem; min-height: 22rem; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 3rem); color: var(--bone); text-decoration: none; }
.split:hover { color: var(--bone); }
.split + .split { border-left: 1px solid var(--line); }
.split::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s ease; }
.split-report::before { background: radial-gradient(circle at 20% 100%, rgba(255, 184, 41, .22), transparent 65%); }
.split-help::before { background: radial-gradient(circle at 80% 100%, rgba(128, 82, 255, .3), transparent 65%); }
.split:hover::before, .split:focus-visible::before { opacity: 1; }
.split:focus-visible { outline: 2px solid var(--iris); outline-offset: -2px; }
.split-label { color: var(--saffron); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.split-help .split-label { color: var(--iris-hover); }
.split-title { margin-top: auto; font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.split-title .nowrap { white-space: nowrap; }
.split-arrow { display: inline-block; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.split:hover .split-arrow, .split:focus-visible .split-arrow { transform: translateX(.35em); }
.split-text { color: var(--silver); font-weight: 200; font-size: 1.05rem; max-width: 26rem; }

/* ---------- Page de recherche ---------- */
.page-hero { margin-top: -1.5rem; padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.page-hero h1 { margin: 0 0 1rem; font-size: clamp(2.8rem, 8vw, 6rem); line-height: .95; }
.page-hero p { margin: 0; color: var(--silver); font-weight: 200; max-width: 36rem; }
.hero { padding: 1rem 0 .5rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1.5rem 2rem; align-items: end; margin: 2rem 0 3rem; }
.filters .field { margin: 0; }
.field-actions { display: flex; gap: 1.5rem; align-items: center; }
.field-actions a { color: var(--ash); font-size: .875rem; }
.results-count { color: var(--ash); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; margin-bottom: 2rem; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--ash); pointer-events: none; }
.search-wrap input[type="search"] { padding-left: 1.8rem; }

/* ---------- Fiches de fuites : des blocs de texte flottant sur le noir ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 3.5rem 3rem; }
.card { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); animation: fadeUp .5s ease-out both; transition: border-color .3s; }
.card::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--card-accent, var(--iris)); transition: width .45s ease; }
.card:hover::before, .card:focus-within::before { width: 100%; }
.card:nth-child(2) { animation-delay: .06s; } .card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .18s; } .card:nth-child(5) { animation-delay: .24s; }
.card:nth-child(6) { animation-delay: .3s; }
.card-sev-faible { --card-accent: var(--sev-faible); } .card-sev-moderee { --card-accent: var(--sev-moderee); }
.card-sev-elevee { --card-accent: var(--sev-elevee); } .card-sev-critique { --card-accent: var(--sev-critique); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin: 0; color: var(--ash); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.card-title { font-size: clamp(1.5rem, 2.4vw, 1.6875rem); letter-spacing: -0.03em; line-height: 1.15; margin: 1rem 0 .5rem; }
.card-title a { color: var(--bone); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* toute la fiche est cliquable */
.card:hover .card-title a { color: var(--saffron); }
.card-org { color: var(--ash); margin: 0 0 .8rem; font-size: .95rem; font-weight: 400; }
.card p { margin: .3rem 0; color: var(--silver); font-weight: 200; }
.tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .75rem; font-weight: 500; color: var(--silver); border: 1px solid var(--line-strong); border-radius: 999px; padding: .15rem .65rem; }
.sev { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .025em; }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.sev-critique::before { animation: livePulseRed 1.8s infinite; }
.sev-faible { color: var(--sev-faible); } .sev-moderee { color: var(--sev-moderee); }
.sev-elevee { color: var(--sev-elevee); } .sev-critique { color: var(--sev-critique); }
.pagination { display: flex; gap: 2rem; justify-content: center; align-items: center; margin-top: 4rem; font-size: .875rem; text-transform: uppercase; font-weight: 600; letter-spacing: .025em; color: var(--ash); }
.empty { padding: 3rem 0; color: var(--ash); font-weight: 200; font-size: 1.125rem; }

/* ---------- Fiche ---------- */
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--ash); }
.breadcrumb a { color: var(--ash); text-decoration: none; }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.leak { max-width: 900px; animation: fadeUp .5s ease-out both; }
.leak h1 { font-size: clamp(2.4rem, 6vw, 4.875rem); line-height: 1; }
.leak h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: 1rem 0; margin: 0 0 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-bar strong { margin-right: auto; color: var(--saffron); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.8rem 2.5rem; margin: 2.5rem 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; color: var(--saffron); text-transform: uppercase; letter-spacing: .025em; font-weight: 600; margin-bottom: .35rem; }
.facts dd { margin: 0; font-size: 1.125rem; font-weight: 400; }
.prose { max-width: 70ch; color: var(--silver); }
.prose h2, .prose h3 { color: var(--bone); }
.prose strong { color: var(--bone); }
.prose li { margin-bottom: .4rem; }
.prose table { margin: 1rem 0; }
.advice { margin-top: 3rem; padding: 2rem 0 0 1.6rem; border-left: 2px solid var(--iris); }
.advice h2 { margin-top: 0; }
.sources { overflow-wrap: anywhere; }
.share-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.track-link { font-family: ui-monospace, monospace; font-size: .95rem; overflow-wrap: anywhere; color: var(--saffron); padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Formulaires : champs soulignés, sans boîte ---------- */
.form { margin: 2rem 0 3rem; }
.form-wide { max-width: 1040px; }
.field { margin-bottom: 1.8rem; display: flex; flex-direction: column; gap: .45rem; }
label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--silver); }
.hint { margin: 0; font-size: .875rem; color: var(--ash); font-weight: 300; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
  font: inherit; font-weight: 300; font-size: 1.05rem; color: var(--bone); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: .6rem 0; width: 100%;
  transition: border-color .2s;
}
textarea { border: 1px solid var(--line-strong); border-radius: 16px; padding: .8rem 1rem; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239a9a9a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .2rem center; padding-right: 1.6rem; }
select option { background: #0b0b0b; color: var(--bone); }
input::placeholder, textarea::placeholder { color: #6b6b6b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--iris); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7); }
.field.checkbox { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .8rem; }
.field.checkbox label { flex: 1; font-size: 1rem; font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--bone); }
.field.checkbox .error { flex-basis: 100%; }
.field.checkbox input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex-shrink: 0; accent-color: var(--iris); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--blood); }
.error { color: var(--blood); font-weight: 400; margin: 0; font-size: .9rem; }
.error::before { content: "⚠ "; }
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-actions a { color: var(--ash); font-size: .875rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 3rem; }
.danger-zone { margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid rgba(255, 77, 94, .35); }
.danger-zone summary { cursor: pointer; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--blood); }
.danger-zone h2 { margin-top: 0; font-size: 1.5rem; color: var(--blood); }
.danger-zone p { color: var(--silver); font-weight: 200; }
.card-panel { padding: 1.5rem 0; }

/* ---------- Conversations ---------- */
.thread { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2rem; margin: 2.5rem 0; }
.bubble { padding: .2rem 0 .2rem 1.4rem; border-left: 2px solid var(--line-strong); max-width: 46rem; }
.bubble-admin { align-self: flex-end; border-left-color: var(--iris); }
.bubble-meta { margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--ash); }
.bubble-admin .bubble-meta { color: var(--iris-hover); }
.bubble-title { font-size: 1.5rem; margin: 0 0 .4rem; }
.bubble p.pre { margin: 0; font-weight: 300; }

/* ---------- Administration ---------- */
.page-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.page-head h1 { margin: 0; }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-bottom: 2.5rem; }
.stats a { display: block; text-decoration: none; color: var(--ash); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
.stats a:hover { color: var(--bone); }
.stats strong { display: block; font-size: 3.5rem; font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--bone); margin-bottom: .5rem; }
.list { padding-left: 1.2rem; }
.list li { margin-bottom: .6rem; }
.table-wrap { position: relative; overflow-x: auto; }
.table th[scope="row"] { font-weight: 400; min-width: 10rem; }
.table th[scope="row"] a { text-decoration: none; }
.table thead th { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--ash); border-bottom-color: var(--line-strong); }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.actions { white-space: nowrap; }
.actions-inner { display: flex; flex-wrap: wrap; gap: .5rem; }
.status { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; white-space: nowrap; }
.status::before { content: "● "; }
.status-published, .status-traite { color: var(--sev-faible); }
.status-draft, .status-en_cours { color: var(--saffron); }
.status-nouveau { color: var(--iris-hover); }
/* Sur téléphone, le tableau des fiches devient une liste de blocs, avec les boutons bien visibles */
@media (max-width: 760px) {
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards th, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 1.4rem 0; border-top: 1px solid var(--line); }
  .table-cards tbody tr:hover { background: none; }
  .table-cards th, .table-cards td { border: 0; padding: .2rem 0; min-width: 0; }
  .table-cards th[scope="row"] { font-size: 1.35rem; letter-spacing: -0.02em; padding-bottom: .5rem; }
  .table-cards td[data-label]::before { content: attr(data-label) " · "; color: var(--ash); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; }
  .table-cards td.actions { white-space: normal; padding-top: 1rem; }
  .table-cards td.actions::before { content: none; }
}
.tabs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; margin: 0 0 2rem; }
.tabs a { display: block; padding: .3rem 0; text-decoration: none; color: var(--ash); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; border-bottom: 1px solid transparent; }
.tabs a:hover { color: var(--bone); }
.tabs a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--iris); }
.inbox { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.inbox li { border-bottom: 1px solid var(--line); }
.inbox a { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 0; text-decoration: none; color: var(--bone); transition: padding .2s; }
.inbox a:hover { padding-left: .6rem; color: var(--bone); }
.inbox-subject { font-size: 1.15rem; font-weight: 300; }
.inbox .unread .inbox-subject { font-weight: 500; }
.inbox-meta { font-size: .8rem; color: var(--ash); }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--saffron); margin-right: .6rem; vertical-align: middle; box-shadow: 0 0 8px var(--saffron); }
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.toolbar select { width: auto; }
.toolbar label { margin-right: .5rem; }
.login { max-width: 460px; margin-inline: auto; }

/* ---------- Maintenance ---------- */
.maintenance { text-align: center; max-width: 680px; margin: 4rem auto; animation: fadeUp .6s ease-out both; }
.maintenance h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 1; }
.maintenance .lead { margin-inline: auto; }
.maintenance-icon { display: inline-block; color: var(--iris); margin-bottom: 1.5rem; animation: float 4s ease-in-out infinite; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
@keyframes livePulseRed { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; order: -1; margin-bottom: -1rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child, .filters .field-actions { grid-column: 1 / -1; }
  .protect-grid { grid-template-columns: 1fr; }
  .protect-intro { position: static; }
  .contact-split { grid-template-columns: 1fr; }
  .split { min-height: 0; }
  .split + .split { border-left: 0; border-top: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .container { width: min(1280px, 100% - 2rem); }
  .header-inner { padding-block: 1.1rem; }
  .hero-visual { max-width: 320px; }
  .home-stats { gap: 1rem; }
  .home-stats span { font-size: .68rem; }
  .filters { grid-template-columns: 1fr; }
  .check { gap: .9rem; padding: 1.6rem 0; }
  .check-num { font-size: 2rem; }
  .check-box { width: 1.75rem; height: 1.75rem; margin-top: 0; }
  .check-box::after { left: .58rem; top: .32rem; width: .45rem; height: .85rem; }
  .bubble { max-width: 100%; }
  .actions { white-space: normal; }
  .cards { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
