/* Mise en page des sections (mobile d'abord). */

/* ---------- Repère de contenu manquant (développement uniquement) ---------- */
.a-remplir {
  display: inline-block;
  font-family: var(--font-texte); font-size: .75rem; font-weight: 700; line-height: 1.3;
  text-transform: none; letter-spacing: 0;
  color: var(--nuit); background: #FDE047;
  padding: 2px 8px; border-radius: 6px;
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 22, 38, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bordure);
}
.entete-barre {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 68px;
}
.entete-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.entete-logo img { width: 128px; height: auto; }
.entete-nav { order: 3; }
.bouton-entete {
  order: 2;
  min-height: 44px; padding: 0 14px;
  font-family: var(--font-texte); font-weight: 700; font-size: .875rem;
  text-transform: none; letter-spacing: 0;
}
.bouton-menu {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--texte);
  border: 1px solid var(--bordure-forte); border-radius: var(--r-full);
  cursor: pointer;
}
.bouton-menu-icone,
.bouton-menu-icone::before,
.bouton-menu-icone::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.bouton-menu-icone { position: relative; }
.bouton-menu-icone::before, .bouton-menu-icone::after { content: ""; position: absolute; left: 0; }
.bouton-menu-icone::before { top: -6px; }
.bouton-menu-icone::after { top: 6px; }
.bouton-menu[aria-expanded="true"] .bouton-menu-icone { background: transparent; }
.bouton-menu[aria-expanded="true"] .bouton-menu-icone::before { transform: translateY(6px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] .bouton-menu-icone::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  list-style: none; margin: 0; padding: var(--s-2) var(--s-4) var(--s-4);
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--nuit-2);
  border-bottom: 1px solid var(--bordure);
}
.menu { display: none; }
.menu.ouvert { display: block; }
.menu a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--texte); text-decoration: none; font-weight: 500; font-size: 1rem;
  border-bottom: 1px solid var(--bordure);
}
.menu li:last-child a { border-bottom: 0; }
.menu a:hover { color: var(--orange); }

@media (max-width: 359px) {
  .bouton-entete { display: none; }
}
@media (min-width: 768px) {
  .entete-logo img { width: 160px; }
  .entete-nav { order: 1; }
  .bouton-entete { order: 2; padding: 0 18px; font-size: .9375rem; }
  .bouton-menu { display: none; }
  .menu, .menu.ouvert {
    display: flex; gap: var(--s-6); position: static; padding: 0; background: none; border: 0;
  }
  .menu a { min-height: 44px; border: 0; font-size: .9375rem; }
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-grille {
  display: grid; gap: var(--s-8);
  padding-top: var(--s-10);
}
.hero-texte { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.hero-sous-titre { max-width: 34em; }
.ecouter-sur { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.ecouter-sur .pastille { background: rgba(24, 34, 56, .8); }
.pastille-plateforme { gap: var(--s-2); padding: 0 var(--s-4); }
.pastille-plateforme .logo { width: 20px; height: 20px; flex: none; }
.pastille .note { display: inline-flex; align-items: center; gap: 4px; color: var(--texte-2); font-size: .8125rem; }
.pastille .etoile { color: #FFB547; }

.portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.portrait::before {
  content: "";
  position: absolute; left: 50%; bottom: 8%;
  width: 88%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: var(--degrade);
}
.portrait img { position: relative; width: 100%; }
.portrait-hero { width: min(78vw, 360px); margin: 0 auto; }

@media (min-width: 1024px) {
  .hero-grille {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end; gap: var(--s-10);
    padding-top: var(--s-18);
  }
  .hero-texte { padding-bottom: var(--s-18); }
  .portrait-hero { width: 100%; max-width: 440px; }
}

/* ---------- Bandeau chiffres ---------- */
.bandeau-chiffres {
  background: var(--nuit-2);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}
.chiffres {
  list-style: none; margin-top: 0; margin-bottom: 0;
  padding-top: var(--s-8); padding-bottom: var(--s-8);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6);
}
.chiffre { display: flex; flex-direction: column; gap: var(--s-1); }
.chiffre-valeur {
  font-family: var(--font-titre); font-weight: 900; line-height: 1.05;
  font-size: 1.875rem; align-self: flex-start;
}
@media (min-width: 768px) {
  .chiffres { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .chiffre-valeur { font-size: 2.25rem; }
}

/* ---------- Épisodes ---------- */
.grille-episodes { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grille-episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grille-episodes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte-episode {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--r-md);
  overflow: hidden; color: var(--texte); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.carte-episode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--relief); }
.carte-episode img.couverture-carree { aspect-ratio: 1; }
a.carte-episode:hover { color: var(--texte); border-color: var(--bordure-forte); transform: translateY(-2px); }
.carte-episode-texte { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.carte-episode-titre { font-family: var(--font-texte); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.themes { margin-top: var(--s-10); display: flex; flex-direction: column; gap: var(--s-3); }
.themes-titre { font-size: var(--fs-label); font-weight: 600; }

/* ---------- Formulaire Club ---------- */
.bloc-club {
  border-radius: var(--r-lg); padding: 2px;
  background: var(--degrade-bordure);
}
.bloc-club-interieur {
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .3) 0%, transparent 50%),
    var(--nuit-2);
  padding: var(--s-8) var(--s-4);
  display: grid; gap: var(--s-8);
}
.club-texte { display: flex; flex-direction: column; gap: var(--s-4); }
.formulaire-club { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.champs-ligne { display: grid; gap: var(--s-4); }
.choix-profil { border: 0; margin: 0; padding: 0; min-width: 0; }
.choix-profil legend { padding: 0; margin-bottom: var(--s-2); }
.options-profil { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.option {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3);
  background: var(--surface); border: 1px solid var(--bordure-forte); border-radius: var(--r-full);
  font-size: .875rem; cursor: pointer;
}
.option input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.option:has(input:checked) { border-color: var(--orange); background: var(--relief); }
.option:has(input:focus-visible) { box-shadow: var(--focus); }
.case {
  display: flex; gap: var(--s-3); align-items: flex-start;
  font-size: .875rem; line-height: 1.45; cursor: pointer;
  padding: var(--s-1) 0;
}
.case input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--orange); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bouton-envoi { width: 100%; }
.message-formulaire { font-size: .9375rem; font-weight: 600; color: #FFB199; }
.message-formulaire:empty { display: none; }

@media (min-width: 768px) {
  .bloc-club-interieur { padding: var(--s-10); }
  .champs-ligne { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
@media (min-width: 1024px) {
  .bloc-club-interieur { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: var(--s-10); }
}

/* ---------- Pour aller plus loin ---------- */
.grille-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.carte-ressource { display: flex; flex-direction: column; gap: var(--s-3); }
.carte-etiquette {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2);
}
.carte-texte { font-size: .9375rem; line-height: 1.5; color: var(--texte-2); flex-grow: 1; }
.carte-halo {
  background: radial-gradient(circle at 100% 100%, rgba(238, 90, 54, .4) 0%, transparent 60%), var(--surface);
}

/* ---------- Au micro ---------- */
.bloc-vanessa {
  border-radius: var(--r-lg); border: 1px solid var(--bordure);
  padding: var(--s-8) var(--s-4) 0;
  display: grid; gap: var(--s-6); overflow: hidden;
}
.portrait-vanessa { width: min(70vw, 300px); margin: 0 auto; order: 2; }
.vanessa-texte { display: flex; flex-direction: column; gap: var(--s-4); order: 1; }
.manifeste {
  font-family: var(--font-titre); font-weight: 800; font-size: 1.25rem; line-height: 1.3;
  border-left: 3px solid var(--orange); padding-left: var(--s-4);
}
@media (min-width: 768px) {
  .bloc-vanessa {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center;
    padding: var(--s-10) var(--s-10) 0; gap: var(--s-10);
  }
  .portrait-vanessa { order: 0; width: 100%; align-self: end; }
  .vanessa-texte { order: 0; padding-bottom: var(--s-10); }
}

/* ---------- Candidature ---------- */
.section-candidature { padding-top: 0; }
.bloc-candidature {
  display: flex; flex-direction: column; gap: var(--s-6); align-items: flex-start;
  border-top: 1px solid var(--bordure); padding-top: var(--s-14);
}
.bloc-candidature > div { display: flex; flex-direction: column; gap: var(--s-3); max-width: 44em; }
@media (min-width: 1024px) {
  .bloc-candidature { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit-2); border-top: 1px solid var(--bordure); }
.pied-grille {
  display: grid; gap: var(--s-8);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: var(--s-14); padding-bottom: var(--s-10);
}
.pied-marque { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--s-3); }
.pied-marque img { width: 140px; }
.pied-titre {
  font-family: var(--font-texte); font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); margin-bottom: var(--s-2);
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--texte); text-decoration: none; font-size: .9375rem;
}
.pied li a:hover { color: var(--orange); }
.pied-bas { border-top: 1px solid var(--bordure); padding-top: var(--s-6); padding-bottom: var(--s-8); }
.pied-description { font-size: .875rem; line-height: 1.6; color: var(--texte-2); max-width: 36em; }
.pied-reseaux { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2) !important; }
.pied-reseaux .pastille { font-size: .875rem; }
.pied-colonne li a { line-height: 1.35; padding: var(--s-2) 0; min-height: 44px; }
.pied-colonne[aria-labelledby="pied-episodes"] { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .pied-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-marque { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .pied-grille { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--s-8); }
  .pied-marque, .pied-colonne[aria-labelledby="pied-episodes"] { grid-column: auto; }
}

/* ---------- Pages simples (404, bienvenue) ---------- */
.page-simple { min-height: 70vh; display: flex; align-items: center; }
.page-simple-contenu {
  display: flex; flex-direction: column; gap: var(--s-6); align-items: flex-start;
  padding-top: var(--s-18); padding-bottom: var(--s-18);
}
.page-simple-contenu .titre-display { max-width: 16em; }

/* ---------- Bienvenue ---------- */
.bienvenue .titre-display { max-width: 14em; }
.bienvenue .texte-large { max-width: 34em; }
.bouton-geant { min-height: 60px; padding: 0 var(--s-8); font-size: 1.0625rem; }
@media (max-width: 479px) { .bouton-geant { width: 100%; } }
.grille-un { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.carte-episode-large { flex-direction: row; align-items: center; }
.carte-episode-large img { width: 120px; flex: none; }
@media (min-width: 640px) { .carte-episode-large img { width: 180px; } }
.grille-un:empty { display: none; }
.choix-profil[data-invalide] .option { border-color: #FF8A65; }

/* ---------- Pages de texte (légal) ---------- */
.page-texte { padding-top: var(--s-14); padding-bottom: var(--s-18); }
.conteneur-texte { max-width: 760px; }
.conteneur-texte .titre-h2 { margin: var(--s-2) 0 var(--s-6); }
.conteneur-texte h2:not(.titre-h2) {
  font-family: var(--font-titre); font-weight: 900; text-transform: uppercase;
  font-size: 1.125rem; line-height: 1.25; margin: var(--s-10) 0 var(--s-3);
}
.conteneur-texte p, .conteneur-texte li { color: var(--texte-2); }
.conteneur-texte p + p { margin-top: var(--s-3); }
.conteneur-texte strong { color: var(--texte); font-weight: 600; }
.conteneur-texte ul { padding-left: 1.25em; margin: var(--s-3) 0 0; }
.conteneur-texte li + li { margin-top: var(--s-2); }

/* ---------- Pages d'épisodes ---------- */
.page-episodes { padding-top: var(--s-6); padding-bottom: var(--s-18); }
.page-episodes-tete { display: flex; flex-direction: column; gap: var(--s-4); margin: var(--s-6) 0 var(--s-10); }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-legende); color: var(--texte-2); }
.fil-ariane li + li::before { content: "›"; margin-right: var(--s-2); color: var(--bordure-forte); }
.fil-ariane a { color: var(--texte-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.fil-ariane a:hover { color: var(--orange); }
.fil-ariane li[aria-current] { color: var(--texte); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 7px; }
.pastilles { list-style: none; margin: 0; padding: 0; }
.pastille-active { border-color: var(--orange); background: var(--relief); }
.liste-episodes { list-style: none; margin: 0; padding: 0; }
.liste-episodes > li { display: flex; }
.liste-episodes > li > .carte-episode { flex: 1; }
.saison + .saison { margin-top: var(--s-14); }
.titre-saison {
  font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; font-size: 1.375rem;
  margin-bottom: var(--s-6); display: flex; align-items: baseline; gap: var(--s-3);
}
.titre-saison .legende { font-family: var(--font-texte); font-weight: 400; text-transform: none; }

.episode-titre { max-width: 26em; }
.episode-tete { display: grid; gap: var(--s-6); margin-top: var(--s-2); }
.episode-couverture { width: min(70vw, 320px); border-radius: var(--r-md); border: 1px solid var(--bordure); }
.episode-ecoute { display: flex; flex-direction: column; gap: var(--s-4); justify-content: center; min-width: 0; }
.lecteur { width: 100%; max-width: 560px; height: 48px; border-radius: var(--r-full); }
@media (min-width: 768px) {
  .episode-tete { grid-template-columns: 320px minmax(0, 1fr); align-items: center; gap: var(--s-10); }
  .episode-couverture { width: 100%; }
}
.episode-themes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.episode-bloc { max-width: 760px; margin-top: var(--s-10); }
.episode-intertitre {
  font-family: var(--font-titre); font-weight: 900; text-transform: uppercase;
  font-size: 1.125rem; line-height: 1.25; margin-bottom: var(--s-4);
}
.liste-points { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s-2); color: var(--texte-2); }
.liste-points li::marker { color: var(--orange); }
.liste-invites { list-style: none; margin: 0; padding: 0; color: var(--texte-2); display: flex; flex-direction: column; gap: var(--s-2); }
.liste-invites strong { color: var(--texte); font-weight: 600; }
.chapitres { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bordure); }
.chapitres li { border-bottom: 1px solid var(--bordure); }
.chapitre {
  display: flex; gap: var(--s-4); align-items: baseline; width: 100%; min-height: 44px; padding: var(--s-2) 0;
  background: none; border: 0; color: var(--texte); font: inherit; text-align: left; cursor: pointer;
}
.chapitre:hover { color: var(--orange); }
.chapitre-temps { font-variant-numeric: tabular-nums; color: var(--orange); font-weight: 600; min-width: 4.5ch; }
.episode-club {
  margin-top: var(--s-14); max-width: 760px;
  display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-8); border-radius: var(--r-lg);
  background: radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .3) 0%, transparent 55%), var(--nuit-2);
  border: 1px solid var(--bordure);
}
.episode-club .bouton { margin-top: var(--s-2); }
.episode-nav { display: grid; gap: var(--s-4); margin-top: var(--s-14); }
.episode-nav-lien {
  display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-6);
  border: 1px solid var(--bordure); border-radius: var(--r-md); background: var(--surface);
  color: var(--texte); text-decoration: none; font-weight: 600; line-height: 1.4;
}
.episode-nav-lien:hover { color: var(--texte); border-color: var(--bordure-forte); }
.episode-nav-suivant { text-align: right; }
@media (min-width: 768px) { .episode-nav { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .page-episodes .liste-episodes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Bandeau chiffres : 5 preuves, espacement égal ---------- */
.chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chiffre-valeur { white-space: nowrap; }
@media (min-width: 768px) { .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .chiffres { display: flex; justify-content: space-between; gap: var(--s-6); }
  .chiffre-valeur { font-size: clamp(1.75rem, 2.2vw, 2.125rem); }
}

/* ---------- Avantages du Club ---------- */
.avantages-club { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.avantages-club li { position: relative; padding-left: 28px; color: var(--texte); line-height: 1.45; }
.avantages-club li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--degrade);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Réseaux du pied de page : logos ---------- */
.pastille-reseau { width: 44px; height: 44px; padding: 0; justify-content: center; }
.pastille-reseau .logo { width: 20px; height: 20px; }
.pastille-reseau:hover { color: var(--orange); }

/* ==========================================================================
   Animations (validées par Vanessa le 28/10/2026). Toutes coupées si
   l'appareil demande moins d'animations (prefers-reduced-motion).
   ========================================================================== */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tourne { to { --angle: 360deg; } }

/* 1. Bordure dégradée qui tourne autour des blocs phares */
.cadre-tourne {
  border-radius: var(--r-lg); padding: 2px;
  background: conic-gradient(from var(--angle), #FFB547, #F97316, #EE5A36, #7C3AED, #FFB547);
  animation: tourne 8s linear infinite;
}
.cadre-tourne-enveloppe > * { border: 0; border-radius: 22px; }
.cadre-tourne-enveloppe > .bloc-vanessa { background-color: var(--nuit); }
.episode-club-cadre { margin-top: var(--s-14); max-width: 760px; }
.episode-club-cadre .episode-club { margin-top: 0; max-width: none; }

/* 2. Cartes qui s'illuminent au survol */
.carte-episode, .carte-ressource { position: relative; transition: transform .25s ease, border-color .25s ease; }
.carte-episode::after, .carte-ressource::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px;
  background: var(--degrade-bordure); opacity: 0; transition: opacity .25s ease; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.carte-episode img { transition: transform .45s ease; }
a.carte-episode:hover, .carte-ressource:hover { transform: translateY(-4px); }
a.carte-episode:hover::after, a.carte-episode:focus-visible::after, .carte-ressource:hover::after { opacity: 1; }
a.carte-episode:hover img { transform: scale(1.04); }

/* 4. Égaliseur audio dans « Écouter le podcast » */
.egaliseur { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.egaliseur i { width: 3px; height: 40%; background: currentColor; border-radius: 2px; animation: barre 1s ease-in-out infinite; }
.egaliseur i:nth-child(2) { animation-delay: -.3s; }
.egaliseur i:nth-child(3) { animation-delay: -.6s; }
.egaliseur i:nth-child(4) { animation-delay: -.15s; }
@keyframes barre { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* 5. Disque dégradé qui tourne et respire derrière le portrait */
.portrait::before {
  background: conic-gradient(from var(--angle), #FFB547, #F97316, #EE5A36, #F97316, #FFB547);
  animation: tourne 16s linear infinite, respire 4.5s ease-in-out infinite;
}
@keyframes respire { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } 50% { box-shadow: 0 0 70px 8px rgba(249, 115, 22, .32); } }

/* 6. Apparition au défilement (classe posée par le JS : sans JS, tout reste visible) */
.js-anime .apparait { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--delai, 0s), transform .6s ease var(--delai, 0s); }
.js-anime .apparait.visible { opacity: 1; transform: none; }

/* 7. Bandeau défilant des thèmes sous le hero */
.defilant {
  overflow: hidden; padding: var(--s-1) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.defilant-piste { display: flex; gap: var(--s-3); width: max-content; animation: defile 60s linear infinite; }
.defilant:hover .defilant-piste, .defilant:focus-within .defilant-piste { animation-play-state: paused; }
.defilant .pastille { white-space: nowrap; }
@keyframes defile { to { transform: translateX(calc(-50% - var(--s-3) / 2)); } }

/* 8. Halos de fond qui dérivent lentement */
.fond-halos { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); }
.fond-halos::before, .fond-halos::after { content: ""; position: absolute; z-index: -1; width: 80vmax; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.fond-halos::before { background: radial-gradient(circle, var(--halo-prune) 0%, transparent 60%); top: -40vmax; left: -35vmax; animation: derive1 18s ease-in-out infinite alternate; }
.fond-halos::after { background: radial-gradient(circle, var(--halo-orange) 0%, transparent 60%); bottom: -45vmax; right: -35vmax; animation: derive2 22s ease-in-out infinite alternate; }
@keyframes derive1 { to { transform: translate(12vmax, 8vmax); } }
@keyframes derive2 { to { transform: translate(-12vmax, -6vmax); } }

@media (prefers-reduced-motion: reduce) {
  .cadre-tourne, .egaliseur i, .portrait::before, .defilant-piste, .fond-halos::before, .fond-halos::after { animation: none !important; }
  .js-anime .apparait { opacity: 1; transform: none; transition: none; }
  .carte-episode, .carte-ressource, .carte-episode img { transition: none; }
}
