/* ============================================================================
   ACTU NET — custom theme CSS (Underground Rave Acid fonts × JDN palette)
   Prefix: .an-*  |  Design: Audiowide headings × Inter body × red/navy palette
   ============================================================================ */

:root {
  --an-color-primary: #ce0609;
  --an-color-primary-dark: #9c0507;
  --an-color-accent: #0e315e;
  --an-color-accent-dark: #082042;
  --an-color-text: #1a1a1a;
  --an-color-text-soft: #5a5a5a;
  --an-color-bg: #ffffff;
  --an-color-surface: #f7f7f7;
  --an-color-line: #ebebeb;
  --an-font-headings: 'Audiowide', 'Inter', system-ui, sans-serif;
  --an-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --an-radius: 8px;
  --an-radius-lg: 14px;
  --an-shadow: 0 4px 14px rgba(14, 49, 94, 0.08);
  --an-shadow-lg: 0 12px 32px rgba(14, 49, 94, 0.14);
  --an-container: 1240px;
  --an-gutter: 1.25rem;
}

/* ----------------------------- RESET / BODY ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.an-body, body {
  margin: 0;
  font-family: var(--an-font-body);
  color: var(--an-color-text);
  background: var(--an-color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--an-color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--an-color-primary); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--an-font-headings);
  color: var(--an-color-accent);
  line-height: 1.25;
  margin: 0 0 .85rem;
  font-weight: 400;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.an-container { max-width: var(--an-container); margin: 0 auto; padding: 0 var(--an-gutter); }
main, .an-main { padding-top: 0 !important; margin-top: 0 !important; }

/* --------------------------------- BUTTONS ------------------------------- */
.an-btn, .ef2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--an-radius);
  font-family: var(--an-font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.an-btn--primary, .ef2-btn--primary {
  background: var(--an-color-primary); color: #fff;
}
.an-btn--primary:hover { background: var(--an-color-primary-dark); color: #fff; transform: translateY(-1px); }
.an-btn--ghost, .ef2-btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.85);
}
.an-btn--ghost:hover { background: rgba(255,255,255,0.95); color: var(--an-color-accent); }
.an-btn--cta, .ef2-btn--cta {
  background: var(--an-color-primary); color: #fff;
}
.an-btn--cta:hover { background: var(--an-color-primary-dark); color: #fff; }

/* ---------------------------- HEADER ------------------------------------- */
.an-header, .ef2-header {
  position: sticky; top: 0; z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--an-color-line);
  box-shadow: 0 1px 0 rgba(14,49,94,.04);
}
.an-header-inner {
  display: flex; align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  max-width: var(--an-container);
  margin: 0 auto;
  padding: .9rem var(--an-gutter);
  min-height: 64px;
}
.an-brand { display: inline-flex; align-items: center; gap: .65rem; }
.an-brand-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--an-color-accent); text-decoration: none; }
.an-brand-logo { height: auto; width: auto; max-height: 42px; display: block; }
.an-brand-name {
  font-family: var(--an-font-headings);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--an-color-accent);
  text-transform: uppercase; /* Style A — brand casing */
  line-height: 1;
}
.an-brand-tagline { display: none; }
.an-burger {
  display: none;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: var(--an-color-primary);
  border: 2px solid var(--an-color-accent);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  box-shadow: 0 4px 12px rgba(206, 6, 9, 0.28), 0 1px 2px rgba(14, 49, 94, 0.18);
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.an-burger:hover { background: var(--an-color-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(206, 6, 9, 0.35), 0 2px 4px rgba(14, 49, 94, 0.22); }
.an-burger:active { transform: translateY(0); }
.an-burger:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14, 49, 94, 0.35), 0 4px 12px rgba(206, 6, 9, 0.28); }
.an-burger[aria-expanded="true"] { background: var(--an-color-accent); border-color: var(--an-color-primary); }
.an-burger-bars { position: relative; display: block; width: 22px; height: 16px; }
.an-burger-bars span {
  position: absolute; left: 0; right: 0;
  display: block; height: 2.5px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
}
.an-burger-bars span:nth-child(1) { top: 0; }
.an-burger-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.an-burger-bars span:nth-child(3) { top: 100%; transform: translateY(-100%); }
.an-burger[aria-expanded="true"] .an-burger-bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.an-burger[aria-expanded="true"] .an-burger-bars span:nth-child(2) { opacity: 0; }
.an-burger[aria-expanded="true"] .an-burger-bars span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* DESKTOP NAV — horizontale centrée (logo-left-menu-center-cta-right sans CTA) */
.an-nav-desktop { display: none; flex: 1; }
.an-nav-desktop-list {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
  align-items: center; justify-content: center; flex-wrap: wrap;
}
.an-nav-desktop-list a {
  color: var(--an-color-text);
  text-decoration: none;
  font-family: var(--an-font-body);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  letter-spacing: .01em;
}
.an-nav-desktop-list a:hover { color: var(--an-color-primary); border-bottom-color: var(--an-color-primary); }
.an-nav-desktop-list .current-cat > a,
.an-nav-desktop-list .current-menu-item > a { color: var(--an-color-primary); border-bottom-color: var(--an-color-primary); }

/* DESKTOP : show horizontal nav, hide burger */
@media (min-width: 1024px) {
  .an-nav-desktop { display: flex; }
  .an-burger { display: none !important; }
  .an-header-inner { gap: 2rem; }
}

/* MOBILE : burger visible, nav drawer */
@media (max-width: 1023px) {
  .an-header-inner { justify-content: space-between; gap: 1rem; }
  .an-burger { display: inline-flex !important; flex-shrink: 0; }
  .an-nav-desktop { display: none !important; }
}

/* MOBILE DRAWER */
.an-nav-mobile { display: none; }
@media (max-width: 1023px) {
  .an-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 1.5rem 1.5rem;
    z-index: 9999; overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .an-nav-mobile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .an-nav-mobile-list li { border-bottom: 1px solid var(--an-color-line); }
  .an-nav-mobile-list a {
    display: block; padding: .9rem .25rem;
    color: var(--an-color-text);
    font-weight: 500; font-size: 1rem;
    text-decoration: none;
  }
  .an-nav-mobile-list a:hover { color: var(--an-color-primary); }
  .an-nav-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    background: transparent; border: 0; cursor: pointer;
    color: var(--an-color-text); font-size: 1.5rem; line-height: 1;
  }
  .an-drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9990;
  }
  .an-drawer-overlay.is-open { display: block; }
  .an-drawer-cta {
    display: block !important;
    margin: 2rem 0 .5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--an-color-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
}
@media (min-width: 1024px) {
  .an-drawer-cta { display: none !important; }
}

/* ------------------------------ HERO (dual-cta-banner) ------------------- */
.an-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: center;
  background: var(--an-color-accent);
  color: #fff;
}
.an-hero--has-video .an-hero-title,
.an-hero--has-video .an-hero-subtitle { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.an-hero-video-wrap { position: absolute; inset: 0; pointer-events: none; }
.an-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;
}
.an-hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
}
.an-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: 0;
}
.an-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--an-container);
  margin: 0 auto;
  padding: 5rem var(--an-gutter);
  width: 100%;
}
.an-hero-eyebrow {
  display: inline-block;
  font-family: var(--an-font-headings);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--an-color-primary);
  padding: .35rem .75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.an-hero-title {
  font-family: var(--an-font-headings);
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  margin: 0 0 1rem;
  color: #fff;
  max-width: 820px;
}
.an-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  margin: 0 0 2rem;
  line-height: 1.55;
}
.an-hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.an-hero-cta .an-btn { min-width: 180px; padding: 1rem 1.75rem; font-size: 1rem; }
.an-hero-cta .an-btn--primary { background: var(--an-color-primary); }
.an-hero-cta .an-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ---------------------------- EDITORIAL BLOCK (after-categories) -------- */
.an-editorial-intro {
  background: #fff;
  padding: 4rem 0;
  border-bottom: 1px solid var(--an-color-line);
}
.an-editorial-intro .an-container { max-width: 900px; }
.an-editorial-intro h2 { color: var(--an-color-accent); margin-bottom: 1.25rem; }
.an-editorial-intro h3 { color: var(--an-color-primary); margin-top: 2rem; margin-bottom: .75rem; font-size: 1.25rem; }
.an-editorial-intro p { color: var(--an-color-text); font-size: 1.04rem; line-height: 1.7; }
.an-editorial-intro a { color: var(--an-color-accent); border-bottom: 1px solid var(--an-color-accent); }
.an-editorial-intro a:hover { color: var(--an-color-primary); border-bottom-color: var(--an-color-primary); }
.an-editorial-intro .an-ed-line {
  background: var(--an-color-surface);
  border-left: 4px solid var(--an-color-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--an-radius) var(--an-radius) 0;
}
.an-editorial-intro .an-ed-line p { margin: 0; font-style: italic; color: var(--an-color-text-soft); }

/* ---------------------------- CATEGORIES SECTION ------------------------ */
.an-section-title {
  font-family: var(--an-font-headings);
  font-size: 1.85rem;
  color: var(--an-color-accent);
  margin: 0 0 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}
.an-section-title::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--an-color-primary);
  border-radius: 3px;
}
.an-categories { padding: 4rem 0; background: var(--an-color-surface); }
.an-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.an-cat-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: var(--an-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--an-color-text);
  box-shadow: var(--an-shadow);
  transition: transform .25s, box-shadow .25s;
  min-height: 240px;
}
.an-cat-card:hover { transform: translateY(-4px); box-shadow: var(--an-shadow-lg); }
.an-cat-card-img {
  display: block;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--an-color-accent);
  position: relative;
}
.an-cat-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,49,94,0.55) 100%);
}
.an-cat-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.an-cat-card-name {
  font-family: var(--an-font-headings);
  font-size: 1.15rem;
  color: var(--an-color-accent);
  margin: 0 0 .35rem;
}
.an-cat-card:hover .an-cat-card-name { color: var(--an-color-primary); }
.an-cat-card-desc {
  font-size: .9rem;
  color: var(--an-color-text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------- ARTICLE CARDS (home grid + cat) ----------- */
.an-latest { padding: 4rem 0; background: #fff; }
.an-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
@media (min-width: 900px) { .an-articles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .an-articles-grid { grid-template-columns: repeat(3, 1fr); } }

.an-article-card {
  background: #fff;
  border: 1px solid var(--an-color-line);
  border-radius: var(--an-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.an-article-card:hover { transform: translateY(-3px); box-shadow: var(--an-shadow-lg); border-color: transparent; }
.an-article-card-thumb {
  display: block;
  width: 100%; aspect-ratio: 16 / 10;
  background: var(--an-color-surface);
  overflow: hidden;
}
.an-article-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.an-article-card:hover .an-article-card-thumb img { transform: scale(1.04); }
.an-article-card-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--an-color-accent), var(--an-color-primary));
  color: #fff;
  font-family: var(--an-font-headings);
  font-size: 1.5rem;
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
}
.an-article-card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.an-article-card-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--an-color-primary);
  margin-bottom: .6rem;
}
.an-article-card-title {
  font-family: var(--an-font-headings);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 .6rem;
}
.an-article-card-title a { color: var(--an-color-accent); }
.an-article-card-title a:hover { color: var(--an-color-primary); }
.an-article-card-excerpt {
  font-size: .92rem;
  color: var(--an-color-text-soft);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.an-article-card-meta {
  margin-top: auto;
  font-size: .82rem;
  color: var(--an-color-text-soft);
  display: flex; gap: .8rem;
}

/* ---------------------------- TOOL ON HOME ------------------------------ */
.an-home-tool {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--an-color-surface) 0%, #ffffff 100%);
  border-top: 1px solid var(--an-color-line);
}
.an-home-tool-intro {
  max-width: 720px;
  text-align: center;
  margin: 0 auto 2rem;
}
.an-home-tool-intro h2 { color: var(--an-color-accent); }
.an-home-tool-intro p { color: var(--an-color-text-soft); font-size: 1.05rem; }
.an-home-tool-embed { max-width: 760px; margin: 0 auto; background: #fff; padding: 2rem 1.5rem; border-radius: var(--an-radius-lg); box-shadow: var(--an-shadow); }

/* ---------------------------- CATEGORY PAGE (intro-faq) ----------------- */
.an-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--an-color-accent);
}
.an-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .8;
}
.an-cat-hero .an-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.75) 100%);
}
.an-cat-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.an-cat-intro {
  background: #fff;
  padding: 3rem 0;
}
.an-cat-intro .an-container { max-width: 900px; }
.an-cat-intro p { font-size: 1.05rem; line-height: 1.7; }
.an-cat-faq {
  background: var(--an-color-surface);
  padding: 3rem 0;
  border-top: 1px solid var(--an-color-line);
  border-bottom: 1px solid var(--an-color-line);
}
.an-cat-faq .an-container { max-width: 900px; }
.an-cat-faq h2 { text-align: left; margin-bottom: 2rem; }
.an-cat-faq details {
  background: #fff;
  border: 1px solid var(--an-color-line);
  border-radius: var(--an-radius);
  padding: 1rem 1.25rem;
  margin-bottom: .85rem;
}
.an-cat-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--an-color-accent);
  font-family: var(--an-font-body);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.an-cat-faq summary::-webkit-details-marker { display: none; }
.an-cat-faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.5rem; line-height: 1;
  color: var(--an-color-primary);
}
.an-cat-faq details[open] summary::after { content: "−"; }
.an-cat-faq details p { margin: .75rem 0 0; color: var(--an-color-text-soft); line-height: 1.6; }

/* ---------------------------- FOOTER ----------------------------------- */
.an-footer {
  background: #0a1426;
  color: #d6e0f0;
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}
.an-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.an-footer-col h3, .an-footer-title {
  font-family: var(--an-font-headings);
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: .03em;
}
.an-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  max-width: 120px;
}
.an-footer-brand-pitch {
  color: #b8c3d6;
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.an-footer-brand-cta {
  display: inline-block;
  color: #fff !important;
  text-decoration: underline;
  font-weight: 600;
  font-size: .95rem;
}
.an-footer-brand-cta:hover { color: var(--an-color-primary) !important; }
.an-footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .5rem;
}
.an-footer-links a {
  color: #d6e0f0;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.an-footer-links a:hover { color: #fff; text-decoration: underline; }
.an-footer-social {
  display: flex; gap: .75rem; margin-top: .75rem;
}
.an-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #d6e0f0;
  transition: background .2s, border-color .2s;
}
.an-footer-social a:hover { background: var(--an-color-primary); border-color: var(--an-color-primary); color: #fff; }
.an-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .85rem; color: #a3b0c5;
}
.an-footer-bottom a { color: #d6e0f0; text-decoration: underline; }
.an-footer-bottom a:hover { color: #fff; }

/* ---------------------------- TOOL PAGES (page-templates) --------------- */
.an-tool-page-hero {
  background: linear-gradient(135deg, var(--an-color-accent) 0%, #0a1f3e 100%);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.an-tool-page-hero h1 { color: #fff; margin-bottom: .75rem; }
.an-tool-page-hero p { color: rgba(255,255,255,0.85); max-width: 720px; }
.an-tool-page-body { padding: 3rem 0; }
.an-tool-page-body .an-container { max-width: 900px; }
.an-tool-embed { background: #fff; padding: 2rem; border-radius: var(--an-radius-lg); box-shadow: var(--an-shadow); margin-bottom: 3rem; }
.an-tool-faq h2 { font-size: 1.5rem; }
.an-tool-faq details {
  background: #fff;
  border: 1px solid var(--an-color-line);
  border-radius: var(--an-radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.an-tool-faq summary { cursor: pointer; font-weight: 600; color: var(--an-color-accent); }

/* ---------------------------- PERSONA / ABOUT --------------------------- */
.ef2-persona-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  border-radius: var(--an-radius-lg);
  box-shadow: var(--an-shadow);
  margin: 0 auto 2rem;
}
.an-about-page { padding: 3rem 0; }
.an-about-page .an-container { max-width: 820px; }

/* ---------------------------- CONTACT FORM ------------------------------ */
.ef2-contact-form {
  background: #fff;
  border: 1px solid var(--an-color-line);
  border-radius: var(--an-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--an-shadow);
}

/* ---------------------------- ANIMATIONS (CTA / CTR / CTO) -------------- */
@keyframes an-call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(206, 6, 9, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(206, 6, 9, 0); }
  100% { box-shadow: 0 0 0 0 rgba(206, 6, 9, 0); }
}
@keyframes an-call-tilt {
  0%, 100% { transform: rotate(0); }
  8% { transform: rotate(-10deg); } 16% { transform: rotate(10deg); }
  24% { transform: rotate(-6deg); } 32% { transform: rotate(0); }
}
.an-btn--cta, .ef2-btn--cta { animation: an-call-pulse 2.2s ease-out infinite; }
.an-btn--cta .an-btn-icon, .ef2-btn--cta .ef2-btn-icon {
  display: inline-block; transform-origin: center;
  animation: an-call-tilt 3.4s ease-in-out infinite;
}

@keyframes an-stats-count { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.an-stats { padding: 3rem 0; background: var(--an-color-surface); }
.an-stats-grid, .ef2-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem; margin: 2rem 0;
}
.an-stats-cell, .ef2-stats-cell {
  background: #fff;
  border: 1px solid var(--an-color-line);
  border-left: 4px solid var(--an-color-primary);
  border-radius: 10px;
  padding: 1.4rem 1.25rem;
  opacity: 0; transform: translateY(8px);
  transition: transform .5s, opacity .5s;
}
.an-stats-cell.is-visible, .ef2-stats-cell.is-visible { animation: an-stats-count .65s ease-out forwards; }
.an-stats-cell:nth-child(2).is-visible { animation-delay: .12s; }
.an-stats-cell:nth-child(3).is-visible { animation-delay: .24s; }
.an-stats-cell:nth-child(4).is-visible { animation-delay: .36s; }
.an-stats-num, .ef2-stats-num {
  font-family: var(--an-font-headings);
  font-size: 2.2rem;
  color: var(--an-color-primary);
  line-height: 1; margin: 0 0 .35rem;
}
.an-stats-label, .ef2-stats-label { font-size: .92rem; color: var(--an-color-text-soft); margin: 0; }

@keyframes an-chat-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes an-chat-bubble { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
.an-chat-widget, .ef2-chat-widget {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: .55rem;
  pointer-events: none;
}
.an-chat-bubble-tip, .ef2-chat-bubble-tip {
  background: #fff; color: var(--an-color-text);
  padding: .55rem .85rem; border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  font-size: .88rem; max-width: 220px;
  opacity: 0; animation: an-chat-bubble .55s .8s ease-out forwards;
}
.an-chat-fab, .ef2-chat-fab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--an-color-accent); color: #fff;
  box-shadow: 0 8px 22px rgba(14,49,94,0.35);
  animation: an-chat-bounce 2.6s ease-in-out infinite;
  cursor: pointer; pointer-events: auto; border: 0;
}

/* ---------------------------- SINGLE / DEFAULT PAGES -------------------- */
.an-single { padding: 3rem 0; }
.an-single .an-container { max-width: 760px; }
.an-single h1 { color: var(--an-color-accent); margin-bottom: 1rem; }
.an-single .entry-content { font-size: 1.05rem; line-height: 1.75; }
.an-single .entry-content h2 { margin: 2rem 0 .75rem; }
.an-single .entry-content h3 { margin: 1.5rem 0 .5rem; }
.an-single .entry-content img { border-radius: var(--an-radius); margin: 1.5rem 0; }

/* ---------------------------- RESPONSIVE ------------------------------- */
@media (max-width: 767px) {
  .an-hero { min-height: 420px; }
  .an-hero-inner { padding: 3.5rem var(--an-gutter); }
  .an-hero-cta .an-btn { min-width: 0; width: 100%; }
  .an-footer-cols { gap: 2rem; }
  .an-categories, .an-latest, .an-home-tool, .an-editorial-intro { padding: 2.5rem 0; }
  .an-section-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .an-brand-name { font-size: 1.1rem; }
  .an-hero-eyebrow { font-size: .75rem; padding: .3rem .6rem; }
}

/* End of style.css */


/* === 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*="ef2-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
   (.ef2-, .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(--ef2-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(--ef2-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : round (50%) */
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: 50% !important;
}
