/* =========================================================
   FAQ Président — ambiance "jeu de gangsters des années 2010"
   ========================================================= */

/* Police optionnelle « Pricedown » (Typodermic). ATTENTION : la licence
   gratuite « desktop » interdit l'usage en webfont et la redistribution.
   Ne déposez ici qu'un fichier couvert par une licence webfont achetée.
   Sans fichier, repli automatique sur Bangers. */
@font-face {
  font-family: "Pricedown";
  src: url("../assets/fonts/pricedown.otf") format("opentype");
  font-display: swap;
}

/* Bangers et Oswald (SIL Open Font License 1.1), hébergées sur le site :
   aucune requête vers Google, donc aucune adresse IP transmise à un tiers. */
@font-face {
  font-family: "Bangers";
  src: url("../assets/fonts/bangers-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --ink: #0b0612;
  --paper: #ffffff;
  --sky-1: #1a0b3d;
  --sky-2: #4a1462;
  --sky-3: #c93a7a;
  --sky-4: #ff8a4c;
  --sky-5: #ffd27a;
  --money: #72d25b;
  --gold: #ffcc33;
  --pink: #ff4fa3;
  --panel: rgba(8, 4, 14, 0.82);
  --accent: var(--pink);

  --font-display: "Pricedown", "Bangers", Impact, "Arial Black", sans-serif;
  --font-body: "Oswald", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--sky-1);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Décor ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg,
    var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 58%, var(--sky-4) 78%, var(--sky-5) 100%);
  overflow: hidden;
  transition: filter 0.6s;
}
body.is-mission .scene { filter: saturate(0.85) brightness(0.7); }

.sun {
  position: absolute;
  left: 50%;
  bottom: 10vh;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff4a8 0%, #ffb347 45%, #ff5e7e 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 24px);
          mask: repeating-linear-gradient(180deg, #000 0 18px, transparent 18px 24px);
  opacity: 0.85;
}
.skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 28vh;
  color: #12061f;
}
.palm {
  position: absolute;
  bottom: 0;
  height: 62vh;
  color: #0d0418;
}
.palm-left  { left: -4vh; }
.palm-right { right: -4vh; transform: scaleX(-1); }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ---------- Typo commune ---------- */
.outline {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 var(--ink), -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
}

/* La hauteur du pied de page est retirée pour que le lien « Mentions légales »
   soit visible sans défilement dès l'accueil. */
:root { --legal-h: 44px; }
@media (max-width: 700px) { :root { --legal-h: 64px; } }
#app {
  min-height: calc(100vh - var(--legal-h));
  min-height: calc(100dvh - var(--legal-h));
}

.view { animation: view-in 0.45s ease-out both; }
@keyframes view-in {
  from { opacity: 0; transform: scale(1.02); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   Accueil
   ========================================================= */
.intro {
  min-height: calc(100vh - var(--legal-h));
  min-height: calc(100dvh - var(--legal-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4vh 16px 3vh;
  gap: 2.5vh;
  text-align: center;
  overflow: hidden;
}

.intro-title {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(1.9rem, 6vw, 4.6rem);
  line-height: 1.02;
  color: var(--gold);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink {
  0%   { opacity: 1; color: var(--gold); }
  50%  { opacity: 1; color: var(--pink); }
  75%  { opacity: 0.15; }
  100% { opacity: 1; }
}

.portrait {
  position: relative;
  display: block;
  width: min(80vw, 42vh, 460px);
  aspect-ratio: 784 / 1168;
  padding: 0;
  border: 6px solid var(--ink);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--ink), 0 0 60px rgba(255, 79, 163, 0.45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(80vh) rotate(-2deg);
  animation: rise-up 2.4s cubic-bezier(0.16, 0.9, 0.24, 1) 0.3s forwards;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait:hover, .portrait:focus-visible {
  outline: none;
  box-shadow: 12px 12px 0 var(--ink), 0 0 90px rgba(255, 204, 51, 0.75);
}
.portrait:hover img { filter: brightness(1.08) saturate(1.1); }
.portrait-tag {
  position: absolute;
  left: -14px;
  bottom: 18px;
  padding: 4px 14px 2px;
  background: var(--gold);
  color: var(--ink);
  border: 4px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  transform: rotate(-4deg);
}
@keyframes rise-up {
  0%   { opacity: 0; transform: translateY(80vh) rotate(-2deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(-2deg); }
}

.hint {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: var(--paper);
  opacity: 0;
  animation: fade-in 0.6s ease 2.6s forwards, pulse 1.4s ease-in-out 3.2s infinite;
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* =========================================================
   HUD
   ========================================================= */
.hud {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 0;
}
.logo {
  display: inline-block;
  padding: 6px 12px 3px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 0.95;
  text-decoration: none;
  transform: rotate(-3deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.logo:hover { background: var(--gold); }

.hud-right { text-align: right; }
.stars {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.star {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,0.22);
  -webkit-text-stroke: 1px var(--ink);
}
.star-fill {
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--paper);
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
  transition: width 0.6s ease-out;
}
/* nouvelle (demi-)étoile : elle saute et clignote rouge / bleu comme une sirène */
.star.pop { animation: star-pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.5); }
.star.pop .star-fill { animation: star-siren 0.25s steps(1) 6; }
@keyframes star-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.9) rotate(-12deg); }
  100% { transform: scale(1); }
}
@keyframes star-siren {
  0%  { color: #ff3b3b; text-shadow: 0 0 14px #ff3b3b; }
  50% { color: #3a8bff; text-shadow: 0 0 14px #3a8bff; }
}
.stars.siren { animation: stars-shake 0.4s ease-in-out; }
@keyframes stars-shake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.cash.bump { animation: cash-bump 0.5s ease-out; }
@keyframes cash-bump {
  40% { transform: scale(1.18); color: var(--gold); }
}

.cash {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  color: var(--money);
}

/* =========================================================
   Mission (une page = un argument)
   ========================================================= */
.mission {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0 40px;
}
.mission-body { padding: 2vh 16px 0; }

.mission-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 12px 1px;
  background: var(--accent);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  transform: rotate(-2deg);
}
.mission-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--paper);
}

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--panel);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink), inset 0 0 0 2px var(--accent);
  cursor: pointer;
  transition: transform 0.15s;
}
.card:hover { transform: translate(-2px, -2px); }
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.claim { padding: clamp(18px, 4vw, 32px); }
.who {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}
.claim p {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.5;
}
.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px 6px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  animation: pulse 1.4s ease-in-out infinite;
}

.counter { display: none; }

.card.revealed { cursor: default; }
.card.revealed:hover { transform: none; }
.card.revealed .claim { opacity: 0.55; padding-bottom: 14px; }
.card.revealed .claim p { font-size: 1rem; }
.card.revealed .cta { display: none; }
.card.revealed .counter {
  display: block;
  padding: 0 clamp(18px, 4vw, 32px) clamp(18px, 4vw, 32px);
  animation: counter-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes counter-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.counter-banner {
  display: block;
  margin: 0 -8px 14px;
  padding-top: 14px;
  border-top: 3px dashed rgba(255,255,255,0.25);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--gold);
}
.punch {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.points li {
  position: relative;
  padding-left: 30px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.5;
  color: #f1e9f7;
}
.points li::before {
  content: "✖";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.sources {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.sources-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--money);
}
.sources ol { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 3px; }
.sources a { color: #cfeec6; text-underline-offset: 2px; }
.sources a:hover { color: var(--paper); }

.again {
  margin-top: 18px;
  padding: 4px 12px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,0.35);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.again:hover { color: var(--paper); border-color: var(--paper); }

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-block;
  padding: 10px 18px 7px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.2vw, 1.5rem);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.btn:hover, .btn:focus-visible { background: var(--gold); outline: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-next { background: var(--accent); }

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: rgba(255,255,255,0.25);
  transform: rotate(45deg);
}
.dot.seen { background: var(--money); }
.dot.current { background: var(--gold); transform: rotate(45deg) scale(1.3); }

.disclaimer {
  margin: 28px 16px 0;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   Bandeau plein écran
   ========================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
}
.splash span {
  display: block;
  width: 100%;
  padding: 2vh 16px 1vh;
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.75) 15%, rgba(0,0,0,0.75) 85%, transparent);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 7rem);
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}
.splash.show { visibility: visible; }
.splash.show span { animation: splash 1.3s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
@keyframes splash {
  0%   { opacity: 0; transform: scale(2.2); letter-spacing: 0.3em; }
  20%  { opacity: 1; transform: scale(1); letter-spacing: 0.02em; }
  75%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* =========================================================
   Fin
   ========================================================= */
.end {
  max-width: 820px;
  margin: 0 auto;
  padding: 4vh 16px 40px;
  text-align: center;
}
.end-title {
  margin: 0 0 6px;
  font-size: clamp(2.6rem, 10vw, 6rem);
  line-height: 1;
  color: var(--gold);
}
.end-sub {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--money);
}
.end-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
}
.end-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel);
  border: 3px solid var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}
.end-list a:hover { border-color: var(--gold); }
.end-list .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  min-width: 2ch;
}
.end-list .check { margin-left: auto; color: var(--money); font-size: 1.3rem; }
.end-list .check.off { color: rgba(255,255,255,0.25); }

/* =========================================================
   Citation mise en avant
   ========================================================= */
.quote {
  margin: 0 0 18px;
  padding: 12px 16px 12px 18px;
  border-left: 6px solid var(--gold);
  background: rgba(255, 204, 51, 0.08);
}
.quote p {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--paper);
}
.quote cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--gold);
}
.quote cite a { color: inherit; text-underline-offset: 2px; }

/* =========================================================
   Scène animée : centrale nucléaire en pleine nature
   ========================================================= */
.scene-eco {
  position: relative;
  margin: 0 0 16px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: #bfeaff;
  overflow: hidden;
}
.scene-eco .eco {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 320;
}
.sound-toggle {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px 4px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
}
.sound-toggle:hover, .sound-toggle:focus-visible { background: var(--gold); outline: none; }
.sound-toggle[aria-pressed="true"] { background: var(--money); }

.eco-label {
  font-family: var(--font-display);
  font-size: 20px;
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 4px;
  paint-order: stroke fill;
}

.eco-rays  { transform-box: fill-box; transform-origin: center; animation: eco-spin 50s linear infinite; }
.eco-glow  { transform-box: fill-box; transform-origin: center; animation: eco-glow 4s ease-in-out infinite alternate; }
@keyframes eco-spin { to { transform: rotate(360deg); } }
@keyframes eco-glow { from { transform: scale(0.92); opacity: 0.35; } to { transform: scale(1.12); opacity: 0.6; } }

.eco-cloud { animation: eco-drift 26s ease-in-out infinite alternate; }
.eco-cloud.c2 { animation-duration: 34s; animation-delay: -10s; }
.eco-cloud.c3 { animation-duration: 30s; animation-delay: -18s; }
@keyframes eco-drift { from { transform: translateX(-30px); } to { transform: translateX(50px); } }

.eco-puff {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: eco-puff 6s ease-out infinite;
}
.eco-puff.d2 { animation-delay: -2.4s; }
.eco-puff.d3 { animation-delay: -4.8s; }
.eco-puff.d4 { animation-delay: -1s; }
.eco-puff.d5 { animation-delay: -3s; }
@keyframes eco-puff {
  0%   { transform: translateY(0) scale(0.45); opacity: 0; }
  12%  { opacity: 0.95; }
  60%  { opacity: 0.8; }
  100% { transform: translate(26px, -100px) scale(2.1); opacity: 0; }
}

.eco-sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: eco-sway 5.5s ease-in-out infinite alternate;
}
@keyframes eco-sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }

.eco-flower {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: eco-flower 3.6s ease-in-out infinite alternate;
}
@keyframes eco-flower { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }

.eco-fly { animation: eco-fly 20s linear infinite; }
@keyframes eco-fly { from { transform: translateX(-60px); } to { transform: translateX(860px); } }
.eco-flap {
  transform-box: fill-box;
  transform-origin: center;
  animation: eco-flap 0.38s ease-in-out infinite alternate;
}
@keyframes eco-flap { from { transform: scaleY(1); } to { transform: scaleY(-0.5); } }

.eco-beak-low {
  transform-box: fill-box;
  transform-origin: 0 0;
  animation: eco-beak 1.6s steps(1, end) infinite;
}
@keyframes eco-beak {
  0%, 40%, 100% { transform: rotate(0deg); }
  10%, 25%      { transform: rotate(22deg); }
  18%, 33%      { transform: rotate(6deg); }
}

.eco-note {
  opacity: 0;
  animation: eco-note 3.2s ease-out infinite;
}
.eco-note.n2 { animation-delay: -1.1s; }
.eco-note.n3 { animation-delay: -2.2s; }
@keyframes eco-note {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(-46px, -60px) rotate(-14deg); opacity: 0; }
}

@media (max-width: 560px) {
  .scene-eco { box-shadow: 6px 6px 0 var(--ink); }
  .sound-toggle { left: 6px; bottom: 6px; padding: 3px 7px 2px; font-size: 0.75rem; border-width: 2px; }
}

/* =========================================================
   Photo en tête du contre-argument
   ========================================================= */
.counter-photo {
  position: relative;
  margin: 0 0 16px;
  height: clamp(300px, 52vw, 460px);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  /* fond « explosion » façon BD */
  background:
    radial-gradient(circle at 34% 40%, rgba(255, 214, 92, 0.95) 0 12%, transparent 46%),
    repeating-conic-gradient(from 0deg at 34% 40%, #e23b2e 0deg 10deg, #ff7a2f 10deg 20deg);
}
.counter-photo img {
  position: absolute;
  left: 6%;
  bottom: 0;
  height: 100%;
  width: auto;
  filter: drop-shadow(6px 0 0 var(--ink)) drop-shadow(-3px 0 0 var(--ink));
}
.counter-photo figcaption {
  position: absolute;
  right: 4%;
  top: 10%;
  max-width: 46%;
  padding: 14px 18px 10px;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
  font-size: clamp(1.4rem, 4.6vw, 3rem);
  line-height: 1;
  color: #e23b2e;
  -webkit-text-stroke: 2px var(--ink);
  transform: rotate(3deg);
}
/* pointe de la bulle, vers la bouche */
.counter-photo figcaption::before,
.counter-photo figcaption::after {
  content: "";
  position: absolute;
  top: 60%;
  border-style: solid;
}
.counter-photo figcaption::before {
  left: -34px;
  border-width: 14px 34px 14px 0;
  border-color: transparent var(--ink) transparent transparent;
}
.counter-photo figcaption::after {
  left: -24px;
  margin-top: 4px;
  border-width: 10px 26px 10px 0;
  border-color: transparent var(--paper) transparent transparent;
}
.card.revealed .counter-photo figcaption { animation: photo-shout 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) 0.15s both; }
@keyframes photo-shout {
  from { transform: scale(1.8) rotate(-6deg); opacity: 0; }
  to   { transform: rotate(3deg); opacity: 1; }
}
.card.revealed .counter-photo img { animation: photo-pop 0.5s ease-out both; }
@keyframes photo-pop {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* =========================================================
   Frise « avant / maintenant »
   ========================================================= */
.timeline { margin: 20px 0 0; }
.tl-title {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--paper);
}
.tl-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tl-col {
  padding: 12px 14px;
  border: 3px solid var(--ink);
  background: rgba(255,255,255,0.05);
}
.tl-before { border-top: 6px solid #9aa0a6; }
.tl-after  { border-top: 6px solid var(--accent); }
.tl-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  background: #9aa0a6;
}
.tl-after .tl-label { background: var(--accent); }
.tl-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tl-when {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.tl-col q { quotes: none; font-style: italic; font-size: 1.05rem; line-height: 1.4; }
.tl-col q a { color: var(--paper); text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; }
.tl-col q a:hover { text-decoration-color: var(--gold); }
.tl-note { display: block; margin-top: 2px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

@media (max-width: 560px) {
  .tl-cols { grid-template-columns: 1fr; }
  .counter-photo img { left: -6%; }
  .counter-photo figcaption { right: 3%; top: 6%; max-width: 50%; padding: 10px 12px 7px; border-width: 3px; -webkit-text-stroke: 1.2px var(--ink); }
}

/* =========================================================
   Image plein cadre (illustrations 16:9)
   ========================================================= */
.counter-cover {
  margin: 0 0 16px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--ink);
  overflow: hidden;
}
.counter-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card.revealed .counter-cover img { animation: photo-pop 0.5s ease-out both; }

/* =========================================================
   Fiches « qui est qui »
   ========================================================= */
.experts { margin: 20px 0 0; }
.experts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.experts li {
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-top: 6px solid var(--accent);
  background: rgba(255,255,255,0.05);
}
.experts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--paper);
}
.ex-job { display: block; margin: 2px 0 8px; font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.ex-link { display: block; font-size: 1rem; line-height: 1.4; color: #f1e9f7; }
.ex-link b { color: var(--gold); font-weight: 600; }

/* =========================================================
   Courbes (palette validée pour fond sombre)
   ========================================================= */
.chart {
  --series-1: #3987e5;
  --series-2: #d95926;
  --text-primary: #f0efec;
  --text-secondary: #c3c2b7;
  --text-muted: #9a9890;
  --grid: rgba(240, 239, 236, 0.12);
  --chart-surface: #120a1c;
  margin: 22px 0 0;
  padding: 14px 14px 10px;
  border: 3px solid var(--ink);
  background: var(--chart-surface);
}
.chart figcaption { margin-bottom: 8px; }
.chart-title { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.chart-sub { display: block; font-size: 0.9rem; color: var(--text-secondary); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-secondary); }
.chart-key { display: inline-flex; align-items: center; gap: 6px; }
.chart-swatch { display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--series-1); }
.chart-swatch.s2 { background: var(--series-2); }
.chart-plot { position: relative; touch-action: pan-y; }
.chart-plot svg { display: block; overflow: visible; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.s1 { stroke: var(--series-1); }
.chart-line.s2 { stroke: var(--series-2); }
.chart-grid { stroke: var(--grid); stroke-width: 1; }
.chart-zero { stroke: var(--text-muted); stroke-width: 1; }
.chart-axis { fill: var(--text-muted); font: 12px var(--font-body); }
.chart-band { fill: rgba(255, 204, 51, 0.1); }
.chart-band-label { fill: var(--gold); font: 600 12px var(--font-body); }
.chart-cross { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-dot { stroke: var(--chart-surface); stroke-width: 2; }
.chart-dot.s1 { fill: var(--series-1); }
.chart-dot.s2 { fill: var(--series-2); }
.chart-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: grid;
  gap: 3px;
  min-width: 170px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  background: #f0efec;
  color: #0b0b0b;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.chart-tip[hidden] { display: none; }
.chart-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chart-tip b { margin-left: auto; padding-left: 10px; }
.chart-note { margin: 8px 0 4px; font-size: 0.95rem; line-height: 1.45; color: var(--text-primary); }
.chart-table summary { cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); }
.chart-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 0.85rem; color: var(--text-secondary); }
.chart-table th, .chart-table td { padding: 3px 6px; border-bottom: 1px solid var(--grid); text-align: right; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-method { font-size: 0.8rem; color: var(--text-muted); }

/* Nuage de points */
.chart-dotkey { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--series-1); }
.chart-dotkey.s2 { background: var(--series-2); }
.chart-swatch.trend { background: none; border-top: 2px dashed var(--text-secondary); height: 0; }
.chart-pt { stroke: var(--chart-surface); stroke-width: 1.5; }
.chart-pt.s1 { fill: var(--series-1); fill-opacity: 0.8; }
.chart-pt.s1.hi { fill-opacity: 1; stroke: var(--text-primary); stroke-width: 1.5; }
.chart-pt.s2 { fill: var(--series-2); stroke: var(--text-primary); stroke-width: 2; }
.chart-pt-label { fill: var(--text-secondary); font: 600 12px var(--font-body); paint-order: stroke; stroke: var(--chart-surface); stroke-width: 3px; }
.chart-pt-label.main { fill: var(--text-primary); font-size: 13px; }
.chart-trend { stroke: var(--text-secondary); stroke-width: 2; stroke-dasharray: 6 5; }
.chart-ring { fill: none; stroke: var(--text-primary); stroke-width: 2; }
.chart-axis-title { fill: var(--text-secondary); font: 12px var(--font-body); }

/* Fiches avec citation (économistes critiques) */
.experts li.critic { border-top-color: var(--gold); }
.ex-quote { display: block; quotes: none; font-style: italic; font-size: 1.1rem; line-height: 1.35; color: var(--paper); }
.ex-src { display: block; margin-top: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.ex-src a { color: inherit; text-underline-offset: 2px; }

/* =========================================================
   Page de fin : le virage à droite
   ========================================================= */
.end .hud { padding: 0 0 10px; }
.turn {
  margin: 10px 0 34px;
  padding: 18px 16px 22px;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--panel);
}
.end-cover { margin-bottom: 18px; }
.turn-title {
  margin: 0 0 6px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.02;
  color: var(--gold);
}
.turn-sub { margin: 0 0 16px; font-size: 1.1rem; color: rgba(255,255,255,0.8); }
.cands {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.cand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 16px;
  border: 3px solid var(--ink);
  border-top: 6px solid #3a8bff;
  background: rgba(255,255,255,0.06);
}
.cand-name { font-size: 1.7rem; color: var(--paper); }
.cand-party { font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.cand-btn { margin-top: 6px; background: #3a8bff; color: var(--paper); font-size: 1.15rem; }
.cand-btn:hover, .cand-btn:focus-visible { background: var(--gold); color: var(--ink); }
.recap-title { margin: 0 0 12px; font-size: 1.6rem; color: var(--paper); }

/* =========================================================
   Mentions légales, pied de page et étiquette « IA »
   ========================================================= */
.legal-bar {
  position: relative;
  z-index: 2;
  min-height: var(--legal-h);
  padding: 10px 16px 12px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
  background: rgba(8, 4, 14, 0.82);
}
.legal-bar a { color: var(--gold); text-underline-offset: 2px; }
.legal-bar a:hover, .legal-bar a:focus-visible { color: var(--paper); }
.noscript { position: relative; z-index: 2; margin: 0; padding: 16px; text-align: center; background: var(--ink); }

.ai-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 2px 8px 3px;
  background: rgba(8, 4, 14, 0.78);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
  pointer-events: none;
}
.counter-cover { position: relative; }

.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.legal-body {
  margin: 14px 0 24px;
  padding: 6px 20px 18px;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: var(--panel);
  font-size: 1.02rem;
  line-height: 1.55;
  color: #f1e9f7;
}
.legal-body h3 {
  margin: 22px 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.legal-body p { margin: 0 0 10px; }
.legal-body a { color: #cfeec6; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal-body a:hover { color: var(--paper); }
.legal-date { margin-top: 18px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .legal-body { padding: 4px 14px 14px; box-shadow: 6px 6px 0 var(--ink); }
  .palm { height: 42vh; opacity: 0.8; }
  .hud { padding-top: 10px; }
  .logo { font-size: 1.05rem; }
  .nav .btn { flex: 1; text-align: center; padding-left: 10px; padding-right: 10px; }
  .card { box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 2px var(--accent); }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro-title { animation-duration: 2.4s; }
  .portrait { animation-duration: 0.8s; }
  .cta, .hint { animation: fade-in 0.4s ease forwards; }
  .star.pop, .star.pop .star-fill, .stars.siren, .cash.bump { animation: none; }
  .view, .card.revealed .counter { animation: none; }
  .scene-eco .eco * { animation: none !important; }
  .card.revealed .counter-photo figcaption, .card.revealed .counter-photo img, .card.revealed .counter-cover img { animation: none; }
  .eco-puff { opacity: 0.85; }
}
