/* ===================================================================
   referencez-vous.fr — child theme style.css
   Design: Architectural Bauhaus Modern + competitor palette (navy / crimson)
   Layout: logo-left-menu-right + classic-overlay hero + by-category home
=================================================================== */

:root {
  --b4a-primary:    #082547;
  --b4a-accent:     #ea1d4c;
  --b4a-text:       #0F0F0F;
  --b4a-text-soft:  #5A5A5A;
  --b4a-bg:         #F5F5F0;
  --b4a-surface:    #FFFFFF;
  --b4a-line:       #D5D0C5;
  --b4a-radius:     2px;
  --b4a-radius-lg:  4px;
  --b4a-shadow:     0 1px 3px rgba(8,37,71,.08), 0 2px 8px rgba(8,37,71,.06);
  --b4a-shadow-lg:  0 4px 24px rgba(8,37,71,.12);
  --b4a-content:    1240px;
  --b4a-content-narrow: 880px;
  --b4a-ff-headings: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --b4a-ff-body:     'Inter', system-ui, -apple-system, sans-serif;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--b4a-ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--b4a-text);
  background: var(--b4a-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--b4a-primary); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--b4a-accent); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--b4a-ff-headings);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .8rem;
  color: var(--b4a-primary);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.b4a-container {
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.b4a-container--narrow {
  max-width: var(--b4a-content-narrow);
}
main, .b4a-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ===================== BUTTONS ===================== */
.b4a-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--b4a-ff-headings);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid var(--b4a-primary);
  background: var(--b4a-primary);
  color: #fff;
  border-radius: var(--b4a-radius);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
  letter-spacing: .02em;
}
.b4a-btn:hover, .b4a-btn:focus-visible {
  background: transparent;
  color: var(--b4a-primary);
}
.b4a-btn--cta {
  background: var(--b4a-accent);
  border-color: var(--b4a-accent);
  color: #fff;
  border-radius: 999px;
  transition: border-radius .35s cubic-bezier(.6,0,.2,1), background .25s, color .25s, border-color .25s;
}
.b4a-btn--cta:hover, .b4a-btn--cta:focus-visible {
  background: #c41842;
  border-color: #c41842;
  color: #fff;
  border-radius: 0;
}
.b4a-btn--ghost {
  background: transparent;
  color: var(--b4a-primary);
  border-color: var(--b4a-primary);
}
.b4a-btn--ghost:hover { background: var(--b4a-primary); color: #fff; }

/* ===================== HEADER (logo-left-menu-right) ===================== */
.b4a-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--b4a-surface);
  border-bottom: 1px solid var(--b4a-line);
}
.b4a-header-inner {
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}
.b4a-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--b4a-primary);
  flex-shrink: 0;
}
.b4a-brand-logo {
  width: auto;
  height: 44px;
  display: block;
  flex-shrink: 0;
}
.b4a-brand-name {
  font-family: var(--b4a-ff-headings);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--b4a-primary);
  /* Title case — pas de text-transform */
  letter-spacing: -.005em;
}

/* Nav desktop (visible >=1024px) */
.b4a-nav-desktop { display: none; }
.b4a-nav-desktop-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.b4a-nav-desktop-list > li { position: relative; }
.b4a-nav-desktop-list > li > a {
  color: var(--b4a-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .8rem .2rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.b4a-nav-desktop-list > li > a:hover,
.b4a-nav-desktop-list > li:hover > a,
.b4a-nav-desktop-list > li:focus-within > a { border-bottom-color: var(--b4a-accent); color: var(--b4a-accent); }

/* Mega menu (Layout B: grid 3 colonnes — mega menu layout: B - grid 3 cols) */
.b4a-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 640px;
  max-width: 760px;
  background: var(--b4a-surface);
  border: 1px solid var(--b4a-line);
  box-shadow: var(--b4a-shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.b4a-nav-desktop-list > li:hover > .b4a-mega,
.b4a-nav-desktop-list > li:focus-within > .b4a-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.b4a-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.b4a-mega-card {
  display: block;
  border: 1px solid transparent;
  padding: .55rem;
  transition: border-color .2s, background .2s;
  text-decoration: none;
  color: var(--b4a-primary);
}
.b4a-mega-card:hover { border-color: var(--b4a-line); background: var(--b4a-bg); }
.b4a-mega-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--b4a-bg);
  background-size: cover;
  background-position: center;
  margin-bottom: .55rem;
}
.b4a-mega-card-title {
  font-family: var(--b4a-ff-headings);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
  margin-bottom: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b4a-mega-card-date {
  font-size: .78rem;
  color: var(--b4a-text-soft);
}
.b4a-mega-empty {
  grid-column: 1 / -1;
  padding: 1rem;
  text-align: center;
  color: var(--b4a-text-soft);
  font-size: .9rem;
}
.b4a-mega-link-all {
  display: inline-block;
  margin-top: .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--b4a-accent);
  border-bottom: 1px solid currentColor;
}

/* Burger (mobile only) */
.b4a-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: 4px !important;
  color: var(--b4a-primary) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.b4a-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.b4a-burger-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}

/* Drawer mobile — CACHÉ par défaut */
.b4a-nav-mobile {
  display: none;
}
@media (max-width: 1023px) {
  .b4a-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--b4a-surface);
    padding: 4.5rem 1.5rem 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
    animation: b4a-slide-in .25s ease-out;
  }
  .b4a-nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,37,71,.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .b4a-nav-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}
@keyframes b4a-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.b4a-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--b4a-primary);
  width: 40px; height: 40px;
  line-height: 1;
}
.b4a-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.b4a-nav-mobile-list li { border-bottom: 1px solid var(--b4a-line); }
.b4a-nav-mobile-list a {
  display: block;
  padding: 1rem .25rem;
  color: var(--b4a-text);
  font-family: var(--b4a-ff-headings);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.b4a-nav-mobile-list a:hover { color: var(--b4a-accent); }

/* CTA en bas drawer (caché par défaut, montré drawer mobile uniquement) */
.b4a-drawer-cta {
  display: block !important;
  margin: 2rem 0 0 !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--b4a-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1rem !important;
}
@media (min-width: 1024px) {
  .b4a-drawer-cta { display: none !important; }
}

/* ===================== HERO (classic-overlay) ===================== */
.b4a-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--b4a-primary);
}
.b4a-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* PAS d'overlay sombre sur image classique (overlay réservé à vidéo) */
.b4a-hero--has-video .b4a-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: 2;
}
.b4a-hero--classic-overlay .b4a-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,37,71,0.55) 0%, rgba(8,37,71,0.78) 100%);
  z-index: 2;
}
.b4a-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #fff;
  width: 100%;
}
.b4a-hero-eyebrow {
  display: inline-block;
  background: var(--b4a-accent);
  color: #fff;
  padding: .35rem .9rem;
  font-family: var(--b4a-ff-headings);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.b4a-hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 820px;
}
.b4a-hero-subtitle {
  color: #f3eee5;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 680px;
}
.b4a-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.b4a-hero .b4a-btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.b4a-hero .b4a-btn--ghost:hover { background: #fff; color: var(--b4a-primary); }

/* ===================== HOME — SECTIONS PAR CATÉGORIE (by-category mode) ===================== */
.b4a-cat-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--b4a-line);
}
.b4a-cat-section:nth-child(even) { background: var(--b4a-surface); }
.b4a-cat-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--b4a-primary);
}
.b4a-cat-section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.b4a-cat-section-title a {
  color: var(--b4a-primary);
  text-decoration: none;
}
.b4a-cat-section-title a:hover { color: var(--b4a-accent); }
.b4a-cat-section-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--b4a-accent);
  text-decoration: none;
}
.b4a-cat-section-link:hover { text-decoration: underline; }
.b4a-cat-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}
.b4a-cat-section-empty {
  padding: 1.2rem;
  background: var(--b4a-bg);
  color: var(--b4a-text-soft);
  border-left: 4px solid var(--b4a-line);
  font-size: .95rem;
}

/* ===================== ARTICLE CARDS ===================== */
.b4a-card {
  display: flex;
  flex-direction: column;
  background: var(--b4a-surface);
  border: 1px solid var(--b4a-line);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.b4a-card:hover { box-shadow: var(--b4a-shadow-lg); transform: translateY(-2px); }
.b4a-card-img {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--b4a-bg);
  background-size: cover;
  background-position: center;
}
.b4a-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.b4a-card-title {
  font-family: var(--b4a-ff-headings);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 .55rem;
}
.b4a-card-title a {
  color: var(--b4a-primary);
  text-decoration: none;
}
.b4a-card-title a:hover { color: var(--b4a-accent); }
.b4a-card-meta {
  font-size: .8rem;
  color: var(--b4a-text-soft);
  margin-bottom: .4rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  font-family: var(--b4a-ff-headings);
}
.b4a-card-excerpt {
  margin: 0;
  color: var(--b4a-text-soft);
  font-size: .92rem;
  line-height: 1.55;
}

/* ===================== EDITORIAL BLOC (after-categories) ===================== */
.b4a-editorial {
  padding: 4rem 0;
  background: var(--b4a-primary);
  color: #f3eee5;
}
.b4a-editorial-inner {
  max-width: var(--b4a-content-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.b4a-editorial h2, .b4a-editorial h3 { color: #fff; }
.b4a-editorial h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.b4a-editorial h3 { font-size: 1.2rem; margin-top: 2rem; }
.b4a-editorial p { line-height: 1.7; }
.b4a-editorial a { color: var(--b4a-accent); border-bottom: 1px solid currentColor; }
.b4a-editorial a:hover { color: #ff5d7d; }
.b4a-editorial-eyebrow {
  display: inline-block;
  background: var(--b4a-accent);
  color: #fff;
  padding: .3rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.b4a-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.b4a-editorial-box {
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--b4a-accent);
  padding: 1.2rem 1.5rem;
}

/* ===================== PERSONA TEASER (sur home) ===================== */
.b4a-persona-teaser {
  padding: 4rem 0;
  background: var(--b4a-bg);
}
.b4a-persona-teaser-inner {
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.b4a-persona-teaser-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--b4a-surface);
}
.b4a-persona-teaser-content h2 { margin-top: 0; }
.b4a-persona-teaser-content .b4a-btn { margin-top: 1rem; }

/* ===================== CATEGORY PAGE ===================== */
.b4a-cat-hero {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--b4a-primary);
}
.b4a-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b4a-cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,37,71,.55) 0%, rgba(8,37,71,.7) 100%);
  z-index: 2;
}
.b4a-cat-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--b4a-content);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: #fff;
  text-align: center;
}
.b4a-cat-hero-inner h1 {
  color: #fff !important;
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.b4a-cat-hero-eyebrow {
  display: inline-block;
  background: var(--b4a-accent);
  color: #fff;
  padding: .25rem .8rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.b4a-cat-intro {
  padding: 3rem 0 1rem;
}
.b4a-cat-intro-inner {
  max-width: var(--b4a-content-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--b4a-text-soft);
}
.b4a-cat-intro-inner a {
  color: var(--b4a-primary);
  border-bottom: 1px solid var(--b4a-accent);
}
.b4a-cat-articles {
  padding: 2rem 0 4rem;
}
.b4a-cat-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================== METRICS LINKS BLOCK ===================== */
.b4a-metrics {
  padding: 2.5rem 0;
  background: var(--b4a-surface);
  border-top: 1px solid var(--b4a-line);
  border-bottom: 1px solid var(--b4a-line);
}
.b4a-metrics-inner {
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.b4a-metrics h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--b4a-text-soft);
  margin-bottom: 1.2rem;
}
.b4a-metrics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.b4a-metrics-list a {
  display: inline-flex;
  gap: .5rem;
  align-items: baseline;
  font-size: .9rem;
  color: var(--b4a-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--b4a-line);
  padding-bottom: .15rem;
}
.b4a-metrics-list a:hover { color: var(--b4a-accent); border-bottom-color: var(--b4a-accent); }

/* ===================== FOOTER ===================== */
.b4a-footer {
  background: var(--b4a-primary);
  color: #c2cfdb;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.b4a-footer-grid {
  max-width: var(--b4a-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.b4a-footer-title {
  font-family: var(--b4a-ff-headings);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.b4a-footer-logo {
  display: block;
  width: 120px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.b4a-footer-brand-pitch {
  font-size: .92rem;
  line-height: 1.6;
  color: #c2cfdb;
  margin-bottom: 1.2rem;
}
.b4a-footer-brand-cta {
  display: inline-block;
  color: var(--b4a-accent);
  font-weight: 600;
  font-size: .92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
  text-decoration: none;
}
.b4a-footer-brand-cta:hover { color: #ff7da0; }
.b4a-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b4a-footer-links li { margin-bottom: .6rem; }
.b4a-footer-links a {
  color: #c2cfdb;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.b4a-footer-links a:hover { color: var(--b4a-accent); }
.b4a-footer-bottom {
  max-width: var(--b4a-content);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: #97a5b8;
}
.b4a-footer-bottom a { color: #97a5b8; }
.b4a-footer-bottom a:hover { color: var(--b4a-accent); }
.b4a-footer-social {
  display: flex;
  gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.b4a-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  color: #c2cfdb;
  border-radius: 50%;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.b4a-footer-social a:hover { background: var(--b4a-accent); border-color: var(--b4a-accent); color: #fff; }

/* ===================== PERSONA PAGE ===================== */
.b4a-persona-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

/* ===================== CONTACT FORM ===================== */
.b4a-contact-form {
  margin: 2rem 0;
  background: var(--b4a-surface);
  border: 1px solid var(--b4a-line);
  padding: 1rem;
}

/* ===================== ANIMATIONS — CTA / CTR / CTO ===================== */
@keyframes b4a-cta-round-square {
  0% { border-radius: 999px; }
  100% { border-radius: 0; }
}
@keyframes b4a-step-progress-fade {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.b4a-step { opacity: 0; }
.b4a-step.is-visible { animation: b4a-step-progress-fade .55s cubic-bezier(.2,.7,.2,1) forwards; }
.b4a-step:nth-child(1).is-visible { animation-delay: 0s; }
.b4a-step:nth-child(2).is-visible { animation-delay: .12s; }
.b4a-step:nth-child(3).is-visible { animation-delay: .24s; }
.b4a-step:nth-child(4).is-visible { animation-delay: .36s; }
.b4a-step:nth-child(5).is-visible { animation-delay: .48s; }
@keyframes b4a-spin-wheel-pop {
  0% { transform: scale(.6) rotate(-360deg); opacity: 0; }
  60% { transform: scale(1.05) rotate(20deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.b4a-cto-modal { animation: b4a-spin-wheel-pop .6s cubic-bezier(.2,.8,.2,1) forwards; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 1024px) {
  .b4a-nav-desktop { display: flex; }
  .b4a-burger { display: none !important; }
  .b4a-header-cta-desktop, [class*="-header"] [class*="-btn--cta"]:not([class*="-drawer-"]) {
    /* CTA en header SEULEMENT si l'option yes — ici no, donc rien à afficher */
  }
}
@media (max-width: 1023px) {
  .b4a-header-cta-desktop {
    display: none !important;
  }
  .b4a-nav-desktop { display: none !important; }
  .b4a-mega { display: none !important; }
  .b4a-header-inner { min-height: 64px; }
}
@media (max-width: 900px) {
  .b4a-hero { min-height: 50vh; }
  .b4a-hero-inner { padding: 2.5rem 1.5rem; }
  .b4a-persona-teaser-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .b4a-persona-teaser-img { max-width: 240px; }
  .b4a-editorial-grid { grid-template-columns: 1fr; }
  .b4a-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .b4a-cat-section { padding: 2.5rem 0; }
  .b4a-cat-section-grid { grid-template-columns: 1fr; }
  .b4a-footer-grid { grid-template-columns: 1fr; }
  .b4a-mega { min-width: auto; max-width: 95vw; }
  .b4a-mega-grid { grid-template-columns: 1fr; }
}

/* ===================== CONTRAST GUARDS (WCAG AA) ===================== */
/* Pages éditoriales : fond clair + texte foncé */
.b4a-main p { color: var(--b4a-text); }
.b4a-main h1, .b4a-main h2, .b4a-main h3 { color: var(--b4a-primary); }
/* Sections à fond sombre (hero, editorial) : texte blanc — !important pour forcer override sur toute règle (contrast guard, plugin, cache) */
.b4a-hero,
.b4a-hero p,
.b4a-hero h1,
.b4a-hero-title,
.b4a-hero-subtitle,
.b4a-main .b4a-hero,
.b4a-main .b4a-hero p,
.b4a-main .b4a-hero h1,
.b4a-main .b4a-hero-title,
.b4a-main .b4a-hero-subtitle { color: #ffffff !important; }
.b4a-editorial,
.b4a-editorial p,
.b4a-editorial h2,
.b4a-editorial h3,
.b4a-editorial-box,
.b4a-editorial-box p,
.b4a-editorial-box h3,
.b4a-editorial a,
.b4a-main .b4a-editorial,
.b4a-main .b4a-editorial p,
.b4a-main .b4a-editorial h2,
.b4a-main .b4a-editorial h3,
.b4a-main .b4a-editorial-box,
.b4a-main .b4a-editorial-box p,
.b4a-main .b4a-editorial-box h3,
.b4a-main .b4a-editorial a { color: #ffffff !important; }
.b4a-editorial a:hover,
.b4a-main .b4a-editorial a:hover { color: #f3eee5 !important; }
/* Footer : fond clair + texte noir pour lisibilité (demandé par l'utilisateur) — !important pour forcer */
.b4a-footer { background: #ffffff !important; color: #000000 !important; }
.b4a-footer *,
.b4a-footer p,
.b4a-footer span,
.b4a-footer li,
.b4a-footer h1,
.b4a-footer h2,
.b4a-footer h3,
.b4a-footer h4,
.b4a-footer .b4a-footer-title,
.b4a-footer .b4a-footer-brand-pitch,
.b4a-footer .b4a-footer-bottom,
.b4a-footer .b4a-footer-brand-cta { color: #000000 !important; }
.b4a-footer a,
.b4a-footer .b4a-footer-links a,
.b4a-footer .b4a-footer-bottom a,
.b4a-footer .b4a-footer-brand-cta { color: #000000 !important; }
.b4a-footer a:hover,
.b4a-footer .b4a-footer-links a:hover,
.b4a-footer .b4a-footer-bottom a:hover { color: var(--b4a-accent) !important; }
.b4a-footer .b4a-footer-logo { filter: none !important; }
.b4a-footer .b4a-footer-bottom { border-top-color: rgba(0,0,0,.12) !important; }
.b4a-footer .b4a-footer-social a { border-color: rgba(0,0,0,.25) !important; color: #000000 !important; }
.b4a-footer .b4a-footer-social a:hover { background: var(--b4a-accent) !important; border-color: var(--b4a-accent) !important; color: #ffffff !important; }

/* ===================== UTILS ===================== */
.b4a-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
