/*
Theme Name: Bienvivrelamenopause Empire — Santé femme 50+ warm authoritative
Description: Child theme empire (parent: astra) — Santé femme 50+ warm authoritative. Fonts: Fraunces + Manrope (self-hostés), OKLCH palette niche-aware.
Author: sam-agent
Template: astra
Version: 1.2.0
Text Domain: bienvivrelamenopause-empire
*/

/* =================================================================
   1. DESIGN TOKENS
   ================================================================= */
:root {
  --se-paper: oklch(97% 0.010 35);
  --se-tint:  oklch(94% 0.016 35);
  --se-deep:  oklch(89% 0.022 25);
  --se-ink:   oklch(20% 0.04 350);
  --se-soft:  oklch(40% 0.04 350);
  --se-line:  oklch(86% 0.016 25);
  --se-acc:   oklch(42% 0.14 340);
  --se-accH:  oklch(32% 0.16 340);
  --se-light: oklch(98% 0.010 35);
  --se-display: 'Fraunces', Georgia, serif;
  --se-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --se-rhythm: 24px;
  --se-radius: 10px;
  --se-shadow: 0 2px 12px rgba(40, 20, 30, 0.06);
  --se-shadow-h: 0 8px 28px rgba(40, 20, 30, 0.10);
}

/* =================================================================
   2. BASE TYPOGRAPHY
   ================================================================= */
body {
  font-family: var(--se-body);
  color: var(--se-ink);
  background: var(--se-paper);
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .ast-archive-title {
  font-family: var(--se-display);
  color: var(--se-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  word-break: normal;
  hyphens: none;
  overflow-wrap: normal;
}
h1, .entry-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 0; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.25rem); }

p { max-width: 70ch; margin-bottom: 1.2em; }

a:not(.wp-block-button__link):not(.uagb-infobox-cta-link):not(.menu-link):not([class*="bvl-btn"]):not([class*="button"]) {
  color: var(--se-acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--se-accH); }

/* =================================================================
   3. HEADER + NAV
   ================================================================= */
.site-header, #masthead, .ast-primary-header-bar {
  background: var(--se-paper);
  border-bottom: 1px solid var(--se-line);
  box-shadow: none;
}
.main-navigation a, .ast-primary-menu a, .menu-item a, .menu-link {
  font-family: var(--se-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--se-ink);
  text-decoration: none;
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}
.main-navigation a:hover, .ast-primary-menu a:hover, .menu-link:hover { color: var(--se-acc); }

.bvl-top-nav { background: var(--se-paper); border-bottom: 1px solid var(--se-line); padding: 0 1.5rem; }
.bvl-top-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; min-height: 48px; }
.bvl-top-nav a { font-family: var(--se-body); font-size: 0.9rem; font-weight: 500; color: var(--se-ink); text-decoration: none; padding: 8px 14px; border-radius: 4px; transition: background 180ms ease; }
.bvl-top-nav a:hover { background: var(--se-tint); color: var(--se-acc); }
@media (max-width: 768px) { .bvl-top-nav-inner { gap: 0.25rem; justify-content: center; } .bvl-top-nav a { padding: 6px 10px; font-size: 0.85rem; } }

/* =================================================================
   4. BOUTONS
   ================================================================= */
.bvl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--se-light);
  color: var(--se-ink);
  border: 1px solid var(--se-line);
  border-radius: 4px;
  font-family: var(--se-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  min-height: 44px;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 150ms ease;
  cursor: pointer;
}
.bvl-btn:hover { background: var(--se-tint); border-color: var(--se-acc); color: var(--se-acc); }
.bvl-btn-primary { background: var(--se-acc); color: #fff; border-color: var(--se-acc); }
.bvl-btn-primary:hover { background: var(--se-accH); border-color: var(--se-accH); color: #fff; }
.bvl-btn-large { padding: 16px 32px; font-size: 1rem; min-height: 52px; }

/* =================================================================
   5. HOME — MAIN + HERO
   ================================================================= */
body.bvl-home #primary { padding: 0; }
.bvl-home-main { display: block; }

.bvl-hero {
  background: linear-gradient(135deg, var(--se-deep) 0%, var(--se-tint) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--se-line);
}
.bvl-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.bvl-eyebrow {
  display: inline-block;
  font-family: var(--se-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--se-acc);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--se-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.bvl-hero h1 {
  font-family: var(--se-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--se-ink);
  max-width: 18ch;
  margin: 0 auto 0.7em;
  line-height: 1.1;
}
.bvl-hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--se-soft);
  max-width: 60ch;
  margin: 0 auto 1.6em;
  line-height: 1.55;
}
.bvl-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.bvl-hero-promises {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
  color: var(--se-soft);
}
.bvl-hero-promises li { display: inline-flex; align-items: center; gap: 6px; }
.bvl-hero-promises li span { color: var(--se-acc); font-weight: 700; }

@media (max-width: 600px) {
  .bvl-hero-cta { flex-direction: column; align-items: stretch; }
  .bvl-hero-cta .bvl-btn { width: 100%; }
}

/* =================================================================
   6. SILOS (sections par catégorie)
   ================================================================= */
.bvl-silo, .bvl-recent {
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  border-bottom: 1px solid var(--se-line);
}
.bvl-silo:nth-of-type(odd), .bvl-recent { background: #fff; }
.bvl-silo:nth-of-type(even) { background: var(--se-paper); }
.bvl-silo:last-of-type { border-bottom: 0; }

.bvl-silo-inner { max-width: 1200px; margin: 0 auto; }

.bvl-silo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.bvl-silo-head > div { flex: 1 1 auto; min-width: 0; }
.bvl-silo-eyebrow {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.bvl-silo-head h2 {
  font-family: var(--se-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--se-ink);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}
.bvl-silo-desc {
  font-size: 0.98rem;
  color: var(--se-soft);
  max-width: 60ch;
  margin: 0;
  line-height: 1.55;
}
.bvl-silo-more {
  flex-shrink: 0;
  font-family: var(--se-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--se-acc);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.bvl-silo-more:hover { border-bottom-color: var(--se-acc); color: var(--se-accH); }
@media (max-width: 600px) {
  .bvl-silo-head { flex-direction: column; align-items: flex-start; }
  .bvl-silo-more { align-self: flex-end; }
}

/* =================================================================
   7. CARDS GRID
   ================================================================= */
.bvl-cards { display: grid; gap: 1.5rem; }
.bvl-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .bvl-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bvl-cards-3 { grid-template-columns: 1fr; } }

.bvl-card {
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: var(--se-radius);
  overflow: hidden;
  box-shadow: var(--se-shadow);
  transition: box-shadow 220ms ease, transform 180ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bvl-card:hover { box-shadow: var(--se-shadow-h); transform: translateY(-3px); }
.bvl-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--se-tint);
  line-height: 0;
}
.bvl-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 320ms ease;
}
.bvl-card:hover .bvl-card-thumb img { transform: scale(1.04); }
.bvl-card-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 2.5rem; color: var(--se-soft);
}
.bvl-card-cat {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  display: inline-block;
  font-family: var(--se-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(40, 20, 35, 0.78);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.bvl-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.bvl-card-title {
  font-family: var(--se-display);
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--se-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bvl-card-title a { color: inherit; text-decoration: none; }
.bvl-card-title a:hover { color: var(--se-acc); }
.bvl-card-meta {
  font-family: var(--se-body);
  font-size: 0.82rem;
  color: var(--se-soft);
  margin: auto 0 0;
  padding-top: 0.5rem;
}

/* =================================================================
   8. ABOUT + TEAM
   ================================================================= */
.bvl-about {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: linear-gradient(180deg, var(--se-paper) 0%, var(--se-tint) 100%);
  border-top: 1px solid var(--se-line);
  border-bottom: 1px solid var(--se-line);
  text-align: center;
}
.bvl-about-inner { max-width: 880px; margin: 0 auto; }
.bvl-about h2 {
  font-family: var(--se-display);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}
.bvl-about p { font-size: 1rem; color: var(--se-soft); line-height: 1.65; max-width: 70ch; margin: 0 auto 1.1em; text-align: left; }
.bvl-about p a { color: var(--se-acc); }
.bvl-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem auto 2.25rem;
  max-width: 720px;
}
@media (max-width: 700px) { .bvl-team { grid-template-columns: 1fr; } }
.bvl-team-card {
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: var(--se-radius);
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  box-shadow: var(--se-shadow);
}
.bvl-team-card img {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.6rem;
  border: 2px solid var(--se-tint);
}
.bvl-team-card h3 { font-family: var(--se-display); font-size: 1.05rem; margin: 0 0 0.2rem; }
.bvl-team-card p { font-size: 0.86rem; color: var(--se-soft); margin: 0; text-align: center; }

/* =================================================================
   9. YMYL (encadré santé)
   ================================================================= */
.bvl-ymyl { padding: 1.25rem 1.5rem 2.5rem; background: var(--se-paper); }
.bvl-ymyl-inner {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--se-line);
  border-left: 4px solid var(--se-acc);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--se-soft);
  line-height: 1.55;
  text-align: left;
}
.bvl-ymyl-inner strong { color: var(--se-ink); }

/* =================================================================
   10. ASTRA BLOG GRID CARDS (catégories, archives)
   ================================================================= */
.ast-article-post {
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 220ms ease, transform 180ms ease;
}
.ast-article-post:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.ast-blog-featured-section.post-thumb { margin: 0; line-height: 0; }
.post-thumb-img-content.post-thumb { overflow: hidden; aspect-ratio: 16 / 10; background: var(--se-tint); }
.post-thumb-img-content.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.ast-article-post:hover .post-thumb-img-content.post-thumb img { transform: scale(1.03); }
.post-content.ast-grid-common-col { padding: 1.1rem 1.25rem 1.25rem; }
.ast-article-post .entry-title a { color: var(--se-ink); text-decoration: none; font-size: 1.1rem; line-height: 1.3; }
.ast-article-post .entry-title a:hover { color: var(--se-acc); }
.ast-article-post .entry-meta { font-size: 0.82rem; color: var(--se-soft); margin-top: 0.5rem; }
.ast-article-post .entry-meta a { color: var(--se-soft); text-decoration: none; }
.ast-article-post .entry-meta a:hover { color: var(--se-acc); }
.ast-article-post .cat-links a {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--se-acc); background: var(--se-tint);
  padding: 3px 10px; border-radius: 3px; text-decoration: none; margin-bottom: 0.5rem;
}

/* =================================================================
   11. PAGINATION + FOOTER
   ================================================================= */
.ast-pagination { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--se-line); }
.ast-pagination a, .ast-pagination span { padding: 10px 18px; border-radius: 4px; font-weight: 500; font-size: 0.9rem; }
.ast-pagination a { background: var(--se-tint); color: var(--se-ink); text-decoration: none; }
.ast-pagination a:hover { background: var(--se-acc); color: #fff; }
.ast-pagination .current { background: var(--se-acc); color: #fff; }

.site-footer, .ast-footer { background: var(--se-deep); color: var(--se-soft); padding-top: 2.5rem; padding-bottom: 2rem; }
.site-footer a, footer a { color: var(--se-soft); }
.site-footer a:hover { color: var(--se-acc); }

.bvl-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .bvl-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.bvl-footer-inner h4 { font-family: var(--se-display); font-size: 1.05rem; color: var(--se-ink); margin-bottom: 0.75rem; }
.bvl-footer-inner p, .bvl-footer-inner a { font-size: 0.9rem; color: var(--se-soft); text-decoration: none; line-height: 1.6; }
.bvl-footer-inner a:hover { color: var(--se-acc); text-decoration: underline; }
.bvl-footer-inner ul { list-style: none; padding: 0; margin: 0; }
.bvl-footer-inner li { margin-bottom: 0.4rem; }
.bvl-footer-copy { text-align: center; font-size: 0.85rem; color: var(--se-soft); margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--se-line); }

footer.site-footer, #colophon, .ast-site-footer-wrap, .ast-footer { display: none !important; }
.home h1.entry-title, .home p.empire-home-h1-intro { display: none !important; }

/* =================================================================
   12. UTILITIES
   ================================================================= */
:focus-visible { outline: 3px solid var(--se-acc); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
