/* ==========================================================================
   LADSEC — Les Ami·e·s de Socrate et Confucius
   Feuille de style unique. Aucune ressource externe (RGPD + performance).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Palette tirée de la couverture : ciel de crépuscule, du bleu-sarcelle à l'orange */
  --nuit: #0f2e35;
  --sarcelle: #1c5866;
  --lagon: #2b8381;
  --brume: #d1b592;
  --aube: #fd804a;
  --aube-fonce: #c4521e;
  --papier: #f6efe3;
  --papier-2: #ede3d1;
  --encre: #172427;
  --encre-2: #3d4c50;
  --blanc: #fffdf8;
  --filet: #172427;

  --f-titre: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Source Serif 4", Georgia, "Times New Roman", serif;

  --mesure: 68ch;
  --large: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --rayon: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: clamp(1.0625rem, 0.4vw + 0.98rem, 1.1875rem);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--sarcelle); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--aube-fonce); }
:focus-visible { outline: 3px solid var(--aube); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--aube); color: var(--encre); }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw + 0.5rem, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3vw + 0.6rem, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1vw + 0.9rem, 1.6rem); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
blockquote { margin: 0; }
hr { border: 0; border-top: 2px solid var(--filet); margin: 3rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--aube); color: var(--encre); padding: .6rem 1rem;
  font-family: var(--f-titre); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 var(--gouttiere); }
.prose { max-width: var(--mesure); }
.prose h2 { margin-top: 1.6em; }
.prose > .label + h2, .section-tete.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Étiquettes, surlignage, boutons ---------- */
.label {
  display: inline-block;
  font-family: var(--f-titre);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.label::before { content: "— "; }
.surligne {
  background: linear-gradient(transparent 62%, rgba(253,128,74,.55) 62%, rgba(253,128,74,.55) 92%, transparent 92%);
  padding: 0 .08em;
}
.barre {
  position: relative; white-space: nowrap; opacity: .72; font-weight: 400;
}
.barre::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%;
  height: .09em; min-height: 3px; background: var(--aube); transform: rotate(-2deg);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: .95em 1.4em; border-radius: var(--rayon);
  border: 2px solid var(--encre); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--aube { background: var(--aube); color: var(--encre); box-shadow: 4px 4px 0 var(--encre); }
.btn--aube:hover { color: var(--encre); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.btn--aube:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.btn--ligne { background: transparent; color: inherit; border-color: currentColor; }
.btn--ligne:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn--sombre { background: var(--encre); color: var(--blanc); }
.btn--sombre:hover { background: var(--sarcelle); color: var(--blanc); }
.btn--large { font-size: clamp(1.05rem, .6vw + .95rem, 1.25rem); padding: 1.05em 1.6em; }
.btn-note {
  display: block; margin-top: .8rem; font-family: var(--f-titre);
  font-size: .9rem; opacity: .85;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,239,227,.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 2px solid var(--encre);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-titre); font-weight: 800; font-size: 1.25rem;
  letter-spacing: .02em; color: var(--encre); text-decoration: none;
}
.logo:hover { color: var(--encre); }
.logo svg { width: 34px; height: 34px; }
.logo small {
  display: block; font-weight: 500; font-size: .68rem; letter-spacing: .04em;
  opacity: .75; line-height: 1.1;
}
.logo span { line-height: 1; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem;
}
.nav li { margin: 0; }
.nav a {
  font-family: var(--f-titre); font-weight: 600; font-size: 1rem;
  color: var(--encre); text-decoration: none; padding: .4rem 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--aube); color: var(--encre); }
.nav .nav-cta a {
  background: var(--encre); color: var(--blanc); padding: .55rem .95rem;
  border-radius: var(--rayon); border: 0;
}
.nav .nav-cta a:hover { background: var(--sarcelle); color: var(--blanc); }
.nav-toggle { display: none; }

@media (max-width: 420px) { .logo small { display: none; } }
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--f-titre); font-weight: 700; font-size: 1rem;
    background: none; border: 2px solid var(--encre); border-radius: var(--rayon);
    padding: .45rem .8rem; color: var(--encre); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papier); border-bottom: 2px solid var(--encre);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gouttiere) 1.2rem; }
  .nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--papier-2); font-size: 1.15rem; }
  .nav .nav-cta a { margin-top: .8rem; text-align: center; }
}

/* ---------- Hero (crépuscule de la couverture) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--blanc);
  background:
    radial-gradient(120% 60% at 70% 100%, rgba(253,128,74,.95) 0%, rgba(253,128,74,0) 60%),
    linear-gradient(180deg, #123e48 0%, #1c5866 32%, #2b8381 58%, #b9a888 80%, #f0915e 100%);
  border-bottom: 2px solid var(--encre);
}
.hero::after { /* ligne d'horizon */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background: linear-gradient(180deg, rgba(15,46,53,0) 0%, rgba(15,46,53,.55) 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: clamp(3rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { margin-bottom: .35em; text-shadow: 0 2px 30px rgba(15,46,53,.35); }
.hero h1 .barre { font-size: .62em; display: inline-block; margin-bottom: .1em; }
.hero-sous {
  font-family: var(--f-titre); font-weight: 600;
  font-size: clamp(1.2rem, 1.4vw + .8rem, 1.75rem); line-height: 1.25;
  margin-bottom: 1.4rem;
}
.hero-chapo { max-width: 56ch; font-size: 1.1em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: flex-start; }
.hero-actions .btn--ligne { color: var(--blanc); }
.hero .label { color: var(--blanc); }
.hero-couv { justify-self: center; perspective: 1200px; }
.hero-couv a { display: block; }
.hero-couv img {
  width: min(340px, 70vw); border-radius: 3px;
  box-shadow: 0 30px 60px -15px rgba(15,46,53,.6), 0 0 0 1px rgba(255,255,255,.15);
  transform: rotate(3deg);
  transition: transform .3s ease;
}
.hero-couv a:hover img { transform: rotate(0deg) translateY(-6px); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-couv { justify-self: start; }
  .hero-couv img { width: min(200px, 50vw); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--sombre { background: var(--nuit); color: var(--blanc); }
.section--sombre a { color: var(--brume); }
.section--sombre a:hover { color: var(--aube); }
.section--sable { background: var(--papier-2); border-top: 2px solid var(--encre); border-bottom: 2px solid var(--encre); }
.section--aube { background: var(--aube); color: var(--encre); border-top: 2px solid var(--encre); border-bottom: 2px solid var(--encre); }
.section-tete { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-tete p { font-size: 1.1em; }

/* Bandeau "25 ans" */
.compte {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.compte-chiffre {
  font-family: var(--f-titre); font-weight: 800; line-height: .82;
  font-size: clamp(6rem, 18vw, 15rem); color: var(--aube); letter-spacing: -.06em;
}
.compte-chiffre small { display: block; font-size: .25em; letter-spacing: -.01em; color: var(--blanc); margin-top: .35em; }
.compte .grand {
  font-family: var(--f-titre); font-weight: 600; line-height: 1.2;
  font-size: clamp(1.4rem, 2vw + .8rem, 2.3rem); margin-bottom: .8em;
}
@media (max-width: 700px) { .compte { grid-template-columns: 1fr; } }

/* Constats en trois colonnes */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--encre); background: var(--blanc); }
.trio > * { padding: clamp(1.4rem, 3vw, 2.2rem); border-right: 2px solid var(--encre); }
.trio > *:last-child { border-right: 0; }
.trio-num {
  font-family: var(--f-titre); font-weight: 800; font-size: 3.2rem; line-height: 1;
  color: var(--aube-fonce); display: block; margin-bottom: .8rem; letter-spacing: -.04em;
}
.trio h3 { margin-bottom: .6rem; }
.trio p { margin-bottom: 0; font-size: .98em; }
@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; }
  .trio > * { border-right: 0; border-bottom: 2px solid var(--encre); }
  .trio > *:last-child { border-bottom: 0; }
}

/* Citation */
.citation {
  font-family: var(--f-texte); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw + .8rem, 2.6rem); line-height: 1.25;
  max-width: 30ch; text-wrap: balance;
}
.citation::before { content: "« "; color: var(--aube); }
.citation::after { content: " »"; color: var(--aube); }
.citation-source { font-family: var(--f-titre); font-weight: 600; margin-top: 1.2rem; font-size: 1rem; }
.citation-source::before { content: "— "; }

/* Sommaire du manifeste */
.sommaire { list-style: none; padding: 0; margin: 0; counter-reset: partie; border-top: 2px solid var(--encre); }
.sommaire > li {
  counter-increment: partie; margin: 0;
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem;
  padding: 1.6rem 0; border-bottom: 2px solid var(--encre);
}
.sommaire > li::before {
  content: counter(partie, decimal-leading-zero);
  font-family: var(--f-titre); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--aube-fonce); letter-spacing: -.04em;
}
.sommaire > li.sommaire-fin::before { content: "→"; }
.sommaire h3 { margin-bottom: .35rem; }
.sommaire p { margin-bottom: .4rem; }
.sommaire .sous { font-size: .93em; color: var(--encre-2); margin: 0; }
@media (max-width: 600px) { .sommaire > li { grid-template-columns: 1fr; gap: .4rem; } }

/* Cartes génériques */
.grille { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); }
.grille--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grille--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.carte {
  background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon);
  padding: clamp(1.3rem, 3vw, 1.9rem); position: relative;
}
.carte h3 { margin-bottom: .5rem; }
.carte p:last-child { margin-bottom: 0; }
.carte--ombre { box-shadow: 6px 6px 0 var(--encre); }

/* Lignes de force */
.lignes { counter-reset: ligne; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lignes > div { counter-increment: ligne; border-top: 6px solid var(--aube); padding-top: 1.2rem; }
.lignes > div::before {
  content: "Ligne " counter(ligne); display: block;
  font-family: var(--f-titre); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; opacity: .8;
}
@media (max-width: 860px) { .lignes { grid-template-columns: 1fr; } }

/* Appel jeunesse/enseignants */
.appel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.appel h2 { font-size: clamp(2.2rem, 4vw + .5rem, 4rem); }
@media (max-width: 860px) { .appel { grid-template-columns: 1fr; } }

/* ---------- Vidéos ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.filtres li { margin: 0; }
.filtres button {
  font-family: var(--f-titre); font-weight: 600; font-size: .95rem;
  background: var(--blanc); color: var(--encre); border: 2px solid var(--encre);
  border-radius: 999px; padding: .45rem 1rem; cursor: pointer;
}
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.filtres button:hover { background: var(--aube); color: var(--encre); }

.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.video {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem); align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--encre);
}
.video[hidden] { display: none; }
.video:nth-child(even) .video-media { order: 2; }
@media (max-width: 900px) {
  .video { grid-template-columns: 1fr; }
  .video:nth-child(even) .video-media { order: 0; }
}
.video-media { position: sticky; top: 88px; }
@media (max-width: 900px) { .video-media { position: static; } }

.lecteur {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: 2px solid var(--encre); border-radius: var(--rayon); overflow: hidden;
  background: var(--sarcelle); color: var(--blanc);
}
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur-affiche {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  padding: clamp(1rem, 2.5vw, 1.6rem); border: 0; cursor: pointer; color: var(--blanc);
  font-family: var(--f-titre);
  background:
    radial-gradient(90% 70% at 85% 110%, rgba(253,128,74,.9) 0%, rgba(253,128,74,0) 70%),
    linear-gradient(160deg, #123e48 0%, #1c5866 55%, #2b8381 100%);
}
.lecteur-affiche.t-paix { background: radial-gradient(90% 70% at 85% 110%, rgba(209,181,146,.9) 0%, rgba(209,181,146,0) 70%), linear-gradient(160deg, #0f2e35 0%, #1c5866 100%); }
.lecteur-affiche.t-jeunesse { background: radial-gradient(90% 80% at 80% 110%, rgba(253,128,74,1) 0%, rgba(253,128,74,0) 75%), linear-gradient(160deg, #1c5866 0%, #2b8381 100%); }
.lecteur-affiche.t-ecologie { background: radial-gradient(90% 70% at 85% 110%, rgba(240,145,94,.85) 0%, rgba(240,145,94,0) 70%), linear-gradient(160deg, #164a45 0%, #2b8381 100%); }
.affiche-annee {
  font-weight: 800; font-size: clamp(3.4rem, 9vw, 6.2rem); line-height: .85; letter-spacing: -.05em;
  color: rgba(255,253,248,.95);
}
.affiche-nom { font-weight: 700; font-size: clamp(1.1rem, 1.6vw + .6rem, 1.5rem); line-height: 1.1; display: block; }
.affiche-lieu { font-weight: 500; font-size: .95rem; opacity: .9; display: block; margin-top: .25rem; }
.affiche-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.affiche-play {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--aube); color: var(--encre); border: 2px solid var(--encre);
  display: grid; place-items: center; box-shadow: 3px 3px 0 var(--encre);
  transition: transform .15s ease;
}
.affiche-play svg { width: 26px; height: 26px; margin-left: 4px; }
.lecteur-affiche:hover .affiche-play { transform: scale(1.08); }
.lecteur-note { font-family: var(--f-titre); font-size: .82rem; margin-top: .6rem; color: var(--encre-2); line-height: 1.4; }

.video-meta { font-family: var(--f-titre); font-weight: 600; font-size: .92rem; color: var(--encre-2); margin-bottom: .6rem; }
.video h2 { font-size: clamp(1.6rem, 2vw + .9rem, 2.4rem); margin-bottom: .3em; }
.video h3 {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 1.5rem 0 .5rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.tags li {
  margin: 0; font-family: var(--f-titre); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border: 1.5px solid var(--encre); border-radius: 999px;
}
.encadre {
  background: var(--blanc); border-left: 6px solid var(--aube);
  padding: 1rem 1.2rem; margin-top: 1.2rem; font-size: .97em;
}
.encadre strong { font-family: var(--f-titre); }
.encadre p:last-child { margin-bottom: 0; }

/* ---------- Formulaire newsletter ---------- */
.inscription {
  background: var(--blanc); color: var(--encre);
  border: 2px solid var(--encre); border-radius: var(--rayon); box-shadow: 8px 8px 0 var(--encre);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.inscription h2, .inscription h3 { margin-bottom: .4rem; }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.form-grille .plein { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grille { grid-template-columns: 1fr; } }
.champ label { display: block; font-family: var(--f-titre); font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.champ input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--encre);
  background: var(--papier); border: 2px solid var(--encre); border-radius: var(--rayon);
  padding: .8rem .9rem; min-height: 50px;
}
.champ input:focus { outline: 3px solid var(--aube); outline-offset: 1px; background: var(--blanc); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .92rem; line-height: 1.45; }
.consent input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--sarcelle); }
.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-statut { margin: 1rem 0 0; font-family: var(--f-titre); font-weight: 600; min-height: 1.4em; }
.form-statut.ok { color: #1d6b3a; }
.form-statut.erreur { color: #a3261b; }
.form-mention { font-size: .85rem; color: var(--encre-2); margin: 1rem 0 0; line-height: 1.5; }
.inscription.envoye form { display: none; }

/* ---------- Page téléchargement ---------- */
.merci-hero { background: var(--sarcelle); color: var(--blanc); border-bottom: 2px solid var(--encre); padding: clamp(3rem, 7vw, 5rem) 0; }
.merci-hero a { color: var(--blanc); }
.etapes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

/* Partage */
.partage { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.partage a, .partage button {
  font-family: var(--f-titre); font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border: 2px solid var(--encre); border-radius: 999px;
  background: var(--blanc); color: var(--encre); text-decoration: none; cursor: pointer;
}
.partage a:hover, .partage button:hover { background: var(--aube); color: var(--encre); }

/* ---------- En-tête de page intérieure ---------- */
.page-tete {
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(253,128,74,.75) 0%, rgba(253,128,74,0) 60%),
    linear-gradient(170deg, #123e48 0%, #1c5866 60%, #2b8381 100%);
  color: var(--blanc); border-bottom: 2px solid var(--encre);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.page-tete h1 { font-size: clamp(2.3rem, 5vw + .5rem, 4.4rem); max-width: 18ch; }
.page-tete p { max-width: 60ch; font-size: 1.12em; margin-bottom: 0; }
.page-tete .label { color: var(--blanc); }
.ariane { font-family: var(--f-titre); font-size: .9rem; margin-bottom: 1.4rem; }
.ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ariane li { margin: 0; }
.ariane li + li::before { content: "/"; margin-right: .3rem; opacity: .6; }
.ariane a { color: var(--blanc); }

/* Bandeau téléchargement récurrent */
.bandeau-dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.bandeau-dl h2 { margin: 0; font-size: clamp(1.7rem, 2.6vw + .6rem, 2.8rem); max-width: 20ch; }

/* Outils qualité */
.outils { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.outils li {
  margin: 0; font-family: var(--f-titre); font-weight: 600; font-size: .92rem;
  background: var(--blanc); border: 2px solid var(--encre); padding: .3rem .75rem; border-radius: var(--rayon);
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: rgba(255,253,248,.88); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--blanc); }
.site-footer a:hover { color: var(--aube); }
.footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grille { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; color: var(--brume); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-logo { color: var(--blanc); margin-bottom: 1rem; }
.footer-logo:hover { color: var(--blanc); }
.footer-bas {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,253,248,.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; opacity: .8;
}

/* Divers */
.centre { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.petit { font-size: .9em; }
.note-legale { background: var(--papier-2); border: 2px dashed var(--encre-2); padding: 1rem 1.2rem; border-radius: var(--rayon); font-size: .95em; }
.legal h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); margin-top: 2.2em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0 0 1.2rem; }
.legal dt { font-family: var(--f-titre); font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }

@media print {
  .site-header, .site-footer, .hero-actions, .inscription, .filtres { display: none !important; }
  body { background: #fff; }
}
.carte--nuit { background: transparent; border-color: var(--brume); color: inherit; }
.carte--nuit p { font-style: italic; font-size: 1.08em; }

/* ---------- Bandeau administrateur ---------- */
.admin-bandeau {
  background: var(--aube); color: var(--encre); font-family: var(--f-titre); font-weight: 600;
  font-size: .9rem; padding: .5rem var(--gouttiere); text-align: center; border-bottom: 2px solid var(--encre);
}
.admin-bandeau a { color: var(--encre); font-weight: 800; }
.admin-bandeau--discret { background: var(--nuit); color: var(--blanc); text-align: right; padding: .25rem var(--gouttiere); font-size: .8rem; border: 0; }
.admin-bandeau--discret a { color: var(--blanc); }

/* ---------- Page « Bientôt disponible » ---------- */
.page-bientot { background: var(--nuit); }
.bientot {
  min-height: 100vh; color: var(--blanc); display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(120% 55% at 50% 105%, rgba(253,128,74,.95) 0%, rgba(253,128,74,0) 62%),
    linear-gradient(180deg, #0f2e35 0%, #1c5866 40%, #2b8381 68%, #c49a74 92%, #f0915e 100%);
  padding: clamp(2rem, 6vw, 4rem) 0 1.5rem;
}
.bientot a { color: var(--blanc); }
.bientot-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .bientot-grille { grid-template-columns: 1fr; } }
.logo--clair { color: var(--blanc); margin-bottom: clamp(2rem, 6vw, 4rem); }
.logo--clair:hover { color: var(--blanc); }
.bientot .label { color: var(--blanc); }
.bientot h1 { font-size: clamp(2.6rem, 6vw + .5rem, 5.4rem); text-shadow: 0 2px 30px rgba(15,46,53,.35); }
.bientot-date {
  display: inline-block; font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem;
  background: var(--aube); color: var(--encre); border: 2px solid var(--encre); border-radius: var(--rayon);
  padding: .4rem .9rem; box-shadow: 3px 3px 0 var(--encre); margin: 0 0 1.5rem;
}
.bientot-chapo { font-size: 1.12em; max-width: 54ch; }
.bientot-citation { margin: 2rem 0; padding-left: 1.2rem; border-left: 4px solid var(--aube); }
.bientot-citation .citation { font-size: clamp(1.2rem, 1.2vw + .9rem, 1.6rem); max-width: 34ch; }
.bientot-contact { font-family: var(--f-titre); font-size: .95rem; opacity: .9; }
.bientot-cote { display: grid; gap: 2rem; justify-items: center; }
.bientot-cote .hero-couv img { width: min(260px, 60vw); }
.bientot-cote .inscription { width: 100%; }
.bientot-pied { text-align: center; font-family: var(--f-titre); font-size: .85rem; margin: 3rem 0 0; opacity: .85; }
.bientot .inscription a { color: var(--sarcelle); }
@media (max-width: 860px) { .bientot-cote .hero-couv img { width: min(170px, 45vw); } }

/* ---------- Mobile : bandeau d'accueil et page d'attente centrés ---------- */
@media (max-width: 820px) {
  .hero .wrap { text-align: center; justify-items: center; }
  .hero .hero-chapo { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions > div, .hero-actions > a { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; }
  .hero-couv { justify-self: center; }
  .hero-couv img { transform: rotate(2deg); }
  .bandeau-dl { justify-content: center; text-align: center; }
  .bandeau-dl > div { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; }
  .bandeau-dl .btn { width: 100%; }
}
@media (max-width: 860px) {
  .bientot-texte { text-align: center; }
  .bientot-texte .logo--clair { justify-content: center; }
  .bientot-chapo { margin-left: auto; margin-right: auto; }
  .bientot-citation { border-left: 0; padding-left: 0; }
  .bientot-citation .citation { margin-left: auto; margin-right: auto; }
}

/* ---------- Page L'association ---------- */
.preambule p { font-size: clamp(1.15rem, .8vw + .95rem, 1.4rem); line-height: 1.6; font-style: italic; }
.preambule p::first-letter { font-family: var(--f-titre); font-style: normal; font-weight: 800; font-size: 3.2em; float: left; line-height: .85; margin: .06em .12em 0 0; color: var(--aube-fonce); }
.note-preambule { color: var(--encre-2); border-top: 2px solid var(--encre); padding-top: .8rem; margin-top: 1.5rem; }
.fable p { font-size: 1.06em; }
.asso-citation { margin: 2rem 0 0; padding-left: 1rem; border-left: 4px solid var(--aube); }
.asso-citation p:first-child { font-style: italic; font-size: 1.15rem; margin-bottom: .3rem; }
.asso-citation .citation-source { margin-top: 0; font-size: .9rem; color: var(--brume); }
.tableau-valeurs-cadre { overflow-x: auto; border: 2px solid var(--encre); border-radius: var(--rayon); background: var(--blanc); box-shadow: 6px 6px 0 var(--encre); }
.tableau-valeurs { width: 100%; border-collapse: collapse; }
.tableau-valeurs th { font-family: var(--f-titre); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 1rem 1.2rem; background: var(--encre); color: var(--blanc); width: 50%; }
.tableau-valeurs th:last-child { background: var(--sarcelle); }
.tableau-valeurs td { padding: .8rem 1.2rem; border-top: 1px solid var(--papier-2); vertical-align: top; }
.tableau-valeurs td + td, .tableau-valeurs th + th { border-left: 2px solid var(--encre); }
.tableau-valeurs tbody tr:nth-child(even) td { background: #faf6ee; }
@media (max-width: 560px) { .tableau-valeurs th, .tableau-valeurs td { padding: .7rem .75rem; font-size: .95rem; } }
.lignes--valeurs > div::before { content: none; }
@media (min-width: 1101px) { .nav ul { flex-wrap: nowrap; gap: .25rem 1.15rem; } .nav a { white-space: nowrap; } }
@media (min-width: 1101px) and (max-width: 1300px) { .logo small { display: none; } .nav ul { gap: .25rem .95rem; } .nav a { font-size: .96rem; } }

/* ---------- Enseignants : les vidéos en classe ---------- */
.vid-classes { list-style: none; margin: 0; padding: 0; }
.vid-classe { display: flex; flex-direction: column; }
.vid-classe h3 { margin: .2rem 0 .6rem; }
.vid-classe-meta { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-2); }
.vid-classe p:last-child { margin-top: auto; padding-top: .4rem; margin-bottom: 0; }
.lien-fleche { font-weight: 700; color: var(--sarcelle); text-underline-offset: .2em; }
.lien-fleche::after { content: " →"; }

/* ---------- Le manifeste en chansons ---------- */
.playlist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.playlist-tete { position: sticky; top: 6rem; }
.playlist-tete h2 { color: var(--blanc); }
.playlist-tete p { color: rgba(255, 253, 248, .86); }
.playlist-compte { display: inline-block; margin-top: .4rem; font-family: var(--f-titre); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid var(--brume); color: var(--brume) !important; border-radius: 999px; padding: .3rem .85rem; }
.section--sombre .btn--aube, .section--sombre .btn--aube:hover { color: var(--encre); }

/* Les pistes : une ligne (numéro, titre, flèche) puis le détail.
   Avec JavaScript, chaque piste reste collée sous la précédente au défilement
   et recouvre son détail : la liste se replie comme une pile de fiches. */
.playlist-pistes { --ligne: 3.6rem; list-style: none; margin: 0; padding: 0; }
.piste { background: var(--nuit); border-top: 1px solid rgba(209, 181, 146, .32); }
.playlist-pistes > li:last-child { border-bottom: 1px solid rgba(209, 181, 146, .32); }
.section--sombre .piste a { display: block; padding: 0 .5rem 1.4rem; color: var(--blanc); text-decoration: none; border-radius: var(--rayon); }
.piste-ligne { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; height: var(--ligne); }
.piste-num { font-family: var(--f-titre); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; color: var(--aube); font-variant-numeric: tabular-nums; }
.piste-titre { min-width: 0; font-family: var(--f-titre); font-size: 1.28rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piste-titre > span { padding: 0 .12em; background: linear-gradient(transparent 58%, rgba(253, 128, 74, .5) 58%, rgba(253, 128, 74, .5) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.piste-fleche { font-family: var(--f-titre); font-size: 1.5rem; font-weight: 700; color: var(--brume); transition: transform .2s ease, color .2s ease; }
.section--sombre .piste a:hover .piste-fleche, .section--sombre .piste a:focus-visible .piste-fleche { transform: translateX(5px); color: var(--aube); }
.section--sombre .piste a:hover .piste-titre > span { background: linear-gradient(transparent 58%, rgba(253, 128, 74, .8) 58%, rgba(253, 128, 74, .8) 94%, transparent 94%); }
.piste-detail { display: flex; flex-direction: column; gap: .2rem; padding-left: 4.4rem; }
.piste-etape { font-family: var(--f-titre); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brume); }
.piste-artiste { font-size: 1rem; color: rgba(255, 253, 248, .82); }
.section--sombre .playlist-pistes .playlist-suite a { display: block; padding: 1.1rem .5rem 1.1rem 4.9rem; font-family: var(--f-titre); font-weight: 700; color: var(--brume) !important; }

/* Pile repliable (activée par main.js : classe .empile et position de chaque piste) */
.playlist-pistes.empile > .piste { position: sticky; top: calc(var(--haut, 72px) + var(--rang, 0) * var(--ligne)); }
.playlist-pistes.empile > .piste.recouverte .piste-fleche { opacity: .55; }
.playlist-pistes.empile > .piste { box-shadow: 0 -10px 18px -14px rgba(0, 0, 0, .6); }

.video-etape { color: #9a3d15; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.video-artiste { font-family: var(--f-titre); font-weight: 600; font-size: 1.02rem; color: var(--encre-2); margin: -.2rem 0 1rem; }
.videos--chansons .video-meta { letter-spacing: .02em; }
.retour-videos { margin: clamp(2.5rem, 5vw, 4rem) 0 0; font-family: var(--f-titre); }
@media (max-width: 900px) {
  .playlist { grid-template-columns: minmax(0, 1fr); }
  .playlist-tete { position: static; }
}
@media (max-width: 480px) {
  .playlist-pistes { --ligne: 3.2rem; }
  .piste-ligne { grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .7rem; }
  .piste-num { font-size: 1.45rem; }
  .piste-titre { font-size: 1.06rem; }
  .piste-detail { padding-left: 3.2rem; }
  .section--sombre .piste a { padding: 0 .1rem 1.1rem; }
  .section--sombre .playlist-pistes .playlist-suite a { padding-left: 3.3rem; }
}
.playlist-pistes.empile { padding-bottom: 2.5rem; }

/* Ancres : le menu collé en haut ne doit pas masquer le début de la cible */
html { scroll-padding-top: calc(var(--haut-entete, 76px) + 1rem); }

/* Vidéos choisies par l'auteur (page Le manifeste) : bandeau horizontal, effet de parallaxe */
.auteur-videos-bloc { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--encre); }
.auteur-videos-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); }
.auteur-videos-titre { font-family: var(--f-titre); font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: .6rem; }
.auteur-videos-compte { display: inline-grid; place-items: center; min-width: 2em; height: 2em; padding: 0 .5em; border-radius: 999px; background: var(--nuit); color: var(--blanc); font-size: .55em; letter-spacing: 0; }
.defile-nav { display: flex; gap: .5rem; flex-shrink: 0; }
.defile-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--encre); background: var(--blanc); color: var(--encre); font: 700 1.25rem/1 var(--f-titre); cursor: pointer; box-shadow: 3px 3px 0 var(--encre); transition: transform .15s ease, box-shadow .15s ease, opacity .2s; }
.defile-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--encre); }
.defile-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--encre); }
.defile-btn[disabled] { opacity: .35; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--encre); }

.auteur-videos { list-style: none; margin: 0 calc(-1 * var(--gouttiere)); padding: .3rem var(--gouttiere) 1.4rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.5rem) / 2.35); gap: 1.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); scrollbar-width: none; outline: none; }
.auteur-videos::-webkit-scrollbar { display: none; }
.auteur-videos:focus-visible { box-shadow: inset 0 0 0 3px var(--aube); border-radius: var(--rayon); }
.auteur-video { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; background: var(--blanc); border: 2px solid var(--encre); border-radius: calc(var(--rayon) + 4px); overflow: hidden; box-shadow: 6px 6px 0 var(--encre);
  transform: translateY(calc(var(--py, 0) * 1px)); transition: box-shadow .2s ease; }
.auteur-video .lecteur { border: 0; border-bottom: 2px solid var(--encre); border-radius: 0; }
.auteur-video .affiche-annee { font-size: clamp(3rem, 6vw, 4.6rem); transform: translateX(calc(var(--px, 0) * -38px)); will-change: transform; }
.auteur-video .affiche-bas { transform: translateX(calc(var(--px, 0) * -10px)); }
.auteur-video .lecteur-affiche { background-size: 140% 140%; background-position: calc(50% + var(--px, 0) * 30%) 50%; }
.auteur-video-texte { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.auteur-video-texte h4 { font-family: var(--f-titre); font-size: 1.22rem; margin: 0 0 .2rem; line-height: 1.2; }
.auteur-video-sous { font-family: var(--f-titre); font-weight: 600; font-size: .9rem; color: var(--encre-2); margin: 0 0 .75rem; }
.auteur-video-texte > p { margin: 0 0 1rem; font-size: .98rem; }
.auteur-mot { margin: auto 0 0; padding: .85rem 1rem; background: var(--papier); border-left: 4px solid var(--aube); border-radius: 0 var(--rayon) var(--rayon) 0; font-style: italic; font-size: .96rem; }
.auteur-mot p { margin: 0; }
.auteur-mot .auteur-mot-label { font-family: var(--f-titre); font-style: normal; font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #9a3d15; margin-bottom: .35rem; }
.defile-progres { height: 3px; background: rgba(23, 36, 39, .15); border-radius: 3px; overflow: hidden; margin-top: .2rem; }
.defile-progres span { display: block; height: 100%; width: calc(var(--prog, .2) * 100%); background: var(--aube); border-radius: 3px; transition: width .15s linear; }
@media (max-width: 900px) { .auteur-videos { grid-auto-columns: calc((100% - 1.5rem) / 1.6); } }
@media (max-width: 600px) {
  .auteur-videos { grid-auto-columns: calc(100% - 2.6rem); gap: 1rem; }
  .defile-btn { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
  .auteur-video { box-shadow: 4px 4px 0 var(--encre); }
}
@media (prefers-reduced-motion: reduce) {
  .auteur-video, .auteur-video .affiche-annee, .auteur-video .affiche-bas { transform: none !important; }
  .auteur-videos { scroll-behavior: auto; }
}
/* Mode épinglé (grand écran) : le bandeau reste en place pendant que la page fait défiler les vidéos,
   une vidéo large à la fois, texte à côté */
.auteur-videos-bloc.epingle { position: sticky; top: var(--haut-epingle, 86px); }
.auteur-videos-bloc.epingle .auteur-videos-tete { margin-bottom: 1.1rem; }
.auteur-videos-bloc.epingle .auteur-videos { overflow-x: hidden; scroll-snap-type: none; grid-auto-columns: calc((100% - 1.5rem) / 1.14); padding-bottom: 1rem; }
.auteur-videos-bloc.epingle .auteur-video { display: grid; grid-template-columns: 1.2fr 1fr; transform: none; }
.auteur-videos-bloc.epingle .auteur-video .lecteur { aspect-ratio: auto; height: 100%; min-height: 19rem; border-bottom: 0; border-right: 2px solid var(--encre); }
.auteur-videos-bloc.epingle .auteur-video-texte { padding: 1.4rem 1.5rem; }
.auteur-video-extrait { display: block; margin-top: .15rem; color: #9a3d15; }
