/* ==========================================================================
   Les Mots du Deuil — Charte graphique "poetique"
   Direction : contemplatif, doux, lumineux
   Fonts : Cormorant Garamond (titres) + Inter (corps) — self-hosted
   Couleurs : bleu brume + beige dore + creme voile
   v3.0.0 — DA globale (2026-03-05)
   ========================================================================== */

/* --- @font-face (self-hosted) --- */
@font-face {
  font-family: 'Lora';
  src: url('/wp-content/uploads/fonts/lora-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/wp-content/uploads/fonts/lora-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/wp-content/uploads/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/wp-content/uploads/fonts/inter-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/wp-content/uploads/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Variables CSS — DA poetique --- */
:root {
  --mdd-fond: #E8E0D8;
  --mdd-bleu-brume: #8B9DAF;
  --mdd-bleu-brume-dark: #6B7D8F;
  --mdd-secondaire: #7A9E7E;
  --mdd-accent: #C4A882;
  --mdd-accent-hover: #b89870;
  --mdd-texte: #3A3A3A;
  --mdd-texte-light: #6B6B6B;
  --mdd-fond-section: rgba(242, 239, 233, 0.65);
  --mdd-verre: rgba(255, 255, 255, 0.6);
  --mdd-verre-hover: rgba(255, 255, 255, 0.82);
  --mdd-verre-border: rgba(255, 255, 255, 0.5);
  --mdd-creme: rgba(250, 248, 245, 0.4);
  --mdd-radius: 16px;
  --mdd-transition: 0.35s ease;
  --mdd-font-titre: 'Cormorant Garamond', 'Lora', Georgia, serif;
  --mdd-font-corps: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Base : fond image brume --- */
body {
  background-color: var(--mdd-fond) !important;
  background-image: url('/wp-content/mdd-fond-brume.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--mdd-texte);
  font-family: var(--mdd-font-corps);
  font-size: 17px;
  line-height: 1.85;
}

/* --- Typographie poetique --- */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.ast-archive-title {
  font-family: var(--mdd-font-titre);
  color: var(--mdd-texte);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
}

h1, .entry-title {
  font-size: 2.2rem;
  margin-bottom: 0.75em;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2em;
}

p {
  margin-bottom: 1.3em;
}

/* --- Liens --- */
a {
  color: var(--mdd-bleu-brume);
  text-decoration: underline;
  text-decoration-color: var(--mdd-accent);
  text-underline-offset: 3px;
  transition: color var(--mdd-transition);
}
a:hover {
  color: var(--mdd-bleu-brume-dark);
}

/* --- Header — verre depoli poetique (global) --- */
.ast-primary-header-bar,
.ast-primary-header-bar.main-header-bar,
.site-header,
.ast-primary-header {
  background: rgba(255, 255, 255, 0.7) !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Logo — Cormorant Garamond italic, discret */
.site-title a,
.ast-site-identity a,
.site-header .site-title a {
  color: var(--mdd-texte) !important;
  font-family: var(--mdd-font-titre) !important;
  font-size: 1.4rem;
  font-weight: 400 !important;
  font-style: italic !important;
  text-decoration: none;
  letter-spacing: 0;
}
.site-title a:hover,
.site-header .site-title a:hover {
  color: var(--mdd-bleu-brume) !important;
}

/* Navigation — gris doux, legers */
.main-header-menu a,
.ast-header-sections-navigation a,
.main-navigation a,
.ast-primary-header-bar .menu-item > a,
.ast-nav-menu .menu-link {
  color: var(--mdd-texte-light) !important;
  font-family: var(--mdd-font-corps);
  font-weight: 400;
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color var(--mdd-transition);
}
.main-header-menu a:hover,
.ast-header-sections-navigation a:hover,
.main-navigation a:hover,
.ast-primary-header-bar .menu-item > a:hover,
.ast-nav-menu .menu-link:hover {
  color: var(--mdd-bleu-brume) !important;
}

/* Sous-menus — verre depoli */
.sub-menu,
.ast-header-sections-navigation .sub-menu {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.sub-menu a {
  color: var(--mdd-texte-light) !important;
}
.sub-menu a:hover {
  color: var(--mdd-bleu-brume) !important;
  background-color: rgba(139, 157, 175, 0.08) !important;
}

/* --- Contenu principal --- */
.site-content .ast-container,
.entry-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Meta article (date, auteur) */
.entry-meta,
.entry-meta a,
.posted-on,
.byline {
  color: var(--mdd-bleu-brume);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- Blockquotes (temoignages forum) — glassmorphism --- */
blockquote {
  border-left: 4px solid var(--mdd-secondaire);
  background: var(--mdd-verre);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--mdd-verre-border);
  border-left: 4px solid var(--mdd-secondaire);
  padding: 1.5em 1.8em;
  margin: 2em 0;
  border-radius: 0 var(--mdd-radius) var(--mdd-radius) 0;
  font-style: italic;
  font-family: var(--mdd-font-titre);
  font-size: 1.1rem;
  color: var(--mdd-texte);
  line-height: 1.8;
}
blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Listes --- */
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}
.entry-content li {
  margin-bottom: 0.6em;
}
.entry-content li::marker {
  color: var(--mdd-bleu-brume);
}

/* --- Footer custom (mdd-footer.php gere le HTML) --- */
/* Le footer Astra est masque par mdd-footer.css */
/* Ajustement poetique du footer custom */
.site-footer,
.ast-footer-overlay {
  display: none !important;
}

/* --- Sections alternees --- */
.entry-content h2 {
  padding-top: 0.75em;
  border-top: 1px solid rgba(139, 157, 175, 0.15);
}

/* --- Boutons (CTA) — pilule poetique --- */
.wp-block-button__link,
a.ast-custom-button,
.entry-content .wp-block-button__link {
  background-color: var(--mdd-accent);
  color: #2C2C2C;
  font-family: var(--mdd-font-corps);
  font-weight: 500;
  border: none;
  border-radius: 30px;
  padding: 0.9em 2.2em;
  text-decoration: none;
  transition: background-color var(--mdd-transition), transform var(--mdd-transition), box-shadow var(--mdd-transition);
  box-shadow: 0 2px 12px rgba(196, 168, 130, 0.25);
}
.wp-block-button__link:hover,
a.ast-custom-button:hover,
.entry-content .wp-block-button__link:hover {
  background-color: var(--mdd-accent-hover);
  color: #2C2C2C;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196, 168, 130, 0.35);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    background-attachment: scroll;
  }
  h1, .entry-title {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .site-content .ast-container,
  .entry-content {
    max-width: 100%;
    padding: 0 1em;
  }
}

/* Masquer le "Powered by Astra" (securite) */
.ast-footer-copyright .ast-footer-html-inner a[href*="wpastra.com"] {
  display: none;
}
