/* ============================================================================
   Cira Couffignal — Custom CSS (child theme override)
   Design System pioché : Minimaliste Papier Mono (Tinos serif, B&W on cream)
   Accent jaune emprunté au concurrent noschool.fr (#fbe838)
   Hero : quote-hero — Header : logo-left-menu-right — Category : single-top
   Casing brand : B (Title Case, pas de text-transform)
   ============================================================================ */

:root {
  --b71-primary: #1C1C1C;
  --b71-accent: #fbe838;
  --b71-text: #1C1C1C;
  --b71-text-soft: #7A7770;
  --b71-bg: #F8F6F2;
  --b71-surface: #FFFFFF;
  --b71-line: #DDD9D0;
  --b71-font-headings: 'Tinos', Georgia, 'Times New Roman', serif;
  --b71-font-body: 'Tinos', Georgia, 'Times New Roman', serif;
  --b71-container: 1200px;
  --b71-gap: 1.5rem;
  --b71-radius: 0;
}

/* ============================================================================
   RESET / BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, .b71-body {
  margin: 0;
  background: var(--b71-bg);
  color: var(--b71-text);
  font-family: var(--b71-font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--b71-font-headings);
  color: var(--b71-text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .8em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }
a { color: var(--b71-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--b71-text); text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--b71-line); margin: 2rem 0; }

/* Container ------------------------------------------------------------------ */
.b71-container, .eea-container {
  max-width: var(--b71-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skin du gabarit principal -------------------------------------------------- */
main, .b71-main { padding-top: 0 !important; margin-top: 0 !important; }
main { display: block; min-height: 60vh; background: var(--b71-bg); }

/* ============================================================================
   HEADER — logo-left-menu-right (book chapter style, austere, serif)
   ============================================================================ */
.b71-header {
  background: var(--b71-surface);
  border-bottom: 1px solid var(--b71-line);
  position: sticky; top: 0; z-index: 100;
}
.b71-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  max-width: var(--b71-container);
  margin: 0 auto;
}
.b71-brand-link { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--b71-text); }
.b71-brand-logo { display: block; width: auto; }
.b71-brand-name {
  font-family: var(--b71-font-headings);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .01em;
  /* Casing style B (Title Case) — pas de text-transform */
  white-space: nowrap;
}

/* NAV DESKTOP horizontale ---------------------------------------------------- */
.b71-nav-desktop { display: none; }
.b71-nav-desktop-list, .b71-nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.b71-nav-desktop-list a, .b71-nav-list a {
  color: var(--b71-text);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  padding: .3rem .1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
  font-family: var(--b71-font-headings);
  font-style: italic;
}
.b71-nav-desktop-list a:hover, .b71-nav-list a:hover {
  border-bottom-color: var(--b71-accent);
}

/* BURGER mobile (hidden desktop) --------------------------------------------- */
.b71-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid rgba(28, 28, 28, .25);
  border-radius: 4px;
  color: var(--b71-text);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
}
.b71-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
  height: 16px;
  justify-content: space-between;
}
.b71-burger-bars span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--b71-text);
}

/* DRAWER mobile -------------------------------------------------------------- */
.b71-nav-mobile { display: none; }

/* CTA desktop (caché car HEADER_CTA_ENABLED=no) ------------------------------ */
.b71-header-cta-desktop { display: none; }

/* ============================================================================
   QUOTE HERO — austère, littéraire, sans image
   ============================================================================ */
.b71-hero, .b71-hero--quote-hero {
  background: var(--b71-bg);
  padding: 4.5rem 1.25rem 4rem;
  border-bottom: 1px solid var(--b71-line);
  position: relative;
  overflow: hidden;
}
.b71-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.b71-hero-quote {
  font-family: var(--b71-font-headings);
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.35;
  color: var(--b71-text);
  margin: 0 0 1.5rem;
  position: relative;
  padding: 0 2rem;
}
.b71-hero-quote::before,
.b71-hero-quote::after {
  content: '\201C';
  font-family: var(--b71-font-headings);
  font-size: 4rem;
  color: var(--b71-accent);
  line-height: 0;
  position: relative;
  vertical-align: -.6em;
  margin: 0 .15em;
}
.b71-hero-quote::after { content: '\201D'; }
.b71-hero-attrib {
  font-family: var(--b71-font-headings);
  font-size: 1rem;
  color: var(--b71-text-soft);
  font-style: normal;
  letter-spacing: .02em;
  margin: 0 0 2rem;
}
.b71-hero-attrib::before { content: '\2014 '; }
.b71-hero-sub {
  font-family: var(--b71-font-headings);
  font-size: 1.15rem;
  color: var(--b71-text-soft);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.b71-hero-cta {
  display: inline-block;
  background: var(--b71-text);
  color: var(--b71-bg);
  padding: .9rem 2rem;
  font-family: var(--b71-font-headings);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  border: 1px solid var(--b71-text);
  transition: background .2s, color .2s;
}
.b71-hero-cta:hover {
  background: var(--b71-accent);
  color: var(--b71-text);
}

/* Marbled paper texture (subtle) --------------------------------------------- */
.b71-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(28, 28, 28, .03) 0, transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(251, 232, 56, .08) 0, transparent 25%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================================
   BLOC ÉDITORIAL HOME (placement after-hero, hash 43 % 3 == 1)
   ============================================================================ */
.b71-editorial-intro {
  background: var(--b71-surface);
  padding: 4rem 1.25rem;
  border-bottom: 1px solid var(--b71-line);
}
.b71-editorial-intro-inner {
  max-width: 760px;
  margin: 0 auto;
}
.b71-editorial-intro h2 {
  font-family: var(--b71-font-headings);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--b71-text);
}
.b71-editorial-intro h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--b71-accent);
}
.b71-editorial-intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
  color: var(--b71-text);
}
.b71-editorial-intro h3 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--b71-text);
}
.b71-editorial-intro a {
  color: var(--b71-text);
  text-decoration: underline;
  text-decoration-color: var(--b71-accent);
  text-decoration-thickness: 2px;
}
.b71-editorial-pull {
  border-left: 4px solid var(--b71-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--b71-text-soft);
  background: var(--b71-bg);
}

/* ============================================================================
   SECTION RUBRIQUES (grille catégories sur la home)
   ============================================================================ */
.b71-categories {
  padding: 4rem 1.25rem;
  background: var(--b71-bg);
}
.b71-section-title {
  font-family: var(--b71-font-headings);
  text-align: center;
  font-size: 2rem;
  margin-bottom: .5rem;
  color: var(--b71-text);
}
.b71-section-kicker {
  text-align: center;
  font-family: var(--b71-font-headings);
  font-style: italic;
  color: var(--b71-text-soft);
  margin-bottom: 2.5rem;
  letter-spacing: .04em;
  font-size: .95rem;
}
.b71-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--b71-gap);
  max-width: var(--b71-container);
  margin: 0 auto;
}
.b71-cat-card {
  background: var(--b71-surface);
  border: 1px solid var(--b71-line);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: var(--b71-text);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.b71-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28, 28, 28, .1);
  border-color: var(--b71-text);
}
.b71-cat-card-img {
  display: block;
  width: 100%;
  height: 180px;
  background-color: #efece6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--b71-line);
}
.b71-cat-card--noimg .b71-cat-card-body { padding-top: 1.5rem; }
.b71-cat-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.b71-cat-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
  color: var(--b71-text);
}
.b71-cat-card-desc {
  color: var(--b71-text-soft);
  font-size: .95rem;
  margin: 0 0 .8rem;
  flex: 1;
}
.b71-cat-card-more {
  font-style: italic;
  color: var(--b71-text);
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-color: var(--b71-accent);
}

/* ============================================================================
   DERNIERS ARTICLES (latest layout = classic grid, 18 articles)
   ============================================================================ */
.b71-latest {
  padding: 4rem 1.25rem;
  background: var(--b71-surface);
  border-top: 1px solid var(--b71-line);
  border-bottom: 1px solid var(--b71-line);
}
.b71-latest-grid {
  display: grid;
  /* 3 colonnes desktop pour 18 articles */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--b71-container);
  margin: 0 auto;
}
.b71-article-card {
  background: var(--b71-bg);
  border: 1px solid var(--b71-line);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--b71-text);
  transition: transform .25s, box-shadow .25s;
}
.b71-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 28, 28, .08);
}
.b71-article-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--b71-line);
  background: var(--b71-text);
}
.b71-article-body { padding: 1.2rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.b71-article-cat {
  font-family: var(--b71-font-headings);
  font-style: italic;
  font-size: .85rem;
  color: var(--b71-text-soft);
  letter-spacing: .04em;
  margin: 0 0 .4rem;
}
.b71-article-title {
  font-family: var(--b71-font-headings);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  line-height: 1.3;
}
.b71-article-excerpt {
  color: var(--b71-text-soft);
  font-size: .95rem;
  flex: 1;
  margin: 0 0 .8rem;
}
.b71-article-date {
  font-family: var(--b71-font-headings);
  font-style: italic;
  font-size: .85rem;
  color: var(--b71-text-soft);
  margin: 0;
}

/* Empty state ---------------------------------------------------------------- */
.b71-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--b71-text-soft);
  grid-column: 1 / -1;
  font-style: italic;
}

/* ============================================================================
   CATEGORY PAGES (layout single-top)
   ============================================================================ */
.b71-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--b71-text);
  border-bottom: 1px solid var(--b71-line);
}
.b71-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .85;
}
.b71-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .75) 100%);
  padding: 2rem 1.5rem;
  max-width: var(--b71-container);
  margin: 0 auto;
}
.b71-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  margin: 0;
  font-family: var(--b71-font-headings);
}
.b71-cat-intro {
  background: var(--b71-bg);
  padding: 3rem 1.25rem;
  border-bottom: 1px solid var(--b71-line);
}
.b71-cat-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.b71-cat-intro p { margin-bottom: 1em; }

/* ============================================================================
   PAGE A-PROPOS — persona photo style
   ============================================================================ */
.b71-persona-photo {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border: 1px solid var(--b71-line);
  filter: grayscale(.05);
}

/* ============================================================================
   PAGE CONTACT — JotForm wrapper
   ============================================================================ */
.b71-contact-form {
  margin: 2.5rem 0;
  padding: 0;
  background: var(--b71-surface);
  border: 1px solid var(--b71-line);
  border-left: 4px solid var(--b71-accent);
  padding: 1.5rem;
}
.b71-contact-form iframe { border: 0; max-width: 100%; }

/* ============================================================================
   TOOLS — wrapper page outil interactif
   ============================================================================ */
.b71-tool-page {
  padding: 3rem 1.25rem 5rem;
  background: var(--b71-bg);
}
.b71-tool-page-inner { max-width: 1080px; margin: 0 auto; }
.b71-tool-page h1 { text-align: center; margin-bottom: 1rem; }
.b71-tool-page-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--b71-text-soft);
  text-align: center;
}
.b71-tool-faq {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--b71-surface);
  border: 1px solid var(--b71-line);
}
.b71-tool-faq h2 {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
  text-align: center;
}
.b71-tool-faq details {
  border-top: 1px solid var(--b71-line);
  padding: 1rem 0;
}
.b71-tool-faq summary {
  cursor: pointer;
  font-family: var(--b71-font-headings);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================================================
   FOOTER — library_silent style (austère, classique, multi-colonne)
   ============================================================================ */
.b71-footer {
  background: var(--b71-text);
  color: var(--b71-bg);
  padding: 4rem 1.25rem 2rem;
  margin-top: 4rem;
}
.b71-footer a { color: var(--b71-bg); text-decoration: none; }
.b71-footer a:hover { color: var(--b71-accent); text-decoration: underline; }
.b71-footer-inner {
  max-width: var(--b71-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.b71-footer-title {
  font-family: var(--b71-font-headings);
  font-size: 1rem;
  font-weight: 700;
  color: var(--b71-accent);
  letter-spacing: .04em;
  margin: 0 0 1.2rem;
  border-bottom: 1px solid rgba(248, 246, 242, .15);
  padding-bottom: .6rem;
}
.b71-footer-col p, .b71-footer-col li {
  color: var(--b71-bg);
  font-size: .95rem;
  line-height: 1.6;
}
.b71-footer-col p { color: rgba(248, 246, 242, .9); }
.b71-footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  filter: invert(1) brightness(1.05);
}
.b71-footer-brand-pitch {
  font-family: var(--b71-font-headings);
  line-height: 1.7;
  margin: 0 0 1.2rem;
  color: rgba(248, 246, 242, .85);
}
.b71-footer-brand-cta {
  display: inline-block;
  font-family: var(--b71-font-headings);
  font-style: italic;
  color: var(--b71-accent);
  border-bottom: 1px solid var(--b71-accent);
  text-decoration: none;
  padding-bottom: 2px;
}
.b71-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b71-footer-links li {
  margin: 0 0 .5rem;
}
.b71-footer-bottom {
  max-width: var(--b71-container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 246, 242, .12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(248, 246, 242, .7);
  font-size: .85rem;
  font-style: italic;
  font-family: var(--b71-font-headings);
}
.b71-footer-bottom .b71-footer-legal {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.b71-footer-bottom a { color: rgba(248, 246, 242, .8); }
.b71-footer-bottom a:hover { color: var(--b71-accent); }
.b71-social {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.b71-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(248, 246, 242, .25);
  color: var(--b71-bg);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.b71-social a:hover {
  background: var(--b71-accent);
  color: var(--b71-text);
  border-color: var(--b71-accent);
}

/* ============================================================================
   BUTTONS — button_style: text_only_serif (CTA = bouton plein)
   ============================================================================ */
.b71-btn {
  display: inline-block;
  font-family: var(--b71-font-headings);
  font-weight: 700;
  font-size: 1rem;
  padding: .75rem 1.5rem;
  border: 1px solid var(--b71-text);
  background: transparent;
  color: var(--b71-text);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  letter-spacing: .02em;
}
.b71-btn:hover {
  background: var(--b71-text);
  color: var(--b71-bg);
}
.b71-btn--cta {
  background: var(--b71-text);
  color: var(--b71-bg);
  position: relative;
  overflow: hidden;
}
.b71-btn--cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.b71-btn--cta:hover { background: var(--b71-accent); color: var(--b71-text); }
.b71-btn--cta:hover::after { animation: b71-shine-sweep 1.05s ease-out; }

@keyframes b71-shine-sweep {
  0% { left: -120%; }
  100% { left: 120%; }
}

/* Animation CTR (floating badge) -------------------------------------------- */
@keyframes b71-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.b71-badge--ctr {
  animation: b71-float 2.6s ease-in-out infinite;
  display: inline-block;
}

/* Animation CTO (best value badge) ------------------------------------------ */
@keyframes b71-best-pulse {
  0%, 100% { transform: scale(1) rotate(-3deg); box-shadow: 0 0 0 0 rgba(251, 232, 56, .55); }
  50%      { transform: scale(1.05) rotate(-3deg); box-shadow: 0 0 0 10px rgba(251, 232, 56, 0); }
}
.b71-badge--cto {
  display: inline-block;
  transform-origin: center;
  animation: b71-best-pulse 2s ease-in-out infinite;
  background: var(--b71-accent);
  color: var(--b71-text);
  font-family: var(--b71-font-headings);
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 0;
}

/* ============================================================================
   CONTAST GUARDS (footer / drawer texte lisible)
   ============================================================================ */
@media (max-width: 1023px) {
  .b71-header-cta-desktop,
  [class*="-header"] [class*="-btn--cta"]:not([class*="-drawer-"]) {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .b71-drawer-cta { display: none !important; }
}

/* CTA drawer mobile (sous la nav burger) ----------------------------------- */
.b71-drawer-cta {
  display: block;
  margin: 2rem 1.5rem 1.5rem;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--b71-text);
  color: var(--b71-bg) !important;
  border: 0;
  font-family: var(--b71-font-headings);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.b71-drawer-cta:hover { background: var(--b71-accent); color: var(--b71-text) !important; }

/* ============================================================================
   MEDIA QUERIES — Desktop first burger
   ============================================================================ */
@media (min-width: 1024px) {
  .b71-nav-desktop {
    display: flex;
    flex: 0 1 auto;
    justify-content: flex-end;
    margin: 0 0 0 1.5rem;
  }
  .b71-burger, .b71-burger-wrap { display: none !important; }
}

@media (max-width: 1023px) {
  /* Burger guards (taille, parent visible, label caché) */
  .b71-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;
  }
  .b71-burger-bars, .b71-burger > span {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 24px !important;
    height: 16px !important;
  }
  .b71-burger-label { display: none !important; }
  .b71-header-inner [class*="cta"], .b71-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  /* Drawer mobile : visible quand toggled .is-open ---------------------- */
  .b71-nav-mobile { display: none; }
  .b71-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--b71-surface);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(28, 28, 28, .3);
  }
  .b71-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .b71-nav-mobile-list a {
    display: block;
    padding: 1.1rem .5rem;
    color: var(--b71-text);
    font-family: var(--b71-font-headings);
    font-size: 1.15rem;
    text-decoration: none;
    border-bottom: 1px solid var(--b71-line);
  }
  .b71-nav-mobile-list a:hover { background: var(--b71-accent); }
  .b71-nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 2rem;
    cursor: pointer;
    color: var(--b71-text);
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
  }
  .b71-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 28, .55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s;
  }
  .b71-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Latest grid responsive -------------------------------------------------- */
  .b71-latest-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .b71-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .b71-hero-quote { font-size: 1.6rem; padding: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .b71-latest-grid { grid-template-columns: 1fr; }
  .b71-footer-inner { grid-template-columns: 1fr; }
  .b71-footer-bottom { flex-direction: column; align-items: flex-start; }
  .b71-hero { padding: 3rem 1rem; }
  .b71-cat-grid { gap: 1rem; }
  .b71-editorial-intro { padding: 3rem 1rem; }
  .b71-categories, .b71-latest { padding: 3rem 1rem; }
}

/* ============================================================================
   UTILS
   ============================================================================ */
.b71-screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Print --------------------------------------------------------------------- */
@media print {
  .b71-header, .b71-footer, .b71-nav-mobile, .b71-burger { display: 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*="b71-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
   (.b71-, .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;
  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(--b71-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;
  }
}

/* [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(--b71-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : subtle (8px) */
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: 8px !important;
}
