/* ===== poemes.css ===== */
/* =====================================================================
   PAGE POÈMES — AMOUR ET AMITIÉ 2002
   Cette feuille complète les styles communs de la page d’accueil.
   ===================================================================== */

.poems-page {
  background:
    radial-gradient(circle at 15% 12%, #53185588 0, transparent 28%),
    radial-gradient(circle at 85% 20%, #123d7088 0, transparent 30%),
    #020b24;
}

.poems-hero {
  position: relative;
  min-height: 430px;
  padding: 145px max(5vw, 24px) 80px;
  overflow: hidden;
  border-bottom: 1px solid #74528f88;
  background:
    linear-gradient(90deg, #020b25f2 0%, #081331cc 52%, #25103d99 100%),
    radial-gradient(circle at 78% 42%, #ff4fa52e 0, transparent 34%);
}

.poems-hero::before,
.poems-hero::after {
  position: absolute;
  color: #ff72b720;
  font: 220px/1 var(--police-titres);
  content: "❝";
}

.poems-hero::before {
  top: 80px;
  right: 8%;
}

.poems-hero::after {
  right: 24%;
  bottom: -105px;
  transform: rotate(180deg);
}

.poems-hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.breadcrumb {
  margin: 0 0 24px;
  color: #bfcbe1;
  font-size: 14px;
}

.breadcrumb a {
  color: #ff83c1;
  text-decoration: none;
}

.breadcrumb .breadcrumb-parent {
  color: #bfcbe1;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.poems-hero .eyebrow {
  margin: 0 0 10px;
  color: #ff78ba;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.poems-hero h1 {
  margin: 0 0 18px;
  font: 700 var(--taille-titre-rubrique-active)/.98 var(--police-titres);
}

.poems-hero h1 em {
  color: #ff67ad;
  font-weight: 500;
}

.poems-hero-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #e1e5f0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
}

.poems-tools {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: -36px auto 52px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: 1px solid #6b75a7;
  border-radius: 20px;
  background: #10183ee8;
  box-shadow: 0 20px 50px #0008;
  backdrop-filter: blur(18px);
}

.acrostic-feature {
  position: relative;
  width: min(1380px, 94%);
  min-height: 390px;
  margin: 0 auto 64px;
  padding: clamp(30px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  overflow: hidden;
  border: 1px solid #c69c5d99;
  border-radius: 28px;
  background:
    linear-gradient(90deg, #08132aef 0%, #251535dd 48%, #2a152f9c 100%),
    url("../images/poemes-amour/poeme-personnalise-fond.webp") center / cover;
  box-shadow: 0 25px 70px #0007;
}

.acrostic-feature::after {
  content: "A";
  position: absolute;
  right: -18px;
  bottom: -105px;
  color: #ff75b80d;
  font: 700 410px/1 var(--police-titres);
}

.acrostic-feature-copy,
.acrostic-example {
  position: relative;
  z-index: 1;
}

.acrostic-feature .eyebrow {
  margin: 0 0 10px;
  color: #ff79b9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.acrostic-feature h2 {
  max-width: 720px;
  margin: 0 0 16px;
  font: 700 clamp(32px, 4vw, 58px)/1.05 var(--police-titres);
}

.acrostic-feature-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 26px;
  color: #dce2ef;
  line-height: 1.7;
}

.acrostic-feature-copy > a {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ed3f8e, #914ef1);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px #0005;
  transition: transform .2s, box-shadow .2s;
}

.acrostic-feature-copy > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px #0007;
}

.acrostic-example {
  padding: 28px;
  border: 1px solid #e9c68399;
  border-radius: 22px;
  color: #402634;
  background: #fff8e8ee;
  box-shadow: 0 18px 46px #0006;
}

.acrostic-example span {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #9d315b22;
  font: 500 clamp(15px, 1.5vw, 18px)/1.5 var(--police-titres);
}

.acrostic-example strong {
  display: inline-block;
  width: 31px;
  color: #c52265;
  font-size: 1.65em;
}

.acrostic-example .example-more {
  border: 0;
  color: #c52265;
  font-size: 23px;
  text-align: center;
}

.acrostic-example small {
  display: block;
  margin-top: 9px;
  color: #8f526b;
  font-weight: 700;
  text-align: right;
}

.poems-tools a {
  padding: 16px 18px;
  border-radius: 13px;
  background: #17234a;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}

@media (min-width: 761px) {
  .poems-tools a { white-space: nowrap; }
}

.poems-tools a:hover {
  background: linear-gradient(135deg, #e83f8d, #864df0);
  transform: translateY(-2px);
}

.poems-tools i {
  margin-right: 8px;
  color: #ff7cba;
  font-style: normal;
}

.poem-collections {
  width: min(1500px, 94%);
  margin: 0 auto;
  padding-bottom: 70px;
}

.collection-block {
  margin-bottom: 56px;
}

.collection-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.collection-heading span {
  color: #ff72b5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.collection-heading h2 {
  margin: 7px 0 8px;
  font: 700 clamp(30px, 3vw, 45px)/1.1 var(--police-titres);
}

.collection-heading p {
  margin: 0;
  color: #bfc9dc;
  line-height: 1.6;
}

.poem-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.poem-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #526f9d;
  border-radius: 18px;
  background:
    linear-gradient(145deg, #232047dd, #071635ee),
    #10183c;
  box-shadow: 0 15px 34px #0005;
  color: #fff;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.poem-card:hover {
  border-color: #ff75b8;
  box-shadow: 0 18px 42px #0008, 0 0 24px #ff4f9d22;
  transform: translateY(-5px);
}

.poem-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.poem-card h3 {
  margin: 17px 18px 7px;
  font: 700 22px/1.15 var(--police-titres);
}

.poem-card p {
  margin: 0 18px 18px;
  color: #c8d0e1;
  font-size: 14px;
  line-height: 1.45;
}

.poem-card strong {
  margin: auto 18px 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ed3f8e, #914ef1);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.poems-page .renewal-note {
  margin-top: 10px;
}

@media (max-width: 1280px) {
  .poem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .poem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .acrostic-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .poems-hero {
    min-height: 420px;
    padding: 118px 22px 70px;
  }

  .poems-hero::before {
    right: -20px;
    font-size: 150px;
  }

  .poems-hero h1 {
    font-size: var(--taille-titre-rubrique-active);
  }

  .poems-tools {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .acrostic-feature {
    width: calc(100% - 20px);
    margin-bottom: 42px;
    padding: 28px 18px;
    border-radius: 22px;
  }

  .acrostic-example {
    padding: 20px;
  }

  .poem-collections {
    width: calc(100% - 28px);
  }

  .poem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .poem-card {
    min-height: 0;
  }

  .poem-card h3 {
    font-size: clamp(18px, 5.3vw, 22px);
  }
}

@media (max-width: 390px) {
  .poem-grid {
    grid-template-columns: 1fr;
  }

  .poem-card {
    min-height: 155px;
  }
}

/* Grand visuel commun aux pages principales du site. */
.poems-hero {
  display: grid;
  min-height: clamp(480px, 55vw, 720px);
  padding: 0;
  background: #07142e;
}

.poems-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poems-hero::before {
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, #030c2233 52%, #030c22ed 100%);
  color: transparent;
  content: "";
}

.poems-hero::after {
  display: none;
}

.poems-hero-copy {
  align-self: center;
  width: min(620px, 46%);
  margin-right: clamp(24px, 7vw, 110px);
  margin-left: auto;
}

@media (max-width: 760px) {
  .poems-hero {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .poems-hero > img {
    object-position: 38% center;
  }

  .poems-hero::before {
    right: 0;
    background: linear-gradient(0deg, #030c22fa 5%, #030c224d 85%);
  }

  .poems-hero-copy {
    /* Alignement visuel exact sur la page Citations en affichage mobile. */
    align-self: start;
    width: auto;
    margin: 0;
    padding:
      calc(var(--mobile-hero-text-offset, 80px) + 18px)
      24px
      calc(var(--mobile-hero-bottom-space, 48px) + 18px);
  }

  .poems-tools {
    /* L’espace est fourni par le bas du visuel, exactement comme sur Citations. */
    margin-top: var(--mobile-next-section-overlap, 0);
  }
}

/* ===== poemes-amour.css ===== */
/** Page de collection consacrée aux poèmes d’amour. */
.love-poems-page .poems-hero::before {
  background: linear-gradient(90deg, transparent 27%, rgba(3, 12, 34, .2) 52%, rgba(3, 12, 34, .94) 100%);
}

.love-poems-page .poem-collections {
  padding-top: 8px;
}

.love-section-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px;
  border: 1px solid rgba(239, 199, 116, .42);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 103, 173, .1), transparent 42%),
    linear-gradient(145deg, rgba(31, 37, 78, .98), rgba(10, 23, 54, .98));
  box-shadow: 0 20px 45px rgba(1, 7, 22, .24);
}

.love-section-photo {
  width: 260px;
  height: 135px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 19px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

.love-section-photo img {
  display: block;
  width: 100%;
  height: 135px;
  aspect-ratio: auto;
  object-fit: cover;
}

.love-section-intro .collection-heading {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.love-section-intro .collection-heading h2 {
  max-width: none;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.love-section-intro .collection-heading p {
  max-width: none;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .love-section-intro .collection-heading span {
    white-space: nowrap;
  }

  .love-section-intro .collection-heading h2,
  .love-section-intro .collection-heading p {
    white-space: normal;
  }

  .love-section-intro .collection-heading h2 {
    font-size: clamp(29px, 2.45vw, 45px);
  }

  .love-section-intro .collection-heading p {
    font-size: clamp(14px, 1.12vw, 18px);
  }
}

.love-poem-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.love-poem-card {
  position: relative;
  min-height: 230px;
  padding: 28px 24px 22px;
  overflow: hidden;
  border-color: rgba(239, 199, 116, .42);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 103, 173, .15), transparent 42%),
    linear-gradient(145deg, rgba(31, 37, 78, .98), rgba(10, 23, 54, .98));
}

.love-poem-card::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(239, 199, 116, .14);
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.love-poem-card::after {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(255, 117, 184, .14);
  content: "♡";
  font: 72px/1 var(--police-poemes);
  pointer-events: none;
}

.love-poem-card .poem-card-ornament {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: #efc774;
  font-size: 24px;
}

.love-poem-card .poem-number {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: #ff80bd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.love-poem-card h3 {
  position: relative;
  z-index: 1;
  margin: 9px 0 24px;
  font-size: clamp(21px, 1.5vw, 27px);
  line-height: 1.2;
}

.love-poem-card strong {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

@media (max-width: 760px) {
  .love-section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 21px;
  }

  .love-section-photo {
    width: 100%;
    height: clamp(135px, 42vw, 190px);
    border-radius: 12px;
  }

  .love-section-photo img {
    height: 100%;
  }

  .love-section-intro .collection-heading span {
    font-size: 11px;
    letter-spacing: .08em;
  }

  .love-section-intro .collection-heading h2 {
    margin-top: 5px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .love-section-intro .collection-heading p {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.55;
  }

  .love-poems-page .poems-hero > img {
    object-position: 37% center;
  }

  .love-poems-page .poems-hero::before {
    background: linear-gradient(0deg, rgba(3, 12, 34, .98) 5%, rgba(3, 12, 34, .3) 85%);
  }

  .love-poem-card {
    min-height: 210px;
    padding: 23px 20px 19px;
  }
}

@media (max-width: 980px) {
  .love-poem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .love-poem-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html,
  body,
  .love-poems-page,
  .love-poems-page main,
  .love-poems-page .poem-collections,
  .love-poems-page .collection-block,
  .love-poems-page .love-poem-grid,
  .love-poems-page .love-poem-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 390px) {
  .love-poem-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== rubriques-mobile.css ===== */
/* 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: 82px !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: var(--taille-titre-rubrique-active) !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;
  }
}

/* Garantit le ratio complet 1800 × 945 et les titres sur une ligne. */
@media (max-width: 760px) {
  main > .hero > img.mobile-rubrique-image,
  main > .poems-hero > img.mobile-rubrique-image,
  main > .citations-hero > img.mobile-rubrique-image {
    width: 100vw !important;
    height: 52.5vw !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1800 / 945 !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  main > .poems-hero > .poems-hero-copy h1,
  main > .citations-hero > .citations-hero-copy h1 {
    width: 100% !important;
    max-width: none !important;
    font-size: var(--taille-titre-rubrique-active) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    white-space: nowrap !important;
  }

  main > .poems-hero > .poems-hero-copy h1 em,
  main > .citations-hero > .citations-hero-copy h1 em {
    display: inline !important;
  }
}

/* ===== images-rubriques-mobile.css ===== */
