/* Le Club des Veilleurs — charte « Nomade » */
:root {
  --cuivre: #A85C29;
  --brun: #332A25;
  --jaune: #F4B54E;
  --creme: #F9F0E3;
  --orange: #CF5421;
  --oeil: #0B6BE0;
  --papier: #FFFAF2;
  --brun-70: rgba(51, 42, 37, .72);
  --trait: 3px solid var(--brun);
  --ombre: 6px 6px 0 var(--brun);
  --ombre-s: 4px 4px 0 var(--brun);
  --rayon: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  color: var(--brun);
  background: var(--creme);
  overflow-x: hidden;
}
body::after { /* grain papier */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--oeil); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--brun); color: var(--creme); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typo ---------- */
.display { font-size: clamp(2.6rem, 7.4vw, 6.6rem); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.035em; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cuivre);
}
.eyebrow::before {
  content: ""; width: 1.7em; height: 1em; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--brun) 0 22%, var(--oeil) 23% 42%, #fff 43% 100%);
  border: 2px solid var(--brun); border-radius: 80% 0; transform: rotate(45deg) scale(.85);
}
.on-dark .eyebrow, .on-cuivre .eyebrow { color: var(--jaune); }
.surligne { position: relative; white-space: nowrap; z-index: 0; }
.surligne::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .32em; z-index: -1;
  background: var(--jaune); transform: skewX(-12deg) scaleX(var(--s, 1)); transform-origin: left;
  transition: transform .9s var(--ease);
}
.c-orange { color: var(--orange); }
.c-oeil { color: var(--oeil); }
.c-jaune { color: var(--jaune); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--papier); --fg: var(--brun);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em; border: var(--trait); border-radius: 999px;
  background: var(--bg); color: var(--fg); box-shadow: var(--ombre-s);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brun); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--brun); }
.btn-primary { --bg: var(--orange); --fg: #fff; }
.btn-jaune { --bg: var(--jaune); }
.btn-dark { --bg: var(--brun); --fg: var(--creme); box-shadow: 4px 4px 0 var(--jaune); }
.btn-dark:hover { box-shadow: 6px 6px 0 var(--jaune); }
.btn-lg { font-size: 1.1rem; padding: 1em 1.7em; }
.btn .fleche { transition: transform .25s var(--ease); }
.btn:hover .fleche { transform: translateX(4px); }
.lien { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--jaune); padding-bottom: 2px; }
.lien:hover { border-color: var(--orange); }

/* ---------- Bande tricolore ---------- */
.tricolore { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 8px; }
.tricolore span:nth-child(1) { background: var(--cuivre); }
.tricolore span:nth-child(2) { background: var(--brun); }
.tricolore span:nth-child(3) { background: var(--jaune); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid transparent; transition: border-color .3s, transform .4s var(--ease);
}
.site-header::before { /* flou sur un pseudo-élément pour ne pas piéger le menu en position fixe */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--creme) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header.is-scrolled { border-color: var(--brun); }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand img { width: clamp(150px, 15vw, 200px); height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { position: relative; font-weight: 600; font-size: .96rem; text-decoration: none; padding: 6px 0; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta, .nav-social { display: none; }
.header-cta { padding: .7em 1.2em; font-size: .92rem; }
.burger { display: none; }

@media (max-width: 960px) {
  .header-inner { height: 68px; }
  .header-cta { display: none; }
  .burger {
    display: grid; place-items: center; gap: 6px; margin-left: auto; width: 48px; height: 48px;
    border: var(--trait); border-radius: 50%; background: var(--jaune); box-shadow: 3px 3px 0 var(--brun); cursor: pointer; z-index: 2;
  }
  .burger span:not(.sr) { display: block; width: 20px; height: 3px; background: var(--brun); border-radius: 2px; transition: transform .3s var(--ease); }
  .burger { align-content: center; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; padding: 110px var(--gutter) 40px;
    background: var(--brun); color: var(--creme);
    display: flex; flex-direction: column; gap: 28px;
    clip-path: circle(0% at calc(100% - 44px) 42px); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav ul a:not(.btn) { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
  .nav-cta { display: inline-flex; align-self: flex-start; }
  .nav-social { display: flex; gap: 20px; margin-top: auto; }
  .nav-social a { color: var(--jaune); font-weight: 600; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section-tight { padding-block: clamp(48px, 7vw, 90px); }
.on-dark { background: var(--brun); color: var(--creme); }
.on-cuivre { background: var(--cuivre); color: var(--creme); }
.on-jaune { background: var(--jaune); }
.on-papier { background: var(--papier); }
.section-head { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { margin: 0; }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .ligne { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ligne > span { display: inline-block; }
.hero-oeil { display: inline-block; width: 1.5em; height: .82em; vertical-align: -.05em; margin-left: .08em; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-preuves { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2.2rem; font-size: .92rem; font-weight: 600; }
.hero-preuves span { display: inline-flex; align-items: center; gap: 8px; }
.hero-preuves span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--brun); }

.hero-scene { position: relative; aspect-ratio: 1 / 1.08; max-width: 560px; justify-self: center; width: 100%; }
.hero-disque { position: absolute; inset: 6% 2% 4% 2%; border-radius: 50%; background: var(--jaune); border: var(--trait); }
.hero-disque::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 3px dashed var(--brun); opacity: .35; animation: tourne 60s linear infinite; }
.telephone {
  position: absolute; left: 50%; top: 4%; width: 46%; aspect-ratio: 9 / 18.5; transform: translateX(-50%) rotate(4deg);
  border: 4px solid var(--brun); border-radius: 34px; background: var(--brun); padding: 8px; box-shadow: var(--ombre); z-index: 2;
}
.telephone video, .telephone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: #000; }
.telephone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 14px; transform: translateX(-50%); background: var(--brun); border-radius: 0 0 10px 10px; z-index: 2; }
.perso { position: absolute; z-index: 3; filter: drop-shadow(5px 6px 0 rgba(51, 42, 37, .25)); will-change: transform; }
.perso-noura { left: -2%; bottom: 0; width: 34%; }
.perso-paolo { right: -3%; bottom: 0; width: 33%; }
.tampon {
  position: absolute; z-index: 4; display: grid; place-items: center; width: clamp(108px, 12vw, 140px); aspect-ratio: 1;
  border-radius: 50%; background: var(--orange); color: #fff; border: var(--trait); box-shadow: var(--ombre-s); text-align: center;
}
.tampon svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: tourne 18s linear infinite; }
.tampon text { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; fill: #fff; text-transform: uppercase; }
.tampon strong { position: relative; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 900; line-height: 1; }
.tampon small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
.hero-tampon { right: 2%; top: 2%; transform: rotate(-10deg); }
.bulle {
  position: absolute; z-index: 4; padding: .55em .95em; background: var(--papier); border: var(--trait); border-radius: 18px;
  font-weight: 700; font-size: .9rem; box-shadow: var(--ombre-s); white-space: nowrap;
}
.bulle::after { content: ""; position: absolute; bottom: -12px; left: 22px; width: 18px; height: 18px; background: var(--papier); border-right: var(--trait); border-bottom: var(--trait); transform: rotate(45deg) skew(10deg, 10deg); }
.hero-bulle { left: 4%; top: 8%; transform: rotate(-5deg); }
@keyframes tourne { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-scene { max-width: 430px; margin-top: 12px; }
}

/* ---------- Œil animé ---------- */
.oeil-svg .pupille { transition: transform .12s linear; }
.oeil-svg .paupiere { transform-origin: 50% 50%; animation: cligne 6s infinite; }
@keyframes cligne { 0%, 46%, 50%, 100% { transform: scaleY(0); } 48% { transform: scaleY(1); } }

/* ---------- Bandeau défilant ---------- */
.ticker { background: var(--brun); color: var(--creme); border-block: var(--trait); overflow: hidden; transform: rotate(-1.6deg); margin-block: -14px; position: relative; z-index: 5; }
.ticker.jaune { background: var(--jaune); color: var(--brun); transform: rotate(1.2deg); }
.ticker-track { display: flex; width: max-content; animation: defile 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px; font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.35rem); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ticker-track span::after { content: "✦"; color: var(--jaune); }
.ticker.jaune .ticker-track span::after { color: var(--orange); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ---------- Problème ---------- */
.probleme-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .probleme-grid { grid-template-columns: 1fr; } }
.chiffre-geant { font-size: clamp(4.2rem, 13vw, 10.5rem); font-weight: 900; line-height: .85; letter-spacing: -.05em; color: var(--jaune); }
.chiffre-geant small { font-size: .32em; letter-spacing: -.01em; }
.probleme-cartes { display: grid; gap: 18px; }
.carte-sombre { border: 3px solid var(--creme); border-radius: var(--rayon); padding: 22px 24px; box-shadow: 6px 6px 0 var(--orange); background: rgba(255, 255, 255, .03); }
.carte-sombre strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--jaune); line-height: 1; margin-bottom: 6px; }
.carte-sombre p { margin: 0; color: rgba(249, 240, 227, .85); }
.source { font-size: .76rem; opacity: .6; margin-top: 18px; }
.loupe-zone { position: relative; cursor: none; }
.loupe {
  position: absolute; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; z-index: 3;
  border: 6px solid var(--creme); box-shadow: 0 0 0 4px var(--brun), 10px 10px 0 rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%) scale(0); transition: transform .25s var(--ease); left: 0; top: 0;
}
.loupe::after { content: ""; position: absolute; width: 16px; height: 70px; background: var(--creme); border: 4px solid var(--brun); border-radius: 8px; right: -40px; bottom: -64px; transform: rotate(-45deg); }
.loupe-zone.is-on .loupe { transform: translate(-50%, -50%) scale(1); }
.cache {
  display: inline-block; padding: 0 .25em; border-radius: 6px; transition: color .3s, background .3s;
  background: repeating-linear-gradient(-45deg, rgba(249, 240, 227, .22) 0 6px, rgba(249, 240, 227, .1) 6px 12px); color: transparent;
}
.loupe-zone .cache.vu { background: var(--orange); color: #fff; }

/* ---------- Programme (phases) ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phase {
  position: relative; display: flex; flex-direction: column; background: var(--papier); border: var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre); overflow: hidden; transition: transform .35s var(--ease);
}
.phase:hover { transform: translateY(-6px) rotate(-.6deg); }
.phase-visuel { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: var(--trait); overflow: hidden; }
.phase:nth-child(1) .phase-visuel { background: var(--jaune); }
.phase:nth-child(2) .phase-visuel { background: var(--cuivre); }
.phase:nth-child(3) .phase-visuel { background: var(--orange); }
.phase-visuel img { width: 78%; max-height: 82%; object-fit: contain; transition: transform .5s var(--ease); }
.phase:hover .phase-visuel img { transform: scale(1.06) rotate(-3deg); }
.phase-num {
  position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--papier); border: var(--trait); font-weight: 900; font-size: 1.15rem;
}
.phase-corps { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.phase-corps p { margin: 0; color: var(--brun-70); }
.puces { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.puces li { font-size: .8rem; font-weight: 600; padding: 4px 12px; border: 2px solid var(--brun); border-radius: 999px; background: var(--creme); }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- Impact ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--papier); border: var(--trait); border-radius: var(--rayon); padding: 26px 22px 22px; box-shadow: var(--ombre-s);
  display: flex; flex-direction: column; gap: 6px;
}
.stat:nth-child(2) { background: var(--jaune); }
.stat:nth-child(3) { background: var(--brun); color: var(--creme); box-shadow: 4px 4px 0 var(--orange); }
.stat:nth-child(5) { background: var(--orange); color: #fff; }
.stat-n { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 900; line-height: .95; letter-spacing: -.04em; }
.stat p { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.stat small { margin-top: auto; padding-top: 10px; font-size: .74rem; opacity: .7; }
.stat.large { grid-column: span 2; }
@media (max-width: 960px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .impact-grid { grid-template-columns: 1fr; } .stat.large { grid-column: auto; } }

/* ---------- Polaroids ---------- */
.mur { display: flex; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; justify-content: center; margin-top: clamp(44px, 6vw, 80px); }
.polaroid {
  position: relative; margin: 0; padding: 10px 10px 0; background: #fff; border: 2px solid var(--brun); box-shadow: var(--ombre-s);
  width: clamp(140px, 16.5vw, 215px); transform: rotate(var(--r, -2deg)); transition: transform .35s var(--ease);
}
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroid figcaption { padding: 8px 4px 12px; font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.3; }
.polaroid::before { /* scotch */
  content: ""; position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(244, 181, 78, .75); border: 1px solid rgba(51, 42, 37, .15);
}

/* ---------- Veilleurs ---------- */
.equipe { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 8px; }
.membre { position: relative; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.membre img { height: clamp(200px, 26vw, 360px); width: auto; object-fit: contain; transition: transform .45s var(--ease); transform-origin: bottom center; }
.membre:hover img, .membre:focus-visible img { transform: translateY(-14px) scale(1.04); }
.membre-nom {
  margin-top: 12px; padding: .35em 1em; border: var(--trait); border-radius: 999px; background: var(--papier); box-shadow: 3px 3px 0 var(--brun);
  font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em;
}
.membre-role { font-size: .82rem; font-weight: 600; margin-top: 8px; opacity: .8; }
.membre .bulle { top: 4%; left: 50%; transform: translate(-50%, 10px) scale(.8); opacity: 0; pointer-events: none; transition: .3s var(--ease); white-space: normal; width: max-content; max-width: 190px; font-size: .82rem; }
.membre:hover .bulle, .membre:focus-visible .bulle { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 900px) {
  .equipe { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .membre .bulle { display: none; }
}

/* ---------- Épisodes ---------- */
.episodes { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 22px; align-items: start; }
.video-carte { position: relative; border: var(--trait); border-radius: var(--rayon); overflow: hidden; background: var(--brun); box-shadow: var(--ombre); }
.video-carte video, .video-carte img { width: 100%; height: 100%; object-fit: cover; }
.video-carte.paysage { aspect-ratio: 16 / 9; }
.video-carte.portrait { aspect-ratio: 9 / 16; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px; border: 0; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(51, 42, 37, .92), rgba(51, 42, 37, 0) 55%);
}
.video-play::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23332A25'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat;
  border: var(--trait); box-shadow: 4px 4px 0 var(--brun); transition: transform .3s var(--ease);
}
.video-play:hover::before { transform: translate(-50%, -50%) scale(1.1); }
.video-play strong { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.video-play span { font-size: .82rem; font-weight: 600; color: var(--jaune); text-transform: uppercase; letter-spacing: .1em; }
.video-carte.joue .video-play { display: none; }
@media (max-width: 900px) { .episodes { grid-template-columns: 1fr 1fr; } .episodes .paysage { grid-column: 1 / -1; } }

/* ---------- Partenaires ---------- */
.logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); width: max-content; animation: defile 34s linear infinite; padding-block: 10px; }
.logos:hover .logos-track { animation-play-state: paused; }
.logo-p { height: clamp(34px, 4vw, 52px); width: auto; flex: none; opacity: .85; transition: opacity .3s, transform .3s; }
.logo-p:hover { opacity: 1; transform: scale(1.08); }
.logo-p.grand { height: clamp(48px, 5.6vw, 74px); }
.logo-mono { filter: brightness(0) saturate(100%) invert(15%) sepia(12%) saturate(1100%) hue-rotate(338deg) brightness(92%) contrast(90%); }
.grille-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin-inline: auto !important; }
.grille-logos li { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--papier); border: var(--trait); border-radius: 18px; padding: 18px 22px; box-shadow: var(--ombre-s); list-style: none; }
.grille-logos img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.grille-logos { padding: 0; margin: 0; }
@media (max-width: 760px) { .grille-logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Mot de la présidente ---------- */
.citation { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.citation-portrait {
  width: clamp(140px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; border: var(--trait); box-shadow: var(--ombre);
  background: var(--jaune); display: grid; place-items: center; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; overflow: hidden;
}
.citation-portrait img { width: 100%; height: 100%; object-fit: cover; }
.citation blockquote { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.9rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.citation blockquote::before { content: "“"; display: block; font-size: 4em; line-height: .6; color: var(--orange); font-weight: 900; }
.citation cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; font-size: 1rem; }
.citation cite span { display: block; font-weight: 500; opacity: .75; font-size: .9rem; }
@media (max-width: 700px) { .citation { grid-template-columns: 1fr; } }

/* ---------- Appel à l'action final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cta-carte {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 28px; min-height: 290px; border: var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre); text-decoration: none; background: var(--papier); transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden;
}
.cta-carte:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0 var(--brun); }
.cta-carte.principal { background: var(--orange); color: #fff; }
.cta-carte.jaune { background: var(--jaune); }
.cta-carte h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); text-transform: uppercase; font-weight: 900; }
.cta-carte p { margin: 0; font-weight: 500; }
.cta-carte .fleche-ronde {
  margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: var(--trait);
  background: var(--papier); color: var(--brun); font-size: 1.5rem; font-weight: 900; transition: transform .35s var(--ease);
}
.cta-carte:hover .fleche-ronde { transform: rotate(-45deg); }
.cta-carte .perso-coin { position: absolute; right: -10px; bottom: -30px; width: 110px; opacity: .95; pointer-events: none; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } .cta-carte { min-height: 220px; } }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px); border-bottom: var(--trait); }
.page-hero .display { font-size: clamp(2rem, 4.6vw, 4.4rem); margin-bottom: .35em; }
.display, .h2 { overflow-wrap: break-word; }
@media (max-width: 480px) { .page-hero .display { font-size: 8.4vw; } }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.page-hero-visuel { position: relative; justify-self: center; }
.page-hero-visuel img { max-height: 380px; width: auto; filter: drop-shadow(6px 6px 0 rgba(51, 42, 37, .25)); }
@media (max-width: 820px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-visuel img { max-height: 260px; } }
.groupe { display: flex; align-items: flex-end; justify-content: center; }
.groupe img { flex: 1 1 0; min-width: 0; width: 0; height: auto; margin-inline: -1.5%; filter: drop-shadow(4px 5px 0 rgba(51, 42, 37, .22)); }
/* largeur proportionnelle au ratio de chaque image : tous à la même taille, Paolo un peu plus petit */
.groupe img:nth-child(1) { flex-grow: .39; } .groupe img:nth-child(2) { flex-grow: .31; } .groupe img:nth-child(3) { flex-grow: .41; position: relative; z-index: 2; align-self: flex-end; }
.groupe img:nth-child(4) { flex-grow: .41; } .groupe img:nth-child(5) { flex-grow: .37; } .groupe img:nth-child(6) { flex-grow: .34; }
.groupe img:nth-child(4) { position: relative; z-index: 1; }

.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.deux-col.inverse > :first-child { order: 2; }
@media (max-width: 860px) { .deux-col { grid-template-columns: 1fr; } .deux-col.inverse > :first-child { order: 0; } }
.cadre { border: var(--trait); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--papier); }
.cadre img { width: 100%; height: 100%; object-fit: cover; }

.etapes { counter-reset: e; display: grid; gap: 16px; padding: 0; margin: 24px 0 0; list-style: none; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.etapes li::before {
  content: counter(e, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  border: var(--trait); background: var(--jaune); font-weight: 900; box-shadow: 3px 3px 0 var(--brun);
}
.etapes strong { display: block; font-size: 1.1rem; font-weight: 800; }
.etapes p { margin: 2px 0 0; color: var(--brun-70); }
.on-dark .etapes p, .on-cuivre .etapes p { color: rgba(249, 240, 227, .85); }

.jeux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jeu {
  position: relative; padding: 24px 24px 22px; border: var(--trait); border-radius: var(--rayon); background: var(--papier); box-shadow: var(--ombre-s);
  transition: transform .3s var(--ease), background .3s;
}
.jeu:hover { transform: translateY(-5px) rotate(.6deg); background: var(--jaune); }
.jeu-ico { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.jeu h3 { font-size: 1.15rem; margin-bottom: 8px; }
.jeu p { margin: 0; font-size: .93rem; color: var(--brun-70); }
.jeu .tag { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 10px; border-radius: 999px; background: var(--brun); color: var(--creme); }
@media (max-width: 960px) { .jeux { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .jeux { grid-template-columns: 1fr; } }

.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.age { border: 3px solid var(--creme); border-radius: var(--rayon); padding: 22px; }
.age strong { display: block; font-size: 1.9rem; font-weight: 900; color: var(--jaune); line-height: 1; margin-bottom: 8px; }
.age p { margin: 0; font-size: .93rem; color: rgba(249, 240, 227, .85); }
@media (max-width: 860px) { .age-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .age-grid { grid-template-columns: 1fr; } .age strong { font-size: 1.6rem; } }

/* Fiches personnages */
.fiches { display: grid; gap: clamp(28px, 4vw, 44px); }
.fiche {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 40px);
  border: var(--trait); border-radius: 28px; background: var(--papier); box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.fiche:nth-child(even) { grid-template-columns: 1fr 300px; }
.fiche:nth-child(even) .fiche-img { order: 2; }
.fiche-img { position: relative; display: grid; place-items: end center; min-height: 320px; }
.fiche-img::before { content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--jaune)); border: var(--trait); bottom: 6%; }
.fiche-img img { position: relative; max-height: 380px; width: auto; }
.fiche h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
.fiche .role { display: inline-block; margin: 10px 0 18px; padding: .3em 1em; border-radius: 999px; background: var(--brun); color: var(--creme); font-weight: 700; font-size: .9rem; }
.fiche .traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.fiche .traits li { padding: 5px 13px; border: 2px solid var(--brun); border-radius: 999px; font-size: .82rem; font-weight: 600; }
.fiche .astuce { margin-top: 20px; padding: 16px 18px; border-left: 6px solid var(--orange); background: var(--creme); border-radius: 0 14px 14px 0; font-weight: 600; }
.fiche .astuce b { color: var(--orange); }
@media (max-width: 780px) {
  .fiche, .fiche:nth-child(even) { grid-template-columns: 1fr; }
  .fiche:nth-child(even) .fiche-img { order: 0; }
  .fiche-img { min-height: 260px; } .fiche-img img { max-height: 280px; }
}

/* BD */
.bd-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bd-page { position: relative; border: var(--trait); border-radius: 12px; overflow: hidden; box-shadow: var(--ombre-s); background: #fff; transform: rotate(var(--r, 0deg)); transition: transform .35s var(--ease); }
.bd-page:hover { transform: rotate(0) scale(1.03); }
.bd-page img { width: 100%; aspect-ratio: 1 / 1.41; object-fit: cover; }
.bd-page.floute img { filter: blur(7px) saturate(.8); transform: scale(1.08); }
.bd-page.floute::after {
  content: "🔒 À recevoir par e-mail"; position: absolute; inset: auto 12px 12px; padding: 8px 10px; border-radius: 10px; background: var(--brun); color: var(--creme);
  font-size: .78rem; font-weight: 700; text-align: center;
}
@media (max-width: 860px) { .bd-grille { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Formulaires ---------- */
.form-carte { background: var(--papier); border: var(--trait); border-radius: 28px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--ombre); color: var(--brun); }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.champ { display: grid; gap: 6px; }
.champ.plein { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 700; font-size: .9rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 13px 15px; border: 2px solid var(--brun); border-radius: 14px; background: #fff; font: inherit; font-size: 1rem; color: var(--brun);
  transition: box-shadow .2s, border-color .2s;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--oeil); box-shadow: 0 0 0 4px rgba(11, 107, 224, .18); }
.choix { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choix legend { margin-bottom: 8px; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix span { display: inline-block; padding: 9px 16px; border: 2px solid var(--brun); border-radius: 999px; font-weight: 600; font-size: .9rem; background: #fff; transition: .2s; }
.choix input:checked + span { background: var(--brun); color: var(--creme); }
.choix input:focus-visible + span { outline: 3px solid var(--oeil); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-msg { font-weight: 600; font-size: .95rem; }
.form-msg.ok { color: #2f7a3c; }
.form-msg.err { color: var(--orange); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form-grille { grid-template-columns: 1fr; } }

/* ---------- Dons ---------- */
.dons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.don {
  display: grid; place-items: center; gap: 2px; padding: 22px 10px; border: var(--trait); border-radius: 20px; background: var(--papier); box-shadow: var(--ombre-s);
  text-decoration: none; transition: transform .25s var(--ease), background .25s;
}
.don:hover { transform: translate(-2px, -3px); background: var(--jaune); }
.don strong { font-size: 2rem; font-weight: 900; line-height: 1; }
.don span { font-size: .78rem; font-weight: 600; text-align: center; opacity: .8; }
@media (max-width: 640px) { .dons { grid-template-columns: repeat(2, 1fr); } }
.note { padding: 14px 18px; border: 2px dashed var(--brun); border-radius: 14px; font-size: .9rem; background: rgba(255, 255, 255, .5); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brun); color: var(--creme); margin-top: 0; }
.footer-ticker { background: var(--jaune); color: var(--brun); border-block: var(--trait); overflow: hidden; }
.footer-ticker .ticker-track span { font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 900; padding-block: 14px; }
.footer-ticker .ticker-track span::after { content: "👁"; color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 64px 40px; }
.footer-brand img { width: 210px; margin-bottom: 18px; }
.footer-brand p { color: rgba(249, 240, 227, .8); max-width: 38ch; font-size: .95rem; }
.footer-brand a { color: var(--jaune); }
.footer-title { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--jaune); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; font-weight: 500; opacity: .9; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--jaune); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--creme); border-radius: 50%; transition: .25s; }
.footer-social a:hover { background: var(--jaune); border-color: var(--jaune); color: var(--brun); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 20px 28px; border-top: 1px solid rgba(249, 240, 227, .2); font-size: .82rem; opacity: .7; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Animations d'apparition ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="pop"] { transform: scale(.8) rotate(-6deg); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .polaroid[data-reveal].is-in { transform: rotate(var(--r, 0deg)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Divers ---------- */
.centre { text-align: center; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions.centre { justify-content: center; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose p, .prose li { color: var(--brun-70); }
.a-completer { background: var(--jaune); padding: 0 .3em; border-radius: 4px; font-weight: 600; color: var(--brun); }
.deco-oeil { position: absolute; pointer-events: none; opacity: .9; }

/* ---------- Ajustements ---------- */
.polaroid { color: var(--brun); }
.h2 { margin-bottom: .45em; }
.section-head .h2 { margin-bottom: 0; }

/* Composition du haut de la page Partenaires */
.compo-partenaire { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / .92; justify-self: center; }
.compo-partenaire .hero-disque { inset: 4% 4% 6% 10%; }
.compo-photo { position: absolute; right: 0; top: 24%; width: 78%; transform: rotate(3deg); z-index: 2; }
.compo-perso { left: 0; bottom: 0; width: 30%; z-index: 3; }
.compo-tampon { right: 4%; top: 2%; transform: rotate(10deg); }
.compo-bulle { left: 0; top: 1%; transform: rotate(-4deg); }
@media (max-width: 820px) { .compo-partenaire { max-width: 420px; } }
