/*
 * Theme: Les Artisans d'Aquitaine
 * Design system: Floral Pivoines (floral-peonies-03)
 * Fonts: Italiana (headings) + Mulish (body)
 * Hero: quote-hero
 * Header layout: logo-left-menu-center-cta-right
 * Category layout: sandwich
 * Mouse effect: cursor_glow_dot
 */

:root {
  --bdf-primary:     #9A4A6A;
  --bdf-primary-dk:  #6E2F4A;
  --bdf-accent:      #F0BCC8;
  --bdf-bg:          #FFFAF5;
  --bdf-surface:     #FFFFFF;
  --bdf-text:        #3A1428;
  --bdf-text-soft:   #8C5A78;
  --bdf-line:        #F0D5DC;
  --bdf-shadow:      0 2px 14px rgba(58, 20, 40, 0.08);
  --bdf-shadow-md:   0 6px 24px rgba(58, 20, 40, 0.10);
  --bdf-shadow-lg:   0 18px 48px rgba(58, 20, 40, 0.16);
  --bdf-radius:      6px;
  --bdf-radius-lg:   14px;
  --bdf-font-h:      "Italiana", "Cormorant Garamond", Georgia, serif;
  --bdf-font-b:      "Mulish", "Helvetica Neue", Arial, sans-serif;
  --bdf-container:   1180px;
}

/* ============================
   RESET / BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bdf-body {
  margin: 0;
  font-family: var(--bdf-font-b);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--bdf-text);
  background: var(--bdf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bdf-primary); text-decoration: none; transition: color .18s; }
a:hover { color: var(--bdf-primary-dk); }
h1, h2, h3, h4, h5 {
  font-family: var(--bdf-font-h);
  color: var(--bdf-text);
  letter-spacing: .005em;
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 400;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p  { margin: 0 0 1em; }
.bdf-container { max-width: var(--bdf-container); margin: 0 auto; padding: 0 1.25rem; }

main, .bdf-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: block;
}

/* ============================
   BRAND NAME (Title Case style)
   ============================ */
.bdf-brand-name {
  font-family: var(--bdf-font-h);
  font-size: 1.45rem;
  color: var(--bdf-text);
  letter-spacing: .01em;
  line-height: 1.1;
  white-space: nowrap;
}

/* ============================
   HEADER  (logo-left-menu-center-cta-right)
   ============================ */
.bdf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bdf-line);
}
.bdf-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 1.25rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
}
.bdf-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.bdf-brand-logo {
  display: block;
  width: auto;
}
/* No height in CSS so Customizer bdf_logo_size can override */
.bdf-nav-desktop {
  display: none; /* mobile-first: hidden by default */
}
.bdf-nav-desktop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.bdf-nav-desktop-list a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--bdf-text);
  font-family: var(--bdf-font-b);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .45rem .1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.bdf-nav-desktop-list a:hover,
.bdf-nav-desktop-list a:focus { border-bottom-color: var(--bdf-primary); color: var(--bdf-primary); }
.bdf-nav-icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.bdf-nav-icon svg { width: 100%; height: 100%; display: block; }

.bdf-header-cta-desktop {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.15rem;
  font-family: var(--bdf-font-b);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .03em;
  background: var(--bdf-primary);
  color: #fff;
  border-radius: var(--bdf-radius);
  text-decoration: none;
  transition: transform .2s, background .2s;
  flex-shrink: 0;
}
.bdf-header-cta-desktop:hover {
  background: var(--bdf-primary-dk);
  color: #fff;
  transform: scale(1.04);
}

/* BURGER (mobile only) */
.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, 255, 255, 0.92) !important;
  border: 1.5px solid rgba(58, 20, 40, 0.18) !important;
  border-radius: 8px !important;
  color: var(--bdf-text) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto;
}
.bdf-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.bdf-burger-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.bdf-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* DESKTOP RULES */
@media (min-width: 1024px) {
  .bdf-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 1rem;
  }
  .bdf-burger { display: none !important; }
  .bdf-header-actions { margin-left: 0; }
}

/* MOBILE RULES */
@media (max-width: 1023px) {
  .bdf-header-cta-desktop {
    display: none !important;
  }
  .bdf-header-inner {
    justify-content: space-between;
  }
  .bdf-burger-label { display: none !important; }
}

/* DRAWER MOBILE */
.bdf-nav-mobile {
  display: none; /* hidden by default */
}
@media (max-width: 1023px) {
  .bdf-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background: #FFFFFF;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(58, 20, 40, 0.25);
  }
  .bdf-nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .bdf-nav-mobile-list li {
    border-bottom: 1px solid var(--bdf-line);
  }
  .bdf-nav-mobile-list a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .95rem .25rem;
    color: #1a1a1a;
    font-family: var(--bdf-font-b);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
  }
  .bdf-nav-mobile-list a:hover { color: var(--bdf-primary); }
  .bdf-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(58, 20, 40, 0.45);
    z-index: 9998;
  }
  .bdf-drawer-overlay.is-open { display: block; }
  .bdf-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--bdf-text);
  }
}
/* CTA SOUS la liste catégories dans drawer */
.bdf-drawer-cta {
  display: block !important;
  margin: 2rem 0 1rem !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;
  letter-spacing: .03em;
}
@media (min-width: 1024px) {
  .bdf-drawer-cta { display: none !important; }
}

/* ============================
   HERO (quote-hero)
   ============================ */
.bdf-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bdf-bg) 0%, #FFE9F0 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 1.25rem;
  overflow: hidden;
}
.bdf-hero::before,
.bdf-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bdf-accent) 0%, transparent 70%);
  opacity: .55;
  filter: blur(8px);
  pointer-events: none;
}
.bdf-hero::before { width: 380px; height: 380px; top: -120px; left: -120px; }
.bdf-hero::after  { width: 280px; height: 280px; bottom: -100px; right: -80px; }
.bdf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.bdf-hero-mark {
  display: block;
  font-family: var(--bdf-font-h);
  font-size: 5rem;
  color: var(--bdf-primary);
  opacity: .35;
  line-height: .8;
  margin-bottom: .6rem;
}
.bdf-hero-quote {
  font-family: var(--bdf-font-h);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.18;
  color: var(--bdf-text);
  font-style: italic;
  margin: 0 0 1.5rem;
  letter-spacing: .005em;
}
.bdf-hero-attrib {
  font-family: var(--bdf-font-b);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--bdf-text-soft);
  margin-bottom: 2rem;
}
.bdf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.7rem;
  background: var(--bdf-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--bdf-radius);
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: transform .2s, background .2s;
}
.bdf-hero-cta:hover { background: var(--bdf-primary-dk); color: #fff; transform: scale(1.04); }

/* ============================
   EDITORIAL INTRO (BLOC SEO ~500 mots)
   ============================ */
.bdf-editorial {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  background: var(--bdf-surface);
}
.bdf-editorial-inner {
  max-width: 900px;
  margin: 0 auto;
}
.bdf-editorial h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  color: var(--bdf-text);
  position: relative;
  padding-bottom: 1.2rem;
}
.bdf-editorial h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--bdf-primary);
}
.bdf-editorial h3 {
  margin-top: 2.2rem;
  margin-bottom: .8rem;
  color: var(--bdf-primary);
}
.bdf-editorial p {
  font-size: 1.04rem;
  color: var(--bdf-text);
  line-height: 1.75;
}
.bdf-editorial a {
  color: var(--bdf-primary);
  font-weight: 600;
  border-bottom: 1px dotted var(--bdf-primary);
}
.bdf-editorial-pull {
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  background: linear-gradient(135deg, var(--bdf-bg) 0%, #FFE9F0 100%);
  border-left: 4px solid var(--bdf-primary);
  border-radius: var(--bdf-radius);
}
.bdf-editorial-pull p {
  font-family: var(--bdf-font-h);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--bdf-text);
  margin: 0;
}

/* ============================
   RUBRIQUES / CATÉGORIES
   ============================ */
.bdf-categories {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  background: var(--bdf-bg);
}
.bdf-categories-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.bdf-categories-head h2 {
  margin-bottom: .5rem;
}
.bdf-categories-head p {
  color: var(--bdf-text-soft);
  font-size: 1.04rem;
}
.bdf-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
}
.bdf-cat-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--bdf-radius-lg);
  background: var(--bdf-surface);
  box-shadow: var(--bdf-shadow);
  text-decoration: none;
  color: var(--bdf-text);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--bdf-line);
}
.bdf-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bdf-shadow-md);
}
.bdf-cat-card-img {
  display: block;
  width: 100%;
  height: 180px;
  background-color: var(--bdf-accent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bdf-cat-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}
.bdf-cat-card-name {
  font-family: var(--bdf-font-h);
  font-size: 1.4rem;
  color: var(--bdf-text);
  margin: 0 0 .35rem;
}
.bdf-cat-card-desc {
  font-size: .92rem;
  color: var(--bdf-text-soft);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   DERNIERS ARTICLES
   ============================ */
.bdf-latest {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  background: var(--bdf-surface);
}
.bdf-latest-head {
  text-align: center;
  margin-bottom: 3rem;
}
.bdf-latest-head h2 { margin-bottom: .4rem; }
.bdf-latest-head p { color: var(--bdf-text-soft); }
.bdf-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .bdf-latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.bdf-article-card {
  background: var(--bdf-surface);
  border-radius: var(--bdf-radius-lg);
  overflow: hidden;
  box-shadow: var(--bdf-shadow);
  border: 1px solid var(--bdf-line);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.bdf-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bdf-shadow-md);
}
.bdf-article-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bdf-accent);
}
.bdf-article-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bdf-article-card-cat {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--bdf-primary);
  font-weight: 700;
  margin-bottom: .5rem;
}
.bdf-article-card-title {
  font-family: var(--bdf-font-h);
  font-size: 1.3rem;
  margin: 0 0 .65rem;
  line-height: 1.25;
}
.bdf-article-card-title a {
  color: var(--bdf-text);
  text-decoration: none;
}
.bdf-article-card-title a:hover { color: var(--bdf-primary); }
.bdf-article-card-excerpt {
  color: var(--bdf-text-soft);
  font-size: .94rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.bdf-article-card-date {
  font-size: .82rem;
  color: var(--bdf-text-soft);
  margin-top: auto;
}
.bdf-latest-empty {
  text-align: center;
  padding: 2rem;
  color: var(--bdf-text-soft);
  font-style: italic;
}

/* ============================
   ABOUT TEASER (home)
   ============================ */
.bdf-about-teaser {
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
  background: linear-gradient(135deg, var(--bdf-bg) 0%, #FFE9F0 100%);
}
.bdf-about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 720px) {
  .bdf-about-inner { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}
.bdf-about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--bdf-shadow-md);
  border: 4px solid var(--bdf-surface);
}
.bdf-about-text h2 { margin-bottom: .8rem; }
.bdf-about-text p { color: var(--bdf-text); margin-bottom: 1rem; }
.bdf-about-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--bdf-primary);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.bdf-about-link:hover { color: var(--bdf-primary-dk); text-decoration: underline; }

/* ============================
   PERSONA PHOTO IN PAGE
   ============================ */
.bdf-persona-photo {
  display: block;
  max-width: 320px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--bdf-shadow-md);
  border: 5px solid var(--bdf-surface);
}

/* ============================
   CONTACT FORM WRAPPER
   ============================ */
.bdf-contact-form {
  margin: 2.5rem 0;
  padding: 0;
  background: transparent;
}
.bdf-contact-form iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--bdf-line);
  border-radius: var(--bdf-radius-lg);
  box-shadow: var(--bdf-shadow);
  background: var(--bdf-surface);
}

/* ============================
   FOOTER (peony_columns)
   ============================ */
.bdf-footer {
  background: var(--bdf-text);
  color: #FFE9F0;
  padding: 3.5rem 1.25rem 1.5rem;
  margin-top: 4rem;
  position: relative;
}
.bdf-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bdf-primary) 0%, var(--bdf-accent) 100%);
}
.bdf-footer a { color: #FFE9F0; }
.bdf-footer a:hover { color: var(--bdf-accent); }
.bdf-footer-inner {
  max-width: var(--bdf-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) {
  .bdf-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.bdf-footer-col h3 {
  font-family: var(--bdf-font-h);
  color: var(--bdf-accent);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.bdf-footer-col h3.bdf-footer-title { margin-top: 0; }
.bdf-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
}
.bdf-footer-brand-pitch {
  font-size: .92rem;
  line-height: 1.65;
  color: #F5DEE4;
  margin: 0 0 1.2rem;
}
.bdf-footer-brand-cta {
  display: inline-block;
  font-family: var(--bdf-font-b);
  font-weight: 700;
  font-size: .9rem;
  color: var(--bdf-accent);
  text-decoration: none;
  border: 1.5px solid var(--bdf-accent);
  padding: .55rem 1.1rem;
  border-radius: var(--bdf-radius);
  transition: background .2s, color .2s;
}
.bdf-footer-brand-cta:hover {
  background: var(--bdf-accent);
  color: var(--bdf-text);
}
.bdf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bdf-footer-links li {
  margin-bottom: .55rem;
}
.bdf-footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(240, 188, 200, .35);
  text-underline-offset: 3px;
  font-size: .92rem;
  transition: color .2s;
}
.bdf-footer-social {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.bdf-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(240, 188, 200, .15);
  color: var(--bdf-accent);
  transition: background .2s;
}
.bdf-footer-social a:hover {
  background: var(--bdf-accent);
  color: var(--bdf-text);
}
.bdf-footer-bottom {
  max-width: var(--bdf-container);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 188, 200, .18);
  font-size: .85rem;
  text-align: center;
  color: #E8C9D4;
}

/* ============================
   CATEGORY PAGE  (sandwich layout)
   ============================ */
.bdf-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.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(58, 20, 40, 0.8) 100%);
  padding: 2rem 1.25rem;
  max-width: var(--bdf-container);
  margin: 0 auto;
}
.bdf-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0;
}
.bdf-cat-intro,
.bdf-cat-outro {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.bdf-cat-intro p,
.bdf-cat-outro p {
  font-size: 1.04rem;
  line-height: 1.75;
}
.bdf-cat-posts {
  max-width: var(--bdf-container);
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============================
   TOOL PAGE
   ============================ */
.bdf-tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.bdf-tool-page h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.bdf-tool-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--bdf-text);
}
.bdf-tool-wrap {
  background: var(--bdf-surface);
  border: 1px solid var(--bdf-line);
  border-radius: var(--bdf-radius-lg);
  padding: 2rem;
  box-shadow: var(--bdf-shadow);
}
.bdf-tool-faq {
  margin-top: 3rem;
}
.bdf-tool-faq h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.bdf-tool-faq details {
  background: var(--bdf-surface);
  border: 1px solid var(--bdf-line);
  border-radius: var(--bdf-radius);
  padding: 1rem 1.2rem;
  margin-bottom: .75rem;
}
.bdf-tool-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bdf-text);
  font-family: var(--bdf-font-h);
  font-size: 1.1rem;
}
.bdf-tool-faq details[open] { background: var(--bdf-bg); }

/* ============================
   BUTTONS
   ============================ */
.bdf-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.4rem;
  font-family: var(--bdf-font-b);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  border-radius: var(--bdf-radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s;
}
.bdf-btn--cta {
  background: var(--bdf-primary);
  color: #fff;
}
.bdf-btn--cta:hover {
  background: var(--bdf-primary-dk);
  color: #fff;
  transform: scale(1.04);
}
.bdf-btn--ghost {
  background: transparent;
  color: var(--bdf-primary);
  border: 1.5px solid var(--bdf-primary);
}
.bdf-btn--ghost:hover {
  background: var(--bdf-primary);
  color: #fff;
}

/* ============================
   ANIMATIONS (CTA/CTR/CTO)
   ============================ */
/* CTA: scale_on_hover */
@keyframes bdf-cta-scale {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.bdf-btn--cta:hover,
.bdf-hero-cta:hover,
.bdf-header-cta-desktop:hover {
  animation: bdf-cta-scale .25s ease-out forwards;
}

/* CTR: number_count_up (used by JS via .bdf-counter[data-target]) */
.bdf-counter {
  font-family: var(--bdf-font-h);
  font-size: 2.4rem;
  color: var(--bdf-primary);
  font-weight: 400;
  display: inline-block;
  min-width: 80px;
}

/* CTO: spin_wheel_popup keyframes (animations only, no popup logic per rule 16) */
@keyframes bdf-spin-wheel {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.bdf-spin-token {
  display: inline-block;
  animation: bdf-spin-wheel 1.6s linear infinite;
}

/* ============================
   ARTICLE / SINGLE
   ============================ */
.bdf-single-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.bdf-single-wrap h1 {
  margin-bottom: 1rem;
}
.bdf-single-meta {
  color: var(--bdf-text-soft);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.bdf-single-content p { font-size: 1.05rem; line-height: 1.75; }
.bdf-single-content h2 { margin-top: 2.2rem; color: var(--bdf-primary); }
.bdf-single-content h3 { margin-top: 1.8rem; }
.bdf-single-content img {
  border-radius: var(--bdf-radius);
  margin: 1.5rem auto;
}

/* ============================
   MOUSE EFFECT — cursor_glow_dot
   ============================ */
@media (hover: hover) and (pointer: fine) {
  body.bdf-body { cursor: default; }
  .bdf-cursor-glow {
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 188, 200, .85) 0%, rgba(154, 74, 106, .45) 50%, transparent 75%);
    mix-blend-mode: multiply;
    transform: translate3d(-100px, -100px, 0);
    z-index: 99999;
    will-change: transform;
    transition: width .25s, height .25s;
  }
  .bdf-cursor-glow.is-hover {
    width: 56px;
    height: 56px;
    background: radial-gradient(circle, rgba(154, 74, 106, .7) 0%, rgba(240, 188, 200, .35) 60%, transparent 80%);
  }
}
@media (hover: none), (pointer: coarse) {
  .bdf-cursor-glow { display: none !important; }
}

/* ============================
   RESPONSIVE TWEAKS
   ============================ */
@media (max-width: 720px) {
  .bdf-hero { padding: 3.5rem 1rem; }
  .bdf-hero-quote { font-size: 1.7rem; }
  .bdf-categories-grid { grid-template-columns: 1fr 1fr; }
  .bdf-cat-card-img { height: 130px; }
  .bdf-cat-card-body { padding: 1rem; }
  .bdf-cat-card-name { font-size: 1.15rem; }
  .bdf-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bdf-categories-grid { grid-template-columns: 1fr; }
}

/* ============================
   ACCESSIBILITY
   ============================ */
.bdf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bdf-primary);
  outline-offset: 3px;
  border-radius: 3px;
}


/* Mouse effect : cursor_glow_dot */
@media (hover: hover) and (pointer: fine) { .bdf-cursor-glow { position: fixed; pointer-events: none; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, rgba(240,188,200,.85) 0%, rgba(154,74,106,.45) 50%, transparent 75%); mix-blend-mode: multiply; transform: translate3d(-100px,-100px,0); z-index: 99999; will-change: transform; transition: width .25s, height .25s; } .bdf-cursor-glow.is-hover { width: 56px; height: 56px; background: radial-gradient(circle, rgba(154,74,106,.7) 0%, rgba(240,188,200,.35) 60%, transparent 80%); } } @media (hover: none), (pointer: coarse) { .bdf-cursor-glow { display: none !important; } }

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !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; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !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; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }
