/* ===== citations.css ===== */
.page-citations {
  background:#06112b;
  color:#f8f3f6
}

.citations-hero {
  position:relative;
  display:grid;
  min-height:clamp(480px,55vw,720px);
  overflow:hidden
}

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

.citations-hero:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent 25%,rgba(3,12,34,.2) 52%,rgba(3,12,34,.92) 100%)
}

.citations-hero-copy {
  position:relative;
  z-index:1;
  align-self:center;
  width:min(620px,46%);
  margin-left:auto;
  margin-right:clamp(24px,7vw,110px);
  text-align:left
}

.breadcrumb,.breadcrumb a {
  color:#efc774
}

.eyebrow,.section-kicker {
  color:#ff72b5;
  text-transform:uppercase;
  letter-spacing:.14em
}

.citations-hero h1 {
  margin:.2em 0;
  font-size:var(--taille-titre-rubrique-active);
  line-height:.92
}

.citations-hero h1 em {
  display:block;
  color:#ff65ad;
  font-weight:400
}

.citations-hero-copy>p:last-child {
  font-size:clamp(1.05rem,1.5vw,1.35rem);
  line-height:1.6
}

.quote-intro {
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:40px;
  align-items:end;
  width:min(1400px,92%);
  margin:70px auto 26px
}

.quote-intro h2 {
  font-size:clamp(2rem,4vw,3.8rem);
  margin:.15em 0
}

.quote-intro p {
  line-height:1.7
}

.quote-search {
  display:grid;
  gap:10px;
  color:#f6d4e4
}

.quote-search input {
  width:100%;
  padding:16px 18px;
  border:1px solid #b55b91;
  border-radius:999px;
  background:#101a3d;
  color:white;
  font:inherit
}

.quote-count {
  width:min(1400px,92%);
  margin:20px auto;
  color:#efc774
}

.quotes-grid {
  width:min(1400px,92%);
  margin:0 auto 70px;
  columns:3 330px;
  column-gap:22px
}

.quote-card {
  position:relative;
  break-inside:avoid;
  margin:0 0 22px;
  padding:28px;
  border:1px solid rgba(220,139,187,.34);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(33,43,85,.96),rgba(25,20,64,.96));
  box-shadow:0 15px 40px rgba(0,0,0,.2)
}

.quote-mark {
  position:absolute;
  top:4px;
  right:18px;
  color:rgba(255,101,173,.25);
  font-size:5rem
}

.quote-card blockquote {
  margin:0
}

.quote-card blockquote p {
  position:relative;
  margin:0;
  font-family:var(--police-poemes);
  font-size:1.15rem;
  line-height:1.62
}

.quote-author {
  color:#efc774;
  font-style:italic
}

.quote-share {
  border:1px solid #ff65ad;
  border-radius:999px;
  padding:9px 18px;
  background:transparent;
  color:#fff;
  cursor:pointer
}

.quote-share:hover,.quote-share:focus-visible {
  background:#ff65ad;
  color:#07122c
}

.no-quote {
  text-align:center;
  padding:50px
}

.site-footer {
  display:grid;
  grid-template-columns:1fr 2fr 1fr;
  gap:30px;
  align-items:center;
  padding:35px clamp(20px,5vw,80px);
  border-top:1px solid rgba(255,101,173,.35);
  background:#030a1c;
  text-align:center
}

.site-footer strong,.site-footer small {
  display:block
}

.site-footer p {
  margin:0;
  line-height:1.5;
  color:#c9c5d5
}

@media(max-width:850px) {
  .citations-hero {
    min-height:690px
  }

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

  .citations-hero:after {
    background:linear-gradient(0deg,rgba(3,12,34,.98) 5%,rgba(3,12,34,.3) 85%)
  }

  .citations-hero-copy {
    align-self:start;
    width:auto;
    margin:0;
    padding:132px 24px 24px
  }

  .quote-intro {
    grid-template-columns:1fr;
    margin-top:45px
  }

  .quotes-grid {
    columns:2 260px
  }

  .site-footer {
    grid-template-columns:1fr
  }

}

@media(max-width:520px) {
  .citations-hero h1 {
    font-size:3.2rem
  }

  .quotes-grid {
    columns:1
  }

  .quote-card {
    padding:24px
  }

  .quote-intro {
    gap:20px
  }

  .site-footer {
    font-size:.9rem
  }

}

/* Même rythme vertical que l’accueil sur tous les téléphones. */ @media (max-width: 760px) {
  .citations-hero {
    height: auto;
    min-height: 0;
  }

  .citations-hero-copy {
    align-self: start;
    padding: calc(var(--mobile-hero-text-offset, 80px) + 18px) 24px calc(var(--mobile-hero-bottom-space, 48px) + 18px);
  }

  .quote-intro {
    position: relative;
    z-index: 2;
    margin-top: -20px;
  }

  .quote-intro .section-kicker {
    margin-top: 0;
  }

}

/* Champ de filtrage des citations avec bouton-loupe tactile. */ .quote-search-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border: 1px solid #b55b91;
  border-radius: 999px;
  background: #101a3d;
}

.quote-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.quote-search-field button {
  flex: 0 0 54px;
  min-width: 54px;
  border: 0;
  background: linear-gradient(135deg, #ed3e8d, #8e4ff0);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.quote-search-field button:hover, .quote-search-field button:focus-visible {
  filter: brightness(1.13);
}

.quote-search-field button svg {
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Message temporaire de rénovation — composant autonome de la page. */ .page-citations .renewal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(1180px, 92%);
  margin: 8px auto 42px;
  padding: 20px 26px;
  border: 1px solid rgba(255, 114, 183, .48);
  border-radius: 18px;
  background: linear-gradient(135deg, #17254a, #28163f);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .32);
  color: #e4e8f3;
  text-align: center;
}

.page-citations .renewal-note > span {
  flex: 0 0 auto;
  color: #ff72b7;
  font-size: 25px;
}

.page-citations .renewal-note strong {
  display: block;
  margin-bottom: 4px;
  color: #ff82be;
  font: 700 21px var(--police-titres);
}

.page-citations .renewal-note p {
  margin: 0;
  color: #e4e8f3;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .page-citations .renewal-note {
    gap: 10px;
    padding: 16px;
  }

  .page-citations .renewal-note > span:last-child {
    display: none;
  }

  .page-citations .renewal-note strong {
    font-size: 19px;
  }

}

/* Grille régulière : lecture de gauche à droite sur ordinateur. */ .quotes-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  columns:auto;
  align-items:stretch;
}

.quote-card {
  display:flex;
  flex-direction:column;
  break-inside:auto;
  margin:0;
}

/* Garantit le filtrage, même si le navigateur surcharge l’attribut hidden. */ .quote-card[hidden] {
  display: none !important;
}

.quote-card .quote-share {
  align-self:flex-start;
  margin-top:auto;
}

@media(max-width:900px) {
  .quotes-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media(max-width:580px) {
  .quotes-grid {
    grid-template-columns:1fr
  }

}

/* Fil d’Ariane identique à celui de la page Poèmes. */ .page-citations .breadcrumb {
  margin: 0 0 24px;
  color: #bfcbe1;
  font-size: 14px;
}

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

.page-citations .quote-source {
  margin: 12px 0 18px;
  color: #c9c5d5;
  font-size: .9rem;
  line-height: 1.5;
}

.page-citations .quote-source a {
  color: #efc774;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== messages.css ===== */
/* Identité de la rubrique Messages, bâtie sur la grille validée des Citations. */
.page-messages .citations-hero:after {
  background: linear-gradient(90deg, transparent 28%, rgba(3, 12, 34, .22) 53%, rgba(3, 12, 34, .96) 100%);
}

.page-messages .quote-card {
  border-color: rgba(255, 127, 183, .38);
  background: linear-gradient(145deg, rgba(35, 44, 86, .97), rgba(35, 18, 61, .97));
}

.collection-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  width: min(900px, 92%);
  margin: -20px auto 70px;
  text-align: center;
}

.collection-pagination a,
.collection-pagination .disabled {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 101, 173, .5);
  border-radius: 999px;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;
}

.collection-pagination a:hover,
.collection-pagination a:focus-visible,
.collection-pagination a[aria-current="page"] {
  background: #ff65ad;
  color: #07122c;
}

.collection-pagination .page-step:first-child { justify-self: start; }
.collection-pagination .page-step:last-child { justify-self: end; }
.collection-pagination .disabled { opacity: .38; }
.page-numbers { display: flex; gap: 8px; }
.page-numbers a { min-width: 42px; padding-inline: 10px; }

@media (max-width: 850px) {
  .page-messages .citations-hero > img { object-position: 38% center; }
  .page-messages .citations-hero:after {
    background: linear-gradient(0deg, rgba(3, 12, 34, .98) 4%, rgba(3, 12, 34, .28) 88%);
  }
}

@media (max-width: 620px) {
  .collection-pagination { grid-template-columns: 1fr 1fr; }
  .page-numbers { grid-column: 1 / -1; grid-row: 1; justify-content: center; flex-wrap: wrap; }
  .collection-pagination .page-step { grid-row: 2; }
}

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