/*
 * France Distribution — Brutaliste Moderne Vercel
 * Design system: brutalist-modern-01
 * Fonts: Space Grotesk (headings) + JetBrains Mono (body)
 * Palette: #7237fc (primary), #ff217d (accent), #1F1F20 (text), #FFF (bg)
 */

:root {
  --b3b-primary: #7237fc;
  --b3b-accent: #ff217d;
  --b3b-text: #1F1F20;
  --b3b-text-soft: #5b5b5d;
  --b3b-bg: #FFFFFF;
  --b3b-surface: #EFECFE;
  --b3b-line: #ECEDED;
  --b3b-black: #0a0a0a;
  --b3b-white: #FFFFFF;

  --b3b-font-h: 'Space Grotesk', system-ui, sans-serif;
  --b3b-font-b: 'JetBrains Mono', ui-monospace, monospace;

  --b3b-shadow-hard: 6px 6px 0 0 var(--b3b-text);
  --b3b-shadow-hard-sm: 4px 4px 0 0 var(--b3b-text);
  --b3b-shadow-hard-purple: 6px 6px 0 0 var(--b3b-primary);

  --b3b-container: 1240px;
  --b3b-gap: 1.5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.b3b-body {
  margin: 0;
  font-family: var(--b3b-font-b);
  font-size: 15px;
  line-height: 1.6;
  color: var(--b3b-text);
  background: var(--b3b-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--b3b-font-h);
  color: var(--b3b-text);
  margin: 0 0 .75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; color: var(--b3b-text); }

a { color: var(--b3b-primary); text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--b3b-accent); }

img { max-width: 100%; height: auto; display: block; }

main, .b3b-main { padding-top: 0 !important; margin-top: 0 !important; }

.b3b-container {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.b3b-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  font-family: var(--b3b-font-h);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  text-decoration: none;
  border: 3px solid var(--b3b-text);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.b3b-btn--cta {
  background: var(--b3b-primary);
  color: #fff;
  box-shadow: var(--b3b-shadow-hard-sm);
}
.b3b-btn--cta:hover {
  background: var(--b3b-accent);
  color: #fff;
  text-decoration: none;
}
.b3b-btn--ghost {
  background: transparent;
  color: var(--b3b-text);
}
.b3b-btn--ghost:hover {
  background: var(--b3b-surface);
  color: var(--b3b-text);
}

/* ============================================================
   HEADER (logo-left-menu-right)
   ============================================================ */
.b3b-header {
  background: var(--b3b-bg);
  border-bottom: 3px solid var(--b3b-text);
  position: sticky;
  top: 0;
  z-index: 100;
}
.b3b-header-inner {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
}
.b3b-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.b3b-brand-logo {
  display: block;
  width: auto;
}
.b3b-brand-name {
  font-family: var(--b3b-font-h);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--b3b-text);
  letter-spacing: -.01em;
  /* Title Case style B - pas de text-transform */
}
.b3b-brand:hover .b3b-brand-name { color: var(--b3b-primary); }

/* Nav desktop */
.b3b-nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
}
.b3b-nav-desktop-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.b3b-nav-desktop-list a {
  font-family: var(--b3b-font-h);
  font-weight: 500;
  font-size: .92rem;
  color: var(--b3b-text);
  text-decoration: none;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.b3b-nav-desktop-list a:hover {
  border-bottom-color: var(--b3b-primary);
  color: var(--b3b-primary);
}

/* CTA header desktop */
.b3b-header-cta-desktop {
  margin-left: auto;
  flex-shrink: 0;
}

/* Burger button (mobile only) */
.b3b-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: var(--b3b-white);
  border: 2px solid var(--b3b-text);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
}
.b3b-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  height: 16px;
}
.b3b-burger-bars span {
  display: block;
  height: 2.5px;
  background: var(--b3b-text);
  border-radius: 1px;
}

/* Mobile drawer (.b3b-nav-mobile is hidden by default) */
.b3b-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .b3b-header-cta-desktop { display: none; }
  .b3b-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--b3b-white);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    border-left: 3px solid var(--b3b-text);
  }
  .b3b-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .b3b-nav-mobile-list li {
    border-bottom: 1px solid var(--b3b-line);
  }
  .b3b-nav-mobile-list a {
    display: block;
    padding: .95rem .25rem;
    font-family: var(--b3b-font-h);
    font-weight: 600;
    font-size: 1rem;
    color: var(--b3b-text);
    text-decoration: none;
  }
  .b3b-nav-mobile-list a:hover {
    color: var(--b3b-primary);
  }
  .b3b-drawer-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: transparent;
    border: 2px solid var(--b3b-text);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--b3b-text);
    line-height: 1;
  }
  .b3b-drawer-cta {
    display: block !important;
    margin: 2rem 0 1rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--b3b-primary) !important;
    color: #fff !important;
    border: 3px solid var(--b3b-text) !important;
    box-shadow: 4px 4px 0 0 var(--b3b-text) !important;
    font-family: var(--b3b-font-h) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    letter-spacing: .03em !important;
  }
  .b3b-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .b3b-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  .b3b-nav-desktop { display: flex; }
  .b3b-burger { display: none !important; }
  .b3b-drawer-cta { display: none !important; }
}

/* ============================================================
   HERO — latest-edition (magazine cover style)
   ============================================================ */
.b3b-hero {
  position: relative;
  background: var(--b3b-surface);
  border-bottom: 3px solid var(--b3b-text);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.b3b-hero-inner {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.b3b-hero-text {
  position: relative;
  z-index: 2;
}
.b3b-hero-eyebrow {
  display: inline-block;
  font-family: var(--b3b-font-h);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b3b-primary);
  background: var(--b3b-bg);
  padding: .4rem .8rem;
  border: 2px solid var(--b3b-text);
  margin-bottom: 1.25rem;
}
.b3b-hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  font-weight: 700;
}
.b3b-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--b3b-primary), var(--b3b-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.b3b-hero-subtitle {
  font-size: 1.05rem;
  color: var(--b3b-text);
  max-width: 50ch;
  margin-bottom: 1.6rem;
}
.b3b-hero-cta-row {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}
.b3b-hero-img-wrap {
  position: relative;
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-purple);
  background: var(--b3b-text);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.b3b-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b3b-hero-issue-stamp {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--b3b-accent);
  color: #fff;
  border: 3px solid var(--b3b-text);
  padding: .5rem .85rem;
  font-family: var(--b3b-font-h);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(6deg);
  z-index: 3;
}
@media (max-width: 768px) {
  .b3b-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .b3b-hero { padding: 2rem 0 2.25rem; }
}

/* ============================================================
   EDITORIAL BLOCK (after-hero) — 400-700 mots SEO
   ============================================================ */
.b3b-editorial {
  padding: 3.5rem 0;
  background: var(--b3b-bg);
}
.b3b-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b3b-editorial h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--b3b-text);
}
.b3b-editorial h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.b3b-editorial h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.b3b-editorial p { font-size: 1rem; line-height: 1.7; color: var(--b3b-text); }
.b3b-editorial-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--b3b-text);
  border-left: 6px solid var(--b3b-primary);
  padding: .35rem 0 .35rem 1.25rem;
  margin-bottom: 1.5rem;
}
.b3b-editorial-pitch {
  background: var(--b3b-surface);
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-sm);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.b3b-editorial-pitch h3 { margin-top: 0; }
.b3b-editorial a { font-weight: 600; }

/* ============================================================
   CATEGORIES grid — 4 columns brutal
   ============================================================ */
.b3b-categories {
  padding: 3rem 0 3.5rem;
  background: var(--b3b-bg);
  border-top: 3px solid var(--b3b-text);
}
.b3b-categories-head {
  max-width: var(--b3b-container);
  margin: 0 auto 1.75rem;
  padding: 0 1.25rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.b3b-categories-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.b3b-categories-grid {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.b3b-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--b3b-bg);
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-sm);
  text-decoration: none;
  color: var(--b3b-text);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  min-height: 240px;
}
.b3b-cat-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--b3b-primary);
  color: var(--b3b-text);
  text-decoration: none;
}
.b3b-cat-card-img {
  display: block;
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--b3b-primary);
  border-bottom: 3px solid var(--b3b-text);
}
.b3b-cat-card-body {
  padding: .9rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.b3b-cat-card-name {
  font-family: var(--b3b-font-h);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--b3b-text);
}
.b3b-cat-card-arrow {
  font-family: var(--b3b-font-h);
  font-size: .8rem;
  font-weight: 600;
  color: var(--b3b-primary);
  letter-spacing: .06em;
  margin-top: .35rem;
}

@media (max-width: 980px) {
  .b3b-categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .b3b-categories-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LATEST ARTICLES — 18 cards, 3-4 cols
   ============================================================ */
.b3b-latest {
  padding: 3rem 0 4rem;
  background: var(--b3b-surface);
  border-top: 3px solid var(--b3b-text);
}
.b3b-latest-head {
  max-width: var(--b3b-container);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}
.b3b-latest-grid {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.b3b-card {
  background: var(--b3b-bg);
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.b3b-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--b3b-accent);
}
.b3b-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--b3b-text);
  border-bottom: 3px solid var(--b3b-text);
}
.b3b-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.b3b-card:hover .b3b-card-thumb img { transform: scale(1.04); }
.b3b-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.b3b-card-meta {
  font-family: var(--b3b-font-b);
  font-size: .75rem;
  color: var(--b3b-text-soft);
  letter-spacing: .03em;
}
.b3b-card-cat {
  display: inline-block;
  background: var(--b3b-primary);
  color: #fff;
  padding: .15rem .55rem;
  font-family: var(--b3b-font-h);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-right: .4rem;
  text-decoration: none;
}
.b3b-card-cat:hover { background: var(--b3b-accent); color: #fff; }
.b3b-card-title {
  font-family: var(--b3b-font-h);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.b3b-card-title a { color: var(--b3b-text); text-decoration: none; }
.b3b-card-title a:hover { color: var(--b3b-primary); }
.b3b-card-excerpt {
  font-size: .9rem;
  color: var(--b3b-text-soft);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 980px) {
  .b3b-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .b3b-latest-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.b3b-cat-hero {
  position: relative;
  background: var(--b3b-text);
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  border-bottom: 3px solid var(--b3b-text);
}
.b3b-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b3b-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--b3b-container);
  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%);
}
.b3b-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}
.b3b-cat-content {
  padding: 2.5rem 0;
}
.b3b-cat-content-inner {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b3b-cat-intro {
  background: var(--b3b-surface);
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.b3b-contact-form {
  background: var(--b3b-bg);
  margin: 2rem 0;
}
.b3b-contact-form iframe {
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-purple);
}

/* ============================================================
   PERSONA PHOTO (a-propos page)
   ============================================================ */
.b3b-persona-photo {
  display: block;
  margin: 1.5rem auto;
  max-width: 320px;
  width: 100%;
  border: 3px solid var(--b3b-text);
  box-shadow: var(--b3b-shadow-hard-purple);
}

/* ============================================================
   FOOTER (minimal_bold)
   ============================================================ */
.b3b-footer {
  background: #0a0a0a;
  color: #f5f5f5;
  border-top: 3px solid var(--b3b-primary);
  padding: 3rem 0 1.25rem;
  font-family: var(--b3b-font-b);
}
.b3b-footer-inner {
  max-width: var(--b3b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b3b-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.b3b-footer-col h3.b3b-footer-title {
  font-family: var(--b3b-font-h);
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ff217d;
  margin: 0 0 1rem;
  border-bottom: 2px solid #ff217d;
  padding-bottom: .5rem;
}
.b3b-footer-logo {
  max-width: 130px;
  margin-bottom: 1rem;
  height: auto;
  filter: brightness(0) invert(1);
}
.b3b-footer-brand-pitch {
  color: #d4d4d4;
  font-size: .85rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.b3b-footer-brand-cta {
  display: inline-block;
  font-family: var(--b3b-font-h);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: #fff;
  background: var(--b3b-primary);
  padding: .55rem 1rem;
  text-decoration: none;
  border: 2px solid #fff;
  transition: background .15s;
}
.b3b-footer-brand-cta:hover {
  background: var(--b3b-accent);
  color: #fff;
}
.b3b-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b3b-footer-links li {
  margin-bottom: .55rem;
}
.b3b-footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: .88rem;
  transition: color .15s;
}
.b3b-footer-links a:hover {
  color: var(--b3b-accent);
  text-decoration: underline;
}
.b3b-footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.b3b-footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
}
.b3b-footer-social a:hover {
  background: var(--b3b-primary);
}
.b3b-footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #999;
}
.b3b-footer-bottom a {
  color: #b8b8b8;
  text-decoration: none;
}
.b3b-footer-bottom a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .b3b-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .b3b-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ============================================================
   ANIMATIONS (CTA / CTR / CTO)
   ============================================================ */
@keyframes b3b-cta-cartoon-pop {
  0%   { transform: translateY(0) scale(1); box-shadow: 4px 4px 0 0 var(--b3b-text); }
  50%  { transform: translateY(-2px) scale(1.02); box-shadow: 6px 6px 0 0 var(--b3b-text); }
  100% { transform: translateY(0) scale(1); box-shadow: 4px 4px 0 0 var(--b3b-text); }
}
.b3b-btn--cta:hover { animation: b3b-cta-cartoon-pop .55s ease-in-out infinite; }
.b3b-btn--cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--b3b-text); animation: none; }

@keyframes b3b-ctr-card-slide {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.b3b-card { animation: b3b-ctr-card-slide .55s cubic-bezier(.2,.7,.3,1) both; }
.b3b-card:nth-child(2)  { animation-delay: .06s; }
.b3b-card:nth-child(3)  { animation-delay: .12s; }
.b3b-card:nth-child(4)  { animation-delay: .18s; }
.b3b-card:nth-child(5)  { animation-delay: .24s; }
.b3b-card:nth-child(6)  { animation-delay: .3s; }
.b3b-card:nth-child(7)  { animation-delay: .36s; }
.b3b-card:nth-child(8)  { animation-delay: .42s; }
.b3b-card:nth-child(9)  { animation-delay: .48s; }

@keyframes b3b-cto-quote-pop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.b3b-contact-form { animation: b3b-cto-quote-pop .55s cubic-bezier(.2,.7,.3,1) both; }

/* Tools */
.b3b-tool-section {
  padding: 3rem 0;
  background: var(--b3b-bg);
}
.b3b-tool-section h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: .8rem;
}
.b3b-tool-intro {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
  color: var(--b3b-text);
  line-height: 1.65;
}
.b3b-tool-faq {
  max-width: 720px;
  margin: 2.5rem auto 0;
}
.b3b-tool-faq h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.b3b-tool-faq details {
  border: 2px solid var(--b3b-text);
  padding: .85rem 1rem;
  margin-bottom: .75rem;
  background: var(--b3b-bg);
}
.b3b-tool-faq details summary {
  font-family: var(--b3b-font-h);
  font-weight: 700;
  cursor: pointer;
  color: var(--b3b-text);
}

/* Misc */
.b3b-skip-link { position: absolute; left: -9999px; }
.b3b-skip-link:focus { left: 0; top: 0; background: var(--b3b-primary); color: #fff; padding: .5rem 1rem; z-index: 10001; }


/* [2026-06-19] FIX reveal-on-scroll force opacity 1 */
[class*='-reveal'],
[class*='reveal-'],
.b3b-reveal, .reveal, [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="b3b-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre (fix 2026-06-17) */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}


/* [2026-06-17] PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* [2026-06-17] BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.b3b-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06) !important;
  border-color: var(--b3b-accent, currentColor) !important;
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX gap main padding-top (Claude met parfois padding-top: 30px sur .{prefix}-main qui casse le collage hero) */
html body main[class*="-main"],
html body main.b3b-main,
html body main#bdf-main, html body main#lda-main, html body main#a66-main,
html body main#b3b-main, html body main#e96-main, html body main#aaa-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* [2026-06-19] FIX drawer mobile height : force full viewport */
html body [class*="nav-mobile"]:not([class*="close"]):not([class*="overlay"]),
html body [class*="menu-mobile"]:not([class*="close"]),
html body [class*="drawer-mobile"]:not([class*="close"]) {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  bottom: 0 !important;
  overflow-y: auto !important;
}

/* [2026-06-19] BURGER variation seedee : shape=decrescendo (w1=18/w2=14/w3=10) + dimensions + couleur + angle X */
html body button[class*="burger"] > span > span,
html body button[class*="burger"] > span:not([class*="bar"]):not([class*="line"]),
html body button[class*="burger"] [class*="bar"] > span,
html body button[class*="burger"] [class*="line"] > span {
  height: 2.5px !important;
  border-radius: 2px !important;
  background: var(--b3b-accent, currentColor) !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease !important;
}
/* Widths individuelles seedees -> forme distincte par site */
html body button[class*="burger"] > span > span:nth-child(1),
html body button[class*="burger"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"] [class*="line"] > span:nth-child(1) {
  width: 18px !important;
}
html body button[class*="burger"] > span > span:nth-child(2),
html body button[class*="burger"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"] [class*="line"] > span:nth-child(2) {
  width: 14px !important;
}
html body button[class*="burger"] > span > span:nth-child(3),
html body button[class*="burger"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"] [class*="line"] > span:nth-child(3) {
  width: 10px !important;
}
/* En etat ouvert (X) : les 3 barres ont meme largeur pour X symetrique */
html body button[class*="burger"][aria-expanded="true"] > span > span,
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span,
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span {
  width: 18px !important;
}
html body button[class*="burger"] > span:has(> span) {
  flex-direction: column !important;
  gap: 6px !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(1):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1) {
  transform: translateY(8.5px) rotate(55deg) !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(2):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2) {
  opacity: 0 !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(3):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-55deg) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : circle-soft (40%) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 40% !important;
}
