/* =========================================================================
   ENTRAPPRENEUR.COM — Brutaliste Tabloid Choc
   Custom child theme overrides (parent: generatepress)
   Palette: #000000 / #E60000 / #F0EDE5
   Fonts:   Ultra (titres), Roboto Slab (corps)
   ========================================================================= */

:root {
  --bdd-primary: #000000;
  --bdd-accent: #E60000;
  --bdd-bg: #F0EDE5;
  --bdd-surface: #FFFFFF;
  --bdd-text: #101828;
  --bdd-text-soft: #5a5a5a;
  --bdd-line: #000000;
  --bdd-font-h: "Ultra", "Roboto Slab", Georgia, serif;
  --bdd-font-b: "Roboto Slab", Georgia, "Times New Roman", serif;
  --bdd-radius: 0;
  --bdd-shadow: 6px 6px 0 0 #000;
  --bdd-max: 1200px;
}

/* Reset + base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .bdd-body {
  margin: 0;
  font-family: var(--bdd-font-b);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bdd-text);
  background: var(--bdd-bg);
  -webkit-font-smoothing: antialiased;
}
main, .bdd-main { padding-top: 0 !important; margin-top: 0 !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bdd-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--bdd-primary); background: var(--bdd-accent); color: #fff; text-decoration: none; padding: 0 .15em; }
h1, h2, h3, h4 { font-family: var(--bdd-font-h); color: var(--bdd-primary); line-height: 1.05; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.eea-container, .bdd-container { max-width: var(--bdd-max); margin: 0 auto; padding: 0 1.25rem; }

/* Skip link --------------------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #000; color: #fff; padding: .5rem 1rem; z-index: 99999; }

/* =========================================================================
   HEADER — Tabloid shock, logo-center-menu-split
   Desktop: nav GAUCHE | logo CENTRE | nav DROITE — collés au centre
   Mobile: logo gauche + burger droite
   ========================================================================= */
.bdd-header {
  background: var(--bdd-primary);
  color: #fff;
  border-bottom: 6px solid var(--bdd-accent);
  position: relative;
  z-index: 100;
}
.bdd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: var(--bdd-max);
  margin: 0 auto;
}
.bdd-header-inner > * { flex-shrink: 0; }

/* Brand */
.bdd-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.bdd-brand:hover { background: transparent; padding: 0; color: inherit; }
.bdd-brand-logo {
  display: block;
  width: auto;
  /* hauteur gérée par customizer bdd_logo_size — laisser auto */
}
.bdd-brand-name {
  font-family: var(--bdd-font-h);
  font-size: 1.4rem;
  color: #fff;
  text-transform: none; /* Casing style B (Title Case "Entrappreneur") */
  letter-spacing: 0;
  font-weight: 400;
}

/* Nav desktop split */
.bdd-nav-desktop { display: none; }
.bdd-nav-desktop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.bdd-nav-desktop-list a {
  color: #fff;
  text-decoration: none;
  font-family: var(--bdd-font-h);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .45rem .15rem;
  border-bottom: 3px solid transparent;
  transition: border-color .15s, color .15s;
}
.bdd-nav-desktop-list a:hover {
  color: var(--bdd-accent);
  background: transparent;
  padding: .45rem .15rem;
  border-bottom-color: var(--bdd-accent);
}

/* Burger mobile */
.bdd-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(0,0,0,0.18) !important;
  border-radius: 0 !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.bdd-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.bdd-burger-bars span {
  display: block;
  height: 3px;
  background: #000;
  width: 100%;
  border-radius: 0;
}
.bdd-burger-label { display: none !important; }

/* DESKTOP — nav horizontale split visible, burger caché */
@media (min-width: 1024px) {
  .bdd-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    padding: 1rem 1.25rem;
  }
  .bdd-nav-desktop { display: flex; }
  .bdd-nav-desktop--left { justify-content: flex-end; padding-right: 2rem; }
  .bdd-nav-desktop--right { justify-content: flex-start; padding-left: 2rem; }
  .bdd-brand { justify-self: center; }
  .bdd-burger, .bdd-burger-wrap { display: none !important; }
}

/* MOBILE — drawer mobile caché par défaut, visible quand .is-open */
.bdd-nav-mobile { display: none; }
@media (max-width: 1023px) {
  .bdd-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    color: #0a0a0a;
    padding: 4.5rem 0 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .bdd-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .bdd-nav-mobile-list li { border-bottom: 1px solid #e5e5e5; }
  .bdd-nav-mobile-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: #0a0a0a;
    text-decoration: none;
    font-family: var(--bdd-font-h);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .bdd-nav-mobile-list a:hover {
    background: #f5f5f5;
    color: var(--bdd-accent);
    padding: 1rem 1.5rem;
  }
  .bdd-nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    display: none;
  }
  .bdd-nav-mobile-overlay.is-open { display: block; }
  .bdd-nav-mobile-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    background: transparent;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10001;
    color: #000;
  }
  .bdd-drawer-cta {
    display: block !important;
    margin: 2rem 1.5rem 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--bdd-accent) !important;
    color: #fff !important;
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
  }
  .bdd-drawer-cta:hover { background: #000 !important; padding: 1rem 1.5rem !important; color: #fff !important; }
}
@media (min-width: 1024px) {
  .bdd-drawer-cta { display: none !important; }
  .bdd-nav-mobile-overlay { display: none !important; }
}

/* =========================================================================
   HERO — zoom-on-scroll
   ========================================================================= */
.bdd-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  background: var(--bdd-primary);
  border-bottom: 6px solid var(--bdd-accent);
}
.bdd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform-origin: center center;
  transform: scale(1);
  transition: transform .12s linear;
  will-change: transform;
  opacity: .55;
}
.bdd-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--bdd-max);
  margin: 0 auto;
  padding: 7rem 1.25rem 5rem;
  color: #fff;
  text-align: left;
}
.bdd-hero-eyebrow {
  display: inline-block;
  background: var(--bdd-accent);
  color: #fff;
  padding: .35rem .75rem;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .9rem;
  margin-bottom: 1.25rem;
  border: 3px solid #fff;
}
.bdd-hero-title {
  font-family: var(--bdd-font-h);
  color: #fff;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  max-width: 900px;
}
.bdd-hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  max-width: 700px;
  margin: 0 0 1.75rem;
  line-height: 1.45;
  color: #f5f5f5;
}
.bdd-hero-cta {
  display: inline-block;
  background: var(--bdd-accent);
  color: #fff;
  padding: 1rem 1.75rem;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.05rem;
  border: 3px solid #fff;
  text-decoration: none;
  box-shadow: 6px 6px 0 0 #fff;
  transition: transform .12s, box-shadow .12s;
}
.bdd-hero-cta:hover {
  background: #fff;
  color: var(--bdd-primary);
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 0 var(--bdd-accent);
  padding: 1rem 1.75rem;
}

/* =========================================================================
   SECTIONS COMMUNES
   ========================================================================= */
.bdd-section { padding: 4rem 0; }
.bdd-section-head { margin-bottom: 2.5rem; text-align: center; }
.bdd-section-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .5rem; }
.bdd-section-head .bdd-section-lede { color: var(--bdd-text-soft); font-size: 1.05rem; max-width: 660px; margin: 0 auto; }
.bdd-section-head h2::after {
  content: ""; display: block; width: 80px; height: 6px;
  background: var(--bdd-accent); margin: .85rem auto 0;
}

/* =========================================================================
   GRILLE CATÉGORIES
   ========================================================================= */
.bdd-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.bdd-cat-card {
  position: relative;
  overflow: hidden;
  background: var(--bdd-primary);
  border: 3px solid #000;
  box-shadow: var(--bdd-shadow);
  display: flex;
  flex-direction: column;
  height: 280px;
  transition: transform .15s, box-shadow .15s;
}
.bdd-cat-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--bdd-accent);
}
.bdd-cat-card a {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.bdd-cat-card a:hover { color: #fff; background: transparent; padding: 0; }
.bdd-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  filter: grayscale(50%) contrast(1.1);
  transition: filter .2s;
}
.bdd-cat-card:hover .bdd-cat-card-img { filter: grayscale(0%) contrast(1.05); }
.bdd-cat-card-body {
  flex: 1;
  padding: .85rem 1rem;
  background: var(--bdd-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bdd-cat-card-name {
  font-family: var(--bdd-font-h);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  margin: 0;
}
.bdd-cat-card-arrow { color: #fff; font-size: 1.5rem; font-weight: 800; }

/* =========================================================================
   BLOC ÉDITORIAL HOME (placement after-categories)
   ========================================================================= */
.bdd-editorial {
  background: var(--bdd-surface);
  border-top: 6px solid #000;
  border-bottom: 6px solid #000;
  padding: 4rem 0;
}
.bdd-editorial-inner { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
.bdd-editorial-intro {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--bdd-text);
  margin-bottom: 2rem;
}
.bdd-editorial-intro p:first-of-type::first-letter {
  font-family: var(--bdd-font-h);
  font-size: 4.5rem;
  float: left;
  line-height: .85;
  margin: .1rem .65rem -.15rem 0;
  color: var(--bdd-accent);
}
.bdd-editorial-block { margin-bottom: 2rem; }
.bdd-editorial-block h3 {
  text-transform: uppercase;
  border-left: 6px solid var(--bdd-accent);
  padding-left: .85rem;
  margin-bottom: .65rem;
  font-size: 1.4rem;
}
.bdd-editorial-pullquote {
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 1.25rem 0;
  margin: 2rem 0;
  font-family: var(--bdd-font-h);
  font-size: 1.45rem;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--bdd-primary);
  text-align: center;
}
.bdd-editorial-pullquote .accent { color: var(--bdd-accent); }

/* =========================================================================
   GRILLE DERNIERS ARTICLES
   ========================================================================= */
.bdd-latest { background: var(--bdd-bg); }
.bdd-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) {
  .bdd-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bdd-latest-grid { grid-template-columns: 1fr; }
}
.bdd-article-card {
  background: var(--bdd-surface);
  border: 3px solid #000;
  box-shadow: var(--bdd-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.bdd-article-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--bdd-accent);
}
.bdd-article-card-thumb {
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
  border-bottom: 3px solid #000;
}
.bdd-article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bdd-article-card-body { padding: 1.1rem 1.15rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.bdd-article-card-cat {
  display: inline-block;
  background: var(--bdd-primary);
  color: #fff;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .25rem .55rem;
  margin-bottom: .65rem;
  text-decoration: none;
  align-self: flex-start;
}
.bdd-article-card-cat:hover { background: var(--bdd-accent); color: #fff; padding: .25rem .55rem; }
.bdd-article-card-title {
  font-family: var(--bdd-font-h);
  font-size: 1.3rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 .6rem;
}
.bdd-article-card-title a {
  color: var(--bdd-primary);
  text-decoration: none;
  background: linear-gradient(transparent 75%, rgba(230,0,0,.18) 75%);
}
.bdd-article-card-title a:hover {
  color: var(--bdd-accent);
  background: linear-gradient(transparent 75%, rgba(230,0,0,.3) 75%);
  padding: 0;
}
.bdd-article-card-excerpt {
  color: var(--bdd-text-soft);
  font-size: .95rem;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 .85rem;
}
.bdd-article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--bdd-text-soft);
  border-top: 1px solid #ddd;
  padding-top: .6rem;
}
.bdd-article-card-empty {
  text-align: center;
  background: var(--bdd-surface);
  padding: 2rem;
  border: 3px dashed #000;
  grid-column: 1 / -1;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* =========================================================================
   METRICS LINKS (bdd_render_metrics_links)
   ========================================================================= */
.bdd-metrics { background: var(--bdd-primary); color: #fff; padding: 3rem 0; }
.bdd-metrics-inner { max-width: var(--bdd-max); margin: 0 auto; padding: 0 1.25rem; text-align: center; }

/* =========================================================================
   BLOC "POURQUOI ENTRAPPRENEUR" (home)
   ========================================================================= */
.bdd-pillars { background: var(--bdd-bg); padding: 4rem 0; }
.bdd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--bdd-max);
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
@media (max-width: 880px) {
  .bdd-pillars-grid { grid-template-columns: 1fr; }
}
.bdd-pillar {
  background: var(--bdd-surface);
  border: 3px solid #000;
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--bdd-shadow);
}
.bdd-pillar-num {
  position: absolute;
  top: -25px; left: -10px;
  background: var(--bdd-accent);
  color: #fff;
  font-family: var(--bdd-font-h);
  font-size: 1.75rem;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #000;
}
.bdd-pillar h3 { font-size: 1.2rem; text-transform: uppercase; margin: 0 0 .65rem; }
.bdd-pillar p { margin: 0; color: var(--bdd-text-soft); font-size: .98rem; }

/* =========================================================================
   PAGES INSTITUTIONNELLES (À propos, Contact, etc.)
   ========================================================================= */
.bdd-page-wrap { padding: 3rem 1.25rem 5rem; max-width: 860px; margin: 0 auto; }
.bdd-page-wrap h1 {
  border-bottom: 6px solid var(--bdd-accent);
  padding-bottom: .5rem;
  margin-bottom: 1.75rem;
}
.bdd-page-wrap h2 {
  margin-top: 2.5rem;
  padding-left: 1rem;
  border-left: 6px solid var(--bdd-accent);
}
.bdd-persona-photo {
  display: block;
  max-width: 260px;
  margin: 1.5rem 0;
  border: 4px solid #000;
  box-shadow: 8px 8px 0 0 var(--bdd-accent);
  filter: contrast(1.05) saturate(.95);
}

/* CONTACT — formulaire JotForm */
.bdd-contact-form {
  margin: 2.5rem 0;
  border: 4px solid #000;
  background: #fff;
  padding: 1rem;
  box-shadow: 8px 8px 0 0 var(--bdd-accent);
}

/* =========================================================================
   CATÉGORIE — sandwich layout (intro top, outro disabled)
   ========================================================================= */
.bdd-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: #000;
  border-bottom: 6px solid var(--bdd-accent);
}
.bdd-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .55;
  filter: contrast(1.1) grayscale(.3);
}
.bdd-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--bdd-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.bdd-cat-hero-title {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
.bdd-cat-intro {
  background: var(--bdd-surface);
  padding: 2.5rem 1.25rem;
  border-bottom: 3px solid #000;
}
.bdd-cat-intro-inner { max-width: 860px; margin: 0 auto; }
.bdd-cat-intro p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--bdd-text);
}

/* =========================================================================
   ARTICLE SINGLE
   ========================================================================= */
.bdd-single { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.bdd-single h1 {
  border-bottom: 6px solid var(--bdd-accent);
  padding-bottom: .6rem;
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  margin-bottom: 1.25rem;
}
.bdd-single-meta {
  font-size: .9rem;
  color: var(--bdd-text-soft);
  margin-bottom: 1.75rem;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: .5rem 0;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bdd-single-thumb { margin-bottom: 1.75rem; border: 4px solid #000; box-shadow: 8px 8px 0 0 var(--bdd-accent); }

/* =========================================================================
   FOOTER — tabloid dense, 4 colonnes
   ========================================================================= */
.bdd-footer {
  background: var(--bdd-primary);
  color: #f5f0e5;
  padding: 3rem 1.25rem 1rem;
  border-top: 6px solid var(--bdd-accent);
}
.bdd-footer-grid {
  max-width: var(--bdd-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .bdd-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .bdd-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
.bdd-footer-col h3 {
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--bdd-accent);
  margin: 0 0 1rem;
  border-bottom: 3px solid var(--bdd-accent);
  padding-bottom: .35rem;
}
.bdd-footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.bdd-footer-brand-pitch {
  font-size: .95rem;
  line-height: 1.55;
  color: #f5f0e5;
  margin: 0 0 1rem;
}
.bdd-footer-brand-cta {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  background: var(--bdd-accent);
  padding: .6rem 1rem;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .04em;
  border: 2px solid #fff;
  transition: background .15s;
}
.bdd-footer-brand-cta:hover { background: #fff; color: var(--bdd-primary); padding: .6rem 1rem; }
.bdd-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bdd-footer-links li { margin-bottom: .5rem; }
.bdd-footer-links a {
  color: #f5f0e5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-size: .95rem;
  background: transparent;
  padding: 0;
}
.bdd-footer-links a:hover { color: var(--bdd-accent); background: transparent; padding: 0; }
.bdd-footer-bottom {
  max-width: var(--bdd-max);
  margin: 2.5rem auto 0;
  border-top: 2px solid #444;
  padding-top: 1rem;
  text-align: center;
  font-size: .85rem;
  color: #aaa;
}
.bdd-footer-bottom strong { color: #fff; }

.bdd-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.bdd-social-list a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--bdd-accent);
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
  font-family: var(--bdd-font-h);
  font-size: .75rem;
  text-transform: uppercase;
}
.bdd-social-list a:hover { background: #fff; color: var(--bdd-accent); padding: 0; }

/* =========================================================================
   CTA STICKY BOTTOM (CTA animation = sticky_bottom_button)
   ========================================================================= */
.bdd-cta-sticky {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bdd-accent);
  color: #fff;
  padding: .85rem 1.5rem;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 0 #000;
  z-index: 998;
  display: none;
}
@media (max-width: 980px) {
  .bdd-cta-sticky.is-visible { display: inline-block; }
}
.bdd-cta-sticky:hover {
  background: #000;
  color: var(--bdd-accent);
  padding: .85rem 1.5rem;
}

/* =========================================================================
   CTR PROGRESS SCROLL BAR (top of page)
   ========================================================================= */
.bdd-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--bdd-accent);
  z-index: 9999;
  transition: width .12s linear;
  pointer-events: none;
}

/* =========================================================================
   ACCESSIBILITY + RESPONSIVE TWEAKS
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* PAGE OUTILS — wrapper */
.bdd-tool-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.bdd-tool-page h1 {
  border-bottom: 6px solid var(--bdd-accent);
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
}
.bdd-tool-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--bdd-text);
  margin-bottom: 2rem;
}
.bdd-tool-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid #000;
}
.bdd-tool-faq h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.bdd-tool-faq details {
  border: 2px solid #000;
  background: var(--bdd-surface);
  margin-bottom: .65rem;
  padding: .85rem 1rem;
}
.bdd-tool-faq summary {
  cursor: pointer;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: .04em;
}
.bdd-tool-faq details[open] { background: #fff; box-shadow: 4px 4px 0 0 var(--bdd-accent); }
.bdd-tool-faq details p { margin: .75rem 0 0; font-size: .98rem; color: var(--bdd-text-soft); }

/* MAILLAGE INTERNE inline */
.bdd-related-rubriques {
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--bdd-surface);
  border: 3px solid #000;
}
.bdd-related-rubriques h3 { font-size: 1.1rem; margin: 0 0 .65rem; text-transform: uppercase; }
.bdd-related-rubriques ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.bdd-related-rubriques a {
  background: #000;
  color: #fff;
  padding: .4rem .75rem;
  font-family: var(--bdd-font-h);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .04em;
  text-decoration: none;
}
.bdd-related-rubriques a:hover { background: var(--bdd-accent); padding: .4rem .75rem; color: #fff; }

/* 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; }
