/* ============================================================================
   La Maison de Constance — Custom child theme stylesheet
   Design System: Earth Tones Rouille Patinee (DB pick)
   Concurrent palette: rust #cc4b37, warm orange #ffae00, cream #f7f2ee
   Fonts: Antic Slab (headings) + Karla (body)
   Hero: parallax-scroll | Header: logo-left-menu-center (no CTA)
   Category: sandwich | Articles on home: 15 | No mega menu | No dark mode
   ============================================================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --c8b-primary:    #cc4b37;
  --c8b-accent:     #ffae00;
  --c8b-bg:         #f7f2ee;
  --c8b-surface:    #ffffff;
  --c8b-text:       #1a1a1a;
  --c8b-text-soft:  #575757;
  --c8b-line:       #e6e6e6;
  --c8b-rust-deep:  #8C3A1F;
  --c8b-caramel:    #C2853A;
  --c8b-cream-deep: #F0E0BC;

  --c8b-font-h: "Antic Slab", "Playfair Display", Georgia, serif;
  --c8b-font-b: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --c8b-radius:     6px;
  --c8b-radius-lg:  12px;
  --c8b-shadow-sm:  0 1px 2px rgba(42, 15, 8, 0.06);
  --c8b-shadow-md:  0 4px 14px rgba(42, 15, 8, 0.10);
  --c8b-shadow-lg:  0 12px 32px rgba(42, 15, 8, 0.14);

  --c8b-container:  1240px;
  --c8b-gap:        1.5rem;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.c8b-body {
  margin: 0;
  font-family: var(--c8b-font-b);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c8b-text);
  background: var(--c8b-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c8b-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c8b-rust-deep); }
h1, h2, h3, h4, h5 {
  font-family: var(--c8b-font-h);
  color: var(--c8b-text);
  line-height: 1.2;
  margin: 0 0 .8em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p  { margin: 0 0 1em; }

main, .c8b-main { padding-top: 0 !important; margin-top: 0 !important; }

.c8b-container, .eea-container {
  max-width: var(--c8b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- BUTTONS ---------- */
.c8b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  font-family: var(--c8b-font-b);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  background: var(--c8b-primary);
  color: #fff !important;
  border: 1.5px solid var(--c8b-primary);
  border-radius: var(--c8b-radius);
  cursor: pointer;
  transition: background .25s ease, transform .15s ease, box-shadow .25s ease;
  text-decoration: none;
}
.c8b-btn:hover {
  background: var(--c8b-rust-deep);
  border-color: var(--c8b-rust-deep);
  transform: translateY(-1px);
  box-shadow: var(--c8b-shadow-md);
  color: #fff !important;
}
.c8b-btn--ghost {
  background: transparent;
  color: var(--c8b-primary) !important;
  border-color: var(--c8b-primary);
}
.c8b-btn--ghost:hover {
  background: var(--c8b-primary);
  color: #fff !important;
}

/* ---------- CTA — BORDER DRAW (animation) ---------- */
.c8b-btn--cta {
  position: relative;
  background: var(--c8b-primary);
  color: #fff !important;
  padding: .9rem 1.75rem;
  overflow: visible;
  isolation: isolate;
}
.c8b-btn--cta::before,
.c8b-btn--cta::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--c8b-accent);
  border-radius: calc(var(--c8b-radius) + 3px);
  opacity: 0;
  pointer-events: none;
}
.c8b-btn--cta:hover::before {
  animation: c8b-border-draw 0.7s ease forwards;
}
.c8b-btn--cta:hover::after {
  animation: c8b-border-draw-reverse 0.7s ease 0.05s forwards;
}
@keyframes c8b-border-draw {
  0%   { opacity: 1; clip-path: inset(0 100% 100% 0); }
  50%  { opacity: 1; clip-path: inset(0 0 100% 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes c8b-border-draw-reverse {
  0%   { opacity: 1; clip-path: inset(100% 0 0 100%); }
  50%  { opacity: 1; clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ---------- READING PROGRESS BAR (CTR animation) ---------- */
.c8b-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c8b-primary), var(--c8b-accent));
  z-index: 9999;
  transition: width .15s ease-out;
  box-shadow: 0 1px 4px rgba(204, 75, 55, 0.4);
}

/* ---------- SCARCITY COUNTDOWN (CTO animation) ---------- */
.c8b-cto-countdown {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: rgba(204, 75, 55, 0.08);
  border: 1px solid var(--c8b-primary);
  border-radius: var(--c8b-radius);
  font-family: var(--c8b-font-b);
  font-weight: 600;
  color: var(--c8b-primary);
  animation: c8b-cto-pulse 2s ease-in-out infinite;
}
.c8b-cto-countdown-digit {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@keyframes c8b-cto-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 75, 55, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(204, 75, 55, 0); }
}

/* ============================================================================
   HEADER — logo-left-menu-center (no CTA per user choice)
   ============================================================================ */
.c8b-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c8b-surface);
  border-bottom: 1px solid var(--c8b-line);
  box-shadow: var(--c8b-shadow-sm);
}
.c8b-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  max-width: var(--c8b-container);
  margin: 0 auto;
  padding: .9rem 1.25rem;
}
.c8b-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--c8b-text);
  flex-shrink: 0;
}
.c8b-brand-logo { display: block; width: auto; max-width: none; }
.c8b-brand-name {
  font-family: var(--c8b-font-h);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--c8b-text);
  white-space: nowrap;
}

/* Desktop nav — horizontal, centered */
.c8b-nav-desktop {
  display: none;
}
.c8b-nav-desktop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.c8b-nav-desktop-list li { margin: 0; }
.c8b-nav-desktop-list a {
  color: var(--c8b-text);
  font-family: var(--c8b-font-b);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.c8b-nav-desktop-list a:hover,
.c8b-nav-desktop-list .current-menu-item > a {
  color: var(--c8b-primary);
  border-bottom-color: var(--c8b-primary);
}

/* Burger (mobile only) */
.c8b-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: 8px !important;
  color: var(--c8b-text) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto;
}
.c8b-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.c8b-burger-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.c8b-burger[aria-expanded="true"] .c8b-burger-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.c8b-burger[aria-expanded="true"] .c8b-burger-bars span:nth-child(2) {
  opacity: 0;
}
.c8b-burger[aria-expanded="true"] .c8b-burger-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.c8b-burger-label { display: none !important; }

/* Mobile nav drawer — HIDDEN by default (display:none) */
.c8b-nav-mobile {
  display: none;
}
.c8b-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c8b-nav-mobile-list li {
  border-bottom: 1px solid var(--c8b-line);
}
.c8b-nav-mobile-list a {
  display: block;
  padding: 1rem 0;
  color: #1a1a1a;
  font-family: var(--c8b-font-h);
  font-size: 1.15rem;
  font-weight: 500;
}
.c8b-nav-mobile-list a:hover {
  color: var(--c8b-primary);
}
.c8b-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c8b-line);
  background: #fff;
  color: var(--c8b-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c8b-nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}
.c8b-nav-mobile-overlay.is-open { display: block; }

/* Drawer CTA mobile — visible only when drawer open */
.c8b-drawer-cta {
  display: block !important;
  margin: 2rem 0 1rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--c8b-primary) !important;
  color: #fff !important;
  border-radius: var(--c8b-radius) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
}

@media (max-width: 1023px) {
  .c8b-nav-desktop { display: none !important; }
  .c8b-burger, .c8b-burger-wrap { display: flex !important; }
  /* When drawer is open */
  .c8b-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: 86% !important;
    max-width: 380px;
    background: #ffffff !important;
    padding: 4.5rem 1.5rem 2rem !important;
    z-index: 9999 !important;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
}
@media (min-width: 1024px) {
  .c8b-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1.5rem; }
  .c8b-burger, .c8b-burger-wrap { display: none !important; }
  .c8b-drawer-cta { display: none !important; }
}

/* ============================================================================
   HERO — parallax-scroll
   ============================================================================ */
.c8b-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: #2A0F08;
}
.c8b-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.1s linear;
}
.c8b-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--c8b-container);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: #fff;
  text-align: left;
}
.c8b-hero-eyebrow {
  display: inline-block;
  font-family: var(--c8b-font-b);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c8b-accent);
  margin-bottom: 1rem;
  padding: .35rem 0 .35rem 1rem;
  border-left: 3px solid var(--c8b-accent);
}
.c8b-hero-title {
  font-family: var(--c8b-font-h);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  max-width: 22ch;
}

/* Force white on every H1 inside the hero — fixed text + animated children
   (typewriter chars, rotator words, caret pseudo-elements, etc.) */
.c8b-hero h1,
.c8b-hero h1 *,
.c8b-hero-inner h1,
.c8b-hero-inner h1 *,
.c8b-hero-title,
.c8b-hero-title *,
.c8b-hero-title .c8b-typewriter,
.c8b-hero-title .c8b-typewriter *,
.c8b-hero-title .c8b-rotator,
.c8b-hero-title .c8b-rotator *,
.c8b-hero-title [class*="typewriter"],
.c8b-hero-title [class*="typewriter"] *,
.c8b-hero-title [class*="rotator"],
.c8b-hero-title [class*="rotator"] *,
.c8b-hero-title [class*="rotate"],
.c8b-hero-title [class*="rotate"] *,
.c8b-hero-title [class*="typed"],
.c8b-hero-title [class*="typed"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.c8b-hero h1::before,
.c8b-hero h1::after,
.c8b-hero-title::before,
.c8b-hero-title::after,
.c8b-hero-title *::before,
.c8b-hero-title *::after {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #fff !important;
}
.c8b-hero-subtitle {
  font-family: var(--c8b-font-b);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: #f7f2ee;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.c8b-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.c8b-hero-cta-row .c8b-btn {
  font-size: 1rem;
  padding: 1rem 1.8rem;
}
.c8b-hero-cta-row .c8b-btn--ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.6);
}
.c8b-hero-cta-row .c8b-btn--ghost:hover {
  background: #fff;
  color: var(--c8b-primary) !important;
  border-color: #fff;
}

/* Hero overlay only when video — image hero stays UNTOUCHED */
.c8b-hero--has-video .c8b-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;
}
/* Light vignette only on the lower-left, never a full dark veil */
.c8b-hero:not(.c8b-hero--has-video)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(42,15,8,0.55) 0%, rgba(42,15,8,0.1) 55%, transparent 80%);
  z-index: 2;
  pointer-events: none;
}

/* ============================================================================
   EDITORIAL INTRO BLOCK — SEO 400-700 mots (after hero per md5%3 != 0)
   ============================================================================ */
.c8b-editorial {
  background: var(--c8b-bg);
  padding: 5rem 0 4rem;
  position: relative;
}
.c8b-editorial-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.c8b-editorial-eyebrow {
  font-family: var(--c8b-font-b);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c8b-primary);
  margin-bottom: .8rem;
}
.c8b-editorial h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--c8b-text);
  margin-bottom: 1.5rem;
  max-width: 28ch;
}
.c8b-editorial h3 {
  font-size: 1.35rem;
  color: var(--c8b-rust-deep);
  margin-top: 2rem;
  margin-bottom: .8rem;
}
.c8b-editorial p {
  color: var(--c8b-text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 70ch;
}
.c8b-editorial a { color: var(--c8b-primary); border-bottom: 1px solid currentColor; }
.c8b-editorial-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.c8b-editorial-col h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.c8b-editorial-callout {
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  background: var(--c8b-surface);
  border-left: 4px solid var(--c8b-primary);
  border-radius: var(--c8b-radius);
  box-shadow: var(--c8b-shadow-sm);
}
.c8b-editorial-callout p:last-child { margin-bottom: 0; }

/* ============================================================================
   CATEGORIES SECTION
   ============================================================================ */
.c8b-categories {
  padding: 5rem 0 4rem;
  background: var(--c8b-surface);
}
.c8b-section-head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}
.c8b-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: .8rem;
}
.c8b-section-head p {
  color: var(--c8b-text-soft);
  font-size: 1.05rem;
}
.c8b-section-eyebrow {
  font-family: var(--c8b-font-b);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c8b-primary);
  margin-bottom: .8rem;
}
.c8b-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--c8b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.c8b-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--c8b-radius-lg);
  overflow: hidden;
  background: var(--c8b-bg);
  border: 1px solid var(--c8b-line);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 280px;
}
.c8b-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--c8b-shadow-lg);
}
.c8b-cat-card-img {
  display: block;
  width: 100%;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--c8b-primary);
  position: relative;
}
.c8b-cat-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,15,8,0.5) 100%);
}
.c8b-cat-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.c8b-cat-card-title {
  font-family: var(--c8b-font-h);
  font-size: 1.35rem;
  color: var(--c8b-text);
  margin: 0 0 .5rem;
}
.c8b-cat-card-desc {
  color: var(--c8b-text-soft);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.c8b-cat-card-link {
  margin-top: 1rem;
  color: var(--c8b-primary);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
}

/* ============================================================================
   LATEST ARTICLES GRID (home — 15 articles)
   ============================================================================ */
.c8b-latest {
  padding: 5rem 0 4rem;
  background: var(--c8b-bg);
}
.c8b-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--c8b-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.c8b-article-card {
  background: var(--c8b-surface);
  border-radius: var(--c8b-radius-lg);
  overflow: hidden;
  border: 1px solid var(--c8b-line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.c8b-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--c8b-shadow-md);
}
.c8b-article-card-thumb {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--c8b-line);
}
.c8b-article-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.c8b-article-card-cat {
  font-family: var(--c8b-font-b);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c8b-primary);
  margin-bottom: .5rem;
  display: inline-block;
}
.c8b-article-card-cat a { color: inherit; }
.c8b-article-card-title {
  font-family: var(--c8b-font-h);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--c8b-text);
  margin: 0 0 .6rem;
  flex: none;
}
.c8b-article-card-title a { color: inherit; }
.c8b-article-card-title a:hover { color: var(--c8b-primary); }
.c8b-article-card-excerpt {
  color: var(--c8b-text-soft);
  font-size: .92rem;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 .8rem;
}
.c8b-article-card-meta {
  font-size: .8rem;
  color: var(--c8b-text-soft);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
}
.c8b-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--c8b-text-soft);
  font-style: italic;
}

/* ============================================================================
   CATEGORY PAGE — sandwich layout (intro + grid + outro)
   ============================================================================ */
.c8b-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--c8b-rust-deep);
}
.c8b-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.c8b-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
  max-width: var(--c8b-container);
  margin: 0 auto;
}
.c8b-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.c8b-cat-intro {
  padding: 3.5rem 1.5rem 2rem;
  max-width: 920px;
  margin: 0 auto;
}
.c8b-cat-intro p {
  font-size: 1.05rem;
  color: var(--c8b-text);
  line-height: 1.7;
}
.c8b-cat-articles {
  padding: 2rem 0 5rem;
}

/* ============================================================================
   PAGES (contact, a-propos, tools)
   ============================================================================ */
.c8b-page-hero {
  background: var(--c8b-bg);
  padding: 4rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--c8b-line);
}
.c8b-page-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}
.c8b-page-hero h1 {
  margin: 0 0 .5rem;
}
.c8b-page-content {
  padding: 3rem 1.5rem 5rem;
}
.c8b-page-content-inner {
  max-width: 760px;
  margin: 0 auto;
}
.c8b-page-content p {
  font-size: 1.05rem;
  line-height: 1.75;
}
.c8b-page-content h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
}
.c8b-page-content a {
  color: var(--c8b-primary);
  border-bottom: 1px solid currentColor;
}

.c8b-persona-photo {
  display: block;
  max-width: 240px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 4px solid var(--c8b-surface);
  box-shadow: var(--c8b-shadow-md);
}

.c8b-contact-form {
  margin: 2rem 0 1rem;
  background: var(--c8b-surface);
  border-radius: var(--c8b-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--c8b-shadow-sm);
}
.c8b-contact-form iframe { display: block; }

/* ============================================================================
   TOOL PAGE STYLE
   ============================================================================ */
.c8b-tool-wrap {
  padding: 3rem 1.5rem 5rem;
  max-width: 880px;
  margin: 0 auto;
}
.c8b-tool-intro {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c8b-line);
  margin-bottom: 2rem;
}
.c8b-tool-intro p { font-size: 1.05rem; line-height: 1.7; }
.c8b-tool-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c8b-line);
}
.c8b-tool-faq h2 { margin-bottom: 1.5rem; }
.c8b-tool-faq details {
  background: var(--c8b-surface);
  border: 1px solid var(--c8b-line);
  border-radius: var(--c8b-radius);
  padding: 1rem 1.25rem;
  margin-bottom: .8rem;
}
.c8b-tool-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--c8b-text);
}
.c8b-tool-faq details[open] summary { color: var(--c8b-primary); }
.c8b-tool-faq details p { margin: .75rem 0 0; color: var(--c8b-text-soft); }

/* ============================================================================
   FOOTER — 4 columns
   ============================================================================ */
.c8b-footer {
  background: #2A0F08;
  color: #f7f2ee;
  padding: 4rem 1.5rem 2rem;
  border-top: 4px solid var(--c8b-accent);
}
.c8b-footer-inner {
  max-width: var(--c8b-container);
  margin: 0 auto;
}
.c8b-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.c8b-footer-col h3.c8b-footer-title {
  font-family: var(--c8b-font-h);
  font-size: 1.1rem;
  color: var(--c8b-accent);
  margin: 0 0 1rem;
  letter-spacing: .03em;
}
.c8b-footer-logo {
  display: block;
  height: auto;
  width: 120px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.c8b-footer-brand-pitch {
  font-size: .92rem;
  line-height: 1.65;
  color: #f7f2ee;
  margin-bottom: 1.25rem;
}
.c8b-footer-brand-cta {
  display: inline-block;
  color: var(--c8b-accent);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: underline;
}
.c8b-footer-brand-cta:hover { color: #fff; }
.c8b-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.c8b-footer-links li { margin-bottom: .55rem; }
.c8b-footer-links a {
  color: #f7f2ee;
  font-size: .92rem;
  text-decoration: underline;
  text-decoration-color: rgba(247, 242, 238, 0.25);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.c8b-footer-links a:hover {
  color: var(--c8b-accent);
  text-decoration-color: var(--c8b-accent);
}
.c8b-footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.c8b-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 242, 238, 0.08);
  color: #f7f2ee;
  transition: background .2s ease, color .2s ease;
}
.c8b-footer-social a:hover {
  background: var(--c8b-accent);
  color: #2A0F08;
}
.c8b-footer-bottom {
  border-top: 1px solid rgba(247, 242, 238, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  color: rgba(247, 242, 238, 0.7);
}
.c8b-footer-bottom a {
  color: rgba(247, 242, 238, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.c8b-footer-bottom a:hover { color: var(--c8b-accent); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 980px) {
  .c8b-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .c8b-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .c8b-hero-inner { padding: 4rem 1.5rem; }
  .c8b-editorial { padding: 3.5rem 0 3rem; }
}
@media (max-width: 640px) {
  body.c8b-body { font-size: 16px; }
  .c8b-latest-grid { grid-template-columns: 1fr; }
  .c8b-cat-grid { grid-template-columns: 1fr; }
  .c8b-footer-grid { grid-template-columns: 1fr; }
  .c8b-hero { min-height: 65vh; }
  .c8b-hero-inner { padding: 3rem 1.25rem; }
  .c8b-editorial-cols { grid-template-columns: 1fr; }
  .c8b-page-content { padding: 2rem 1.25rem 3.5rem; }
  .c8b-categories, .c8b-latest { padding: 3.5rem 0 3rem; }
}

/* ============================================================================
   ACCESSIBILITY / UTILS
   ============================================================================ */
.c8b-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--c8b-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .c8b-hero-bg { transform: none !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*="c8b-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
   (.c8b-, .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(--c8b-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 contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--c8b-text, #1a1a1a) !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;
}
