/* ==========================================================
   Accueil, version 1 (l'ancienne v9 ; inspiration : kalmkitchen.co.uk). En session B, en-tête et
   pied de page de la session B ; en session A, pied de page « split » (footer.css).
   - Titres : mêmes règles que la v3 (Josefin Sans, Cormorant Garamond pour quelques mots).
   - Couleurs et polices : uniquement les réglages de tokens.css (les thèmes s'appliquent).
   - Photos manquantes : emplacements « photo à venir » décrits (.h9-ph).
   - Tous les mouvements s'arrêtent si l'appareil demande moins d'animations (fin du fichier).
   ========================================================== */

.page-home-v9 {
  --h9-gap: clamp(1rem, 2.5vw, 2rem);
  --h9-space: clamp(4.5rem, 9vw, 8rem);
  --h9-r: 6px;
  --h9-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  /* Titres en Josefin Sans, comme la v8 */
  --font-display: var(--font-body);
}

.h9-wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.h9-section {
  padding-block: var(--h9-space);
}

.h9-section--tint {
  background: var(--color-tint);
}

/* Petite ligne en capitales au-dessus d'un texte */
.h9-eyebrow,
.h9-label {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: inherit;
}

/* Titres de section (règles de la v8) */
.h9-title {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-ink);
}

/* Titres avec un mot en italique : le reste en graisse normale */
.h9-title--soft {
  font-weight: 400;
}

/* Grandes phrases (Rooted…, Made…) : graisse normale */
.h9-title--big {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
}

/* Mots en italique : Cormorant Garamond, couleur d'accent */
.h9-title em {
  font-family: var(--h9-serif);
  font-size: 1.15em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-accent);
}

.h9-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.h9-lead {
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.h9-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
}

.h9-links--end {
  justify-content: flex-end;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Lien en Cormorant italique avec la flèche fine (comme sur Kalm) */
.h9-cta {
  display: inline-flex;
  gap: 0.75rem;
  font-family: var(--h9-serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

.h9-cta--ink {
  color: var(--color-ink);
}

/* Liens du corps de page : au survol, le lien grandit un peu (la couleur ne change pas,
   donc lisible sur fond clair comme sombre) */
.h9-cta,
.h9-more,
.h9-btn {
  align-items: center;
  text-decoration: none;
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.h9-cta:hover,
.h9-cta:focus-visible,
.h9-more:hover,
.h9-more:focus-visible,
.h9-btn:hover,
.h9-btn:focus-visible {
  color: inherit; /* annule le a:hover de style.css */
  transform: scale(1.06);
}

.h9-cta--ink:hover,
.h9-cta--ink:focus-visible,
.h9-btn:hover,
.h9-btn:focus-visible {
  color: var(--color-ink);
}

.h9-arrow {
  width: 2.5rem;
  height: 0.75rem;
  flex: none;
  transition: transform 0.4s var(--ease);
}

a:hover > .h9-arrow,
a:focus-visible > .h9-arrow {
  transform: translateX(0.3rem);
}

/* Lien sans cadre (Notre histoire), assez grand pour aller avec le texte */
.h9-btn {
  display: inline-flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-family: var(--h9-serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
}

/* ---------- Photo ou emplacement « photo à venir » ---------- */

.h9-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--h9-r);
  background: var(--color-line);
}

.h9-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h9-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--color-muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--color-ink) 4%, transparent) 14px 15px),
    linear-gradient(160deg, var(--color-tint), color-mix(in srgb, var(--color-accent) 18%, var(--color-tint)));
}

.h9-ph__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.h9-ph__note {
  max-width: 18rem;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

/* En-tête et pied de page : assets/css/site-b.css (communs à la session B) */

/* ==========================================================
   1. Grand visuel : cadre arrondi, deux photos qui se relaient
   ========================================================== */

.h9-hero {
  padding-inline: clamp(0.6rem, 1.1vw, 1.1rem);
}

.h9-hero__frame {
  position: relative;
  height: calc(100svh - var(--header-h, 6rem) - 1rem);
  min-height: 30rem;
  overflow: hidden;
  border-radius: var(--h9-r);
  background: var(--color-ink);
  color: #ffffff;
}

/* Les photos (zoom en 3D) restent dans leur propre groupe, sous le texte et les repères :
   sinon le navigateur peut les dessiner par-dessus la fine ligne de progression */
.h9-hero__photos {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
}

.h9-hero__photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

/* Sans script : la première photo seulement */
.h9-hero__photo ~ .h9-hero__photo {
  opacity: 0;
}

.js .h9-hero__photo {
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.js .h9-hero__photo.is-active {
  opacity: 1;
}

/* Lent zoom pendant que la photo est affichée, en 3D (pas d’à-coups dans Firefox).
   translateZ 7.407px avec une perspective de 100px = zoom de 8 % */
.h9-hero__photo img {
  transform: perspective(100px) translateZ(0);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 9s linear;
}

.h9-hero__photo.is-zoom img {
  transform: perspective(100px) translateZ(7.407px);
}

/* Photo effacée : le zoom revient à zéro d’un coup, sans dézoomer */
.h9-hero__photo:not(.is-zoom) img {
  transition: none;
}

/* Voile : ici le texte est sur la photo (demande de l'équipe pour cette version) */
.h9-hero__photos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.4);
}

.h9-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.h9-hero .h9-hero__eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #ffffff;
}

.h9-hero__texts {
  display: grid;
}

/* Avec le script, les textes se superposent et un seul est visible */
.js .h9-hero__text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0s 0.8s;
}

.js .h9-hero__text.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease) 0.4s, visibility 0s;
}

.h9-hero__text + .h9-hero__text {
  margin-top: 2rem;
}

.js .h9-hero__text + .h9-hero__text {
  margin-top: 0;
}

/* Grande phrase : Josefin Sans en graisse normale (comme la devise de la v8) */
.h9-hero__title {
  max-width: 24ch;
  margin: 0 auto 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.h9-hero .h9-cta {
  color: #ffffff;
}

/* Soleil (photo affichée) —— cercle (autre photo) */
.h9-hero__nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translate3d(-50%, 0, 0); /* calque à part, au-dessus des photos */
}

.h9-hero__nav[hidden],
.h9-hero__pause[hidden] {
  display: none;
}

.h9-hero__nav button,
.h9-hero__pause {
  padding: 0.35rem 0.2rem;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.h9-hero__nav button[aria-current="true"],
.h9-hero__nav button:hover,
.h9-hero__pause:hover {
  color: #ffffff;
}

/* Soleil = photo affichée, cercle = l'autre photo */
.h9-hero__nav button {
  padding: 0.35rem;
  line-height: 0;
}

.h9-dot {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.h9-hero__nav button .h9-dot--sun,
.h9-hero__nav button[aria-current="true"] .h9-dot--circle {
  display: none;
}

.h9-hero__nav button[aria-current="true"] .h9-dot--sun {
  display: block;
}

.h9-hero__line {
  position: relative;
  width: 4rem;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
}

.h9-hero__fill {
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
}

.h9-hero__pause {
  position: absolute;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 3;
  text-transform: uppercase;
}

/* ==========================================================
   2. Accueil
   ========================================================== */

.h9-intro {
  padding-block: var(--h9-space);
  text-align: center;
  color: var(--color-ink);
}

.h9-intro__text {
  max-width: 46rem;
  margin: 0 auto 1.75rem;
  font-family: var(--h9-serif);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
}

.h9-intro__text em {
  font-style: italic;
}

/* ==========================================================
   3. Découvrir le studio : bande teintée claire, titres en grand qui s'ouvrent, double photo à côté.
   Téléphone : photos au-dessus de la liste. Sans script : toutes les rubriques ouvertes.
   ========================================================== */

.h9-explore {
  padding-block: var(--h9-space);
  background: var(--color-tint);
  color: var(--color-ink);
}

.h9-explore .h9-label {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Liens de « Découvrir le studio » : comme .h9-cta (Cormorant italique, flèche fine) */
.h9-more {
  display: inline-flex;
  gap: 0.75rem;
  font-family: var(--h9-serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

.h9-explore .h9-more {
  font-size: 1.3rem;
}

.h9-explore__body {
  display: grid;
  gap: 2.5rem;
}

/* Titres des rubriques, en grand ; le « + » au bout de la colonne */
.h9-explore__head {
  margin: 0;
}

.h9-explore__head button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--color-muted); /* rubriques fermées : gris lisible */
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

.h9-explore__item.is-active .h9-explore__head button,
.h9-explore__head button:hover {
  color: var(--color-ink);
}

.h9-explore__item.is-active .h9-explore__head button {
  cursor: default;
}

/* « + » : tourne au survol, disparaît sur la rubrique ouverte ; pas de « + » sans script (tout est ouvert) */
.h9-plus {
  display: block;
  flex: none;
  width: clamp(1.5rem, 1.1rem + 1vw, 2.2rem);
  height: clamp(1.5rem, 1.1rem + 1vw, 2.2rem);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

html:not(.js) .h9-plus {
  display: none;
}

.h9-explore__head button:hover .h9-plus {
  transform: rotate(90deg);
}

.h9-explore__item.is-active .h9-plus {
  opacity: 0;
  transform: rotate(90deg);
}

/* Ouverture en douceur (hauteur 0 → hauteur du texte) */
.js .h9-explore__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}

.js .h9-explore__item.is-active .h9-explore__panel {
  grid-template-rows: 1fr;
}

.h9-explore__inner {
  min-height: 0;
  overflow: hidden;
}

.js .h9-explore__item:not(.is-active) .h9-explore__inner {
  visibility: hidden;
  transition: visibility 0s 0.6s;
}

.h9-explore__inner p {
  max-width: 30rem;
  margin: 0.4rem 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.h9-explore__inner .h9-more {
  margin-bottom: 1.25rem;
}

/* Double photo : les quatre paires superposées, une seule visible ; au-dessus de la liste sur téléphone */
.h9-explore__photos {
  display: grid;
  order: -1;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.h9-explore__stack {
  position: relative;
  grid-area: 1 / 1;
  padding-bottom: 20%;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.h9-explore__stack.is-active {
  opacity: 1;
}

.h9-explore__a {
  width: 80%;
  margin-left: auto;
  aspect-ratio: 4 / 3;
}

/* Petite photo carrée qui chevauche le bas de la grande ; même fondu que la grande */
.h9-explore__b {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 44%;
  aspect-ratio: 1 / 1;
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--color-ink) 45%, transparent);
}

/* Cours doux, Paola : zoom sur elle et ses accessoires (valeurs calculées pour un cadre carré) */
.h9-frame-paola img {
  position: absolute;
  top: -110%;
  left: -65%;
  width: 165%;
  max-width: none;
  height: auto;
}

@media (min-width: 56em) {
  /* Liste à gauche, double photo à droite. La double photo est plus haute que la liste :
     c'est elle qui fixe la hauteur de la bande, un texte plus long ou plus court ne la change pas. */
  .h9-explore__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
  }

  .h9-explore__head button {
    font-size: clamp(1.8rem, 0.9rem + 2.4vw, 3.1rem);
  }

  /* Grande photo plus haute (5:4) : hauteur totale ≈ 0,84 × la largeur, limitée sur les écrans bas */
  .h9-explore__photos {
    order: 0;
    max-width: calc(80svh / 0.84);
    margin-inline: 0;
  }

  .h9-explore__a {
    aspect-ratio: 5 / 4;
  }
}

/* ==========================================================
   4. Depuis 2004 / Nos valeurs : photo + texte, en zigzag
   ========================================================== */

.h9-zig {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.h9-zig + .h9-zig {
  margin-top: var(--h9-space);
}

.h9-zig__media {
  position: relative;
  padding-bottom: 16%;
}

.h9-zig__a {
  width: 78%;
  aspect-ratio: 4 / 5;
}

.h9-zig__b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.45);
}

.h9-zig--flip .h9-zig__a {
  margin-left: auto;
}

.h9-zig--flip .h9-zig__b {
  right: auto;
  left: 0;
}

.h9-zig__text {
  max-width: 31rem;
}

.h9-zig__text p {
  line-height: 1.75;
}

/* Premier bloc : la double photo reste en place pendant que le texte défile (comme les récits de
   la v8). Petit écran : elle reste en haut, plus petite, et le texte passe dessous. */
.h9-zig--sticky .h9-zig__media {
  position: sticky;
  top: calc(var(--header-top, 5rem) + 1rem);
  z-index: 2;
  align-self: start;
  /* Petit écran : au plus environ un tiers de l'écran */
  height: clamp(10rem, 34svh, 20rem);
  padding-bottom: 0;
  background: var(--color-bg);
  box-shadow: 0 0 0 1rem var(--color-bg);
}

.h9-zig--sticky .h9-zig__a {
  position: absolute;
  top: 0;
  left: 0;
  width: 68%;
  height: 88%;
  aspect-ratio: auto;
}

.h9-zig--sticky .h9-zig__b {
  width: 44%;
  height: 52%;
  aspect-ratio: auto;
}

@media (min-width: 56em) {
  .h9-zig {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .h9-zig--flip .h9-zig__media {
    order: 2;
  }

  .h9-zig--flip .h9-zig__text {
    justify-self: end;
  }

  /* Photos moins étroites : la colonne des photos est plus large que celle du texte */
  .h9-zig--sticky {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .h9-zig--sticky .h9-zig__a {
    width: 78%;
  }

  .h9-zig--sticky .h9-zig__b {
    width: 50%;
  }

  /* Photo + marges haut et bas de la section tiennent dans l'écran ; la photo reste à sa place */
  .h9-zig--sticky .h9-zig__media {
    top: calc(var(--header-top, 5rem) + var(--h9-space));
    height: calc(100svh - var(--header-top, 5rem) - 2 * var(--h9-space));
    min-height: 20rem;
    max-height: 44rem;
    background: none;
    box-shadow: none;
  }

  /* Chaque texte occupe la hauteur de la photo : ils passent l'un après l'autre à côté */
  .h9-zig--sticky .h9-zig__step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100svh - var(--header-top, 5rem) - 2 * var(--h9-space));
    padding-block: 3rem;
  }

  .h9-zig--sticky .h9-zig__step + .h9-zig__step {
    margin-top: 0;
  }
}

/* Petit écran : un peu d'espace entre les deux textes qui passent sous la photo */
.h9-zig__step + .h9-zig__step {
  margin-top: 3.5rem;
}

/* Une double photo par texte : elles se superposent et se relaient en fondu */
.h9-zig__pair {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.h9-zig__pair.is-active {
  opacity: 1;
}

/* Gérald au Trocadéro (v1, « Made for life ») : léger zoom, ancré en bas à droite, pour qu'il
   remonte vers le centre et ne passe plus sous la photo de Linda (la tour Eiffel reste visible) */
.h9-zig__a--gerald img {
  transform: scale(1.35);
  transform-origin: 95% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .h9-zig__pair {
    transition: none;
  }
}

/* ==========================================================
   5. À ne pas manquer : 3 cartes (sur téléphone et tablette, on fait glisser du doigt)
   ========================================================== */

/* Titre et phrase à gauche */
.h9-miss__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.h9-miss__head .h9-title {
  margin: 0 0 0.4rem;
}

.h9-miss__lead {
  margin: 0;
  font-family: var(--h9-serif);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-style: italic;
  color: var(--color-ink);
}

/* Très petits écrans : cartes plus larges, pour que les bandeaux ne cachent pas la date */
.h9-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92%;
  gap: var(--h9-gap);
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.h9-cards::-webkit-scrollbar {
  display: none;
}

.h9-cards > * {
  min-width: 0;
  scroll-snap-align: start;
}

@media (min-width: 30em) {
  .h9-cards {
    grid-auto-columns: 85%;
  }
}

/* Tablettes : deux cartes et le bord de la troisième, pour montrer qu'on peut faire défiler */
@media (min-width: 40em) {
  .h9-cards {
    grid-auto-columns: calc((100% - 2 * var(--h9-gap)) / 2.2);
  }
}

@media (min-width: 64em) {
  .h9-cards {
    grid-auto-columns: calc((100% - 2 * var(--h9-gap)) / 3);
  }

  /* Grand écran : 3 cartes sur une ligne, la 4e (carrousel seulement) est masquée */
  .h9-cards > :nth-child(n+4) {
    display: none;
  }
}

/* « Événements à venir » à droite, sous les cartes */
.h9-scroller__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==========================================================
   6. Nouveau au studio ? : rectangle teinté de la largeur des sections, photo à gauche,
   texte à droite (bloc centré dans sa moitié, texte aligné à gauche).
   Petit écran : la photo au-dessus, le texte dessous.
   Peu d'espace avant la FAQ : les deux forment presque une seule section.
   ========================================================== */

.h9-section--pair {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.h9-section--pair + .h9-section {
  padding-top: 0;
}

.h9-newcomer {
  display: grid;
  overflow: hidden;
  border-radius: var(--h9-r);
  background: var(--color-tint);
  color: var(--color-ink);
}

.h9-newcomer__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.h9-newcomer__box {
  justify-self: center;
  align-self: center;
  width: min(100%, 30rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  text-align: left;
}

.h9-newcomer__box .h9-links {
  justify-content: flex-start;
}

/* Liens texte soulignés */
.h9-newcomer__box .h9-links a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.h9-newcomer__box .h9-links a:hover,
.h9-newcomer__box .h9-links a:focus-visible {
  color: var(--color-ink);
  text-decoration-thickness: 2px;
}

@media (min-width: 56em) {
  .h9-newcomer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  /* La photo occupe toute la hauteur de sa moitié */
  .h9-newcomer__media {
    aspect-ratio: auto;
    min-height: 24rem;
  }
}

.h9-newcomer__box > p:not(.h9-links) {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.h9-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

@media (max-width: 23.99em) {
  .h9-offers {
    grid-template-columns: 1fr;
  }
}

/* Offres : encadré blanc, cadre fin, trait d'accent en haut */
.h9-offer {
  padding: 1rem 0.75rem;
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--h9-r);
  background: var(--color-surface);
}

.h9-offer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.h9-offer .h9-offer__price {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-ink);
}

/* Durée de validité : fait partie du nom de l'offre */
.h9-offer__days {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

/* ==========================================================
   7. Questions fréquentes et adresse (comme en v8)
   ========================================================== */

.h9-faq {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
}

/* « Toutes les questions » ne dépasse jamais le bord droit des questions */
.h9-faq .h9-links--end {
  max-width: 46rem;
}

@media (min-width: 56em) {
  .h9-faq {
    grid-template-columns: 2fr 3fr;
  }
}

.h9-findus {
  margin: 2rem 0 0;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.h9-address {
  margin: 0.5rem 0 0;
  font-style: normal;
  line-height: 1.65;
}

/* Métro (plus petit, plus clair) et lien « Contact et accès » (même taille) */
.h9-address__small {
  font-size: 0.85rem;
}

span.h9-address__small {
  color: var(--color-muted);
}

.h9 .faq summary {
  font-family: var(--h9-serif);
  font-size: 1.3rem;
  font-weight: 500;
}

/* Noms des enseignants sur les cartes d'événements : en Cormorant, comme en v8 */
.h9 .card__teacher,
.h9 .event-card__teacher {
  font-family: var(--h9-serif);
}

/* 8. Galerie qui défile : styles de la v1 (.gallery, dans style.css) */

/* Pied de page : assets/css/site-b.css */

/* ---------- Moins d'animations si l'appareil le demande ---------- */

@media (prefers-reduced-motion: reduce) {
  .h9-header,
  .h9-header__bar,
  .h9-brand img,
  .h9-subnav,
  .js .h9-hero__photo,
  .js .h9-hero__text,
  .h9-explore__head button,
  .h9-plus,
  .js .h9-explore__panel,
  .js .h9-explore__inner,
  .h9-explore__stack,
  .h9-nav__link svg,
  .h9-cta,
  .h9-more,
  .h9-btn,
  .h9-arrow {
    transition: none !important;
  }

  .h9-hero__photo img,
  .h9-hero__photo.is-zoom img,
  a:hover > .h9-arrow {
    transform: none;
  }

  .h9-cards {
    scroll-behavior: auto;
  }
}
