/* ============================================================
   Les Aurores Boreales — custom child theme styles
   Design system : Luxe Onyx Marbre (DB pick)
   Palette       : onyx #0F0F0F + or camel #C19A6B (concurrent influence)
   Fonts         : Bodoni Moda (titres) + Cormorant (corps)
   ============================================================ */

/* ---- 1. ROOT VARIABLES ---- */
:root {
  --lab-primary: #0F0F0F;
  --lab-accent: #C19A6B;
  --lab-text: #F5F1EA;
  --lab-text-soft: #A8A19A;
  --lab-bg: #0F0F0F;
  --lab-surface: #1A1A1A;
  --lab-surface-2: #222222;
  --lab-line: #2E2A26;
  --lab-line-soft: #1f1c19;
  --c41-primary: #0F0F0F;
  --c41-accent: #C19A6B;
  --lab-font-h: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --lab-font-b: 'Cormorant', Georgia, 'Times New Roman', serif;
  --lab-shadow: 0 14px 40px rgba(0,0,0,0.45);
  --lab-shadow-soft: 0 6px 22px rgba(0,0,0,0.25);
  --lab-radius: 2px;
}

/* ---- 2. RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--lab-bg); }
body.lab-body, body.c41-body {
  margin: 0;
  font-family: var(--lab-font-b);
  font-size: 1.12rem;
  line-height: 1.65;
  background: var(--lab-bg);
  color: var(--lab-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lab-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #d4b98a; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--lab-font-h);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.18;
  color: var(--lab-text);
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1.1rem; }

main, .lab-main { padding-top: 0 !important; margin-top: 0 !important; }

.lab-container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- 3. HEADER (logo-center-menu-split) ---- */
.lab-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lab-line);
}
.lab-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  min-height: 70px;
}
.lab-nav-left, .lab-nav-right {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-shrink: 0;
}
.lab-nav-left ul, .lab-nav-right ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lab-nav-left a, .lab-nav-right a {
  font-family: var(--lab-font-h);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lab-text);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.lab-nav-left a:hover, .lab-nav-right a:hover {
  color: var(--lab-accent);
  border-bottom-color: var(--lab-accent);
}
.lab-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--lab-text);
  flex-shrink: 0;
}
.lab-brand-logo {
  display: block;
  width: auto;
}
.lab-brand-name {
  font-family: var(--lab-font-h);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--lab-text);
}

/* Burger mobile */
.lab-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(245, 241, 234, 0.92);
  border: 1.5px solid rgba(193, 154, 107, 0.55);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  cursor: pointer;
  color: var(--lab-primary);
  position: relative;
  z-index: 10001;
  flex-shrink: 0;
}
.lab-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.lab-burger-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lab-primary);
  border-radius: 1px;
}

/* Mobile drawer */
.lab-nav-mobile {
  display: none;
}

@media (max-width: 1023px) {
  .lab-header-inner {
    justify-content: space-between;
    gap: 0.5rem;
  }
  .lab-nav-left, .lab-nav-right { display: none; }
  .lab-burger { display: inline-flex; }
  .lab-brand-name { font-size: 1.1rem; }

  .lab-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 0 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
    color: #0a0a0a;
  }
  .lab-nav-mobile .lab-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1.5px solid #0a0a0a;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #0a0a0a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lab-nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .lab-nav-mobile-list li {
    border-bottom: 1px solid #e5e5e5;
  }
  .lab-nav-mobile-list a {
    display: block;
    padding: 1rem 1.5rem;
    font-family: var(--lab-font-h);
    font-size: 1.05rem;
    color: #0a0a0a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .lab-nav-mobile-list a:hover {
    background: #f5f1ea;
    color: var(--lab-accent);
  }
  .lab-drawer-cta {
    display: block !important;
    margin: 2rem 1.5rem 1.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--lab-accent);
    color: #0F0F0F !important;
    border-radius: 4px;
    font-family: var(--lab-font-h);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .lab-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
  }
  .lab-drawer-overlay.is-open {
    display: block;
  }
}

@media (min-width: 1024px) {
  .lab-drawer-cta { display: none !important; }
  .lab-burger { display: none !important; }
}

/* ---- 4. HERO (featured-article with YouTube video bg) ---- */
.lab-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--lab-bg);
}
.lab-hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lab-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;
}
.lab-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.78) 100%);
}
.lab-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4rem;
  width: 100%;
}
.lab-hero-kicker {
  display: inline-block;
  font-family: var(--lab-font-h);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lab-accent);
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--lab-accent);
  padding-bottom: 0.4rem;
}
.lab-hero-title {
  font-family: var(--lab-font-h);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
  max-width: 760px;
}
.lab-hero-subtitle {
  font-family: var(--lab-font-b);
  font-size: 1.35rem;
  line-height: 1.55;
  color: #f5f1ea;
  max-width: 620px;
  margin: 0 0 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.lab-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- 5. BUTTONS ---- */
.c41-btn, .lab-btn {
  display: inline-block;
  font-family: var(--lab-font-h);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1.5px solid var(--lab-accent);
  background: transparent;
  color: var(--lab-text);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
  border-radius: var(--lab-radius);
  text-decoration: none;
}
.c41-btn:hover, .lab-btn:hover {
  background: var(--lab-accent);
  color: var(--lab-primary);
}
.c41-btn--cta, .lab-btn--cta {
  background: var(--lab-accent);
  color: var(--lab-primary);
  border-color: var(--lab-accent);
}
.c41-btn--cta:hover, .lab-btn--cta:hover {
  background: #d4b98a;
  color: var(--lab-primary);
}

/* CTA animation : bounce_on_hover */
@keyframes labBounceOnHover {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px); }
  50%  { transform: translateY(0); }
  70%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.c41-btn--cta:hover, .lab-btn--cta:hover {
  animation: labBounceOnHover .6s ease-in-out;
}

/* ---- 6. EDITORIAL BLOCK (after-hero placement) ---- */
.lab-editorial {
  background: var(--lab-bg);
  padding: 5rem 1.5rem;
  color: var(--lab-text);
}
.lab-editorial-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}
.lab-editorial-intro h2 {
  font-family: var(--lab-font-h);
  font-style: italic;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.005em;
  max-width: 820px;
  line-height: 1.25;
}
.lab-editorial-intro p {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--lab-text);
  max-width: 820px;
}
.lab-editorial-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.lab-editorial-section h3 {
  font-family: var(--lab-font-h);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.01em;
}
.lab-editorial-section p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--lab-text-soft);
  margin-bottom: 0.6rem;
}
.lab-editorial-section a {
  color: var(--lab-accent);
  font-style: italic;
}
.lab-editorial-quote {
  margin: 2rem 0 0;
  padding: 2rem 2.5rem;
  background: var(--lab-surface);
  border-left: 3px solid var(--lab-accent);
  font-family: var(--lab-font-h);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--lab-text);
}
.lab-editorial-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lab-accent);
}

/* ---- 7. CATEGORIES SECTION ---- */
.lab-rubriques {
  background: linear-gradient(180deg, var(--lab-bg) 0%, var(--lab-surface) 100%);
  padding: 5rem 1.5rem;
}
.lab-rubriques-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.lab-section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.lab-section-eyebrow {
  font-family: var(--lab-font-h);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lab-accent);
  display: inline-block;
  margin-bottom: 1rem;
}
.lab-section-title {
  font-family: var(--lab-font-h);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
  color: #fff;
  margin: 0;
}
.lab-section-sub {
  font-family: var(--lab-font-b);
  font-size: 1.15rem;
  color: var(--lab-text-soft);
  margin: 1rem auto 0;
  max-width: 620px;
}
.lab-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.lab-cat-card {
  position: relative;
  overflow: hidden;
  background: var(--lab-surface-2);
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  text-decoration: none;
  color: var(--lab-text);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
}
.lab-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--lab-accent);
  box-shadow: var(--lab-shadow);
}
.lab-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--lab-primary);
}
.lab-cat-card-body {
  flex: 1;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--lab-surface);
}
.lab-cat-card-name {
  font-family: var(--lab-font-h);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.3rem;
  color: var(--lab-text);
}
.lab-cat-card-meta {
  font-family: var(--lab-font-b);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--lab-accent);
  letter-spacing: 0.04em;
}

/* ---- 8. BY-CATEGORY LATEST POSTS ---- */
.lab-by-cat {
  background: var(--lab-bg);
  padding: 5rem 1.5rem;
}
.lab-by-cat-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.lab-cat-block {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--lab-line);
}
.lab-cat-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.lab-cat-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--lab-line-soft);
  padding-bottom: 1rem;
}
.lab-cat-block-title {
  font-family: var(--lab-font-h);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin: 0;
}
.lab-cat-block-title a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.lab-cat-block-title a:hover {
  color: var(--lab-accent);
  border-bottom-color: var(--lab-accent);
}
.lab-cat-block-link {
  font-family: var(--lab-font-h);
  font-style: italic;
  font-size: 1rem;
  color: var(--lab-accent);
  letter-spacing: 0.04em;
}
.lab-cat-block-link:hover {
  color: #d4b98a;
}
.lab-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.lab-post-card {
  display: flex;
  flex-direction: column;
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.lab-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--lab-accent);
  box-shadow: var(--lab-shadow);
}
.lab-post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--lab-primary);
}
.lab-post-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lab-post-card-title {
  font-family: var(--lab-font-h);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
  font-weight: 500;
}
.lab-post-card-title a {
  color: var(--lab-text);
  text-decoration: none;
}
.lab-post-card-title a:hover {
  color: var(--lab-accent);
}
.lab-post-card-date {
  font-family: var(--lab-font-b);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--lab-accent);
  margin-top: auto;
  letter-spacing: 0.03em;
}
.lab-cat-empty {
  font-family: var(--lab-font-b);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lab-text-soft);
  padding: 2rem 0;
}
.lab-cat-empty a {
  font-family: var(--lab-font-h);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---- 9. FOOTER ---- */
.lab-footer {
  background: #080808;
  color: var(--lab-text);
  padding: 4rem 1.5rem 1.5rem;
  border-top: 1px solid var(--lab-line);
}
.lab-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
.lab-footer-col h3,
.lab-footer-title {
  font-family: var(--lab-font-h);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.2rem;
}
.lab-footer-col p,
.lab-footer-brand-pitch {
  font-family: var(--lab-font-b);
  font-size: 1rem;
  line-height: 1.65;
  color: #fff;
  margin: 0 0 1rem;
}
.lab-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
}
.lab-footer-brand-cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--lab-accent);
  color: #fff;
  font-family: var(--lab-font-h);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--lab-radius);
  transition: background .25s ease, color .25s ease;
}
.lab-footer-brand-cta:hover {
  background: var(--lab-accent);
  color: var(--lab-primary);
}
.lab-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lab-footer-links li { margin: 0 0 0.55rem; }
.lab-footer-links a {
  font-family: var(--lab-font-b);
  font-size: 1.02rem;
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}
.lab-footer-links a:hover {
  color: var(--lab-accent);
}
.lab-footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--lab-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--lab-font-b);
  font-size: 0.95rem;
  color: #fff;
  font-style: italic;
}

/* ---- 10. PERSONA PHOTO ---- */
.c41-persona-photo {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 280px;
  width: 100%;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  box-shadow: var(--lab-shadow-soft);
}
@media (max-width: 700px) {
  .c41-persona-photo {
    float: none;
    margin: 1.5rem auto;
    display: block;
  }
}

/* ---- 11. CONTACT FORM WRAPPER ---- */
.c41-contact-form {
  margin: 2.5rem 0;
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  padding: 1.5rem;
}

/* ---- 12. SINGLE / PAGE BASE ---- */
.lab-page, .lab-single {
  max-width: 840px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.lab-page h1, .lab-single h1 {
  margin-bottom: 2rem;
}
.lab-page p, .lab-single p,
.lab-page li, .lab-single li {
  font-size: 1.15rem;
  line-height: 1.75;
}
.lab-page h2, .lab-single h2 {
  margin-top: 2.5rem;
  color: var(--lab-accent);
}

/* ---- 13. ANIMATIONS — benefit_cards_hover ---- */
@keyframes labBenefitCardLift {
  from { transform: translateY(0); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
  to   { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(193,154,107,.22); }
}
.c41-benefit-card {
  background: var(--lab-surface);
  border: 1px solid var(--lab-line);
  padding: 1.6rem;
  border-radius: var(--lab-radius);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.c41-benefit-card:hover {
  animation: labBenefitCardLift .35s ease forwards;
  border-color: var(--lab-accent);
}

/* CTO multi-step animation */
@keyframes labMultiStepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.c41-cto-step {
  display: none;
  animation: labMultiStepFadeIn .35s ease forwards;
}
.c41-cto-step.is-active { display: block; }

/* ---- 14. MOUSE EFFECT — cursor_soft_trail ---- */
.c41-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(193, 154, 107, 0.65);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background .25s ease;
  will-change: transform;
  mix-blend-mode: screen;
}
.c41-cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(193, 154, 107, 0.35);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: screen;
}
@media (hover: none) {
  .c41-cursor-dot, .c41-cursor-trail { display: none !important; }
}

/* ---- 15. RESPONSIVE ---- */
@media (max-width: 1024px) {
  .lab-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 700px) {
  .lab-hero { min-height: 70vh; }
  .lab-hero-inner { padding: 3rem 1.25rem; }
  .lab-editorial, .lab-rubriques, .lab-by-cat { padding: 3.5rem 1.25rem; }
  .lab-footer-inner { grid-template-columns: 1fr; }
  .lab-cat-block-head { flex-direction: column; align-items: flex-start; }
}

/* ---- 16. SAFE FALLBACKS ---- */
.lab-skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.lab-skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--lab-accent);
  color: var(--lab-primary);
  padding: 0.6rem 1rem;
  z-index: 99999;
}

/* ---- 17. CAT HERO (used by category.php skeleton, max 350px) ---- */
.c41-cat-hero, .lab-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--lab-primary);
}
.c41-cat-hero-bg, .lab-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.c41-cat-hero .lab-container, .lab-cat-hero .lab-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.78) 100%);
}
.c41-cat-hero h1, .lab-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}


/* Site-specific styles */
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, body, body [class*="c41-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 */
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;
}


/* 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;
  }
}

/* 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
   (.c41-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  /* FIX width:auto -> ne plus l'imposer (laisse child theme définir width).
     Sinon écrase le child et le burger devient 0 de large -> invisible. */
  body [class*="burger"], body button[class*="burger"] {
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    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;
  }
}

/* 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.
*/
/* 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;
}

/* 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;
}

/* 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;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer !important;
  padding: 8px;
  color: inherit;
  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);
  border-color: var(--c41-accent, currentColor);
}
/* 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;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 16px;
  gap: 0;
}
/* 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;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  margin: 2px 0;
  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;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Mobile : 1 SEUL CTA visible (dans le burger).
   Sur mobile le CTA original du header est masque ; sur desktop le clone est hidden. */
@media (max-width: 1023px) {
  body [class*="header-cta"] [class*="btn--cta"],
  body [class*="header__cta"] [class*="btn--cta"],
  body [class*="header-cta"] > [class*="cta"],
  body [class*="header__cta"] > a {
    display: none !important;
  }
}


/* ============================================================
   Section 'On parle de nous' (media press)
   Logos grayscale par defaut, couleur au hover.
   Grid responsive 2-6 colonnes, gap auto.
============================================================ */
.c41-media-press {
  padding: 2.5rem 0;
  background: var(--c41-bg-soft, var(--c41-color-surface, #f9fafb));
  margin: 2rem 0;
}
.c41-media-press > .c41-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.c41-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c41-color-text-soft, var(--c41-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.c41-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.c41-media-press-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 160px;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
  opacity: .65;
  filter: grayscale(100%);
}
.c41-media-press-item:hover,
.c41-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.c41-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .c41-media-press { padding: 1.8rem 0; }
  .c41-media-press-grid { gap: 1.4rem; }
  .c41-media-press-item { max-width: 110px; min-height: 36px; }
  .c41-media-press-item img { max-height: 36px; }
}


/* FIX gap header->hero (parent theme override) + media-press compact centre */
body main, body.home main, body.archive main, body.single main,
body, body, body main[class*="-main"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* MEDIA PRESS : layout horizontal compact CENTRE (titre + logos cote a cote au centre) */
.c41-media-press section[class*="media-press"] {
  padding: 24px 0 !important;
  margin: 0 !important;
  background: #fafafa;
  border-block: 1px solid rgba(0,0,0,0.06);
}
.c41-media-press .c41-container.bdf-container,
section[class*="media-press"] [class*="container"] {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  text-align: center;
}
.c41-media-press-title, .bdf-media-press-title,
section[class*="media-press"] [class*="title"] {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c41-muted, #666);
  flex: 0 0 auto;
}
.c41-media-press-grid, .bdf-media-press-grid,
section[class*="media-press"] [class*="grid"] {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: center;
}
.c41-media-press-item, .bdf-media-press-item,
section[class*="media-press"] [class*="item"] {
  display: inline-flex !important;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.c41-media-press-item:hover, .bdf-media-press-item:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.c41-media-press imgimg,
section[class*="media-press"] img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.c41-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .c41-media-press .c41-container.bdf-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}


/* FIX anti-empreinte : variation alignement titre categorie (left/center seedee) */
.c41-cat-hero--align-left .c41-cat-hero-inner
section[class*="cat-hero--align-left"] [class*="cat-hero-inner"] {
  text-align: left !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 24px;
}
.c41-cat-hero--align-center .c41-cat-hero-inner
section[class*="cat-hero--align-center"] [class*="cat-hero-inner"] {
  text-align: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}


@media (max-width: 1023.98px) {  [class*="-header-cta-wrap"],
  [class*="-header-actions"],
  [class*="-burger-wrap"],
  [class*="-header-right"],
  [class*="-header-actions-mobile"] {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
  }  [class*="-burger"] > span,
  [class*="-burger-bars"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 24px !important;
    min-height: 16px !important;
  }  [class*="-burger-bars"] > *,
  [class*="-burger"] > span > * {
    display: block !important;
    min-width: 24px !important;
    min-height: 2px !important;
  }  [class*="-header-cta-desktop"] {
    display: none !important;
  }  [class*="-burger-label"] {
    display: none !important;
  }
}
@media (min-width: 1024px) {  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: none !important;
  }
}


/* Mouse effect : cursor_soft_trail */
.c41-cursor-dot { position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: rgba(193,154,107,0.65); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: background .25s ease; will-change: transform; mix-blend-mode: screen; } .c41-cursor-trail { position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%; background: rgba(193,154,107,0.35); pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); will-change: transform; mix-blend-mode: screen; } @media (hover: none) { .c41-cursor-dot, .c41-cursor-trail { display: none !important; } }
