/* ──────────────────────────────────────────────
   LaPioche — feuille de style
   Style: encre, papier, fait main
   ────────────────────────────────────────────── */

:root {
  /* Encre (modifiables par les Tweaks) */
  --ink: #1F3FB0;
  --ink-soft: color-mix(in oklab, var(--ink) 65%, transparent);
  --ink-faint: color-mix(in oklab, var(--ink) 18%, transparent);
  --accent: #B71B26;
  --paper: #F5EED9;
  --paper-shade: color-mix(in oklab, var(--paper) 88%, #000 6%);
  --text: #1A1A1A;

  /* Typo */
  --font-display: "Instrument Serif", "Newsreader", serif;
  --font-hand: "Caveat", "Reenie Beanie", cursive;
  --font-body: "Newsreader", "Spectral", Georgia, serif;

  --maxw: 1180px;
  --grain-opacity: .35;
}

/* Mode nuit = mode négatif : inversion photographique de toute la page.
   Activé par le toggle lune/soleil dans la nav (data-night="true" sur :root). */
:root {
  transition: filter .35s ease;
}
:root[data-night="true"] {
  filter: invert(1);
}

/* Note : le mode clair est le défaut. Le mode nuit ne s'active que si
   le visiteur clique sur le toggle (cf. data-night="true" appliqué par JS). */

/* ─── Focus visible : halo accent, partout ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 5px; }
.nav-links a:focus-visible { outline-offset: 4px; }
input:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* Skip-to-content link pour le clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02";
  text-wrap: pretty;
}

/* Texture papier : grain SVG + petite teinte */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, color-mix(in oklab, var(--paper) 80%, var(--ink) 6%) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, color-mix(in oklab, var(--paper) 80%, var(--accent) 4%) 0%, transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  background-size: cover, cover, 240px 240px;
  mix-blend-mode: multiply;
  opacity: var(--grain-opacity);
}

main, header, footer { position: relative; z-index: 1; }

/* ─── Liens, sélection ─── */
a {
  color: var(--ink);
  text-decoration-color: var(--ink-soft);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .15s;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--paper) 75%, transparent);
  border-bottom: 1px solid var(--ink-faint);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-hand);
  font-size: 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  position: relative;
  padding: 4px 2px;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -2px;
  height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M2 5 Q 12 1, 22 4 T 42 4 T 62 4 T 78 4' fill='none' stroke='%231F3FB0' stroke-width='1.5' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
/* Toggle mode jour / nuit (toujours visible) */
.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 4px 14px 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 12px;
  transition: background .12s, color .12s, transform .12s;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); transform: rotate(-6deg); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
/* Affiche soleil OU lune selon l'état du root */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-night="true"] .theme-toggle .icon-sun { display: block; }
:root[data-night="true"] .theme-toggle .icon-moon { display: none; }

/* Bouton burger (visible uniquement <980px) */
.nav-burger {
  display: none;
  appearance: none;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 18px;
  padding: 6px 14px 8px;
  border-radius: 4px 14px 4px 12px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.nav-burger:hover { background: var(--ink); color: var(--paper); }
.nav-burger .burger-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.nav-burger .burger-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  /* En mobile, la nav est cachée par défaut — le burger sert d'entrée */
  .nav-links { display: none; }

  /* Menu déplié = on montre tout en colonne sous la nav (overlay) */
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: color-mix(in oklab, var(--paper) 96%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-faint);
    padding: 14px 36px 22px;
  }
  .nav-links.open a { display: block; padding: 10px 4px; font-size: 24px; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; font-size: 19px; }
  .nav-links.open { padding-left: 20px; padding-right: 20px; }
}

/* ─── Layout helpers ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

section { padding: 120px 0; position: relative; }
section + section { border-top: 1px dashed var(--ink-faint); }

/* Étiquette de section (manuscrite, comme une marge de cahier) */
.section-tag {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  transform: rotate(-2deg);
}
.section-tag::before {
  content: "";
  width: 38px; height: 1.5px;
  background: var(--accent);
}

h2.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02;
  margin: 0 0 36px;
  padding-bottom: .12em;
  color: var(--ink);
  letter-spacing: -.01em;
}

p.lede {
  font-size: 22px;
  line-height: 1.5;
  max-width: 64ch;
  margin: 0 0 24px;
}

/* ─── HERO ─── */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

.hero-eyebrow {
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--accent);
  transform: rotate(-1.5deg);
  display: inline-block;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 13vw, 180px);
  line-height: .9;
  margin: 0 0 28px;
  padding-bottom: .08em;
  color: var(--ink);
  letter-spacing: -.025em;
}
.hero h1 .it { font-style: italic; }
.hero h1 .accent { color: var(--accent); }

.hero-lede {
  font-size: 24px;
  line-height: 1.45;
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 36px;
  align-items: center;
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-dot {
  width: 38px; height: 38px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}
/* Fallback : si aucune image n'est encore appliquée (JS désactivé), on garde le dot rouge */
.hero-meta-dot:not([style*="background-image"]) {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Rivière de points animée (clin d'œil au logo, déclenchée à l'inscription) ─── */
.nl-river-pop {
  position: relative;
}
.nl-river-pop::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 8px;
  height: 100px;
  background: radial-gradient(circle at 50% 5%, var(--accent) 4px, transparent 5px),
              radial-gradient(circle at 60% 25%, var(--accent) 5px, transparent 6px),
              radial-gradient(circle at 40% 45%, var(--accent) 3px, transparent 4px),
              radial-gradient(circle at 55% 65%, var(--accent) 6px, transparent 7px),
              radial-gradient(circle at 45% 85%, var(--accent) 4px, transparent 5px);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  animation: river-drop 1.2s cubic-bezier(.4,.1,.3,1) forwards;
}
@keyframes river-drop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .nl-river-pop::after { animation: none; opacity: 0; }
}

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  appearance: none;
  border: 0;
  font: inherit;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  padding: 14px 30px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  /* coin déchiré, encre */
  border-radius: 2px 18px 4px 14px;
  transition: transform .12s, box-shadow .12s;
  box-shadow: 3px 3px 0 var(--ink-faint);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink-faint); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-faint); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 4px 4px 0 var(--ink-faint); }

.btn .arrow {
  display: inline-block;
  transition: transform .15s;
}
.btn:hover .arrow { transform: translateX(4px) rotate(-3deg); }

/* Hero artwork */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}
.hero-art img {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(2px 4px 0 var(--ink-faint));
  position: relative;
  z-index: 2;
}
.hero-art .scribble {
  position: absolute;
  pointer-events: none;
  color: var(--accent);
  opacity: .85;
  z-index: 1;
}
.scribble-arrow { top: 10%; left: -6%; width: 130px; transform: rotate(-12deg); }
.scribble-arrow .lbl {
  font-family: var(--font-hand);
  font-size: 22px;
  fill: var(--accent);
}
.scribble-dots { bottom: 4%; right: -2%; width: 180px; }
.scribble-star { top: 0; right: 12%; width: 60px; color: var(--ink); }

/* ─── L'ASSO ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

.about-text p { font-size: 21px; max-width: 56ch; }
.about-text p + p { margin-top: 18px; }
.about-text strong { color: var(--ink); font-weight: 600; }

/* Carte officielle "Journal Officiel" — sur papier kraft */
.official-card {
  background: color-mix(in oklab, var(--paper) 88%, var(--ink) 4%);
  border: 1.5px solid var(--ink);
  padding: 32px 30px 36px;
  position: relative;
  border-radius: 6px 22px 8px 18px;
  transform: rotate(1.2deg);
  box-shadow: 6px 6px 0 var(--ink-faint);
}
.official-card .eye-mark {
  position: absolute;
  top: 8px; left: 8px;
  width: 52px; height: 52px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
/* Fallback : si l'image n'a pas été appliquée par JS, on garde un dot rouge */
.official-card .eye-mark:not([style*="background-image"]) {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  top: 14px; left: 14px;
}
.official-card::after {
  content: "Journal Officiel";
  position: absolute;
  top: -16px; right: 18px;
  background: var(--paper);
  padding: 1px 10px 2px;
  border: 1.5px dashed var(--accent);
  border-radius: 4px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent);
  transform: rotate(-2deg);
  line-height: 1.1;
}
.official-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 6px;
  color: var(--ink);
}
.official-card .date {
  font-family: var(--font-hand);
  font-size: 22px;
  color: color-mix(in oklab, var(--text) 80%, transparent);
  line-height: 1.15;
  margin-bottom: 22px;
}
.official-card dl { margin: 0; }
.official-card dt {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--accent);
  margin-top: 14px;
}
.official-card dd { margin: 4px 0 0; font-size: 17px; line-height: 1.45; }
.official-card .stamp {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 4px 12px;
  transform: rotate(-8deg);
  opacity: .85;
  border-radius: 4px;
}
@media (min-width: 540px) {
  .official-card .stamp {
    position: absolute;
    bottom: 20px;
    right: 18px;
    margin-top: 0;
  }
}

/* ─── PROJET (jeu vidéo confidentiel) ─── */
.project {
  background: var(--paper-shade);
  border-top: 1px dashed var(--ink-faint);
  border-bottom: 1px dashed var(--ink-faint);
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .project-grid { grid-template-columns: 1fr; gap: 40px; }
}

.project h2 { margin-bottom: 18px; }
.project-lede { font-size: 23px; max-width: 50ch; }

.project-meta-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
  font-family: var(--font-hand);
  font-size: 22px;
}
.project-meta-row > div { display: flex; flex-direction: column; }
.project-meta-row .k { color: var(--accent); font-size: 18px; }
.project-meta-row .v { color: var(--ink); }

/* ─── Blocs additionnels du projet ─── */
.project-blocks {
  margin-top: 80px;
  display: grid;
  gap: 32px;
}
.project-blocks:empty { display: none; }
.pblock {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px 22px 4px 22px;
  padding: 30px 34px;
  box-shadow: 6px 6px 0 var(--ink-faint);
  margin: 0;
  max-width: 900px;
}
.pblock h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: 32px;
  margin: 0 0 12px;
  line-height: 1.1;
}
.pblock-body p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }
.pblock-body p:last-child { margin: 0; }

.pblock-image {
  padding: 0;
  overflow: hidden;
}
.pblock-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px 20px 2px 20px;
}
.pblock-image figcaption {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--accent);
  padding: 12px 24px 18px;
}

.pblock-quote {
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: color-mix(in oklab, var(--accent) 6%, var(--paper));
}
.pblock-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
}
.pblock-quote cite {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--accent);
  font-style: normal;
}

.pblock-meta dl { margin: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 8px 24px; }
.pblock-meta dt { font-family: var(--font-hand); color: var(--accent); font-size: 18px; }
.pblock-meta dd { margin: 0; font-size: 17px; color: var(--text); }
@media (max-width: 540px) {
  .pblock-meta dl { grid-template-columns: 1fr; }
  .pblock-meta dd { padding-left: 16px; }
}

/* ─── L'enveloppe scellée (cliquable, s'ouvre, révèle des indices) ─── */
.sealed {
  position: relative;
  aspect-ratio: 4/3;
  background: color-mix(in oklab, var(--paper) 70%, var(--ink) 8%);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--ink-faint);
  overflow: hidden;
  cursor: pointer;
  perspective: 1200px;
  transition: box-shadow .3s;
}
.sealed:hover { box-shadow: 10px 10px 0 var(--ink-faint); }
.sealed.open { cursor: default; }

/* Rabat triangulaire — un vrai .flap pour pouvoir l'animer */
.sealed .flap {
  position: absolute;
  inset: 0 0 auto 0;
  height: 55%;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--paper) 78%, var(--ink) 6%),
    color-mix(in oklab, var(--paper) 60%, var(--ink) 10%));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1.5px solid var(--ink);
  transform-origin: top center;
  transition: transform 1s cubic-bezier(.6,.05,.3,1);
  z-index: 4;
  pointer-events: none;
}
.sealed.open .flap {
  transform: rotateX(-178deg);
}

/* Le sceau de cire — bouton réel pour l'accessibilité */
.sealed .wax {
  position: absolute;
  top: calc(55% - 32px);
  left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  border: 0;
  box-shadow:
    inset -6px -6px 0 color-mix(in oklab, var(--accent) 75%, #000),
    inset 4px 4px 0 color-mix(in oklab, var(--accent) 85%, #fff 15%),
    4px 4px 0 rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: color-mix(in oklab, var(--accent) 60%, #2a0a0e);
  font-size: 28px;
  z-index: 6;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.5,-.4,.3,1.6), opacity .5s;
  animation: wax-pulse 2.4s ease-in-out infinite;
}
.sealed .wax:hover {
  transform: translateX(-50%) scale(1.06) rotate(-4deg);
}
.sealed.open .wax {
  /* Le sceau se brise : tombe et fade out */
  opacity: 0;
  transform: translateX(-50%) translateY(40px) rotate(-25deg) scale(.7);
  animation: none;
  pointer-events: none;
}

/* Version image : le sceau est remplacé par un PNG (ex : logo de cire custom).
   On neutralise le rendu CSS et on laisse l'image transparente porter le visuel.
   Activé via .wax-has-image (posé par content-loader quand data.brand.waxUrl est défini). */
.sealed .wax.wax-has-image {
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,.12);
  color: transparent;            /* cache le "L" textuel */
  font-size: 0;                  /* idem (fallback) */
  animation: wax-pulse-soft 2.4s ease-in-out infinite;
}
@keyframes wax-pulse-soft {
  0%, 100% { box-shadow: 4px 4px 0 rgba(0,0,0,.12), 0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
  50%      { box-shadow: 4px 4px 0 rgba(0,0,0,.12), 0 0 0 14px color-mix(in oklab, var(--accent) 0%, transparent); }
}
@keyframes wax-pulse {
  0%, 100% { box-shadow:
    inset -6px -6px 0 color-mix(in oklab, var(--accent) 75%, #000),
    inset 4px 4px 0 color-mix(in oklab, var(--accent) 85%, #fff 15%),
    4px 4px 0 rgba(0,0,0,.12),
    0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent); }
  50% { box-shadow:
    inset -6px -6px 0 color-mix(in oklab, var(--accent) 75%, #000),
    inset 4px 4px 0 color-mix(in oklab, var(--accent) 85%, #fff 15%),
    4px 4px 0 rgba(0,0,0,.12),
    0 0 0 14px color-mix(in oklab, var(--accent) 0%, transparent); }
}

.sealed .stamp-text {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  padding: 4px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: color-mix(in oklab, var(--paper) 75%, transparent);
  z-index: 3;
  white-space: nowrap;
  transition: opacity .3s, transform .4s;
  pointer-events: none;
}
.sealed.open .stamp-text {
  opacity: 0;
  transform: translateX(-50%) rotate(-3deg) translateY(10px);
}

/* La lettre cachée qui sort de l'enveloppe */
.sealed .letter {
  position: absolute;
  inset: 6% 6% 6% 6%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(40%) scale(.92);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.3,.7,.2,1) .35s,
              opacity .6s ease .35s;
}
.sealed.open .letter {
  transform: translateY(-2%) scale(1);
  opacity: 1;
}
.sealed .letter-paper {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      transparent 0 22px,
      color-mix(in oklab, var(--ink) 12%, transparent) 22px 23px),
    var(--paper);
  border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  padding: clamp(16px, 4%, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  position: relative;
}
.letter-eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--accent);
  transform: rotate(-1.5deg);
  margin-bottom: 4px;
}
.indices {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: .04em;
}
.indices .indice {
  display: block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(0.7s + var(--i) * 0.38s);
  white-space: nowrap;
}
.indices .indice::before {
  content: "› ";
  color: var(--accent);
  font-weight: bold;
}
.sealed.open .indices .indice {
  opacity: 1;
  transform: translateX(0);
}
.letter-foot {
  font-family: var(--font-hand);
  font-size: clamp(15px, 2vw, 19px);
  color: color-mix(in oklab, var(--text) 70%, transparent);
  align-self: flex-end;
  opacity: 0;
  transition: opacity .5s ease 2.6s;
}
.sealed.open .letter-foot { opacity: 1; }

/* Petit hint au survol avant ouverture */
.sealed:not(.open) .wax::after {
  content: "";
}

/* ─── STAGES ─── */
.stage-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px 24px 4px 24px;
  padding: 44px 48px 48px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink-faint);
  max-width: 880px;
}
@media (max-width: 720px) { .stage-card { padding: 32px 28px; } }

/* Pin/œil "épinglé" centré au-dessus de chaque join-card (stagiaires + bénévoles).
   Reçoit son image via [data-eye] (JS choisit un œil random parmi les 4 PNG). */
.join-card .pin {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.12));
}
/* Compense la rotation de la vol-card pour garder le pin "à l'aplomb" */
.join-card--vol .pin {
  transform: translateX(-50%) rotate(.8deg);
}
/* Fallback : si l'image n'a pas été appliquée par JS, on garde le pin rouge */
.join-card .pin:not([style*="background-image"]) {
  top: -14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    inset -3px -3px 0 color-mix(in oklab, var(--accent) 75%, #000),
    2px 2px 0 rgba(0,0,0,.12);
  filter: none;
}
.stage-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  margin: 0 0 6px;
  color: var(--ink);
}
.stage-card .role {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 24px;
}

.stage-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin: 24px 0 32px;
  padding: 24px 0;
  border-top: 1px dashed var(--ink-faint);
  border-bottom: 1px dashed var(--ink-faint);
}
@media (max-width: 540px) { .stage-specs { grid-template-columns: 1fr; } }
.stage-specs .k {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--accent);
  display: block;
}
.stage-specs .v { font-size: 19px; color: var(--text); }

.stage-howto {
  font-size: 19px;
  margin-bottom: 24px;
}
.stage-howto code {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ─── ÉQUIPE ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 20px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; gap: 28px; } }

.member {
  text-align: center;
  position: relative;
}
.member .portrait {
  width: 100%;
  aspect-ratio: 3/4;
  background: color-mix(in oklab, var(--paper) 90%, var(--ink) 4%);
  border: 1.5px solid var(--ink);
  border-radius: 6px 22px 6px 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.member .portrait svg { width: 75%; height: 75%; color: var(--ink); }
.member .portrait.has-photo { padding: 0; }
.member .portrait .member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* léger filtre encre/grain pour rester dans le style */
  filter: contrast(1.02) saturate(.92);
}
.member .portrait .tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 30px;
  transform: rotate(4deg);
}
.member:nth-child(2) .portrait { transform: rotate(-1.2deg); }
.member:nth-child(3) .portrait { transform: rotate(.8deg); }

.member h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}
.member .role {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--text);
  margin-top: 4px;
  opacity: .8;
}

/* ─── ACTUS ─── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}
.news-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px dashed var(--ink-faint);
  position: relative;
}
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}
.news-item:first-child { border-top: 1px dashed var(--ink-faint); }
.news-item .date {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent);
}
.news-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink);
}
.news-item p { margin: 0; font-size: 18px; line-height: 1.5; opacity: .85; }
.news-item .tag-mini {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink);
  border: 1px solid var(--ink-soft);
  padding: 2px 12px;
  border-radius: 30px;
  white-space: nowrap;
  align-self: center;
}
@media (max-width: 720px) {
  .news-item .tag-mini { justify-self: start; margin-top: 6px; }
}

/* Variante cliquable : les actus issues du blog renvoient vers l'article */
.news-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s, padding-left .15s;
}
.news-item--link:hover {
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  padding-left: 8px;
}
.news-item--link:hover h3 { color: var(--accent); }
.news-item--link:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Pagination : items au-delà du seuil sont masqués jusqu'au clic "Voir plus" */
.news-list .news-item.is-hidden { display: none; }
.news-list.expanded .news-item.is-hidden { display: grid; }
@media (max-width: 720px) {
  .news-list.expanded .news-item.is-hidden { display: grid; grid-template-columns: 1fr; }
}

/* Bouton "Voir plus" — papier discret, manuscrit */
.news-more-btn {
  align-self: center;
  appearance: none;
  margin: 28px auto 0;
  padding: 10px 22px 12px;
  background: transparent;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 4px 14px 4px 14px;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.news-more-btn:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.news-more-btn:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

/* ─── NEWSLETTER ─── */
.newsletter {
  background: var(--paper-shade);
  border-top: 1px dashed var(--ink-faint);
  border-bottom: 1px dashed var(--ink-faint);
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) { .newsletter-inner { grid-template-columns: 1fr; gap: 30px; } }

.newsletter h2 { margin-bottom: 8px; }
.newsletter p { font-size: 21px; max-width: 50ch; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.newsletter-form .row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  font: inherit;
  font-family: var(--font-body);
  font-size: 19px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--text);
  border-radius: 2px 14px 4px 12px;
  outline: none;
}
.newsletter-form input[type="email"]::placeholder {
  font-style: italic;
  color: color-mix(in oklab, var(--text) 50%, transparent);
}
.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px var(--ink-faint);
}
.newsletter-fine {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--text);
  opacity: .65;
}

.newsletter-thanks {
  display: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  padding: 22px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 4px 18px 4px 18px;
  background: color-mix(in oklab, var(--accent) 8%, var(--paper));
  box-shadow: 6px 6px 0 var(--ink-faint);
  position: relative;
  animation: nl-thanks-pop .55s cubic-bezier(.3,.7,.3,1.3) both;
}
@keyframes nl-thanks-pop {
  0%   { opacity: 0; transform: translateY(12px) scale(.92); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
.newsletter-form.sent .row,
.newsletter-form.sent .newsletter-fine,
.newsletter-form.sent .newsletter-privacy { display: none; }
.newsletter-form.sent .newsletter-thanks { display: block; }

.newsletter-error {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
}

.newsletter-privacy {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: color-mix(in oklab, var(--text) 65%, transparent);
  margin: 6px 0 0;
  max-width: 56ch;
}

/* Lien sauter au contenu / labels invisibles mais lisibles par les SR */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Liens du footer (mentions légales) */
.footer-links {
  display: inline-flex;
  gap: 18px;
}
.footer-links a {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-soft);
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ─── CONTACT & FOOTER ─── */
.contact {
  text-align: left;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

.contact-block .k {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}
.contact-block .v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
  display: inline-block;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
.contact-block .v:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.contact-block + .contact-block { margin-top: 30px; }

footer {
  padding: 40px 0 60px;
  border-top: 1px dashed var(--ink-faint);
  font-family: var(--font-hand);
  font-size: 20px;
  color: color-mix(in oklab, var(--text) 70%, transparent);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer .signature { color: var(--ink); transform: rotate(-2deg); display: inline-block; }

/* ─── Décors flottants (motifs encre) ─── */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Motif "rivière de points" inspiré du logo */
.river {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.river span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.river span:nth-child(1) { width: 8px; height: 8px; }
.river span:nth-child(2) { width: 12px; height: 12px; transform: translateX(2px); }
.river span:nth-child(3) { width: 6px; height: 6px; transform: translateX(-3px); }
.river span:nth-child(4) { width: 14px; height: 14px; transform: translateX(4px); }
.river span:nth-child(5) { width: 8px; height: 8px; transform: translateX(-1px); }
.river span:nth-child(6) { width: 10px; height: 10px; transform: translateX(3px); }

/* Petits triangles rouges aux coins (clin d'œil au logo) */
.corner-mark {
  position: absolute;
  width: 22px;
  height: 22px;
}
.corner-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
}
.cm-tl { top: 16px; left: 16px; }
.cm-tl::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.cm-br { bottom: 16px; right: 16px; }
.cm-br::before { clip-path: polygon(100% 100%, 100% 0, 0 100%); }

/* Petite étoile à 4 branches dessinée */
.spark {
  width: 1em;
  height: 1em;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  vertical-align: -.1em;
}

/* Pour aérer les sections */
.section-head {
  margin-bottom: 50px;
  max-width: 900px;
}

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

/* ─── Carte postale d'anniversaire (4 avril) ─────────────────
   Une carte papier qui glisse depuis le haut, légèrement de travers,
   avec un tampon de cire ovale et un message manuscrit. Plus discrète
   et plus on-brand que les confettis. */
.bday-card {
  position: fixed;
  top: 60px;
  left: 50%;
  width: min(420px, 88vw);
  padding: 26px 30px 28px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px 22px 4px 22px;
  box-shadow: 8px 8px 0 var(--ink-faint);
  color: var(--ink);
  font-family: var(--font-display);
  z-index: 9998;
  pointer-events: none;
  /* Etat initial : posée au-dessus du viewport, inclinée */
  transform: translate(-50%, -160%) rotate(-4deg);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2,.7,.2,1.05), opacity .6s ease;
}
.bday-card::before {
  /* Punaise/épingle façon post-it */
  content: "";
  position: absolute;
  top: -8px;
  left: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    inset -2px -2px 0 color-mix(in oklab, var(--accent) 75%, #000),
    2px 2px 0 rgba(0,0,0,.18);
}
.bday-card.is-in {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}
.bday-card.is-out {
  opacity: 0;
  transform: translate(-50%, -160%) rotate(-4deg) scale(.96);
}
.bday-headline {
  font-style: italic;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.bday-headline em {
  font-style: italic;
  color: var(--accent);
}
.bday-hand {
  font-family: var(--font-hand);
  font-size: 22px;
  color: color-mix(in oklab, var(--text) 80%, transparent);
  line-height: 1.1;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.bday-flourish {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
}
.bday-stamp {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 64px;
  height: 64px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  transform: rotate(-12deg);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  opacity: .88;
  letter-spacing: .02em;
}
.bday-stamp small {
  display: block;
  font-family: var(--font-hand);
  font-size: 13px;
  font-style: normal;
  letter-spacing: .04em;
  margin-top: 2px;
}
@media (max-width: 540px) {
  .bday-card { padding: 22px 24px 24px; }
  .bday-headline { font-size: 24px; }
  .bday-stamp { width: 52px; height: 52px; font-size: 17px; top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bday-card { display: none !important; }
}

/* ─── Easter egg : pluie d'encre (Konami code) ─── */
.ink-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}
.ink-rain .drop {
  position: absolute;
  top: -40px;
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  background: var(--ink);
  opacity: .85;
  transform: rotate(45deg);
  animation: ink-fall var(--dur, 2s) linear forwards;
}
.ink-rain .drop.accent { background: var(--accent); }
@keyframes ink-fall {
  0%   { transform: translateY(0) rotate(45deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(45deg); opacity: 1; }
}
.ink-rain-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 4px 22px 4px 22px;
  padding: 22px 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink-faint);
  z-index: 9999;
  text-align: center;
  max-width: 520px;
  line-height: 1.2;
  animation: msg-pop .4s cubic-bezier(.3,.6,.3,1.4);
}
.ink-rain-msg small {
  display: block;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--accent);
  margin-top: 8px;
  font-style: normal;
}
@keyframes msg-pop {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-2deg) scale(.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ink-rain, .ink-rain-msg { display: none !important; }
}

/* ─── Toast global ─── */
.lapioche-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  border-radius: 4px 14px 4px 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  box-shadow: 4px 4px 0 var(--ink-faint);
  z-index: 200;
  opacity: 0;
  transition: opacity .2s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
}
.lapioche-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Rendu HTML user-generated (sortie Quill) ────────────────────────
   Les articles de blog, blocs projet, etc. sortent du RTE avec ces classes/balises.
   On veut un rendu propre côté public. */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-indent-1 { padding-left: 3em; }
.ql-indent-2 { padding-left: 6em; }
.ql-indent-3 { padding-left: 9em; }
/* Images dans le body : responsives, alignées centrées par défaut */
.post-body img,
.pblock-body img,
.ai-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 2px 14px 2px 14px;
  box-shadow: 4px 4px 0 var(--ink-faint);
}
/* iframes vidéo : container responsive (ratio 16/9) */
.post-body iframe,
.pblock-body iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border: 0;
  border-radius: 2px 14px 2px 14px;
  box-shadow: 4px 4px 0 var(--ink-faint);
}

/* ─── Reveal on scroll : fade-in quand une section entre dans le viewport ─── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(.985);
  transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1.1s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────────
   NOUS REJOINDRE — stagiaires + bénévoles
   ───────────────────────────────────────────── */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 50px;
}
@media (max-width: 880px) {
  .join-grid { grid-template-columns: 1fr; gap: 24px; }
}

.join-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 36px 36px 40px;
  box-shadow: 6px 6px 0 var(--ink-faint);
}
.join-card.stage-card {
  border-radius: 4px 22px 4px 22px;
}
.join-card--vol {
  background: color-mix(in oklab, var(--paper) 92%, var(--ink) 3%);
  border-radius: 22px 4px 22px 4px;
  transform: rotate(-.8deg);
}
@media (max-width: 880px) {
  .join-card--vol { transform: none; }
}

.join-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.05;
}
.join-card .role {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1.2;
}

.join-intro {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 18px;
  max-width: 38ch;
}

.join-fields {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.join-fields li {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink);
  padding: 4px 12px;
  border: 1px solid var(--ink-soft);
  border-radius: 30px;
  background: color-mix(in oklab, var(--paper) 85%, transparent);
  white-space: nowrap;
  line-height: 1.1;
}

.join-loose {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text);
  margin: 4px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

/* Bloc "how to" sous les cartes */
.join-howto {
  margin-top: 8px;
  padding: 26px 32px;
  background: color-mix(in oklab, var(--paper) 80%, var(--ink) 5%);
  border: 1px dashed var(--ink-soft);
  border-radius: 4px 18px 4px 18px;
  max-width: 100%;
}
.join-howto p { margin: 0 0 18px; font-size: 18px; line-height: 1.55; }
.join-howto p:last-child { margin: 0; }
.join-howto code {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ─────────────────────────────────────────────
   TRANSPARENCE IA — version compacte (single-column)
   ───────────────────────────────────────────── */
.ai-section { padding: 70px 0; }

.ai-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 36px 32px;
  background: color-mix(in oklab, var(--paper) 86%, var(--ink) 4%);
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  position: relative;
}
.ai-note .eye-mark {
  position: absolute;
  top: 10px; right: 14px;
  width: 60px; height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: .9;
}
/* Fallback : si l'image n'est pas appliquée, on garde l'étoile */
.ai-note .eye-mark:not([style*="background-image"]) {
  width: auto; height: auto;
  background: none;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  opacity: .65;
}
.ai-note .eye-mark:not([style*="background-image"])::before {
  content: "✶";
}
@media (max-width: 720px) {
  .ai-note { padding: 24px 24px 26px; }
}
.ai-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.05;
  margin: 6px 0 16px;
  color: var(--ink);
}
.ai-body p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 64ch;
}
.ai-body p:last-child { margin-bottom: 0; }
.ai-body strong { color: var(--ink); }
.ai-fineprint {
  font-family: var(--font-hand);
  font-size: 19px !important;
  color: color-mix(in oklab, var(--text) 75%, transparent);
  margin-top: 14px !important;
}

/* ─────────────────────────────────────────────
   PRENDRE CONTACT — newsletter + contact direct
   ───────────────────────────────────────────── */
.contact-merged {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}
@media (max-width: 880px) {
  .contact-merged { grid-template-columns: 1fr; gap: 24px; }
}

.cm-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px 22px 4px 22px;
  padding: 36px 36px 40px;
  position: relative;
  box-shadow: 6px 6px 0 var(--ink-faint);
}
.cm-direct {
  background: color-mix(in oklab, var(--paper) 92%, var(--ink) 3%);
  border-radius: 22px 4px 22px 4px;
  transform: rotate(.6deg);
}
@media (max-width: 880px) {
  .cm-direct { transform: none; }
}

.cm-eyebrow {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  transform: rotate(-1.5deg);
}
.cm-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.05;
}
.cm-text {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 44ch;
}

.cm-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--ink-faint);
}
.cm-info-row { display: flex; flex-direction: column; gap: 2px; }
.cm-info-row .k {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--accent);
}
.cm-info-row .v {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  word-break: break-word;
}
a.cm-info-row .v:hover,
.cm-info-row a.v:hover { color: var(--accent); }

