/*
 * Caféine Mag — Custom child theme stylesheet
 * Design System: Vintage Disco 70s (warm terracotta, amber, cream)
 * Fonts: Bowlby One (headings) + Poppins (body)
 * Layout: logo-center-menu-split header, parallax-scroll hero,
 *         4-col footer, single-grid latest articles, tldr-detailed categories
 */

/* ============================================================
   1. CSS VARIABLES (palette + tokens)
   ============================================================ */
:root {
  --b95-primary:     #7B2D26;
  --b95-primary-d:   #5e1f1a;
  --b95-accent:      #F4A261;
  --b95-accent-d:    #e58843;
  --b95-bg:          #FFE8C6;
  --b95-bg-alt:      #FFF3DA;
  --b95-surface:     #FFD9A5;
  --b95-text:        #3A1A0F;
  --b95-text-soft:   #7A4A30;
  --b95-line:        #E5A875;
  --b95-line-soft:   #f0caa0;
  --b95-white:       #FFFCF5;
  --b95-shadow-sm:   0 2px 8px rgba(58,26,15,0.06);
  --b95-shadow-md:   0 8px 24px rgba(58,26,15,0.10);
  --b95-shadow-lg:   0 16px 44px rgba(58,26,15,0.16);
  --b95-radius-sm:   8px;
  --b95-radius-md:   14px;
  --b95-radius-lg:   24px;
  --b95-radius-xl:   40px;
  --b95-font-head:   "Bowlby One", "Georgia", serif;
  --b95-font-body:   "Poppins", -apple-system, "Segoe UI", sans-serif;
  --b95-container:   1240px;
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.b95-body {
  margin: 0;
  padding: 0;
  font-family: var(--b95-font-body);
  background: var(--b95-bg);
  color: var(--b95-text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--b95-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--b95-accent-d); }
h1, h2, h3, h4, h5 {
  font-family: var(--b95-font-head);
  color: var(--b95-primary);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -.005em;
}
p { margin: 0 0 1rem; }
.b95-skip-link {
  position: absolute; left: -9999px; top: -9999px;
}
.b95-skip-link:focus {
  left: 1rem; top: 1rem;
  background: var(--b95-primary); color: var(--b95-white);
  padding: .6rem 1rem; border-radius: var(--b95-radius-sm);
  z-index: 99999;
}
main.b95-main, .b95-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ============================================================
   3. HEADER — logo-center-menu-split
   ============================================================ */
.b95-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--b95-bg);
  border-bottom: 2px solid var(--b95-line);
  box-shadow: var(--b95-shadow-sm);
}
.b95-header-inner {
  max-width: var(--b95-container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.b95-nav { flex: 0 1 auto; }
.b95-nav--left, .b95-nav--right { display: none; }
.b95-nav-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.b95-nav-list a {
  color: var(--b95-text);
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .2rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.b95-nav-list a:hover { color: var(--b95-primary); border-bottom-color: var(--b95-accent); }

/* Brand center */
.b95-brand { flex: 0 0 auto; }
.b95-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--b95-primary);
}
.b95-brand-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}
.b95-brand-name {
  font-family: var(--b95-font-head);
  font-size: 1.4rem;
  color: var(--b95-primary);
  letter-spacing: .01em;
  line-height: 1;
}

/* Burger mobile (hidden on desktop) */
.b95-burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px; height: 44px;
  padding: 8px;
  margin-left: auto;
}
.b95-burger span {
  display: block;
  width: 100%; height: 3px;
  background: var(--b95-primary);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .2s;
}

/* Mobile drawer (display:none by default, règle #drawer mobile hidden) */
.b95-nav-mobile { display: none; }
.b95-drawer-overlay { display: none; }
.b95-drawer-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: 0;
  font-size: 2.2rem;
  color: var(--b95-primary);
  cursor: pointer;
  line-height: 1;
}

/* ====== Responsive header ====== */
@media (min-width: 980px) {
  .b95-nav--left, .b95-nav--right { display: flex; flex: 1; }
  .b95-nav--left { justify-content: flex-end; }
  .b95-nav--right { justify-content: flex-start; }
  .b95-burger { display: none !important; }
}
@media (max-width: 979px) {
  .b95-nav--left, .b95-nav--right { display: none !important; }
  .b95-burger { display: block; }
  .b95-header-inner {
    justify-content: space-between;
    padding: .8rem 1rem;
  }
  .b95-brand-link { gap: .5rem; }
  .b95-brand-logo { height: 44px; }
  .b95-brand-name { font-size: 1.15rem; }
  .b95-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--b95-bg);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(58,26,15,0.3);
  }
  .b95-drawer-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(58,26,15,0.55);
    z-index: 9998;
  }
  .b95-nav-mobile-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
  }
  .b95-nav-mobile-list li { border-bottom: 1px solid var(--b95-line-soft); }
  .b95-nav-mobile-list a {
    display: block;
    padding: 1rem .5rem;
    color: var(--b95-text);
    font-weight: 600;
    font-size: 1.05rem;
  }
  .b95-nav-mobile-list a:hover { color: var(--b95-primary); background: var(--b95-bg-alt); }
}

/* ============================================================
   4. HERO — parallax-scroll
   ============================================================ */
.b95-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--b95-bg);
}
.b95-hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.b95-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 130%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  /* Parallax via CSS scroll effect */
  transform: translateY(0);
}
/* JS parallax kick (also fallback nice scroll via scroll-driven anim where supported) */
@supports (animation-timeline: scroll()) {
  .b95-hero-bg {
    animation: b95-parallax-up linear both;
    animation-timeline: scroll();
    animation-range: entry 0% exit 100%;
  }
  @keyframes b95-parallax-up {
    from { transform: translateY(0); }
    to   { transform: translateY(-22%); }
  }
}
.b95-hero-video-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.b95-hero-video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}
.b95-hero-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(58,26,15,0.30) 0%, rgba(58,26,15,0.65) 100%);
}
.b95-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  color: var(--b95-text);
}
/* On image hero (no video) : NO overlay — image remains crisp (règle dégradé reserved to video) */
.b95-hero--parallax-scroll:not(.b95-hero--has-video) .b95-hero-inner {
  background: rgba(255,232,198,0.78);
  border-radius: var(--b95-radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--b95-shadow-md);
  backdrop-filter: blur(2px);
}
.b95-hero-eyebrow {
  font-family: var(--b95-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--b95-primary);
  margin: 0 0 .6rem;
}
.b95-hero-title {
  font-family: var(--b95-font-head);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0 0 1rem;
  color: var(--b95-primary);
  line-height: 1;
}
.b95-hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--b95-text);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.b95-hero--has-video .b95-hero-title,
.b95-hero--has-video .b95-hero-subtitle,
.b95-hero--has-video .b95-hero-eyebrow {
  color: var(--b95-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.b95-hero-cta-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.b95-btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  font-family: var(--b95-font-body);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s, background .2s, color .2s;
}
.b95-btn--cta {
  background: var(--b95-accent);
  color: var(--b95-text);
  box-shadow: 0 4px 16px rgba(244,162,97,0.35);
}
.b95-btn--cta:hover {
  background: var(--b95-accent-d);
  color: var(--b95-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,162,97,0.50);
}
.b95-btn--ghost {
  background: transparent;
  color: var(--b95-primary);
  border-color: var(--b95-primary);
}
.b95-btn--ghost:hover {
  background: var(--b95-primary);
  color: var(--b95-white);
}

/* ============================================================
   6. SECTION TITLES & COMMON LAYOUT
   ============================================================ */
.b95-section-title {
  font-family: var(--b95-font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--b95-primary);
  text-align: center;
  margin: 0 0 2rem;
}

/* ============================================================
   7. EDITORIAL BLOCK (SEO 400-700 mots)
   ============================================================ */
.b95-editorial {
  background: var(--b95-bg-alt);
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--b95-line-soft);
  border-bottom: 1px solid var(--b95-line-soft);
}
.b95-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
}
.b95-editorial-title {
  font-family: var(--b95-font-head);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: var(--b95-primary);
  text-align: center;
  margin: 0 0 1.4rem;
  line-height: 1.1;
}
.b95-editorial-lead {
  font-size: 1.08rem;
  color: var(--b95-text);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 760px;
  line-height: 1.7;
}
.b95-editorial-h3 {
  font-family: var(--b95-font-head);
  color: var(--b95-primary);
  font-size: 1.4rem;
  margin-top: 2.4rem;
  margin-bottom: .8rem;
}
.b95-editorial-h3 + p { font-size: 1rem; line-height: 1.75; color: var(--b95-text); }
.b95-editorial-callout {
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--b95-primary);
  color: var(--b95-white);
  border-radius: var(--b95-radius-lg);
  box-shadow: var(--b95-shadow-md);
}
.b95-editorial-callout-title {
  font-family: var(--b95-font-head);
  color: var(--b95-accent);
  margin: 0 0 .8rem;
  font-size: 1.3rem;
}
.b95-editorial-callout p { margin: 0; line-height: 1.7; color: var(--b95-white); }
.b95-editorial a { color: var(--b95-primary); border-bottom: 2px solid var(--b95-accent); }
.b95-editorial a:hover { color: var(--b95-accent-d); border-bottom-color: var(--b95-primary); }

/* ============================================================
   8. CATEGORIES GRID
   ============================================================ */
.b95-categories {
  padding: 4rem 1.5rem;
  background: var(--b95-bg);
}
.b95-categories-inner {
  max-width: var(--b95-container);
  margin: 0 auto;
}
.b95-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.b95-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--b95-surface);
  border: 1px solid var(--b95-line);
  border-radius: var(--b95-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--b95-text);
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
  box-shadow: var(--b95-shadow-sm);
}
.b95-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b95-shadow-lg);
  border-color: var(--b95-primary);
}
.b95-cat-card-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--b95-line-soft);
}
.b95-cat-card-img--fallback {
  background: linear-gradient(135deg, var(--b95-primary) 0%, var(--b95-accent-d) 100%);
  display: block;
  height: 180px;
}
.b95-cat-card-body { padding: 1.2rem 1.4rem 1.4rem; flex: 1; }
.b95-cat-card-name {
  font-family: var(--b95-font-head);
  font-size: 1.25rem;
  color: var(--b95-primary);
  margin: 0 0 .5rem;
  line-height: 1.1;
}
.b95-cat-card-desc {
  font-size: .92rem;
  color: var(--b95-text-soft);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   9. LATEST ARTICLES GRID (3 cols for 9/12/15, 4 cols for 18)
   ============================================================ */
.b95-latest {
  padding: 4rem 1.5rem;
  background: var(--b95-bg-alt);
  border-top: 1px solid var(--b95-line-soft);
  border-bottom: 1px solid var(--b95-line-soft);
}
.b95-latest-inner {
  max-width: var(--b95-container);
  margin: 0 auto;
}
.b95-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 15 articles -> 3 cols x 5 rows */
  gap: 1.8rem;
}
@media (max-width: 940px) { .b95-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .b95-article-grid { grid-template-columns: 1fr; } }
.b95-article-card {
  background: var(--b95-bg);
  border: 1px solid var(--b95-line);
  border-radius: var(--b95-radius-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .25s;
  box-shadow: var(--b95-shadow-sm);
}
.b95-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b95-shadow-md);
}
.b95-article-card-link { display: block; color: inherit; text-decoration: none; }
.b95-article-card-img-wrap { overflow: hidden; height: 200px; }
.b95-article-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.b95-article-card:hover .b95-article-card-img { transform: scale(1.04); }
.b95-article-card-body { padding: 1.2rem 1.4rem 1.4rem; }
.b95-article-card-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--b95-primary);
  background: var(--b95-accent);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}
.b95-article-card-title {
  font-family: var(--b95-font-head);
  font-size: 1.18rem;
  color: var(--b95-primary);
  line-height: 1.2;
  margin: 0 0 .6rem;
}
.b95-article-card-excerpt {
  font-size: .9rem;
  color: var(--b95-text-soft);
  margin: 0 0 .8rem;
  line-height: 1.55;
}
.b95-article-card-date {
  font-size: .78rem;
  color: var(--b95-text-soft);
  font-style: italic;
}
.b95-empty-note {
  text-align: center;
  color: var(--b95-text-soft);
  font-size: 1rem;
  padding: 2rem 1rem;
}

/* ============================================================
   10. HOME TOOL EMBED
   ============================================================ */
.b95-home-tool {
  padding: 4rem 1.5rem;
  background: var(--b95-bg);
}
.b95-home-tool-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.b95-home-tool-intro {
  font-size: 1rem;
  color: var(--b95-text);
  margin: 0 auto 2rem;
  max-width: 640px;
  line-height: 1.65;
}
.b95-home-tool-cta-wrap { margin-top: 2rem; }

/* ============================================================
   11. FOOTER
   ============================================================ */
.b95-footer {
  background: var(--b95-primary);
  color: var(--b95-white);
  padding: 4rem 1.5rem 2rem;
  border-top: 4px solid var(--b95-accent);
}
.b95-footer-inner {
  max-width: var(--b95-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 940px) { .b95-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .b95-footer-inner { grid-template-columns: 1fr; } }
.b95-footer-col h3.b95-footer-title {
  font-family: var(--b95-font-head);
  color: var(--b95-accent);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.b95-footer-brand-link { display: inline-block; text-decoration: none; color: var(--b95-white); }
.b95-footer-brand-name {
  font-family: var(--b95-font-head);
  color: var(--b95-white);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1rem;
}
.b95-footer-brand-pitch {
  color: var(--b95-bg);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
}
.b95-footer-brand-cta {
  display: inline-block;
  padding: .55rem 1.2rem;
  background: var(--b95-accent);
  color: var(--b95-text);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.b95-footer-brand-cta:hover { background: var(--b95-accent-d); color: var(--b95-text); transform: translateY(-1px); }
.b95-footer-links {
  list-style: none;
  margin: 0; padding: 0;
}
.b95-footer-links li { margin-bottom: .5rem; }
.b95-footer-links a {
  color: var(--b95-bg);
  text-decoration: underline;
  text-decoration-color: rgba(244,162,97,0.4);
  text-underline-offset: 3px;
  font-size: .92rem;
  transition: color .2s, text-decoration-color .2s;
}
.b95-footer-links a:hover { color: var(--b95-accent); text-decoration-color: var(--b95-accent); }
.b95-footer-bottom {
  max-width: var(--b95-container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244,162,97,0.25);
  text-align: center;
}
.b95-copyright {
  color: var(--b95-bg);
  font-size: .85rem;
  margin: 0;
  letter-spacing: .02em;
}

/* ============================================================
   12. PAGE CONTENT (a-propos, contact, single)
   ============================================================ */
.b95-persona-photo {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--b95-radius-md);
  margin: 1.5rem auto;
  box-shadow: var(--b95-shadow-md);
  border: 4px solid var(--b95-accent);
}
.b95-contact-form {
  margin: 2rem auto;
  max-width: 760px;
  background: var(--b95-surface);
  border-radius: var(--b95-radius-lg);
  padding: 1rem;
  box-shadow: var(--b95-shadow-md);
}

/* ============================================================
   13. ANIMATIONS (CTA scroll, CTR sticky bar, CTO offer bar)
   ============================================================ */
@keyframes b95-scroll-cta-wiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.05) rotate(-1deg); }
}
.b95-btn--cta.b95-cta-triggered {
  animation: b95-scroll-cta-wiggle 1.4s ease-in-out infinite;
  box-shadow: 0 6px 28px rgba(244,162,97,0.55);
}
@keyframes b95-ctr-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.b95-ctr-bar.is-visible { animation: b95-ctr-slide-down .55s cubic-bezier(.2,1,.3,1) both; }
@keyframes b95-cto-pulse-amber {
  0%, 100% { background-color: #F4A261; box-shadow: 0 0 0 0 rgba(244,162,97,0.7); }
  50%      { background-color: #E89254; box-shadow: 0 0 0 12px rgba(244,162,97,0); }
}
.b95-cto-bar { animation: b95-cto-pulse-amber 2.4s ease-in-out infinite; }

/* ============================================================
   14. CATEGORY PAGES (tldr-detailed layout)
   ============================================================ */
.b95-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.b95-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b95-cat-hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  max-width: var(--b95-container);
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 30%, rgba(58,26,15,0.78) 100%);
  color: var(--b95-white);
}
.b95-cat-hero-overlay h1 {
  color: var(--b95-white);
  font-family: var(--b95-font-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}

/* ============================================================
   15. UTILITY & ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px;
  overflow: hidden;
}
*:focus-visible {
  outline: 3px solid var(--b95-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Avoid hover transforms on touch */
@media (hover: none) {
  .b95-cat-card:hover, .b95-article-card:hover { transform: none; }
}

/* ============================================================
   16. RESPONSIVE TYPOGRAPHY
   ============================================================ */
@media (max-width: 600px) {
  body.b95-body { font-size: 15px; }
  .b95-hero { min-height: 65vh; }
  .b95-hero-inner { padding: 2rem 1rem 2.5rem; }
  .b95-editorial { padding: 3rem 1rem; }
  .b95-categories, .b95-latest, .b95-home-tool { padding: 3rem 1rem; }
  .b95-footer { padding: 3rem 1rem 2rem; }
}

/* 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. */
@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 { 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; }

/* === [RP2G safety-net 2026-06-06] burger drawer text-rendering = guaranteed === */
@media (max-width: 1023px) {
  .b95-nav-mobile.is-open, .b95-nav-mobile.is-open * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }
  .b95-nav-mobile.is-open a {
    color: #0a0a0a !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 1rem 0 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #0a0a0a !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
  .b95-nav-mobile.is-open {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

/* === [RP2G fix 2026-06-06] overlay drawer doit etre SEMI-TRANSPARENT NOIR pas blanc === */
.b95-drawer-overlay,
[class*="-overlay"][class*="drawer"],
[class*="drawer"][class*="-overlay"],
[id*="-overlay"][id*="drawer"],
[class*="-burger-overlay"],
[class*="-nav-overlay"] {
  background: rgba(0, 0, 0, 0.55) !important;
}
.b95-drawer-overlay.is-open,
[class*="-overlay"][class*="drawer"].is-open,
[class*="-nav-overlay"].is-open {
  background: rgba(0, 0, 0, 0.55) !important;
  z-index: 9998 !important;
}
/* drawer doit etre AU DESSUS de l'overlay */
.b95-nav-mobile.is-open, .fe8-nav.is-open,
[class*="-nav-mobile"].is-open, [class*="-drawer"]:not([class*="overlay"]).is-open {
  z-index: 10000 !important;
}
