/* Site vitrine Ito Studio — mise en page.
 *
 * RÈGLE UNIQUE : aucune couleur n'est écrite ici. Chaque teinte vient de
 * `tokens.css`, lui-même généré depuis `remotion/src/lib/designTokens.ts`.
 * `site/tools/build_site.py` le vérifie et sort en erreur si un hex apparaît —
 * même doctrine que `pipeline/check_tokens.py` sur les scènes sur mesure.
 *
 * Les longueurs, elles, sont libres : une page web n'a pas de cadre à
 * respecter. Les crans de `--ito-space-*` servent partout où un rythme
 * vertical est en jeu.
 */

/* ------------------------------------------------------------------------ */
/* 1. Assises                                                               */
/* ------------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Le titre visé ne doit pas se coller sous l'entête collante. */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ito-background-cream);
  color: var(--ito-ink-navy);
  font-family: var(--ito-font-body);
  font-size: var(--ito-text-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;

  /* La trame de points de la charte (PAPER_TEXTURES), au pas de la planche.
     Elle donne au fond crème sa matière sans jamais devenir un motif. */
  background-image: radial-gradient(
    var(--ito-paper-dot) var(--ito-paper-dot),
    var(--ito-border-sand) var(--ito-paper-dot),
    transparent 0
  );
  background-size: var(--ito-paper-cell) var(--ito-paper-cell);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--ito-font-title);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: var(--ito-outline-bold) solid var(--ito-pop-cyan);
  outline-offset: 3px;
  border-radius: var(--ito-radius-sm);
}

.shell {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 100;
  transform: translate(-50%, -120%);
  padding: var(--ito-space-2xs) var(--ito-space-sm);
  background: var(--ito-pop-orange);
  color: var(--ito-surface-card);
  font-family: var(--ito-font-label);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--ito-radius-md) var(--ito-radius-md);
  transition: transform var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------------ */
/* 2. Éléments de marque partagés                                           */
/* ------------------------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--ito-space-3xs);
  margin-bottom: var(--ito-space-xs);
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ito-pop-orange);
}

.eyebrow--muted {
  color: var(--ito-slate-muted);
}

.eyebrow--light {
  color: var(--ito-pop-yellow);
}

.dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: var(--ito-radius-pill);
  background: var(--ito-pop-orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ito-space-3xs);
  padding: var(--ito-space-2xs) var(--ito-space-sm);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-pill);
  box-shadow: var(--ito-shadow-hard);
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--ito-motion-pop-in) var(--ito-ease-pop-in),
    box-shadow var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.btn:hover {
  /* Le bouton s'enfonce sur son ombre : le mouvement du papier posé, pas un rebond. */
  transform: translate(var(--ito-shadow-offset), var(--ito-shadow-offset));
  box-shadow: 0 0 0 var(--ito-outline-ink);
}

.btn--primary {
  background: var(--ito-pop-orange);
  color: var(--ito-surface-card);
}

.btn--ghost {
  background: var(--ito-surface-card);
  color: var(--ito-ink-navy);
}

.btn--compact {
  padding: var(--ito-space-3xs) var(--ito-space-xs);
  font-size: var(--ito-text-label);
  /* Dans l'entête, le bouton est le dernier élément d'une rangée serrée : sur
     un téléphone il se coupait en deux lignes. */
  white-space: nowrap;
}

.btn--block {
  width: 100%;
}

.chip {
  display: inline-block;
  padding: 0.15em var(--ito-space-2xs);
  border: var(--ito-outline-hairline) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-pill);
  background: var(--ito-background-sage);
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* Une couleur par thème : c'est un repère de lecture, pas une décoration. */
.chip--pourquoi {
  background: var(--ito-accent-sun);
}
.chip--espace {
  background: var(--ito-accent-sky);
}
.chip--animaux {
  background: var(--ito-positive-sage);
}
.chip--corps_humain {
  background: var(--ito-accent-terracotta);
}
.chip--soon {
  background: var(--ito-pop-yellow);
}

.section {
  padding-block: clamp(var(--ito-space-xl), 9vw, var(--ito-space-2xl));
}

.section--sage {
  background: var(--ito-background-sage);
}

.section--cream {
  background: var(--ito-background-cream);
}

.section--ink {
  background: var(--ito-ink-navy);
  color: var(--ito-background-cream);
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--ito-space-xl);
}

.section__title {
  font-size: var(--ito-text-h1);
}

.section__lead {
  margin-top: var(--ito-space-sm);
  color: var(--ito-slate-muted);
}

.section__head--light .section__lead {
  color: var(--ito-background-sage);
}

/* ------------------------------------------------------------------------ */
/* 3. Entête                                                                */
/* ------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ito-background-cream);
  border-bottom: var(--ito-outline-hairline) solid var(--ito-border-sand);
  transition: box-shadow var(--ito-motion-fade-in) var(--ito-ease-fade-in);
}

.site-header.is-stuck {
  box-shadow: 0 var(--ito-outline-standard) 0 var(--ito-border-sand);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--ito-space-sm);
  padding-block: var(--ito-space-2xs);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ito-space-2xs);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__logo {
  width: 3.5rem;
  height: auto;
}

.brand__text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text strong {
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-h2);
}

.brand__text span {
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-tag);
  color: var(--ito-slate-muted);
}

.site-nav {
  display: flex;
  gap: var(--ito-space-sm);
  margin-left: auto;
  /* Sur petit écran la barre défile plutôt que de se replier derrière un
     bouton : quatre liens ne justifient pas un menu qui dépend de JavaScript. */
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  padding-block: var(--ito-space-3xs);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--ito-outline-standard);
  border-radius: var(--ito-radius-pill);
  background: var(--ito-pop-orange);
  transform: scaleX(0);
  transition: transform var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

@media (min-width: 30rem) {
  .brand__text {
    display: flex;
  }
}

/* ------------------------------------------------------------------------ */
/* 4. Héros                                                                 */
/* ------------------------------------------------------------------------ */

.hero {
  padding-top: clamp(var(--ito-space-lg), 6vw, var(--ito-space-2xl));
  padding-bottom: var(--ito-space-xl);
}

.hero__inner {
  display: grid;
  gap: var(--ito-space-lg);
  align-items: center;
}

.hero__title {
  font-size: var(--ito-text-display);
  font-weight: 700;
}

.hero__title-accent {
  display: block;
  color: var(--ito-pop-orange);
  /* Le trait sous le mot : le même geste de feutre que les cernes du système. */
  text-decoration: underline;
  text-decoration-color: var(--ito-pop-yellow);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.1em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--ito-space-sm);
  font-size: var(--ito-text-h2);
  font-family: var(--ito-font-body);
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ito-space-xs);
  margin-top: var(--ito-space-lg);
}

/* Les plateformes sont des destinations en elles-mêmes : deux CTA lisibles,
   avec une hiérarchie et une cible tactile qui restent claires sur mobile. */
.social-cta {
  min-inline-size: min(100%, 15rem);
  justify-content: flex-start;
  padding: var(--ito-space-xs) var(--ito-space-sm);
  text-align: left;
}

.social-cta__icon {
  flex: 0 0 auto;
  width: 1.6em;
  height: 1.6em;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-cta--instagram .social-cta__icon {
  color: var(--ito-surface-card);
  stroke: var(--ito-surface-card);
}

.social-cta--instagram .social-cta__icon [fill="currentColor"] {
  fill: var(--ito-surface-card);
}

.social-cta--youtube .social-cta__icon {
  color: var(--ito-pop-orange);
  stroke: var(--ito-pop-orange);
}

.social-cta--youtube .social-cta__icon [fill="currentColor"] {
  fill: var(--ito-pop-orange);
}

.social-cta__copy {
  display: grid;
  gap: 0.08em;
}

.social-cta__eyebrow {
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-tag);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-cta__arrow {
  margin-left: auto;
  font-size: var(--ito-text-h2);
  line-height: 1;
  transition: transform var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.social-cta:hover .social-cta__arrow {
  transform: translateX(var(--ito-space-3xs));
}

.hero__trust {
  max-width: 30rem;
  margin-top: var(--ito-space-sm);
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

.hero__trust span {
  display: block;
}

/* Mia et Léo sont deux DÉCOUPES transparentes, posées l'une devant l'autre sur
   la clairière — pas une planche de personnages recadrée. La scène est donc
   composée ici, aux proportions de présence de la charte (CHARACTER_PRESENCE :
   l'hôte qui présente tient la hauteur, celui qui réagit reste plus petit). */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(34rem, 100%);
  margin-inline: auto;
}

.hero__halo {
  position: absolute;
  inset: 6% 0 8%;
  border-radius: 42% 58% 46% 54% / 54% 44% 56% 46%;
  background: var(--ito-background-sage);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
}

.hero__mia {
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: auto;
  height: 78%;
}

/* Léo se tient DANS la clairière, un peu devant Mia — pas posé sur son bord.
   Il réagit, elle présente : c'est lui le plus petit des deux. */
.hero__leo {
  position: absolute;
  left: 10%;
  bottom: 9%;
  width: 40%;
  height: auto;
}

.hero__bubble {
  position: absolute;
  max-width: 12rem;
  padding: var(--ito-space-2xs) var(--ito-space-xs);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-lg);
  box-shadow: var(--ito-shadow-hard);
  background: var(--ito-surface-card);
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-label);
  line-height: 1.3;
}

.hero__bubble--mia {
  top: 0;
  left: 0;
  color: var(--ito-voice-mia);
}

.hero__bubble--leo {
  bottom: 4%;
  right: 0;
  color: var(--ito-voice-leo);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7rem, 100%), 1fr));
  gap: var(--ito-space-xs);
  margin-top: var(--ito-space-2xl);
  padding: var(--ito-space-md);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-lg);
  box-shadow: var(--ito-shadow-hard);
  background: var(--ito-surface-card);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--ito-space-3xs);
  text-align: center;
}

.stat__value {
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-h1);
  font-weight: 700;
  line-height: 1;
  color: var(--ito-pop-orange);
}

.stat__label {
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

@media (min-width: 60rem) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--ito-space-2xl);
  }
}

/* ------------------------------------------------------------------------ */
/* 5. Promesse                                                              */
/* ------------------------------------------------------------------------ */

.pillars {
  display: grid;
  gap: var(--ito-space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}

.pillar {
  padding: var(--ito-space-md);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-lg);
  box-shadow: var(--ito-shadow-hard);
  background: var(--ito-surface-card);
}

.pillar__mark {
  display: inline-block;
  margin-bottom: var(--ito-space-2xs);
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-h2);
  color: var(--ito-pop-cyan);
}

.pillar h3 {
  font-size: var(--ito-text-h2);
  margin-bottom: var(--ito-space-2xs);
}

.pillar p {
  color: var(--ito-slate-muted);
}

.anti-promise {
  margin-top: var(--ito-space-lg);
  padding: var(--ito-space-sm) var(--ito-space-md);
  border-left: var(--ito-outline-bold) solid var(--ito-alert-coral);
  border-radius: 0 var(--ito-radius-md) var(--ito-radius-md) 0;
  background: var(--ito-surface-card);
  font-size: var(--ito-text-label);
}

/* ------------------------------------------------------------------------ */
/* 6. Le chemin d'un épisode                                                */
/* ------------------------------------------------------------------------ */

.path {
  display: grid;
  gap: var(--ito-space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  counter-reset: etape;
}

.path__step {
  position: relative;
  padding-top: var(--ito-space-sm);
  border-top: var(--ito-outline-standard) solid var(--ito-border-sand);
}

.path__step::before {
  content: "";
  position: absolute;
  top: calc(var(--ito-outline-standard) * -1);
  left: 0;
  width: 2.5rem;
  height: var(--ito-outline-standard);
  background: var(--ito-pop-orange);
}

.path__num {
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
  color: var(--ito-pop-orange);
}

.path__step h3 {
  margin-block: var(--ito-space-3xs) var(--ito-space-2xs);
  font-size: var(--ito-text-h2);
}

.path__step p {
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

/* ------------------------------------------------------------------------ */
/* 7. Épisodes                                                              */
/* ------------------------------------------------------------------------ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ito-space-2xs);
  margin-bottom: var(--ito-space-sm);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: var(--ito-space-3xs);
  padding: var(--ito-space-3xs) var(--ito-space-xs);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-pill);
  background: var(--ito-surface-card);
  color: inherit;
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.filter:hover {
  background: var(--ito-background-sage);
}

.filter.is-active {
  background: var(--ito-ink-navy);
  color: var(--ito-background-cream);
}

.filter__count {
  font-size: var(--ito-text-tag);
  opacity: 0.75;
}

.filters__status {
  margin-bottom: var(--ito-space-md);
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

.ep-grid {
  display: grid;
  gap: var(--ito-space-md);
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}

.ep-card {
  display: flex;
  flex-direction: column;
  gap: var(--ito-space-2xs);
  padding: var(--ito-space-md);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-lg);
  box-shadow: var(--ito-shadow-hard);
  background: var(--ito-surface-card);
  transition:
    transform var(--ito-motion-pop-in) var(--ito-ease-pop-in),
    box-shadow var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.ep-card:hover {
  transform: translate(calc(var(--ito-shadow-offset) * -1), calc(var(--ito-shadow-offset) * -1));
  box-shadow: calc(var(--ito-shadow-offset) * 2) calc(var(--ito-shadow-offset) * 2) 0
    var(--ito-outline-ink);
}

.ep-card[hidden] {
  display: none;
}

.ep-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ito-space-2xs);
}

.ep-card__num {
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-h2);
  color: var(--ito-pop-cyan);
}

.ep-card__title {
  font-size: var(--ito-text-h2);
}

.ep-card__hook {
  flex-grow: 1;
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

.ep-card__formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ito-space-3xs);
}

.ep-card__format {
  padding: 0.1em var(--ito-space-3xs);
  border: var(--ito-outline-hairline) solid var(--ito-border-sand);
  border-radius: var(--ito-radius-sm);
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-tag);
  color: var(--ito-slate-muted);
}

.ep-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ito-space-2xs);
  margin-top: var(--ito-space-2xs);
  padding-top: var(--ito-space-2xs);
  border-top: var(--ito-outline-hairline) solid var(--ito-border-sand);
}

.ep-card__duration {
  display: inline-flex;
  align-items: center;
  gap: var(--ito-space-3xs);
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

.ep-card__duration svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ep-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--ito-space-3xs);
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-label);
  font-weight: 600;
  color: var(--ito-pop-orange);
  text-decoration: none;
}

.ep-card__arrow {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--ito-motion-pop-in) var(--ito-ease-pop-in);
}

.ep-card__cta:hover .ep-card__arrow {
  transform: translateX(0.2em);
}

/* Pas encore publié : on le dit, plutôt que de renvoyer vers un lien mort. */
.ep-card__cta--soon {
  color: var(--ito-slate-muted);
  font-family: var(--ito-font-label);
  cursor: default;
}

.ep-grid__empty {
  margin-top: var(--ito-space-md);
  color: var(--ito-slate-muted);
}

/* ------------------------------------------------------------------------ */
/* 8. Les voix                                                              */
/* ------------------------------------------------------------------------ */

.hosts {
  display: grid;
  gap: var(--ito-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}

.host {
  display: flex;
  flex-direction: column;
  gap: var(--ito-space-sm);
  padding: var(--ito-space-md);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-lg);
  box-shadow: var(--ito-shadow-hard);
  background: var(--ito-surface-card);
}

/* Mia est une verticale (2:3), Léo une horizontale (3:2). À largeur égale, leurs
   textes ne démarreraient pas à la même hauteur et les deux cartes perdraient
   leur ligne commune. C'est donc la HAUTEUR de la vignette qui est fixée. */
.host__portrait {
  align-self: center;
  width: auto;
  max-width: 100%;
  height: clamp(11rem, 22vw, 16rem);
  object-fit: contain;
}

.host__role {
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.host__name {
  margin-block: var(--ito-space-3xs) var(--ito-space-2xs);
  font-size: var(--ito-text-h1);
}

.host__body p {
  color: var(--ito-slate-muted);
}

.host__voice {
  display: flex;
  align-items: center;
  gap: var(--ito-space-3xs);
  margin-top: var(--ito-space-sm);
  font-size: var(--ito-text-label);
}

.host__swatch {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  border: var(--ito-outline-hairline) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-pill);
}

/* La couleur d'un hôte n'est pas décorative : c'est celle qui l'identifie dans
   les sous-titres karaoké des épisodes (SPEAKER_COLORS). */
.host--mia .host__role,
.host--mia .host__name {
  color: var(--ito-voice-mia);
}

.host--mia .host__swatch {
  background: var(--ito-voice-mia);
}

.host--leo .host__role,
.host--leo .host__name {
  color: var(--ito-voice-leo);
}

.host--leo .host__swatch {
  background: var(--ito-voice-leo);
}

/* ------------------------------------------------------------------------ */
/* 9. À venir                                                               */
/* ------------------------------------------------------------------------ */

.section--ink .section__title {
  color: var(--ito-background-cream);
}

.teasers {
  display: grid;
  gap: var(--ito-space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.teaser {
  display: flex;
  flex-direction: column;
  gap: var(--ito-space-2xs);
  padding: var(--ito-space-md);
  border: var(--ito-outline-standard) solid var(--ito-pop-yellow);
  border-radius: var(--ito-radius-lg);
  background: var(--ito-ink-navy);
}

.teaser__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ito-space-2xs);
}

.teaser__num {
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-h2);
  color: var(--ito-pop-yellow);
}

.teaser__title {
  font-size: var(--ito-text-h2);
  color: var(--ito-background-cream);
}

/* Le titre du prochain épisode existe dans le HTML mais reste illisible : un
   teasing honnête cache le texte, il n'en invente pas un faux. */
.teaser__masked {
  filter: blur(0.32em);
  user-select: none;
}

.teaser p {
  flex-grow: 1;
  font-size: var(--ito-text-label);
  color: var(--ito-background-sage);
}

.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ito-space-3xs);
  margin-top: var(--ito-space-2xs);
}

.progress__step {
  padding-top: var(--ito-space-3xs);
  border-top: var(--ito-outline-bold) solid var(--ito-slate-muted);
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-tag);
  color: var(--ito-slate-muted);
}

.progress__step.is-done {
  border-top-color: var(--ito-positive-sage);
  color: var(--ito-background-cream);
}

/* ------------------------------------------------------------------------ */
/* 10. Newsletter                                                           */
/* ------------------------------------------------------------------------ */

.news {
  display: grid;
  gap: var(--ito-space-lg);
  align-items: start;
  padding: clamp(var(--ito-space-md), 5vw, var(--ito-space-xl));
  border: var(--ito-outline-bold) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-lg);
  box-shadow: var(--ito-shadow-hard);
  background: var(--ito-surface-card);
}

.news__list {
  display: grid;
  gap: var(--ito-space-2xs);
  margin-top: var(--ito-space-sm);
}

.news__list li {
  position: relative;
  padding-left: var(--ito-space-sm);
}

.news__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  border-radius: var(--ito-radius-pill);
  background: var(--ito-pop-yellow);
  border: var(--ito-outline-hairline) solid var(--ito-outline-ink);
}

.news__promise {
  margin-top: var(--ito-space-sm);
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

.news__form {
  display: grid;
  gap: var(--ito-space-sm);
  padding: var(--ito-space-md);
  border-radius: var(--ito-radius-md);
  background: var(--ito-background-sage);
}

.field {
  display: grid;
  gap: var(--ito-space-3xs);
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--ito-space-2xs);
}

.field__label {
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  font-weight: 600;
}

.field__label--inline {
  font-weight: 500;
  line-height: 1.45;
}

.field__input {
  width: 100%;
  padding: var(--ito-space-2xs) var(--ito-space-xs);
  border: var(--ito-outline-standard) solid var(--ito-outline-ink);
  border-radius: var(--ito-radius-md);
  background: var(--ito-surface-card);
  color: inherit;
  font-family: var(--ito-font-body);
  font-size: var(--ito-text-body);
}

.field__input::placeholder {
  color: var(--ito-slate-muted);
}

.field__input[aria-invalid="true"] {
  border-color: var(--ito-alert-coral);
}

.field__check {
  width: 1.3em;
  height: 1.3em;
  margin: 0.2em 0 0;
  accent-color: var(--ito-pop-orange);
}

.field__hint {
  font-size: var(--ito-text-tag);
  color: var(--ito-slate-muted);
}

.field__error {
  font-size: var(--ito-text-label);
  font-weight: 600;
  color: var(--ito-alert-coral);
}

.news__status {
  min-height: 1.5em;
  font-size: var(--ito-text-label);
  font-weight: 600;
}

.news__status[data-ton="ok"] {
  color: var(--ito-positive-sage);
}

.news__status[data-ton="erreur"] {
  color: var(--ito-alert-coral);
}

.news__status[data-ton="info"] {
  color: var(--ito-slate-muted);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 54rem) {
  .news {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--ito-space-xl);
  }
}

/* ------------------------------------------------------------------------ */
/* 11. Pied de page                                                         */
/* ------------------------------------------------------------------------ */

.site-footer {
  padding-block: var(--ito-space-xl);
  background: var(--ito-ink-navy);
  color: var(--ito-background-cream);
}

.site-footer__inner {
  display: grid;
  gap: var(--ito-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}

.site-footer__brand img {
  width: 4rem;
  height: auto;
}

.site-footer__brand p {
  margin-top: var(--ito-space-2xs);
  font-family: var(--ito-font-title);
  font-size: var(--ito-text-body);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--ito-space-3xs);
  font-size: var(--ito-text-label);
}

.site-footer__nav h2 {
  margin-bottom: var(--ito-space-3xs);
  font-family: var(--ito-font-label);
  font-size: var(--ito-text-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ito-pop-yellow);
}

.site-footer__nav a {
  color: var(--ito-background-sage);
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: var(--ito-space-sm);
  border-top: var(--ito-outline-hairline) solid var(--ito-slate-muted);
  font-size: var(--ito-text-tag);
  color: var(--ito-background-sage);
}

/* ------------------------------------------------------------------------ */
/* 12. Bandeaux d'appel                                                     */
/* ------------------------------------------------------------------------ */

/* Un bandeau d'appel n'a pas de corps : son entête EST son contenu. La marge
   basse prévue pour une grille y creuserait un trou sous le texte. */
.cta-band__head {
  margin-bottom: 0;
}

.section__note {
  max-width: 34rem;
  margin-top: var(--ito-space-sm);
  font-size: var(--ito-text-label);
  color: var(--ito-slate-muted);
}

/* La relance sous la grille d'épisodes : la phrase et le bouton restent sur une
   ligne tant qu'ils tiennent, et passent l'un sous l'autre sur mobile. */
.section__relance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ito-space-sm) var(--ito-space-md);
  margin-top: var(--ito-space-xl);
}

.section__relance .section__note {
  flex: 1 1 18rem;
  margin-top: 0;
}

/* ------------------------------------------------------------------------ */
/* 13. Apparitions                                                          */
/* ------------------------------------------------------------------------ */

/* Le registre de la charte : « calme et posé », jamais un rebond de shorts.
   Le décalage entre deux cartes est celui de MOTION.paperStagger. */
/* Le voile n'est posé QUE si JavaScript est là pour le lever : la classe `js`
   est ajoutée sur <html> par un script en ligne, avant le premier rendu. Sans
   elle, rien ne se cache — un contenu invisible sans JS est un contenu perdu. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--ito-space-xs));
  transition:
    opacity var(--ito-motion-fade-in) var(--ito-ease-fade-in),
    transform var(--ito-motion-fade-in) var(--ito-ease-fade-in);
  transition-delay: calc(var(--ito-motion-paper-stagger) * var(--rang, 0) / 3);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
