/* ──────────────────────────────────────────────
   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 : papier devient encre, encre devient lumière */
:root[data-night="true"] {
  --paper: #0F1733;
  --paper-shade: #182149;
  --text: #F1ECDC;
  --ink: #C9D4FF;
  --accent: #FF7A85;
  --grain-opacity: .55;
}

* { 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%;
}
@media (max-width: 980px) {
  .nav-links a[data-mobile-hide] { display: none; }
}
@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; font-size: 19px; }
}

/* ─── 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: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

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

.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::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
}
.official-card::after {
  content: "Journal Officiel";
  position: absolute;
  top: -14px; right: 18px;
  background: var(--paper);
  padding: 0 10px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--accent);
  transform: rotate(-2deg);
}
.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: var(--text);
  line-height: 1.15;
  margin-bottom: 22px;
  opacity: .75;
}
.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: absolute;
  bottom: 20px; right: 18px;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 4px 12px;
  transform: rotate(-8deg);
  opacity: .8;
  border-radius: 4px;
}

/* ─── 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); }

/* ─── 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;
}
@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; } }

.stage-card .pin {
  position: absolute;
  top: -14px; left: 36px;
  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);
}
.stage-card .corner {
  position: absolute;
  width: 38px; height: 38px;
}
.stage-card .corner-tr { top: 0; right: 0; }
.stage-card .corner-tr::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.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 .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; }
}

/* ─── 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: 18px 22px;
  border: 1.5px dashed var(--accent);
  border-radius: 4px;
}
.newsletter-form.sent .row,
.newsletter-form.sent .newsletter-fine { display: none; }
.newsletter-form.sent .newsletter-thanks { display: block; }

/* ─── 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; }
}

/* ─────────────────────────────────────────────
   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);
}

/* Coin top-left rouge (pendant de .corner-tr) */
.stage-card .corner-tl,
.join-card .corner-tl {
  position: absolute;
  width: 38px; height: 38px;
  top: 0; left: 0;
}
.corner-tl::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* 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
   ───────────────────────────────────────────── */
.ai-section { padding: 100px 0; }

.ai-note {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 48px 48px;
  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;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .ai-note { grid-template-columns: 1fr; gap: 20px; padding: 32px 28px; }
}
.ai-note::before {
  content: "✶";
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  opacity: .65;
}
.ai-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1;
  margin: 8px 0 0;
  color: var(--ink);
}
.ai-body p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 56ch;
}
.ai-body p:last-child { margin-bottom: 0; }
.ai-body strong { color: var(--ink); }
.ai-fineprint {
  font-family: var(--font-hand);
  font-size: 20px !important;
  color: color-mix(in oklab, var(--text) 75%, transparent);
  margin-top: 18px !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); }

