/* =========================================================================
   Ostéo·Sceptique
   Thème sombre, accents jaune fluo. Surcouche de Bulma 1.x.
   ====================================================================== */

:root {
  --fluo:       #e2ff1f;
  --fluo-2:     #c8e510;
  --fluo-dim:   #9aad14;
  --fluo-glow:  rgba(226, 255, 31, .14);
  --fluo-wash:  rgba(226, 255, 31, .07);

  --ink:        #08090a;
  --ink-2:      #0d0f11;
  --panel:      #131619;
  --panel-2:    #191d21;
  --line:       #262b30;
  --line-soft:  #1c2024;

  --txt:        #e2e6e9;
  --txt-dim:    #a2aab1;
  --txt-mute:   #6f777e;

  --red:        #ff6259;
  --red-wash:   rgba(255, 98, 89, .10);
  --green:      #7ee081;

  --f-display:  'Archivo Black', 'Archivo', system-ui, sans-serif;
  --f-body:     'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:     'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --nav-h:      3.75rem;

  /* Surcharges Bulma */
  --bulma-scheme-main:            #08090a;
  --bulma-body-background-color:  #08090a;
  --bulma-body-color:             #e2e6e9;
  --bulma-primary:                #e2ff1f;
  --bulma-link-text:              #e2ff1f;
  --bulma-family-primary:         'Archivo', system-ui, sans-serif;
}

/* ---------- base ------------------------------------------------------ */

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  /* « clip » et non « hidden » : hidden ferait de body un conteneur de
     défilement, ce qui neutraliserait le position:sticky de la navbar. */
  overflow-x: clip;
}

::selection { background: var(--fluo); color: #000; }

a { color: var(--fluo); text-decoration: none; }
a:hover { color: #fff; }

.container { max-width: 1120px; padding-inline: 1.25rem; }
.container--narrow { max-width: 780px; }

[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--fluo); color: #000; padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--fluo); outline-offset: 3px; }

/* ---------- barre de progression -------------------------------------- */

.progress-x {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: transparent; pointer-events: none;
}
.progress-x span {
  display: block; height: 100%; width: 0;
  background: var(--fluo);
  box-shadow: 0 0 10px var(--fluo-glow);
}

/* ---------- navigation ------------------------------------------------ */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.is-scrolled .site-nav { border-bottom-color: var(--line-soft); }

.site-nav__in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand__mark {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--fluo); box-shadow: 0 0 0 4px var(--fluo-glow); flex: none;
}
.brand__txt {
  font-family: var(--f-display); font-size: .8rem;
  letter-spacing: -.02em; color: #fff; text-transform: uppercase;
}
.brand:hover .brand__txt { color: var(--fluo); }

.nav-list {
  display: flex; align-items: center; gap: .15rem;
  margin: 0 0 0 auto; padding: 0; list-style: none;
}
.nav-link {
  display: inline-flex; align-items: baseline; gap: .4rem;
  padding: .45rem .6rem;
  color: var(--txt-dim);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  border-radius: 3px;
}
.nav-link:hover { color: #fff; background: var(--panel); }
.nav-link__num { font-family: var(--f-mono); font-size: .66rem; color: var(--txt-mute); }
.nav-link.is-current {
  color: var(--fluo);
  background: var(--fluo-wash);
  box-shadow: inset 0 -2px 0 var(--fluo);
}
.nav-link.is-current .nav-link__num { color: var(--fluo-dim); }
.nav-link--src { color: var(--txt-mute); }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center; gap: .5rem;
  background: transparent; border: 1px solid var(--line);
  color: var(--fluo); border-radius: 3px;
  padding: .4rem .7rem; cursor: pointer;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-toggle__ico { width: 14px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__ico::before,
.nav-toggle__ico::after {
  content: ""; position: absolute; left: 0; width: 14px; height: 2px; background: currentColor;
}
.nav-toggle__ico::before { top: -5px; }
.nav-toggle__ico::after  { top: 5px; }

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-block: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .6);
    padding: .5rem 1.25rem 1rem;
  }
  .nav-list.is-open { display: flex; }
  .nav-link { padding: .7rem .4rem; font-size: .95rem; }
  .site-nav__in { position: relative; }
}

/* ---------- typographie ----------------------------------------------- */

.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fluo);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--fluo); flex: none; }

.h-hero {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: .94; letter-spacing: -.04em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 2rem;
}
.h-hero span { display: block; }

.h-section {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  line-height: 1.04; letter-spacing: -.035em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 1.3rem;
}
.hl { color: var(--fluo); }

/* Surlignage au feutre, réservé au titre principal : dans un paragraphe, la bande
   passe au travers des jambages et rend le texte illisible. Le gras jaune (b) y
   remplit le même rôle. */
.h-hero .mark {
  color: #fff;
  background-image: linear-gradient(var(--fluo), var(--fluo));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% .18em;
  padding: 0 .06em;
}

.h-sub {
  font-weight: 700; font-size: 1.15rem; color: #fff;
  letter-spacing: -.01em; margin-bottom: .6rem;
}
.h-sub--lg {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 3.2rem 0 1rem; letter-spacing: -.02em;
}
/* Pas de blanc superflu quand le titre ouvre une section ou suit un séparateur
   qui apporte déjà sa propre respiration. */
.sec-head + .h-sub--lg,
.lead + .h-sub--lg,
.rule + .h-sub--lg,
.eyebrow + .h-sub--lg { margin-top: 0; }

.lead {
  font-size: 1.16rem; line-height: 1.64; color: var(--txt-dim);
  max-width: 70ch; margin-bottom: 2rem;
}
.lead--tight { margin-bottom: 1.6rem; }
.lead strong, .lead em { color: var(--txt); font-weight: 700; font-style: normal; }

.p { color: var(--txt-dim); max-width: 74ch; margin-bottom: 1.1rem; }
.p:last-child { margin-bottom: 0; }
.p strong { color: #fff; font-weight: 700; }
.p em { font-style: italic; color: var(--txt); }

.dim { color: var(--txt-mute); }

/* Gras jaune : mise en avant des propositions fortes */
b { color: var(--fluo); font-weight: 700; }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 3.5rem 0; }

/* ---------- appels de note -------------------------------------------- */

.ref {
  font-family: var(--f-mono); font-size: .68em; font-weight: 700;
  color: var(--fluo-dim); vertical-align: super; line-height: 0;
  white-space: nowrap; margin-left: .12em;
}
.ref a { color: var(--fluo-dim); }
.ref a:hover { color: var(--fluo); text-decoration: underline; }
.ref__sep { color: var(--txt-mute); margin-right: .1em; }

/* ---------- sections -------------------------------------------------- */

.section { padding: 5.5rem 0; }
.section--stats { padding-top: 0; padding-bottom: 4rem; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }
.section--sources { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.section--page { padding-top: 4.5rem; }

.sec-head { margin-bottom: 3rem; max-width: 74ch; }
.sec-head__n {
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .12em;
  color: var(--fluo); margin-bottom: 1rem;
}
.sec-head__n span { color: var(--txt-mute); }
.sec-head__t {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.038em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 1rem;
}
.sec-head__s { font-size: 1.1rem; color: var(--txt-dim); max-width: 62ch; }

/* ---------- accroche -------------------------------------------------- */

.hero-x {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.hero-x::before {
  content: ""; position: absolute; inset: -35% auto auto -12%;
  width: 65%; height: 110%;
  background: radial-gradient(closest-side, var(--fluo-glow), transparent 70%);
  pointer-events: none;
}
.hero-x::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .4;
  mask-image: radial-gradient(circle at 78% 22%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 78% 22%, #000, transparent 72%);
  pointer-events: none;
}
.hero-x > .container { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--fluo); border: 1px solid var(--fluo-dim);
  padding: .32rem .7rem; margin-bottom: 1.8rem;
}

.legend {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem;
  margin-top: 2.6rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--txt-mute);
}
.legend__i { display: inline-flex; align-items: baseline; gap: .35rem; }
.legend .ref { position: static; vertical-align: baseline; line-height: inherit; color: var(--fluo-dim); }

.hero-note {
  border-left: 2px solid var(--fluo);
  padding: .3rem 0 .3rem 1.1rem;
  color: var(--txt-dim); max-width: 64ch; font-size: .95rem;
  margin-top: 1.8rem;
}
.hero-note strong { color: #fff; }

/* ---------- sommaire de la page d’accueil ------------------------------ */

.toc { margin-top: 3rem; max-width: 46ch; }
.toc__k {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--txt-mute); margin-bottom: 1.2rem;
}
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { border-top: 1px solid var(--line-soft); }
.toc { margin-left: calc(-.7rem - 2px); }
.toc__list li:last-child { border-bottom: 1px solid var(--line-soft); }

/* Le survol ne doit modifier aucune dimension : sans quoi la largeur
   disponible change et le texte se recompose. Seule la couleur varie. */
.toc__a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .75rem .75rem .75rem .7rem;
  border-left: 2px solid transparent;
  color: #fff;
  transition: border-color .18s ease, background-color .18s ease;
}
.toc__a:hover {
  color: #fff;
  border-left-color: var(--fluo);
  background-color: var(--fluo-wash);
}
.toc__n {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700;
  color: var(--txt-mute); flex: none; width: 1.9rem;
}
.toc__a:hover .toc__n { color: var(--fluo); }
.toc__t {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  line-height: 1.16; letter-spacing: -.032em;
}
.toc__t b { color: var(--fluo); }
.toc__a--alt .toc__t { font-family: var(--f-body); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.2rem); }

/* ---------- pastilles ---------------------------------------------------- */

.pills { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.4rem; }
.pills--end { margin-top: 3rem; }
.pills__k {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--txt-mute); margin-right: .4rem;
}
.pill {
  display: inline-flex; align-items: baseline; gap: .45rem;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--txt); font-size: .88rem; font-weight: 600;
  padding: .5rem .95rem; border-radius: 999px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  font-family: inherit; cursor: pointer;
}
.pill:hover { background: var(--fluo); border-color: var(--fluo); color: #000; }
.pill--ghost { background: transparent; color: var(--txt-dim); }
.pill--btn.is-done { background: var(--fluo); border-color: var(--fluo); color: #000; }

/* ---------- illustrations ------------------------------------------------ */

.fig { margin: 2.6rem 0; max-width: 860px; }
.fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel);
}
.fig__c { margin-top: .9rem; max-width: 74ch; }
.fig__t { display: block; font-size: .92rem; color: var(--txt-dim); line-height: 1.55; }
.fig__t em { color: var(--txt); font-style: italic; }
.fig__s {
  display: block; margin-top: .4rem;
  font-family: var(--f-mono); font-size: .68rem; color: var(--txt-mute);
}
.fig__s a { color: var(--fluo-dim); }
.fig__s a:hover { color: var(--fluo); }

.fig--sm { max-width: 300px; }
@media (min-width: 900px) {
  .fig--right { float: right; margin: .5rem 0 1.6rem 2.4rem; }
}

/* Galerie sur une rangée unique.
   flex-grow et aspect-ratio valent tous deux le format de l’image : les largeurs
   sont donc proportionnelles aux formats, ce qui égalise toutes les hauteurs. */
.gal { margin: 2.8rem 0; max-width: none; }
.gal__row { display: flex; gap: .6rem; align-items: flex-start; }
.gal__a {
  position: relative; display: block;
  flex-basis: 0; min-width: 0;
  aspect-ratio: var(--ar, 1.5);
  border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: var(--panel);
  transition: border-color .18s ease;
}
.gal__a:hover { border-color: var(--fluo); }
.gal__i {
  display: block; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.7) contrast(1.04);
}
.gal__a:hover .gal__i { filter: none; }
.gal__z {
  position: absolute; inset: auto 0 0 0;
  background: var(--fluo); color: #000;
  font-family: var(--f-mono); font-size: .6rem; line-height: 1.3;
  letter-spacing: .04em; padding: .3rem .4rem;
  transform: translateY(101%); transition: transform .18s ease;
}
.gal__a:hover .gal__z { transform: translateY(0); }

/* Sous 820 px, la rangée devient une bande défilante plutôt que des vignettes illisibles. */
@media (max-width: 820px) {
  .gal__row {
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: .6rem; margin-inline: -1.25rem; padding-inline: 1.25rem;
  }
  .gal__a { flex: 0 0 auto; height: 190px; scroll-snap-align: start; }
  .gal__z { transform: none; position: static; display: block; }
}

/* ---------- chiffres clés --------------------------------------------- */

.stats { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--ink); padding: 1.7rem 1.4rem; }
.stat__n {
  font-family: var(--f-display); font-size: 2.2rem; line-height: 1;
  letter-spacing: -.035em; color: var(--fluo); margin-bottom: .6rem;
}
.stat__l { font-size: .9rem; color: var(--txt-dim); line-height: 1.5; }
.stat__l strong { color: #fff; }
.stat__s {
  display: block; margin-top: .7rem;
  font-family: var(--f-mono); font-size: .66rem; color: var(--txt-mute);
}

/* ---------- cartes ---------------------------------------------------- */

.cards { display: grid; gap: 1.25rem; margin-top: 1.8rem; }
@media (min-width: 760px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card-x {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 1.6rem 1.5rem;
  transition: border-color .18s ease, transform .18s ease;
}
.card-x:hover { border-color: var(--fluo-dim); transform: translateY(-2px); }
.card-x--ok { border-left: 3px solid var(--fluo); }
.card-x__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--fluo); color: #000;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 700;
  margin-bottom: .9rem;
}
.card-x__t { font-weight: 700; color: #fff; font-size: 1.04rem; margin-bottom: .55rem; letter-spacing: -.01em; }
.card-x__p { color: var(--txt-dim); font-size: .95rem; line-height: 1.62; }
.card-x__p + .card-x__p { margin-top: .7rem; }
.card-x__p strong { color: #fff; }
.card-x__p.dim { color: var(--txt-mute); font-size: .88rem; }
/* Code de lecture du site :
   b     -> jaune fluo : les conclusions et les affirmations fortes
   .risk -> rouge      : uniquement ce qui relève du risque sanitaire */
.risk { color: var(--red); font-weight: 700; }

/* ---------- constats (essais, rapports) -------------------------------- */

.finding {
  border-left: 2px solid var(--line);
  padding: 0 0 0 1.6rem; margin: 2.2rem 0;
  max-width: 78ch;
}
.finding:hover { border-left-color: var(--fluo-dim); }
.finding__k {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fluo); margin-bottom: .5rem;
}
.finding__t { font-weight: 700; color: #fff; font-size: 1.12rem; margin-bottom: .7rem; letter-spacing: -.015em; }
.finding__p { color: var(--txt-dim); margin-bottom: .8rem; }
.finding__p:last-child { margin-bottom: 0; }
.finding__p strong { color: #fff; }
.finding__p.dim { color: var(--txt-mute); font-size: .93rem; }

/* ---------- objections ------------------------------------------------ */

.objs { margin-top: 2rem; border-top: 1px solid var(--line); max-width: 82ch; }
.obj { border-bottom: 1px solid var(--line); padding: 2rem 0; }
.obj__q {
  position: relative; padding-left: 1.6rem;
  font-weight: 700; color: #fff; font-size: 1.1rem; line-height: 1.45;
  letter-spacing: -.015em; margin-bottom: 1rem;
}
.obj__q::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 3px; background: var(--fluo);
}
.obj__a { color: var(--txt-dim); margin-bottom: .9rem; padding-left: 1.6rem; }
.obj__a:last-child { margin-bottom: 0; }
.obj__a strong { color: #fff; }

/* ---------- citations -------------------------------------------------- */

.quote {
  border: 1px solid var(--line); border-left: 3px solid var(--fluo);
  background: var(--panel); padding: 1.8rem 1.8rem 1.4rem;
  margin: 2.4rem 0; max-width: 80ch;
}
.quote__q { font-size: 1.18rem; line-height: 1.52; color: #fff; font-weight: 600; letter-spacing: -.012em; margin-bottom: .9rem; }
.quote--big .quote__q { font-size: 1.3rem; }
.quote__q strong { color: var(--fluo); }
.quote__a { font-family: var(--f-mono); font-size: .74rem; color: var(--fluo); letter-spacing: .05em; }
.quote__a span { color: var(--txt-mute); }

/* ---------- encadrés --------------------------------------------------- */

.callout {
  border-left: 3px solid var(--fluo);
  background: linear-gradient(90deg, var(--fluo-wash), transparent 62%);
  padding: 1.5rem 1.6rem; margin: 2.4rem 0; max-width: 84ch;
}
.callout__t {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fluo); margin-bottom: .7rem;
}
.callout__p { color: var(--txt-dim); margin: 0; }
.callout__p + .callout__p { margin-top: .8rem; }
.callout__p strong { color: #fff; }
.callout .ul-x { margin-top: .4rem; }
.callout--danger { border-left-color: var(--red); background: linear-gradient(90deg, var(--red-wash), transparent 62%); }
.callout--danger .callout__t { color: var(--red); }

/* ---------- listes ----------------------------------------------------- */

.ul-x { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 80ch; }
.ul-x li {
  position: relative; padding-left: 1.7rem; margin-bottom: .85rem;
  color: var(--txt-dim); line-height: 1.62;
}
.ul-x li:last-child { margin-bottom: 0; }
.ul-x li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 2px; background: var(--fluo);
}
.ul-x li strong { color: #fff; }
.ul-x--no li::before { background: var(--red); }
.ul-x--do li::before { background: var(--green); }

/* ---------- étapes numérotées ------------------------------------------ */

.steps { counter-reset: st; margin-top: 2rem; max-width: 82ch; }
.step { position: relative; margin-left: .85rem; padding: 0 0 2.2rem 3rem; border-left: 1px solid var(--line); }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: st; content: counter(st, decimal-leading-zero);
  position: absolute; left: -.86rem; top: -.2rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--fluo); color: var(--fluo);
  font-family: var(--f-mono); font-size: .66rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.section--alt .step::before { background: var(--ink-2); }
.step__t { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: .4rem; letter-spacing: -.012em; }
.step__p { color: var(--txt-dim); font-size: .97rem; margin: 0; }
.step__p strong { color: #fff; }

/* ---------- balance ---------------------------------------------------- */

.balance { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.8rem; }
@media (min-width: 760px) { .balance { grid-template-columns: 1fr 1fr; } }
.balance__col { background: var(--panel); padding: 1.8rem 1.6rem; }
.balance__col--minus { background: var(--panel-2); }
.balance__h {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: .4rem;
}
.balance__col--plus  .balance__h { color: var(--fluo); }
.balance__col--minus .balance__h { color: var(--red); }

/* ---------- étiquettes -------------------------------------------------- */

.tags-row { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-x {
  display: inline-block;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; border: 1px solid var(--line);
  color: var(--txt-mute); padding: .24rem .55rem; border-radius: 2px;
}
.tag-x--on { border-color: var(--fluo-dim); color: var(--fluo); }

/* ---------- sources ----------------------------------------------------- */

.src-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.src {
  position: relative; padding: 1.1rem 0 1.1rem 3.4rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.src__n {
  position: absolute; left: 0; top: 1.2rem;
  font-family: var(--f-mono); font-size: .74rem; color: var(--fluo-dim);
}
.src__t { display: block; color: var(--txt); font-weight: 600; line-height: 1.45; }
.src__t:hover { color: var(--fluo); text-decoration: underline; }

/* Traduction française du titre d’une source en langue étrangère. */
.src__tr {
  display: block; margin-top: .4rem;
  font-size: .88rem; line-height: 1.5; color: var(--txt-mute);
  max-width: 88ch;
}
.src__lang {
  display: inline-block; margin-right: .5rem;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fluo-dim);
  border: 1px solid var(--line); border-radius: 2px; padding: .06rem .34rem;
  vertical-align: 1px;
}

.src__m {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem;
  margin-top: .55rem;
}
.src__o { font-family: var(--f-mono); font-size: .71rem; color: var(--txt-mute); }
.src__u { font-family: var(--f-mono); font-size: .71rem; color: var(--fluo-dim); word-break: break-all; }
.src__back { font-family: var(--f-mono); font-size: .68rem; color: var(--txt-mute); white-space: nowrap; }
.src__back:hover { color: var(--fluo); }

.src:target { background: var(--fluo-wash); }
.src:target .src__n { color: var(--fluo); }

/* Repère visuel au retour vers l’appel de note dans le texte. */
.ref a:target {
  background: var(--fluo); color: #000;
  padding: 0 .25em; border-radius: 2px;
}

/* ---------- boutons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 3px;
  border: 1px solid var(--fluo); cursor: pointer;
  transition: .16s ease;
}
.btn--solid { background: var(--fluo); color: #000; }
.btn--solid:hover { background: #fff; border-color: #fff; color: #000; }
.btn--ghost { background: transparent; color: var(--fluo); }
.btn--ghost:hover { background: var(--fluo); color: #000; }

/* ---------- formulaire ---------------------------------------------------- */

.form { margin-top: 2.4rem; }
.form__row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { margin-bottom: 1.4rem; }
.form__lbl {
  display: block; font-size: .84rem; font-weight: 700; color: #fff;
  margin-bottom: .5rem; letter-spacing: .01em;
}
.req {
  font-family: var(--f-mono); font-size: .64rem; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--txt-mute);
  margin-left: .4rem;
}
.form__in {
  width: 100%; background: var(--panel); color: var(--txt);
  border: 1px solid var(--line); border-radius: 3px;
  padding: .8rem .9rem; font-family: inherit; font-size: 1rem;
  transition: border-color .16s ease, background .16s ease;
}
.form__in::placeholder { color: var(--txt-mute); }
.form__in:focus { outline: none; border-color: var(--fluo); background: var(--panel-2); }
.form__in--area { resize: vertical; min-height: 12rem; line-height: 1.6; }
.form__hint { font-size: .8rem; color: var(--txt-mute); margin-top: .4rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.form__legal { font-size: .82rem; color: var(--txt-mute); margin-top: 1.6rem; max-width: 64ch; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-left: 3px solid; padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.alert--ok  { border-color: var(--fluo); background: var(--fluo-wash); }
.alert--err { border-color: var(--red); background: var(--red-wash); }
.alert__t { font-weight: 700; color: #fff; margin-bottom: .4rem; }
.alert--ok .alert__t  { color: var(--fluo); }
.alert--err .alert__t { color: var(--red); }
.alert__p { color: var(--txt-dim); margin: 0; }
.alert__list { list-style: none; margin: 0; padding: 0; color: var(--txt-dim); }
.alert__list li { position: relative; padding-left: 1rem; margin-bottom: .3rem; }
.alert__list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 2px; background: currentColor; }

/* ---------- pied de page --------------------------------------------------- */

.site-foot { background: var(--ink-2); border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.foot__brand { font-family: var(--f-display); text-transform: uppercase; color: var(--fluo); letter-spacing: -.02em; margin-bottom: .7rem; }
.foot__h { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-mute); margin-bottom: 1rem; }
.foot__p { color: var(--txt-dim); font-size: .92rem; margin-bottom: .8rem; }
.foot__p--dim { color: var(--txt-mute); font-size: .86rem; }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { margin-bottom: .5rem; }
.foot__list a { color: var(--txt-dim); font-size: .92rem; }
.foot__list a:hover { color: var(--fluo); }
.foot__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: .7rem; color: var(--txt-mute);
}
.foot__bar a { color: var(--txt-mute); }
.foot__bar a:hover { color: var(--fluo); }

/* ---------- responsive & préférences -------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .hero-x { padding: 3.5rem 0 3rem; }
  .sec-head { margin-bottom: 2.2rem; }
  .obj__q, .obj__a { padding-left: 1.2rem; }
  .step { padding-left: 2.2rem; }
  .src { padding-left: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-nav, .progress-x, .pills, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
