/* ===== 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;
}

.poems-hero .eyebrow {
  margin: 0 0 10px;
  color: #ff78ba;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.52px;
  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: 19px;
  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: 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: 60px;
  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: 2.88px;
  text-transform: uppercase;
}

.acrostic-feature h2 {
  max-width: 720px;
  margin: 0 0 16px;
  font: 700 45px/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 16.5px/1.5 var(--police-titres);
}

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

.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: 2.88px;
  text-transform: uppercase;
}

.collection-heading h2 {
  margin: 7px 0 8px;
  font: 700 37.5px/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: 20px;
  }
}

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

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

/* Sur mobile, rapproche la dernière collection de l'encadré final. */
@media (max-width: 760px) {
  .poem-collections {
    padding-bottom: 18px;
  }

  .poem-collections > .collection-block:last-child {
    margin-bottom: 16px;
  }

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

/* Grand visuel commun aux pages principales du site. */
.poems-hero {
  display: grid;
  min-height: 600px;
  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: 67px;
  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);
  }
}

/* ===== Mise en page mobile validée des rubriques ===== */
.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;
  }

  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,
  .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;
    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;
    transform: none !important;
  }

  .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: 16px !important;
    line-height: 1.6;
  }
}

@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: -0.4px !important;
    white-space: nowrap !important;
  }

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