/* ==========================================================================
   Accueil — une seule page responsive (fusion des maquettes 1440 / 834 / 390)
   ========================================================================== */

/* --- 1. Hero ------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  padding-block: 56px 72px;
}

.hero__texte {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
}

.hero__titre {
  font-size: clamp(56px, 9.4vw, 144px);
  line-height: 0.85;
}

.hero__bas { display: flex; flex-direction: column; gap: 28px; }

.hero__intro { font-size: clamp(17px, 1.6vw, 19px); max-width: 32em; }
.hero__intro > span { display: block; }
.hero__intro .hero__detail { display: inline; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.hero__actions .lien-bim { color: var(--pervenche-texte); font-weight: 700; }

.hero__media { position: relative; min-width: 0; min-height: 580px; }

.hero__portrait {
  position: absolute;
  inset: 0 0 64px 32px;
  width: calc(100% - 32px);
  height: calc(100% - 64px);
  border: 16px solid var(--bordeaux);
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.hero__fiche {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__fiche .mono { font-size: 13px; }
.hero__fiche em { font-size: 17px; font-weight: 700; line-height: 1.3; font-style: italic; }

@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 48px; }
  .hero__texte { gap: 22px; }
  .hero__titre { font-size: clamp(52px, 11vw, 104px); }
  .hero__media { min-height: 0; height: clamp(300px, 46vw, 440px); }
  .hero__portrait { inset: 0 0 44px 24px; width: calc(100% - 24px); height: calc(100% - 44px); border-width: 12px; }
  .hero__fiche { width: 240px; }
}
@media (max-width: 639px) {
  /* Phrase d'accroche allégée : sur un petit écran, le membre de phrase
     « se créer plus de moments de bonheur et » fait un pavé de trop. */
  .hero__intro .hero__detail { display: none; }
  .hero__intro { font-size: 16px; }
  /* Les deux dernières phrases se suivent au fil du texte au lieu d'occuper
     chacune son bloc : le pavé s'équilibre mieux et plus aucun mot ne reste
     seul en bas de ligne. Tenir chaque phrase sur une ligne demanderait 13 px,
     illisible. */
  .hero__intro { text-wrap: balance; }
  .hero__intro > span + span { display: inline; }

  /* L'étiquette mordait sur un cinquième de la photo : on descend le bas du
     portrait et on rallonge le cadre pour qu'elle le chevauche à peine. */
  .hero__media { height: clamp(340px, 52vw, 460px); }
  .hero__portrait { inset: 0 0 76px 24px; height: calc(100% - 76px); }

  /* Corps réduit, comme la maquette mobile : le plus long des quinze principes
     reste une vignette sur la photo, pas un pavé. */
  .hero__fiche .mono { font-size: 12px; }
  .hero__fiche em { font-size: 15px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
  .hero__actions .lien-bim { text-align: center; min-height: var(--cible-tactile); display: inline-flex; align-items: center; justify-content: center; }
}

/* --- 2. Quel temps voulez-vous vous accorder ? --------------------------- */

.temps {
  padding-block: 8px 88px;
  /* Sert de référence aux unités cqw des onglets ci-dessous. */
  container-type: inline-size;
}

.temps__titre {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
}

/* L'écart se pose ici, et pas en marge basse du titre : celui-ci porte la
   classe .masque, dont la marge négative de compensation (anim.css) écraserait
   la valeur. Les deux marges se cumulent, l'écart réel vaut donc ~48 px. */
.temps__onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 44px;
  margin-top: clamp(30px, 3.6vw, 54px);
  border-bottom: 2px solid var(--charbon);
}


.onglet {
  background: none;
  border: 0;
  padding: 0 0 10px;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-titre);
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-weight: 800;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 0.95;
  color: var(--gris-inactif);
  position: relative;
}
.onglet::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--c, var(--charbon));
  transform: scaleX(0);
  transform-origin: left;
}
.onglet[aria-selected="true"] { color: var(--c, var(--charbon)); }
.onglet[aria-selected="true"]::after { transform: scaleX(1); }
/* Les quatre libellés tiennent sur une seule ligne, quelle que soit la largeur.
   La taille et l'espacement sont un pourcentage de la largeur disponible (cqw),
   calculés pour laisser ~6 % de marge : la ligne ne peut plus passer à deux. */
@supports (container-type: inline-size) {
  @media (min-width: 768px) {
    .temps__onglets { flex-wrap: nowrap; gap: 2.6cqw; }
    .onglet { font-size: 5cqw; }
  }
}

.temps__panneau {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  padding-top: 24px;
  min-height: 64px;
}
.temps__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  min-width: 240px;
  padding-block: 6px;
}
.temps__item strong {
  font-size: 22px;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.temps__item span { font-size: 16px; }

@media (max-width: 767px) {
  .temps { padding-block: 4px 48px; }
  .temps__onglets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-bottom: 0;
  }
  .onglet {
    min-height: 56px;
    padding: 8px 10px;
    margin-bottom: 0;
    border: 2px solid var(--charbon);
    background: var(--creme);
    color: var(--charbon);
    font-size: clamp(20px, 5.6vw, 26px);
    line-height: 1;
    text-align: left;
  }
  .onglet::after { display: none; }
  .onglet[aria-selected="true"] { background: var(--c, var(--charbon)); color: #FFFFFF; }
  .temps__panneau { flex-direction: column; gap: 0; padding-top: 8px; }
  .temps__item {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px dashed var(--charbon);
  }
  .temps__item strong { font-size: 18px; }
  .temps__item span { font-size: 15px; }
}

/* --- 3. L'histoire (bordeaux) -------------------------------------------- */

.histoire { background: var(--bordeaux); color: var(--creme); }
.histoire a { color: var(--creme); }

.histoire__grille {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: center;
  gap: 24px 56px;
  padding-block: 88px;
}

.histoire__bloc { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.histoire__figure { display: flex; flex-direction: column; gap: 10px; }
.histoire__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 30%;
  border: 14px solid var(--creme);
  display: block;
}
.histoire__figure figcaption { font-size: 13px; }

.histoire__citation { display: flex; flex-direction: column; gap: 12px; }
.histoire__citation p {
  font-family: var(--font-titre);
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(42px, 6.5vw, 100px);
  line-height: 0.88;
  color: var(--jaune);
}
.histoire__citation cite { font-style: normal; font-size: 14px; }

.histoire__texte { font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; }
.histoire__lien { align-self: flex-start; font-weight: 700; }

@media (max-width: 1023px) {
  /* Une seule colonne, et la photo se glisse entre la citation et le texte :
     `display: contents` remet les enfants du bloc au niveau de la grille. */
  .histoire__grille { grid-template-columns: 1fr; gap: 18px; padding-block: 48px; }
  .histoire__bloc { display: contents; }
  .histoire__citation { order: 1; }
  .histoire__figure { order: 2; }
  .histoire__texte { order: 3; }
  .histoire__lien { order: 4; }
  .histoire__figure img { aspect-ratio: 4 / 3; border-width: 10px; }
}

/* --- 4. BIM! ------------------------------------------------------------- */

.bim { color: #FFFFFF; }
.bim a { color: #FFFFFF; }

.bim__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  grid-template-areas:
    "tete    phones"
    "intro   phones"
    "liste   phones"
    "actions phones";
  align-content: center;
  gap: 28px 56px;
  padding-block: 88px;
}

.bim__tete { grid-area: tete; }
.bim__titre { font-size: clamp(112px, 16vw, 230px); line-height: 0.8; }
.bim__tete p { margin-top: 10px; font-size: clamp(18px, 1.8vw, 20px); font-weight: 700; }

.bim__intro { grid-area: intro; font-size: clamp(17px, 1.8vw, 20px); max-width: 30em; }

.bim__liste { grid-area: liste; font-size: 17px; max-width: 560px; }
.bim__liste li { border-top: 1px dashed #FFFFFF; padding: 12px 0; }
.bim__liste li:last-child { border-bottom: 1px dashed #FFFFFF; }

.bim__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.bim__actions .btn { background: var(--charbon); color: #FFFFFF; }

.bim__phones {
  grid-area: phones;
  align-self: center;
  justify-self: center;
  position: relative;
  width: 430px;
  max-width: 100%;
  height: 520px;
}
.phone {
  position: absolute;
  top: 0;
  width: 240px;
  height: 460px;
  border: 10px solid var(--charbon);
  border-radius: 40px;
  background: var(--creme);
  color: var(--charbon);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  text-align: center;
}
.phone--a { left: 0; }
.phone--b { right: 0; top: 64px; background: var(--papier); }

@media (max-width: 1023px) {
  .bim__grille {
    grid-template-columns: 1fr;
    grid-template-areas: "tete" "intro" "phones" "liste" "actions";
    gap: 20px;
    padding-block: 48px;
  }
  .bim__phones { width: 100%; height: auto; display: flex; justify-content: center; }
  .phone { position: static; }
  .phone--b { display: none; }
}
@media (max-width: 639px) {
  .phone { width: 170px; height: 340px; border-width: 9px; border-radius: 36px; font-size: 11px; padding: 16px; }
  .bim__actions { flex-direction: column; align-items: stretch; }
  .bim__actions .btn { width: 100%; }
}

/* --- 5. Lire ------------------------------------------------------------- */

.lire {
  padding-block: 80px 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.lire .strate-tete { border-top-color: var(--bordeaux); }
.lire .strate-titre { color: var(--bordeaux); }

.livres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 56px 24px;
  align-items: start;
}

.livre { display: flex; flex-direction: column; gap: 14px; }

.livre__cover { height: 310px; display: flex; align-items: flex-end; }
.livre__cover img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left bottom;
  border: 1px solid var(--charbon);
  display: block;
}
.livre--touriste .livre__cover img { box-shadow: 10px 10px 0 var(--corail); }
.livre--antiseches .livre__cover img { box-shadow: 10px 10px 0 var(--bordeaux); }
.livre--chamanique .livre__cover img { box-shadow: 10px 10px 0 var(--charbon); }

.livre__corps { display: flex; flex-direction: column; gap: 14px; }
.livre__titre { font-size: clamp(24px, 2.3vw, 30px); line-height: 0.95; margin-top: 4px; }
.livre__corps p { font-size: 16px; }
.livre__corps a { font-weight: 700; font-size: 16px; }

.livre--bientot .livre__cover > div {
  height: 100%;
  aspect-ratio: 2 / 3;
  max-width: 100%;
  border: 2px dashed var(--bordeaux);
  background: var(--papier);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.livre--bientot .bientot {
  font-family: var(--font-titre);
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-weight: 800;
  font-size: 48px;
  line-height: 0.9;
  color: var(--bordeaux);
}
.livre--bientot .placeholder { font-size: 14px; }
.livre__form { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 1023px) {
  .livres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .lire { padding-block: 48px; gap: 32px; }
}

@media (max-width: 639px) {
  .livres { grid-template-columns: 1fr; gap: 0; }
  .livre {
    flex-direction: row;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px dashed var(--charbon);
  }
  .livre:first-child { border-top: 0; padding-top: 0; }
  .livre__cover { height: auto; flex: 0 0 80px; align-items: flex-start; }
  .livre__cover img { height: auto; width: 100%; }
  .livre__corps { gap: 6px; }
  .livre__titre { font-size: 19px; line-height: 1.15; margin-top: 0; }
  .livre__corps p { font-size: 15px; }

  .livre--bientot {
    flex-direction: column;
    border: 2px dashed var(--bordeaux);
    background: var(--papier);
    padding: 18px;
    margin-top: 18px;
  }
  .livre--bientot .livre__cover { display: none; }
  .livre--bientot .livre__titre { font-size: 30px; line-height: 0.95; color: var(--bordeaux); }
}

/* --- 6. Les Lettres de Jo : inscription ---------------------------------- */

.lettres-inscription { background: var(--jaune); }
.lettres-inscription .wrap {
  padding-block: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-end;
}
.lettres-inscription__texte {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lettres-inscription__titre { font-size: clamp(44px, 7vw, 104px); line-height: 0.86; }
.lettres-inscription__citation {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  max-width: 26em;
}
.lettres-inscription__form {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lettres-inscription__form .champ { font-size: 17px; padding: 15px; }
.lettres-inscription__form .mention { font-size: 14px; }

/* --- 7. Carrousel des Lettres de Jo -------------------------------------- */

.carrousel-lettres {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 34.5vw, 510px);   /* 25 % de moins qu'au départ */
  background: var(--nuit) center / cover no-repeat;
  color: var(--charbon);
}

.carrousel-lettres__fond {
  position: absolute;
  inset: -6% -4%;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
}

.carrousel-lettres__scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.lettre-carte {
  margin-left: max(var(--gouttiere), calc((100% - var(--largeur-max)) / 2 + var(--gouttiere)));
  width: min(580px, calc(100% - 48px));
  min-height: 400px;
  background: var(--papier);
  border-top: 2px dashed var(--charbon);
  box-shadow: 0 1px 0 var(--charbon);
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lettre-carte__tete { display: flex; gap: 20px; align-items: flex-start; }
.lettre-carte__vignette {
  flex: 0 0 112px;
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 45% 40%;
  border: 1px solid var(--charbon);
  display: block;
}
.lettre-carte__meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lettre-carte__date { font-family: var(--font-mono); font-size: 14px; }
.lettre-carte__titre { font-size: clamp(24px, 2.8vw, 34px); line-height: 0.95; }
.lettre-carte__extrait {
  flex: 1;
  font-family: var(--font-citation);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.6;
}
.lettre-carte__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

.carrousel-ctrl {
  position: absolute;
  right: var(--gouttiere);
  bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 2;
}
.carrousel-ctrl__compteur {
  background: var(--creme);
  padding: 0 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
}
.carrousel-ctrl button {
  width: 52px;
  height: 52px;
  border: 0;
  background: var(--creme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.carrousel-ctrl button svg { display: block; }

@media (max-width: 767px) {
  /* La hauteur suit la carte : il reste juste la place des flèches en dessous,
     au lieu d'une bande de fond vide. */
  .carrousel-lettres { height: auto; min-height: 0; padding: 16px 0 76px; }
  .carrousel-lettres__scene { position: relative; inset: auto; padding: 0 12px; }
  .lettre-carte {
    margin-left: 0;
    width: 100%;
    min-height: 0;
    padding: 20px 18px 22px;
    gap: 12px;
  }
  .lettre-carte__tete { gap: 14px; }
  .lettre-carte__vignette { flex: 0 0 72px; width: 72px; }
  .lettre-carte__extrait { font-size: 17px; line-height: 1.55; }
  .lettre-carte__actions { flex-direction: column; align-items: stretch; }
  .lettre-carte__actions .btn { width: 100%; }
  .carrousel-ctrl { right: 12px; bottom: 16px; }
  .carrousel-ctrl button { width: 48px; height: 48px; }
}

/* --- 8. Écouter ---------------------------------------------------------- */

.ecouter {
  padding-block: 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.podcast {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: center;
}
.podcast__media { flex: 0 1 380px; min-width: 240px; position: relative; }
.podcast__vignette {
  aspect-ratio: 1;
  background: var(--sable);
  border: 1px solid var(--charbon);
  box-shadow: 14px 14px 0 var(--jaune);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 18px;
}
.podcast__play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--charbon);
  display: flex;
  align-items: center;
  justify-content: center;
}
.podcast__corps {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}
.podcast__meta { font-family: var(--font-mono); font-size: 15px; }
.podcast__titre { font-size: clamp(30px, 4vw, 56px); line-height: 0.92; }
.podcast__abos { display: flex; flex-direction: column; gap: 10px; }
.podcast__abos > span { font-weight: 700; font-size: 16px; }
.podcast__plateformes { display: flex; flex-wrap: wrap; gap: 10px; }
.podcast__plateformes .btn { padding: 14px 18px; }

.liste-filets { display: flex; flex-direction: column; font-size: 16px; }
.liste-filets > * {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 16px 0;
  border-top: 1px solid var(--charbon);
  text-decoration: none;
}
.liste-filets > *:last-child { border-bottom: 1px solid var(--charbon); }
.liste-filets dt, .liste-filets .cle { flex: 0 0 220px; font-weight: 700; }
.liste-filets dd, .liste-filets .valeur { flex: 1 1 320px; margin: 0; }
.liste-filets a.souligne { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 1023px) { .ecouter { padding-block: 48px; gap: 28px; } }
@media (max-width: 639px) {
  .podcast__media { flex: 0 0 195px; min-width: 195px; }
  .podcast__vignette { box-shadow: 10px 10px 0 var(--jaune); font-size: 11px; padding: 12px; }
  .podcast__play { width: 56px; height: 56px; left: 16px; bottom: 16px; }
  .podcast__plateformes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .podcast__plateformes .btn { padding: 13px 4px; font-size: 14px; }
  .liste-filets dt, .liste-filets .cle { flex: 1 1 100%; }
}

/* --- 9. Voyager ---------------------------------------------------------- */

.voyager { background: var(--corail); }
.voyager .wrap {
  padding-block: 88px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
/* Le sous-titre occupe à lui seul la deuxième ligne de la rangée : la première
   ne contient plus que « Voyager » et l'intro, dont la dernière ligne de base
   s'aligne donc sur celle du grand titre, et non sur celle du sous-titre. */
/* Sélecteur à deux classes : enfant direct de .strate-tete, le sous-titre
   serait sinon écrasé par `.strate-tete > p`, plus spécifique, qui le
   ramènerait à 18 px. */
.voyager__tete > .voyager__sous {
  flex-basis: 100%;
  max-width: none;
  margin-top: -6px;
  font-family: var(--font-titre);
  font-variation-settings: 'wdth' 75, 'opsz' 48;
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1;
}

.voyager__corps {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: flex-start;
}

.photos { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Côte à côte, la colonne de droite est bien plus haute que le carrousel :
   celui-ci se fige sous l'en-tête pendant qu'on lit le texte. --hauteur-entete
   est posée par anim.js, la valeur de repli couvre le cas sans JS. */
@media (min-width: 1024px) {
  .photos {
    position: sticky;
    top: calc(var(--hauteur-entete, 76px) + 16px);
    align-self: flex-start;
  }
}
/* Le cadre garde le format de la première photo (2000 × 1126 ≈ 16/9) à toutes
   les largeurs. Les autres photos, de formats différents, sont recadrées
   dedans : le cadre ne bouge jamais d'une diapositive à l'autre. */
.photos__scene {
  position: relative;
  border: 14px solid var(--charbon);
  aspect-ratio: 16 / 9;
  background: var(--charbon);
  overflow: hidden;
}
/* La piste est en absolu : sa hauteur vient du cadre, jamais l'inverse. Sans
   ça, les photos de formats différents (une verticale parmi les quatre)
   feraient grandir le cadre au fil des diapositives. */
.photos__piste {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.photos__piste::-webkit-scrollbar { display: none; }
.photos__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-width: 0; overflow: hidden; }
/* En absolu également : l'image remplit son cadre et ne pèse pas sur lui. */
.photos__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photos__num {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--creme);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: none;
}
.photos__legende { font-size: 15px; min-height: 1.6em; }
/* Deux lignes réservées : la légende la plus longue ne décale pas le bloc. */
@media (max-width: 899px) { .photos__legende { min-height: 3.2em; } }
.photos .carrousel-ctrl { right: 12px; bottom: 12px; }
.photos .carrousel-ctrl button { width: 48px; height: 48px; }

.jeanne-jo {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.jeanne-jo__titre { font-size: clamp(40px, 5.5vw, 80px); line-height: 0.88; }

/* Côte à côte, le haut du cadre photo doit tomber sur le haut des capitales de
   « Jeanne & Jo ». L'interligne de 0,88 laisse 0,104 em de blanc au-dessus des
   lettres : on le reprend ici. En em, la correction suit la taille du titre. */
@media (min-width: 1024px) {
  .jeanne-jo__titre { margin-top: -0.104em; }
}
.jeanne-jo__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 60%;
  border: 10px solid var(--creme);
  display: block;
}
.jeanne-jo__dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 2px solid var(--charbon);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
}
.jeanne-jo__dates-titre {
  font-family: var(--font-texte);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.jeanne-jo__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

@media (max-width: 1023px) {
  .voyager .wrap { padding-block: 48px; gap: 28px; }
  .voyager__corps { gap: 28px; }
}
@media (max-width: 767px) {
  /* Empilé, on retrouve l'ordre de la maquette : titre, sous-titre, intro. */
  .voyager__tete { flex-direction: column; align-items: stretch; }
  .voyager__tete > .voyager__sous { order: 1; }
  .voyager__tete > .voyager__intro { order: 2; }
}
@media (max-width: 767px) {
  /* Au doigt : la piste reprend le flux, et c'est chaque diapositive qui porte
     le format de la première photo. */
  .photos__scene { border: 0; aspect-ratio: auto; background: none; overflow: visible; }
  .photos__piste {
    position: static;
    gap: 10px;
    margin-right: calc(-1 * var(--gouttiere));
    padding-right: var(--gouttiere);
  }
  /* Le fond charbon est indispensable : la hauteur de la diapositive tombe sur
     une fraction de pixel, et sans lui le corail de la strate transparaît en
     un fin liseré entre l'image et le bas du cadre. */
  .photos__slide {
    flex: 0 0 86%;
    aspect-ratio: 16 / 9;
    border: 10px solid var(--charbon);
    background: var(--charbon);
  }
  .photos__num { display: block; }
  .photos .carrousel-ctrl { display: none; }
  .jeanne-jo__photo { max-width: 100%; margin-inline: auto; border-width: 8px; }
  .jeanne-jo__actions .btn { width: 100%; }
}

/* --- 10. P.-S. ----------------------------------------------------------- */

.ps { padding-block: 48px 64px; }
.ps__inner {
  border-top: 2px dashed var(--charbon);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
}
.ps__label {
  flex: 0 0 auto;
  font-family: var(--font-citation);
  font-style: italic;
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1;
}
.ps__texte { flex: 1 1 520px; font-size: clamp(17px, 1.6vw, 19px); max-width: 40em; }

@media (max-width: 639px) {
  .ps { padding-block: 32px 40px; }
  .ps__texte .lien-anim { display: block; width: fit-content; margin-top: 10px; }
}
