/* ==========================================================================
   Les Mots du Deuil — Template article "poetique"
   Habille les pages internes (articles, pages, categories)
   Depend de mdd-custom.css (variables, fonts, header, base)
   v1.0.0 — 2026-03-05
   ========================================================================== */

/* --- Voile creme sur le contenu (laisse l'image transparaitre) --- */
.single .site-content,
.page:not(.page-id-17103) .site-content,
.archive .site-content {
  position: relative;
}
.single .site-content::before,
.page:not(.page-id-17103) .site-content::before,
.archive .site-content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--mdd-creme, rgba(250, 248, 245, 0.4));
  pointer-events: none;
  z-index: 0;
}
.single .site-content > *,
.page:not(.page-id-17103) .site-content > *,
.archive .site-content > * {
  position: relative;
  z-index: 1;
}

/* --- Titre article — poetique --- */
.single .entry-title,
.page:not(.page-id-17103) .entry-title {
  font-family: var(--mdd-font-titre, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--mdd-texte, #3A3A3A);
  line-height: 1.3;
  margin-bottom: 0.5em;
  text-align: center;
}

/* --- Meta article (date, auteur) --- */
.single .entry-meta,
.page:not(.page-id-17103) .entry-meta {
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--mdd-font-corps, 'Inter', sans-serif);
  font-size: 0.85rem;
  color: var(--mdd-bleu-brume, #8B9DAF);
  opacity: 0.8;
}

/* --- Zone contenu — carte verre depoli --- */
.single .entry-content,
.page:not(.page-id-17103) .entry-content {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--mdd-radius, 16px);
  padding: 3rem 2.5rem;
  margin: 0 auto 3rem;
  max-width: 760px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* --- Titres internes (h2, h3) dans l'article --- */
.single .entry-content h2,
.page:not(.page-id-17103) .entry-content h2 {
  font-family: var(--mdd-font-titre, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--mdd-texte, #3A3A3A);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-top: 1em;
  border-top: 1px solid rgba(139, 157, 175, 0.12);
}
.single .entry-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.single .entry-content h3,
.page:not(.page-id-17103) .entry-content h3 {
  font-family: var(--mdd-font-titre, 'Cormorant Garamond', serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--mdd-texte, #3A3A3A);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

/* --- Encarts / callouts — glassmorphism accentue --- */
.single .entry-content .wp-block-group,
.single .entry-content .mdd-encart {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 4px solid var(--mdd-bleu-brume, #8B9DAF);
  border-radius: 0 var(--mdd-radius, 16px) var(--mdd-radius, 16px) 0;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}

/* --- Blockquotes (temoignages) dans articles --- */
.single .entry-content blockquote {
  font-family: var(--mdd-font-titre, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.85;
  color: var(--mdd-texte, #3A3A3A);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 4px solid var(--mdd-secondaire, #7A9E7E);
  border-radius: 0 var(--mdd-radius, 16px) var(--mdd-radius, 16px) 0;
  padding: 1.5em 1.8em;
  margin: 2em 0;
}

/* --- Images dans les articles --- */
.single .entry-content img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.single .entry-content .wp-block-image figcaption {
  font-family: var(--mdd-font-corps, 'Inter', sans-serif);
  font-size: 0.82rem;
  color: var(--mdd-texte-light, #6B6B6B);
  text-align: center;
  margin-top: 0.75rem;
}

/* --- Sidebar / widget area (si visible) --- */
.single aside.widget-area,
.page aside.widget-area {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--mdd-radius, 16px);
  padding: 2rem;
}

/* --- Pages categories / archives --- */
.archive .page-title,
.archive .ast-archive-title {
  font-family: var(--mdd-font-titre, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-style: italic;
  font-size: 2rem;
  color: var(--mdd-texte, #3A3A3A);
  text-align: center;
  margin-bottom: 2rem;
}

.archive .ast-article-single {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--mdd-radius, 16px);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: background var(--mdd-transition, 0.35s ease), box-shadow var(--mdd-transition, 0.35s ease);
}
.archive .ast-article-single:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .single .entry-content,
  .page:not(.page-id-17103) .entry-content {
    padding: 2rem 1.25rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .single .entry-title,
  .page:not(.page-id-17103) .entry-title {
    font-size: 1.6rem;
  }
}
