/* =============================================================================
   Les Artisans d'Aquitaine — Hand-Drawn Illustration Folk
   Design system: handdrawn-illustration-05
   Header: logo-left-menu-center-cta-right | Hero: quote-hero | Cat: sandwich
   ============================================================================= */

/* ----------------------------- VARIABLES ----------------------------------- */
:root {
  --bdf-primary: #C8553D;
  --bdf-primary-hover: #A8442F;
  --bdf-accent: #475841;
  --bdf-accent-hover: #344232;
  --bdf-text: #2A1A14;
  --bdf-text-soft: #5A4A35;
  --bdf-bg: #F0E5D0;
  --bdf-surface: #FAF2E0;
  --bdf-line: #D5C0A0;
  --bdf-white: #FFFEFA;
  --bdf-shadow: 0 4px 14px rgba(42, 26, 20, 0.08);
  --bdf-shadow-strong: 0 8px 24px rgba(42, 26, 20, 0.14);
  --bdf-radius: 10px;
  --bdf-radius-lg: 16px;
  --bdf-radius-sm: 6px;
  --bdf-container: 1200px;
  --bdf-font-h: 'Amaranth', Georgia, serif;
  --bdf-font-b: 'Karla', system-ui, -apple-system, sans-serif;
}

/* ----------------------------- BASE RESET ---------------------------------- */
.bdf-body {
  margin: 0;
  font-family: var(--bdf-font-b);
  color: var(--bdf-text);
  background: var(--bdf-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bdf-body * { box-sizing: border-box; }

.bdf-body h1, .bdf-body h2, .bdf-body h3, .bdf-body h4, .bdf-body h5, .bdf-body h6 {
  font-family: var(--bdf-font-h);
  font-weight: 700;
  color: var(--bdf-text);
  line-height: 1.2;
  margin: 0 0 .8rem;
}

.bdf-body h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.bdf-body h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin-top: 1.6rem; }
.bdf-body h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin-top: 1.2rem; }

.bdf-body p { margin: 0 0 1.1rem; color: var(--bdf-text); }
.bdf-body a { color: var(--bdf-primary); text-decoration: none; }
.bdf-body a:hover { color: var(--bdf-primary-hover); text-decoration: underline; }

.bdf-body img { max-width: 100%; height: auto; display: block; }

main, .bdf-main { padding-top: 0 !important; margin-top: 0 !important; }

.bdf-container { max-width: var(--bdf-container); margin: 0 auto; padding: 0 1.5rem; }

/* ----------------------------- BUTTONS (terracotta_folk) ------------------- */
.bdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font-family: var(--bdf-font-h);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--bdf-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  letter-spacing: .01em;
}

.bdf-btn--primary {
  background: var(--bdf-primary);
  color: #fff;
  border-color: var(--bdf-primary);
}
.bdf-btn--primary:hover { background: var(--bdf-primary-hover); border-color: var(--bdf-primary-hover); color: #fff; }

.bdf-btn--ghost {
  background: transparent;
  color: var(--bdf-text);
  border-color: var(--bdf-line);
}
.bdf-btn--ghost:hover { background: var(--bdf-surface); border-color: var(--bdf-primary); color: var(--bdf-primary); }

.bdf-btn--cta {
  background: var(--bdf-primary);
  color: #fff;
  border-color: var(--bdf-primary);
  box-shadow: 0 4px 14px rgba(200, 85, 61, 0.25);
}
.bdf-btn--cta:hover { background: var(--bdf-primary-hover); border-color: var(--bdf-primary-hover); color: #fff; }

/* ----------------------------- ANIMATIONS ---------------------------------- */
@keyframes bdf-cta-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.bdf-btn--cta { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.bdf-btn--cta:hover { animation: bdf-cta-scale .45s ease; box-shadow: 0 6px 22px rgba(200, 85, 61, 0.35); }
.bdf-btn--cta:active { transform: scale(.98); }

@keyframes bdf-ctr-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bdf-counter { opacity: 0; }
.bdf-counter[data-counted="true"] { animation: bdf-ctr-fade-up .6s ease both; }

@keyframes bdf-cto-spin-in {
  0% { transform: rotate(-180deg) scale(.4); opacity: 0; }
  60% { transform: rotate(15deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(0) scale(1); opacity: 1; }
}
.bdf-cto-popup { animation: bdf-cto-spin-in .9s cubic-bezier(.25,.8,.3,1.2) both; }

@keyframes bdf-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------- MOUSE EFFECT (cursor_glow_dot) -------------- */
.bdf-cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bdf-accent);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
  filter: blur(10px);
  box-shadow: 0 0 38px var(--bdf-accent);
  will-change: transform, left, top;
}
.bdf-cursor-glow.is-on { opacity: .7; }
@media (hover: none) { .bdf-cursor-glow { display: none !important; } }

/* ============================================================================
   HEADER — logo-left-menu-center-cta-right + folk_illustration
   ============================================================================ */
.bdf-header {
  background: var(--bdf-bg);
  border-bottom: 1.5px solid var(--bdf-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--bdf-shadow);
}

.bdf-header-inner {
  max-width: var(--bdf-container);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.bdf-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  text-decoration: none !important;
}
.bdf-brand-logo {
  height: auto;
  max-width: 100%;
}
.bdf-brand-name {
  font-family: var(--bdf-font-h);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--bdf-text);
  letter-spacing: .02em;
  /* Title Case — no text-transform */
}

.bdf-nav-desktop { display: none; }
.bdf-nav-desktop-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.bdf-nav-desktop-list--row + .bdf-nav-desktop-list--row { margin-top: .35rem; }
.bdf-nav-desktop-list li { margin: 0; }
.bdf-nav-desktop-list a {
  color: var(--bdf-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.bdf-nav-desktop-list a:hover {
  color: var(--bdf-primary);
  border-bottom-color: var(--bdf-primary);
}
.bdf-nav-desktop-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
}

/* Header CTA desktop (yes case) */
.bdf-header-cta-desktop {
  flex-shrink: 0;
  padding: .55rem 1.1rem;
  font-size: .92rem;
}

/* Burger button mobile */
.bdf-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(255, 254, 250, 0.92) !important;
  border: 1.5px solid var(--bdf-line) !important;
  border-radius: 8px !important;
  color: var(--bdf-text) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.bdf-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 22px !important;
  height: 16px !important;
}
.bdf-burger-bars span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--bdf-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.bdf-burger[aria-expanded="true"] .bdf-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bdf-burger[aria-expanded="true"] .bdf-burger-bars span:nth-child(2) { opacity: 0; }
.bdf-burger[aria-expanded="true"] .bdf-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer mobile — display:none by default to avoid pre-deployed bug */
.bdf-nav-mobile { display: none; }
.bdf-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bdf-nav-mobile-list li { border-bottom: 1px solid var(--bdf-line); }
.bdf-nav-mobile-list a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem .2rem;
  color: var(--bdf-text);
  font-family: var(--bdf-font-h);
  font-size: 1.05rem;
  text-decoration: none;
}
.bdf-nav-mobile-list a:hover { color: var(--bdf-primary); }
.bdf-nav-mobile-list svg { width: 20px; height: 20px; }

.bdf-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 20, 0.55);
  z-index: 9998;
}
.bdf-nav-overlay.is-on { display: block; }

.bdf-drawer-cta {
  display: none;
}

/* Mobile responsive */
@media (max-width: 1023px) {
  .bdf-header-cta-desktop {
    display: none !important;
  }
  .bdf-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--bdf-white);
    padding: 5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(42, 26, 20, 0.25);
  }
  .bdf-drawer-cta {
    display: block !important;
    margin: 2rem 0 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--bdf-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    font-family: var(--bdf-font-h);
  }
}

@media (min-width: 1024px) {
  .bdf-nav-desktop {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
  }
  .bdf-burger {
    display: none !important;
  }
  .bdf-drawer-cta {
    display: none !important;
  }
}

/* ============================================================================
   HERO — quote-hero
   ============================================================================ */
.bdf-hero {
  position: relative;
  min-height: 70vh;
  max-height: 720px;
  overflow: hidden;
  background: var(--bdf-surface);
  display: flex;
  align-items: center;
}
.bdf-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.95;
}
.bdf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--bdf-text);
}
.bdf-hero-eyebrow {
  display: inline-block;
  font-family: var(--bdf-font-h);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bdf-primary);
  padding: .4rem .9rem;
  background: var(--bdf-white);
  border-radius: 999px;
  border: 1.5px solid var(--bdf-primary);
  margin-bottom: 1.5rem;
}
.bdf-hero-quote-mark {
  font-family: 'Georgia', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--bdf-primary);
  opacity: 0.55;
  display: block;
  margin: 0 auto 0;
  font-style: italic;
}
.bdf-hero-title,
.bdf-hero h1 {
  font-family: var(--bdf-font-h);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #fff;
  font-style: italic;
}
.bdf-hero-subtitle {
  font-family: var(--bdf-font-b);
  font-size: 1.1rem;
  color: var(--bdf-text-soft);
  margin-bottom: 1.8rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.bdf-hero-attribution {
  font-family: var(--bdf-font-b);
  font-size: .95rem;
  color: var(--bdf-text-soft);
  font-style: normal;
  letter-spacing: .04em;
  margin-bottom: 1.8rem;
}
.bdf-hero-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* When hero has YouTube video bg — keeps dark overlay only in that case */
.bdf-hero--has-video .bdf-hero-video-wrap { position: absolute; inset: 0; pointer-events: none; }
.bdf-hero--has-video .bdf-hero-video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%); border: 0;
}
.bdf-hero--has-video .bdf-hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.bdf-hero--has-video .bdf-hero-title,
.bdf-hero--has-video .bdf-hero-subtitle,
.bdf-hero--has-video .bdf-hero-attribution { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

/* Force white H1 in hero — fixed AND animated (typewriter / rotator) */
.bdf-hero h1,
.bdf-hero .bdf-hero-title,
.bdf-hero h1 *,
.bdf-hero .bdf-hero-title *,
.bdf-hero .bdf-typewriter,
.bdf-hero .bdf-typewriter *,
.bdf-hero .bdf-rotator,
.bdf-hero .bdf-rotator *,
.bdf-hero .bdf-rotator-item,
.bdf-hero .bdf-hero-title-fixed,
.bdf-hero .bdf-hero-title-animated { color: #fff !important; }

/* ============================================================================
   EDITORIAL INTRO BLOCK (after-hero placement)
   ============================================================================ */
.bdf-editorial {
  background: var(--bdf-bg);
  padding: 4rem 0;
}
.bdf-editorial-inner { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }
.bdf-editorial h2 {
  font-family: var(--bdf-font-h);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--bdf-text);
  margin: 0 0 1rem;
  position: relative;
  padding-bottom: .6rem;
}
.bdf-editorial h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--bdf-primary);
  border-radius: 2px;
}
.bdf-editorial h3 {
  font-family: var(--bdf-font-h);
  font-size: 1.25rem;
  color: var(--bdf-accent);
  margin-top: 2rem;
}
.bdf-editorial p { color: var(--bdf-text); font-size: 1.05rem; }
.bdf-editorial a { color: var(--bdf-primary); border-bottom: 1px dashed currentColor; }
.bdf-editorial a:hover { color: var(--bdf-primary-hover); }
.bdf-editorial-callout {
  border-left: 4px solid var(--bdf-accent);
  background: var(--bdf-surface);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--bdf-radius) var(--bdf-radius) 0;
}

/* ============================================================================
   CATEGORIES GRID (rubriques on home)
   ============================================================================ */
.bdf-section-title {
  font-family: var(--bdf-font-h);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  text-align: center;
  margin: 0 0 .4rem;
  color: var(--bdf-text);
}
.bdf-section-subtitle {
  text-align: center;
  color: var(--bdf-text-soft);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.bdf-categories {
  background: var(--bdf-surface);
  padding: 4rem 0;
}
.bdf-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.bdf-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--bdf-radius);
  overflow: hidden;
  background: var(--bdf-white);
  border: 1.5px solid var(--bdf-line);
  text-decoration: none !important;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  min-height: 240px;
}
.bdf-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bdf-shadow-strong);
  border-color: var(--bdf-primary);
  color: inherit;
  text-decoration: none !important;
}
.bdf-cat-card-img {
  display: block;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--bdf-primary);
  border-bottom: 1.5px solid var(--bdf-line);
}
.bdf-cat-card-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bdf-cat-card-title {
  font-family: var(--bdf-font-h);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bdf-text);
  margin: 0 0 .4rem;
}
.bdf-cat-card-desc {
  font-size: .9rem;
  color: var(--bdf-text-soft);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================================
   LATEST ARTICLES (grid)
   ============================================================================ */
.bdf-latest {
  background: var(--bdf-bg);
  padding: 4rem 0;
}
.bdf-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 980px) { .bdf-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bdf-latest-grid { grid-template-columns: 1fr; } }

.bdf-article-card {
  background: var(--bdf-white);
  border-radius: var(--bdf-radius);
  overflow: hidden;
  border: 1.5px solid var(--bdf-line);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bdf-article-card:hover { transform: translateY(-3px); box-shadow: var(--bdf-shadow-strong); }
.bdf-article-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bdf-surface);
  position: relative;
  overflow: hidden;
}
.bdf-article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bdf-article-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.bdf-article-card-cat {
  font-family: var(--bdf-font-h);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bdf-primary);
  margin-bottom: .4rem;
  display: inline-block;
}
.bdf-article-card-title {
  font-family: var(--bdf-font-h);
  font-size: 1.2rem;
  margin: 0 0 .6rem;
  line-height: 1.3;
}
.bdf-article-card-title a { color: var(--bdf-text); text-decoration: none; }
.bdf-article-card-title a:hover { color: var(--bdf-primary); text-decoration: underline; }
.bdf-article-card-excerpt { font-size: .95rem; color: var(--bdf-text-soft); margin: 0 0 .8rem; flex: 1; }
.bdf-article-card-meta { font-size: .82rem; color: var(--bdf-text-soft); }

.bdf-empty-cat {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--bdf-text-soft);
  font-style: italic;
}
.bdf-empty-cat a { color: var(--bdf-primary); }

/* ============================================================================
   ABOUT INTERNAL CTA SECTION (after latest)
   ============================================================================ */
.bdf-about-cta {
  background: var(--bdf-accent);
  color: #fff;
  padding: 3.5rem 0;
}
.bdf-about-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.bdf-about-cta h2 {
  font-family: var(--bdf-font-h);
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}
.bdf-about-cta p { color: rgba(255, 254, 250, 0.9); margin: 0 0 1.6rem; }
.bdf-about-cta .bdf-btn--primary { background: var(--bdf-primary); border-color: var(--bdf-primary); }
.bdf-about-cta .bdf-btn--primary:hover { background: var(--bdf-primary-hover); border-color: var(--bdf-primary-hover); }

/* ============================================================================
   CATEGORY PAGE — sandwich layout
   ============================================================================ */
.bdf-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--bdf-accent);
}
.bdf-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.bdf-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(42, 26, 20, 0.75) 100%);
  padding: 2rem 1.5rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
}
.bdf-cat-hero-inner h1 {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.bdf-cat-intro {
  background: var(--bdf-surface);
  padding: 3rem 0;
}
.bdf-cat-intro-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.bdf-cat-intro p {
  font-size: 1.05rem;
  color: var(--bdf-text);
  line-height: 1.75;
}

.bdf-cat-articles {
  background: var(--bdf-bg);
  padding: 3rem 0 4rem;
}
.bdf-cat-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 980px) { .bdf-cat-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bdf-cat-articles-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   GENERIC PAGE — about, contact, tools
   ============================================================================ */
.bdf-page {
  background: var(--bdf-bg);
  padding: 3.5rem 0;
}
.bdf-page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.bdf-page-inner h1 {
  font-family: var(--bdf-font-h);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0 0 1.5rem;
}
.bdf-page-inner h2 {
  font-family: var(--bdf-font-h);
  color: var(--bdf-text);
  margin-top: 2.5rem;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  position: relative;
}
.bdf-page-inner h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--bdf-primary);
  border-radius: 2px;
}
.bdf-page-inner p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bdf-text);
}
.bdf-page-inner a { color: var(--bdf-primary); text-decoration: underline; }

.bdf-persona-photo {
  float: right;
  width: 220px;
  margin: 0 0 1.2rem 1.5rem;
  border-radius: var(--bdf-radius);
  box-shadow: var(--bdf-shadow-strong);
  border: 4px solid var(--bdf-white);
}
@media (max-width: 640px) {
  .bdf-persona-photo { float: none; width: 60%; margin: 0 auto 1.5rem; display: block; }
}

/* Contact form wrapper */
.bdf-contact-form {
  margin-top: 2.5rem;
  background: var(--bdf-white);
  border-radius: var(--bdf-radius);
  border: 1.5px solid var(--bdf-line);
  padding: 1rem;
  box-shadow: var(--bdf-shadow);
}
.bdf-contact-form iframe { display: block; }

/* ============================================================================
   FOOTER — tradition_columns
   ============================================================================ */
.bdf-footer {
  background: var(--bdf-text);
  color: #E8DCC6;
  padding: 3.5rem 0 1.5rem;
  font-family: var(--bdf-font-b);
}
.bdf-footer-inner {
  max-width: var(--bdf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.bdf-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 980px) {
  .bdf-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .bdf-footer-grid { grid-template-columns: 1fr; }
}

.bdf-footer-col h3,
.bdf-footer-title {
  font-family: var(--bdf-font-h);
  font-size: 1.05rem;
  color: #FAF2E0;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(245, 240, 224, 0.18);
  padding-bottom: .5rem;
}
.bdf-footer-brand .bdf-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  max-width: 100%;
}
.bdf-footer-brand-pitch {
  color: #E8DCC6;
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
}
.bdf-footer-brand-cta {
  display: inline-block;
  color: #FAF2E0;
  font-family: var(--bdf-font-h);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bdf-footer-brand-cta:hover { color: var(--bdf-primary); }

.bdf-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bdf-footer-links li { margin-bottom: .6rem; }
.bdf-footer-links a {
  color: #E8DCC6;
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s ease;
}
.bdf-footer-links a:hover { color: var(--bdf-primary); text-decoration: underline; }

.bdf-footer-social {
  display: flex;
  gap: .8rem;
  margin-top: .8rem;
}
.bdf-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.08);
  color: #FAF2E0;
  transition: background .25s ease, color .25s ease;
}
.bdf-footer-social a:hover { background: var(--bdf-primary); color: #fff; }
.bdf-footer-social svg { width: 18px; height: 18px; }

.bdf-footer-bottom {
  border-top: 1px solid rgba(245, 240, 224, 0.18);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #BBA98A;
}
.bdf-footer-bottom a { color: #BBA98A; text-decoration: none; }
.bdf-footer-bottom a:hover { color: var(--bdf-primary); }

/* ============================================================================
   SINGLE ARTICLE & default WP content
   ============================================================================ */
.bdf-single {
  background: var(--bdf-bg);
  padding: 3.5rem 0;
}
.bdf-single-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.bdf-single-inner h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.bdf-single-inner img { border-radius: var(--bdf-radius); margin: 1.5rem 0; }
.bdf-single-meta {
  font-size: .9rem;
  color: var(--bdf-text-soft);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.bdf-single-meta a { color: var(--bdf-primary); }

/* ============================================================================
   RESPONSIVE TWEAKS
   ============================================================================ */
@media (max-width: 1023px) {
  .bdf-header-inner { padding: .7rem 1rem; min-height: 60px; }
  .bdf-brand-name { font-size: 1.1rem; }
  .bdf-hero { min-height: 60vh; }
  .bdf-hero-inner { padding: 2rem 1.2rem; }
  .bdf-hero-quote-mark { font-size: 4rem; }
  .bdf-editorial, .bdf-categories, .bdf-latest, .bdf-cat-articles { padding: 3rem 0; }
  .bdf-categories-grid { gap: 1rem; }
  .bdf-footer { padding: 2.5rem 0 1rem; }
}

@media (max-width: 640px) {
  .bdf-body { font-size: 15px; }
  .bdf-hero-eyebrow { font-size: .75rem; padding: .3rem .7rem; }
  .bdf-section-title { font-size: 1.5rem; }
  .bdf-cat-card { min-height: auto; }
  .bdf-cat-card-img { height: 130px; }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
.bdf-body a:focus-visible,
.bdf-body button:focus-visible,
.bdf-body input:focus-visible,
.bdf-body select:focus-visible,
.bdf-body textarea:focus-visible {
  outline: 3px solid var(--bdf-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bdf-cursor-glow { display: none !important; }
}


/* [2026-06-19] FIX reveal-on-scroll force opacity 1 */
[class*='-reveal'],
[class*='reveal-'],
.bdf-reveal, .reveal, [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="bdf-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre (fix 2026-06-17) */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}


/* [2026-06-17] PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* [2026-06-17] BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.bdf-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06) !important;
  border-color: var(--bdf-accent, currentColor) !important;
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX gap main padding-top (Claude met parfois padding-top: 30px sur .{prefix}-main qui casse le collage hero) */
html body main[class*="-main"],
html body main.bdf-main,
html body main#bdf-main, html body main#lda-main, html body main#a66-main,
html body main#b3b-main, html body main#e96-main, html body main#aaa-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* [2026-06-19] FIX drawer mobile height : force full viewport */
html body [class*="nav-mobile"]:not([class*="close"]):not([class*="overlay"]),
html body [class*="menu-mobile"]:not([class*="close"]),
html body [class*="drawer-mobile"]:not([class*="close"]) {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  bottom: 0 !important;
  overflow-y: auto !important;
}

/* [2026-06-19] BURGER variation seedee : shape=step (w1=14/w2=16/w3=18) + dimensions + couleur + angle X */
html body button[class*="burger"] > span > span,
html body button[class*="burger"] > span:not([class*="bar"]):not([class*="line"]),
html body button[class*="burger"] [class*="bar"] > span,
html body button[class*="burger"] [class*="line"] > span {
  height: 2px !important;
  border-radius: 1px !important;
  background: var(--bdf-accent, currentColor) !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease !important;
}
/* Widths individuelles seedees -> forme distincte par site */
html body button[class*="burger"] > span > span:nth-child(1),
html body button[class*="burger"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"] [class*="line"] > span:nth-child(1) {
  width: 14px !important;
}
html body button[class*="burger"] > span > span:nth-child(2),
html body button[class*="burger"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"] [class*="line"] > span:nth-child(2) {
  width: 16px !important;
}
html body button[class*="burger"] > span > span:nth-child(3),
html body button[class*="burger"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"] [class*="line"] > span:nth-child(3) {
  width: 18px !important;
}
/* En etat ouvert (X) : les 3 barres ont meme largeur pour X symetrique */
html body button[class*="burger"][aria-expanded="true"] > span > span,
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span,
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span {
  width: 18px !important;
}
html body button[class*="burger"] > span:has(> span) {
  flex-direction: column !important;
  gap: 4px !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(1):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1) {
  transform: translateY(6.0px) rotate(45deg) !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(2):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2) {
  opacity: 0 !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(3):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3) {
  transform: translateY(-6.0px) rotate(-45deg) !important;
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--bdf-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : hexagon-soft (12px) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 12px !important;
}


/* Mouse effect : cursor_glow_dot */
.bdf-cursor-glow{position:fixed;top:0;left:0;width:24px;height:24px;border-radius:50%;background:var(--bdf-accent,#475841);pointer-events:none;z-index:9999;mix-blend-mode:multiply;opacity:0;transform:translate(-50%,-50%);transition:opacity .25s ease;filter:blur(10px);box-shadow:0 0 38px var(--bdf-accent,#475841);will-change:transform,left,top}.bdf-cursor-glow.is-on{opacity:.7}@media (hover:none){.bdf-cursor-glow{display:none!important}}
