/* ================================================================
 * Nutriclair — child theme (parent: generatepress)
 * Design System: Wellness Spa Éthéré (fonts) + concurrent palette
 * Header: sticky-minimal | Hero: parallax-scroll | Cat: intro-faq
 * ================================================================ */

:root {
  --a66-primary:   #df5858;
  --a66-primary-d: #cc4b37;
  --a66-accent:    #1779ba;
  --a66-text:      #2e2e30;
  --a66-text-soft: #7d7d86;
  --a66-bg:        #fefefe;
  --a66-surface:   #f5f6f8;
  --a66-line:      #ededed;
  --a66-font-heads: 'Cardo', Georgia, 'Times New Roman', serif;
  --a66-font-body:  'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --a66-radius: 8px;
  --a66-shadow-sm: 0 2px 6px rgba(46,46,48,.06);
  --a66-shadow-md: 0 10px 28px rgba(46,46,48,.08);
  --a66-shadow-lg: 0 18px 48px rgba(46,46,48,.12);
  --a66-container: 1180px;
  --a66-trans: .25s ease;
}

/* ============ RESET / BASE ============ */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.a66-body {
  margin: 0;
  font-family: var(--a66-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--a66-text);
  background: var(--a66-bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--a66-font-heads); font-weight: 700; line-height: 1.25; color: var(--a66-text); margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--a66-accent); text-decoration: none; transition: opacity var(--a66-trans), color var(--a66-trans); }
img { max-width: 100%; height: auto; display: block; }

/* ============ LAYOUT MAIN ============ */
main, .a66-main { padding-top: 0 !important; margin-top: 0 !important; }
.a66-main { display: block; }

/* ============ HEADER (sticky-minimal) ============ */
.a66-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(254,254,254,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--a66-line);
  box-shadow: 0 1px 0 rgba(46,46,48,.03);
}
.a66-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--a66-container);
  margin: 0 auto;
  padding: .85rem 1.4rem;
  min-height: 64px;
}
.a66-brand-link {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--a66-text);
  flex-shrink: 0;
}
.a66-brand-logo {
  width: auto; max-width: 200px;
}
.a66-brand-name {
  font-family: var(--a66-font-heads);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--a66-text);
  /* Style B — Title Case: no text-transform */
}

/* Desktop nav — visible >= 1024px */
.a66-nav-desktop { display: none; }
.a66-nav-desktop-list {
  display: flex; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.a66-nav-desktop-list li { margin: 0; }
.a66-nav-desktop-list a {
  color: var(--a66-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .96rem;
  padding: .4rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.a66-nav-desktop-list a:hover { border-bottom-color: var(--a66-primary); color: var(--a66-primary); }

/* Header actions */
.a66-header-actions {
  display: flex; align-items: center; gap: .6rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ============ BURGER (mobile only) ============ */
.a66-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,.92) !important;
  border: 1.5px solid rgba(0,0,0,.18) !important;
  border-radius: 8px !important;
  color: var(--a66-text) !important;
  cursor: pointer !important;
  z-index: 1100 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.a66-burger-bars {
  display: flex !important; flex-direction: column !important;
  gap: 4px !important; width: 24px !important; height: 16px !important;
  justify-content: space-between;
}
.a66-burger-bars span {
  display: block; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
}

/* ============ MOBILE NAV (drawer) ============ */
.a66-nav-mobile { display: none; }
.a66-nav-mobile-list { list-style: none; margin: 0; padding: 0; }
.a66-nav-mobile-list li { margin: 0; }
.a66-nav-mobile-list a {
  display: block;
  padding: 1rem 1.2rem;
  color: #1a1a1a;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #e5e5e5;
}
.a66-nav-mobile-list a:hover { background: var(--a66-surface); color: var(--a66-primary); }
.a66-nav-mobile-sep { margin-top: 1rem; border-top: 1px solid #e5e5e5; padding-top: .5rem; }
.a66-nav-mobile-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: 0;
  font-size: 2rem; line-height: 1; cursor: pointer;
  color: var(--a66-text);
  width: 40px; height: 40px;
  border-radius: 4px;
}
.a66-nav-mobile-close:hover { background: var(--a66-surface); }

/* Overlay */
.a66-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}
.a66-overlay.is-open { display: block; }

/* CTA drawer hidden by default (visible only mobile via .is-open) */
.a66-drawer-cta { display: none; }

/* Responsive: drawer + nav switching */
@media (max-width: 1023px) {
  .a66-header-cta-desktop { display: none !important; }
  .a66-nav-desktop { display: none !important; }

  .a66-nav-mobile.is-open {
    display: flex !important;
    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,.3);
  }
  .a66-nav-mobile.is-open .a66-drawer-cta {
    display: block !important;
    margin: 2rem 1.5rem 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--a66-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    animation: none !important;
  }
}

@media (min-width: 1024px) {
  .a66-burger { display: none !important; }
  .a66-nav-desktop {
    display: flex !important;
    flex: 1;
    justify-content: center;
    margin: 0 1.5rem;
  }
  .a66-drawer-cta { display: none !important; }
}

/* ============ BUTTONS ============ */
.a66-btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: var(--a66-radius);
  font-family: var(--a66-font-body);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform var(--a66-trans), background var(--a66-trans), color var(--a66-trans), box-shadow var(--a66-trans);
}
.a66-btn--cta {
  background: var(--a66-primary);
  color: #fff;
}
.a66-btn--cta:hover { background: var(--a66-primary-d); color: #fff; transform: translateY(-1px); }
.a66-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.a66-btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ============ HERO (parallax-scroll) ============ */
.a66-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2e2e30 0%, #4a3735 100%);
  color: #fff;
}
.a66-hero-bg-wrap {
  position: absolute; inset: 0;
  z-index: 1;
}
.a66-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  /* Parallax effect via background-attachment fallback */
  will-change: transform;
}
@media (min-width: 1024px) {
  .a66-hero { background-attachment: fixed; }
  .a66-hero-bg { background-attachment: fixed; }
}
.a66-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--a66-container);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.4rem;
  text-align: center;
}
.a66-hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffd6c8;
  font-weight: 600;
  margin-bottom: 1rem;
}
.a66-hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0 auto 1rem;
  max-width: 880px;
  line-height: 1.15;
}
/* Force white on ALL H1 in hero, fixed AND animated (typewriter/rotator).
   Targets descendant spans (typed text, rotators, cursors) commonly injected by JS. */
.a66-hero h1,
.a66-hero h1 *,
.a66-hero .a66-hero-title,
.a66-hero .a66-hero-title *,
.a66-hero h1 .typewriter,
.a66-hero h1 .typewriter *,
.a66-hero h1 .rotator,
.a66-hero h1 .rotator *,
.a66-hero h1 [class*="typewriter"],
.a66-hero h1 [class*="rotator"],
.a66-hero h1 [class*="typed"],
.a66-hero h1 [class*="rotate"],
.a66-hero h1 .cursor,
.a66-hero h1 .caret {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}
.a66-hero-subtitle {
  color: #f5f0ec;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.a66-hero-actions {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ SECTION HEADS ============ */
.a66-section-head { text-align: center; margin-bottom: 2.5rem; }
.a66-section-head h2 {
  color: var(--a66-text);
  margin-bottom: .5rem;
}
.a66-section-head p {
  color: var(--a66-text-soft);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ============ EDITORIAL BLOCK (SEO) ============ */
.a66-editorial {
  background: var(--a66-bg);
  padding: 4.5rem 1.4rem;
}
.a66-editorial-inner {
  max-width: 820px;
  margin: 0 auto;
}
.a66-editorial h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--a66-text);
}
.a66-editorial h3 {
  margin-top: 2rem;
  color: var(--a66-primary);
}
.a66-editorial-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--a66-text);
}
.a66-editorial p, .a66-editorial p a {
  font-size: 1.02rem;
  line-height: 1.7;
}
.a66-editorial a {
  color: var(--a66-primary);
  border-bottom: 1px dashed var(--a66-primary);
  text-decoration: none;
  font-weight: 500;
}
.a66-editorial a:hover { color: var(--a66-primary-d); }
.a66-editorial-callout {
  background: var(--a66-surface);
  border-left: 4px solid var(--a66-primary);
  padding: 1.5rem 1.8rem;
  margin-top: 2.5rem;
  border-radius: 0 var(--a66-radius) var(--a66-radius) 0;
}
.a66-editorial-callout h4 {
  color: var(--a66-primary);
  margin-top: 0;
  margin-bottom: .6rem;
}
.a66-editorial-callout p { margin-bottom: 0; font-size: .98rem; color: var(--a66-text); }

/* ============ CATEGORIES GRID ============ */
.a66-categories {
  background: var(--a66-surface);
  padding: 4.5rem 1.4rem;
}
.a66-categories-inner { max-width: var(--a66-container); margin: 0 auto; }
.a66-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.a66-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--a66-radius);
  overflow: hidden;
  box-shadow: var(--a66-shadow-sm);
  text-decoration: none;
  color: var(--a66-text);
  transition: transform var(--a66-trans), box-shadow var(--a66-trans);
  min-height: 320px;
}
.a66-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--a66-shadow-md);
}
.a66-cat-card-img {
  display: block;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--a66-line);
}
.a66-cat-card-img--fallback {
  background: linear-gradient(135deg, var(--a66-primary) 0%, var(--a66-primary-d) 100%);
}
.a66-cat-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.4rem 1.6rem;
  flex: 1;
}
.a66-cat-card-title {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  color: var(--a66-text);
}
.a66-cat-card-desc {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--a66-text-soft);
  margin-bottom: 1rem;
  flex: 1;
}
.a66-cat-card-cta {
  color: var(--a66-primary);
  font-weight: 600;
  font-size: .94rem;
}

/* ============ LATEST ARTICLES ============ */
.a66-latest {
  background: var(--a66-bg);
  padding: 4.5rem 1.4rem;
}
.a66-latest-inner { max-width: var(--a66-container); margin: 0 auto; }
.a66-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.a66-card {
  background: #fff;
  border-radius: var(--a66-radius);
  overflow: hidden;
  box-shadow: var(--a66-shadow-sm);
  transition: transform var(--a66-trans), box-shadow var(--a66-trans);
}
.a66-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--a66-shadow-md);
}
.a66-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--a66-text);
  height: 100%;
}
.a66-card-thumb {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--a66-line);
}
.a66-card-thumb img, .a66-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.a66-card-thumb--fallback {
  background: linear-gradient(135deg, var(--a66-primary) 0%, var(--a66-accent) 100%);
}
.a66-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex; flex-direction: column;
  flex: 1;
}
.a66-card-cat {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--a66-primary);
  font-weight: 700;
  margin-bottom: .5rem;
}
.a66-card-title {
  margin: 0 0 .8rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--a66-text);
  flex: 1;
}
.a66-card-meta {
  font-size: .88rem;
  color: var(--a66-text-soft);
}
.a66-latest-empty {
  text-align: center;
  color: var(--a66-text-soft);
  font-size: 1.05rem;
  padding: 2rem;
}
.a66-latest-empty a { color: var(--a66-primary); font-weight: 600; }

/* ============ TOOL PROMO ON HOME ============ */
.a66-tool-promo {
  background: linear-gradient(180deg, var(--a66-surface) 0%, var(--a66-bg) 100%);
  padding: 4.5rem 1.4rem;
}
.a66-tool-promo-inner { max-width: 820px; margin: 0 auto; }
.a66-tool-promo-embed {
  background: #fff;
  border-radius: var(--a66-radius);
  box-shadow: var(--a66-shadow-md);
  padding: 2.2rem 1.8rem;
  margin: 2rem 0 1.5rem;
}
.a66-tool-promo-more {
  text-align: center;
  color: var(--a66-text-soft);
  font-size: .96rem;
}
.a66-tool-promo-more a {
  color: var(--a66-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--a66-primary);
}

/* ============ FOOTER ============ */
.a66-footer {
  background: #2e2e30;
  color: #f5f5f5;
  padding: 4rem 1.4rem 1.4rem;
  margin-top: 0;
}
.a66-footer-inner {
  max-width: var(--a66-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.a66-footer-col h3.a66-footer-title {
  font-family: var(--a66-font-heads);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.a66-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.a66-footer-links li { margin: 0 0 .55rem; }
.a66-footer-links a {
  color: #d7d7d7;
  text-decoration: none;
  font-size: .94rem;
  transition: color var(--a66-trans);
}
.a66-footer-links a:hover {
  color: #ffd6c8;
  text-decoration: underline;
}
.a66-footer-brand-pitch {
  color: #c8c8c8;
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.a66-footer-brand-cta {
  display: inline-block;
  color: #ffd6c8;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  border-bottom: 1px solid #ffd6c8;
  padding-bottom: 2px;
}
.a66-footer-brand-cta:hover { color: #fff; border-bottom-color: #fff; }
.a66-footer-bottom {
  max-width: var(--a66-container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #424244;
  text-align: center;
  color: #9a9a9a;
  font-size: .85rem;
}
.a66-footer-bottom p { margin: 0; }

@media (max-width: 880px) {
  .a66-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .a66-footer-inner { grid-template-columns: 1fr; }
}

/* ============ PERSONA PHOTO (A propos) ============ */
.a66-persona-photo {
  border-radius: var(--a66-radius);
  box-shadow: var(--a66-shadow-md);
  max-width: 360px;
  margin: 1rem auto 2rem;
  display: block;
}

/* ============ CONTACT PAGE ============ */
.a66-contact-form {
  margin-top: 2rem;
  padding: 1.5rem 0;
}

/* ============ CATEGORY PAGE (intro-faq) ============ */
.a66-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.a66-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.a66-cat-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--a66-container);
  margin: 0 auto;
  height: 100%;
  padding: 2rem 1.4rem;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75) 100%);
}
.a66-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
  margin: 0;
}

/* ============ CTA PULSE ANIMATION ============ */
@keyframes rpPulseBtn {
  0%,100% { box-shadow: 0 0 0 0 rgba(223,88,88,.55); }
  50%     { box-shadow: 0 0 0 14px rgba(223,88,88,0); }
}
.a66-btn--cta { animation: rpPulseBtn 2.4s ease-in-out infinite; }
.a66-btn--cta:hover { animation-play-state: paused; }

/* ============ REVEAL ON SCROLL ============ */
@keyframes rpReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.a66-reveal { opacity: 0; will-change: opacity, transform; }
.a66-reveal.is-visible { animation: rpReveal .9s cubic-bezier(.22,.61,.36,1) forwards; }

/* ============ RECENT ACTIVITY POPUP (CTO) ============ */
@keyframes rpPopupIn  { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes rpPopupOut { from { opacity: 1; transform: translate3d(0, 0, 0); }   to { opacity: 0; transform: translate3d(0, 14px, 0); } }
.a66-cto-popup {
  position: fixed; left: 1.2rem; bottom: 1.2rem;
  max-width: 320px;
  background: #fff; color: var(--a66-text);
  padding: .9rem 1.1rem;
  border-radius: 10px;
  box-shadow: var(--a66-shadow-lg);
  border-left: 4px solid var(--a66-primary);
  font-size: .92rem; line-height: 1.4;
  z-index: 9999; display: none;
}
.a66-cto-popup.is-in  { display: block; animation: rpPopupIn  .45s ease forwards; }
.a66-cto-popup.is-out { animation: rpPopupOut .45s ease forwards; }
.a66-cto-popup__close {
  position: absolute; top: .4rem; right: .6rem;
  background: transparent; border: 0; cursor: pointer;
  font-size: 1.1rem; color: var(--a66-text-soft); line-height: 1;
}
@media (max-width: 640px) {
  .a66-cto-popup { left: .6rem; right: .6rem; max-width: none; bottom: .6rem; }
}

/* ============ MOUSE EFFECT: link hover opacity shift ============ */
.a66-main a:not(.a66-btn):not(.a66-brand-link):not(.a66-footer-brand-cta) {
  position: relative;
  transition: opacity .22s ease, color .22s ease;
}
.a66-main a:not(.a66-btn):not(.a66-brand-link):not(.a66-footer-brand-cta):hover {
  opacity: .72;
  color: var(--a66-accent);
}
@media (hover: none) {
  .a66-main a:not(.a66-btn):not(.a66-brand-link):not(.a66-footer-brand-cta):hover { opacity: 1; }
}

/* ============ ACCESSIBILITY ============ */
.screen-reader-text {
  position: absolute !important;
  left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}
:focus-visible {
  outline: 3px solid var(--a66-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 768px) {
  .a66-hero { min-height: 460px; }
  .a66-hero-inner { padding: 3rem 1.2rem; }
  .a66-editorial, .a66-categories, .a66-latest, .a66-tool-promo {
    padding: 3rem 1.2rem;
  }
  .a66-section-head { margin-bottom: 1.8rem; }
  .a66-cats-grid { grid-template-columns: 1fr; }
  .a66-articles-grid { grid-template-columns: 1fr; }
  .a66-tool-promo-embed { padding: 1.5rem 1.1rem; }
}
@media (max-width: 480px) {
  .a66-hero-title { font-size: 1.8rem; }
  .a66-hero-actions { flex-direction: column; }
  .a66-hero-actions .a66-btn { width: 100%; text-align: center; }
}

/* ============ END ============ */


/* [2026-06-19] FIX reveal-on-scroll force opacity 1 */
[class*='-reveal'],
[class*='reveal-'],
.a66-reveal, .reveal, [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="a66-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
   (.a66-, .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(--a66-accent, currentColor) !important;
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX gap main padding-top (Claude met parfois padding-top: 30px sur .{prefix}-main qui casse le collage hero) */
html body main[class*="-main"],
html body main.a66-main,
html body main#bdf-main, html body main#lda-main, html body main#a66-main,
html body main#b3b-main, html body main#e96-main, html body main#aaa-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* [2026-06-19] FIX drawer mobile height : force full viewport */
html body [class*="nav-mobile"]:not([class*="close"]):not([class*="overlay"]),
html body [class*="menu-mobile"]:not([class*="close"]),
html body [class*="drawer-mobile"]:not([class*="close"]) {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  bottom: 0 !important;
  overflow-y: auto !important;
}

/* [2026-06-19] BURGER variation seedee : shape=short-mid (w1=24/w2=14/w3=24) + dimensions + couleur + angle X */
html body button[class*="burger"] > span > span,
html body button[class*="burger"] > span:not([class*="bar"]):not([class*="line"]),
html body button[class*="burger"] [class*="bar"] > span,
html body button[class*="burger"] [class*="line"] > span {
  height: 2.5px !important;
  border-radius: 1px !important;
  background: currentColor !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease !important;
}
/* Widths individuelles seedees -> forme distincte par site */
html body button[class*="burger"] > span > span:nth-child(1),
html body button[class*="burger"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"] [class*="line"] > span:nth-child(1) {
  width: 24px !important;
}
html body button[class*="burger"] > span > span:nth-child(2),
html body button[class*="burger"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"] [class*="line"] > span:nth-child(2) {
  width: 14px !important;
}
html body button[class*="burger"] > span > span:nth-child(3),
html body button[class*="burger"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"] [class*="line"] > span:nth-child(3) {
  width: 24px !important;
}
/* En etat ouvert (X) : les 3 barres ont meme largeur pour X symetrique */
html body button[class*="burger"][aria-expanded="true"] > span > span,
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span,
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span {
  width: 24px !important;
}
html body button[class*="burger"] > span:has(> span) {
  flex-direction: column !important;
  gap: 6px !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(1):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1) {
  transform: translateY(8.5px) rotate(50deg) !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(2):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2) {
  opacity: 0 !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(3):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-50deg) !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(--a66-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : hexagon-soft (12px) */
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: 12px !important;
}


/* Mouse effect : link_hover_opacity_shift */
.a66-main a:not(.a66-btn):not(.a66-brand-link):not(.a66-footer-brand-cta) { position: relative; transition: opacity .22s ease, color .22s ease; } .a66-main a:not(.a66-btn):not(.a66-brand-link):not(.a66-footer-brand-cta):hover { opacity: .72; color: var(--a66-accent, #1779ba); } @media (hover: none) { .a66-main a:not(.a66-btn):not(.a66-brand-link):not(.a66-footer-brand-cta):hover { opacity: 1; } }
