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

/* ===== declaration.css ===== */
/* ========================================================================== 
   PAGE DÉTAILLÉE D’UNE DÉCLARATION
   Structure commune : texte, partage et navigation.
   Les finitions visuelles sont regroupées dans declaration-theme.css.
   ========================================================================== */

.declaration-page {
  background: #06112d;
}

/* Conteneur principal */
.declaration-content {
  width: min(920px, calc(100% - 40px));
  margin: auto;
  padding: 72px 0 90px;
}

/* Carte contenant la déclaration */
.declaration-card {
  position: relative;
  padding: clamp(38px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid #849edcb3;
  border-radius: 36px;
  background: linear-gradient(145deg, #17234f, #11163c);
  box-shadow: 0 30px 70px #00000052;
  text-align: center;
}

.declaration-card::before,
.declaration-card::after {
  position: absolute;
  color: #ff67b121;
  font: 10rem/1 var(--police-poemes);
}

.declaration-card::before {
  content: "“";
  top: 6px;
  left: 24px;
}

.declaration-card::after {
  content: "”";
  right: 24px;
  bottom: -50px;
}

.declaration-card h2 {
  margin: 0 0 34px;
  color: #fffaf6;
  font: clamp(2.2rem, 5vw, 3.8rem) var(--police-poemes);
}

.declaration-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font: clamp(1.22rem, 2.5vw, 1.65rem)/1.9 var(--police-poemes);
}

.declaration-signature {
  margin: 35px 0 0;
  color: #ff72b5;
  font: italic 1.35rem var(--police-poemes);
}

/* Partage */
.share-panel {
  margin-top: 38px;
  padding: 30px;
  border: 1px solid #ff67b16b;
  border-radius: 28px;
  background: #141d48e0;
  text-align: center;
}

.share-panel h2 {
  margin: 0 0 8px;
  color: #fffaf6;
  font: 1.7rem var(--police-poemes);
}

.share-panel p {
  margin: 0 0 22px;
  color: #cfd7f3;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.share-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  background: #202b60;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: #ff72b5;
  background: #2d3977;
}

.share-button.primary {
  border: 0;
  background: linear-gradient(135deg, #ef3f91, #a94ee8);
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Navigation entre les déclarations */
.declaration-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.declaration-nav a,
.declaration-nav span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #849edca6;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.declaration-nav a:hover,
.declaration-nav a:focus-visible {
  border-color: #ff72b5;
  color: #ff92c7;
}

.declaration-nav .disabled {
  color: #7e89ac;
}

/* Adaptation mobile */
@media (max-width: 640px) {
  .declaration-content {
    width: calc(100% - 28px);
    padding: 38px 0 64px;
  }

  .declaration-card {
    border-radius: 26px;
  }

  .share-panel {
    padding: 25px 16px;
  }

  .share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .share-button {
    padding-inline: 12px;
  }

  .declaration-nav {
    grid-template-columns: 1fr;
  }
}

/* ===== declaration-theme.css ===== */
/* Finitions visuelles communes à toutes les déclarations détaillées. */
.declaration-page main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(193, 38, 105, .2), transparent 31rem),
    radial-gradient(circle at 88% 66%, rgba(116, 72, 182, .18), transparent 34rem),
    linear-gradient(180deg, #07132f 0%, #0a1536 48%, #050e26 100%);
}

.declaration-content {
  position: relative;
  isolation: isolate;
}

.declaration-content::before,
.declaration-content::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(242, 200, 111, .12);
  border-radius: 50%;
  filter: blur(.2px);
}

.declaration-content::before { top: 5%; left: -240px; box-shadow: 0 0 100px rgba(255, 94, 174, .15); }
.declaration-content::after { right: -240px; bottom: 12%; box-shadow: 0 0 100px rgba(122, 96, 220, .18); }

.declaration-card {
  border-color: rgba(242, 200, 111, .56);
  background:
    linear-gradient(rgba(17, 24, 58, .94), rgba(10, 18, 50, .97)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .018) 35px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .44), inset 0 0 55px rgba(255, 114, 181, .045);
}

.declaration-card::before,
.declaration-card::after { color: rgba(242, 200, 111, .13); }

.declaration-text { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

.share-panel {
  position: relative;
  border-color: rgba(242, 200, 111, .44);
  background: linear-gradient(145deg, rgba(24, 36, 82, .96), rgba(13, 22, 58, .96));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.share-heart {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin: -54px auto 13px;
  place-items: center;
  border: 1px solid rgba(242, 200, 111, .68);
  border-radius: 50%;
  background: #111b48;
  color: #ff72b5;
  font-size: 1.8rem;
}

.share-actions { gap: 14px; }
.share-button { min-width: 158px; border-color: rgba(242, 200, 111, .32); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.share-button.primary { background: linear-gradient(135deg, #ef3f91, #a94ee8); }
.share-button.facebook { background: linear-gradient(135deg, #263e83, #365fb6); }
.share-button.facebook span { font: 700 1.35rem Arial, sans-serif; }
.share-button:hover,.share-button:focus-visible { transform: translateY(-2px); }

.declaration-nav a { background: rgba(20, 31, 73, .76); }

@media (max-width: 640px) {
  .declaration-content::before,
  .declaration-content::after { width: 180px; height: 180px; }
  .declaration-card { padding-inline: 24px; }
  .declaration-text { font-size: 1.16rem; line-height: 1.82; }
  .share-actions { grid-template-columns: 1fr; }
  .share-button { width: 100%; min-width: 0; }
}

/* Fonds éditoriaux propres à chaque univers de lecture.
   Le voile ivoire protège la lisibilité du texte quelle que soit la photo. */
.declaration-page:not(.love-letter-page):not(.poem-detail-page) .declaration-card {
  background:
    linear-gradient(rgba(255, 250, 241, .88), rgba(255, 250, 241, .88)),
    url("../images/fonds-textes/fond-declarations-amour.webp") center / cover no-repeat;
}

.love-letter-page .declaration-card {
  background:
    linear-gradient(rgba(255, 252, 246, .89), rgba(255, 252, 246, .89)),
    url("../images/fonds-textes/fond-lettres-amour.webp") center / cover no-repeat;
}

.poem-detail-page .declaration-card {
  background:
    linear-gradient(rgba(255, 250, 241, .88), rgba(255, 250, 241, .88)),
    url("../images/fonds-textes/fond-poemes-amour.webp") center / cover no-repeat;
}

.declaration-page .declaration-card h2 { color: #2b1722; }
.declaration-page .declaration-card .declaration-text {
  color: #402630;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82);
}
.declaration-page .declaration-card .declaration-signature { color: #a52359; }
.declaration-page .declaration-card::before,
.declaration-page .declaration-card::after { color: rgba(145, 44, 78, .16); }

/* ===== poeme-detail.css ===== */
/* Adaptation du modèle validé des lettres aux poèmes d’amour. */
.poem-detail-page .citations-hero::after {
  background: linear-gradient(90deg, rgba(3, 12, 34, .08) 0%, rgba(3, 12, 34, .42) 48%, rgba(3, 12, 34, .94) 100%);
}

.poem-detail-page .citations-hero-copy {
  width: min(650px, 48%);
  margin-right: clamp(24px, 7vw, 110px);
  margin-left: auto;
}

.poem-detail-page .declaration-signature {
  text-align: right;
}

@media (max-width: 850px) {
  .poem-detail-page .citations-hero > img {
    object-position: 37% center;
  }

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

  .poem-detail-page .citations-hero-copy {
    width: auto;
    margin: 0;
  }
}
