/* Sur téléphone : image Facebook complète, puis texte de présentation. */
.mobile-rubrique-image { display: none !important; }

@media (max-width: 760px) {
  .poems-hero,
  .citations-hero,
  .hero {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: #11183d;
  }

  /* L’en-tête est fixe sur mobile : ce décalage empêche qu’il masque
     la partie supérieure de l’image panoramique. */
  main > .poems-hero,
  main > .citations-hero,
  main > .hero {
    margin-top: 81px !important;
  }

  .poems-hero::before,
  .poems-hero::after,
  .citations-hero::before,
  .citations-hero::after,
  .hero::before,
  .hero::after,
  .hero-overlay { display: none !important; }

  .poems-hero > img:not(.mobile-rubrique-image),
  .citations-hero > img:not(.mobile-rubrique-image) { display: none !important; }

  .poems-hero > .mobile-rubrique-image,
  .citations-hero > .mobile-rubrique-image {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1800 / 945;
    flex: none;
    object-fit: contain !important;
    object-position: center !important;
  }

  .hero > .mobile-rubrique-image {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1800 / 945;
    flex: none;
    object-fit: contain !important;
    object-position: center !important;
  }

  .poems-hero-copy,
  .citations-hero-copy {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 25px 20px 31px !important;
    color: #fffaf4;
    background: linear-gradient(145deg, #11183d, #24183e);
    transform: none !important;
  }

  .hero-copy {
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    padding: 25px 20px 38px !important;
    color: #fffaf4;
    background: linear-gradient(145deg, #11183d, #24183e);
    transform: none !important;
  }

  /* L’ancien accueil faisait remonter les cartes sur le bandeau.
     Avec le texte placé sous l’image, elles doivent reprendre le flux normal. */
  .hero + .univers {
    position: relative;
    z-index: 1;
    width: calc(100% - 24px);
    margin: 24px auto 0 !important;
  }

  .poems-hero-copy h1,
  .citations-hero-copy h1 {
    margin-top: 7px;
    font-size: clamp(2.35rem, 11vw, 3.35rem) !important;
    line-height: 1.02 !important;
  }

  .poems-hero-copy > p:last-child,
  .citations-hero-copy > p:last-child {
    margin-bottom: 0;
    font-size: 1rem !important;
    line-height: 1.6;
  }

  /* Rubrique Dictons : surtitre sur une ligne et titre principal sur deux. */
  .page-dictons .citations-hero-copy .eyebrow {
    white-space: nowrap;
    font-size: clamp(.56rem, 2.45vw, .68rem);
    letter-spacing: .08em;
  }

  .page-dictons .citations-hero-copy h1 em {
    display: block;
  }
}
