/* =====================================================================
 * LeBar Des Champs — custom child theme stylesheet
 * Design System: Floral Tournesols (Van Gogh sunflower aesthetic)
 * Competitor-inspired palette: warm amber #eba00c, dark #212529
 * Fonts: Yeseva One (headings) + Nunito (body)
 * Prefix: f81-*
 * ===================================================================== */

:root {
  --f81-primary: #eba00c;
  --f81-primary-dark: #b87b08;
  --f81-accent: #ff9a52;
  --f81-text: #212529;
  --f81-text-soft: #6c757d;
  --f81-bg: #fefefe;
  --f81-surface: #f8f9fa;
  --f81-line: #dee2e6;
  --f81-warm-cream: #FFFAE0;
  --f81-sunflower: #FFCB00;
  --f81-deep-brown: #5A4A1A;
  --f81-shadow-sm: 0 2px 6px rgba(90,74,26,0.08);
  --f81-shadow-md: 0 6px 22px rgba(90,74,26,0.10);
  --f81-shadow-lg: 0 18px 44px rgba(90,74,26,0.14);
  --f81-radius-sm: 6px;
  --f81-radius-md: 12px;
  --f81-radius-lg: 22px;
  --f81-radius-pill: 999px;
  --f81-font-heading: "Yeseva One", Georgia, serif;
  --f81-font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --f81-max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.f81-body {
  margin: 0;
  font-family: var(--f81-font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--f81-text);
  background: var(--f81-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f81-font-heading);
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--f81-deep-brown);
  margin: 0 0 .6em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
a { color: var(--f81-primary-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--f81-primary); }
img { max-width: 100%; height: auto; display: block; }

.f81-container { max-width: var(--f81-max-width); margin: 0 auto; padding: 0 1.25rem; }
.f81-main { padding-top: 0 !important; margin-top: 0 !important; }
main, .f81-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ======================== HEADER ======================== */
.f81-header {
  background: rgba(254,254,254,0.96);
  border-bottom: 1px solid var(--f81-line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.f81-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: .85rem 1.25rem;
  max-width: var(--f81-max-width);
  margin: 0 auto;
  position: relative;
}
.f81-nav-left, .f81-nav-right {
  display: flex; gap: 1.4rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.f81-nav-left a, .f81-nav-right a, .f81-nav-desktop-list a {
  font-family: var(--f81-font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--f81-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .25s, color .2s;
}
.f81-nav-left a:hover, .f81-nav-right a:hover, .f81-nav-desktop-list a:hover {
  color: var(--f81-primary-dark);
  border-bottom-color: var(--f81-primary);
}
.f81-brand-link { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.f81-brand-logo { display: block; max-width: 60px; width: auto; }
.f81-brand-name {
  font-family: var(--f81-font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--f81-deep-brown);
  line-height: 1;
}

/* desktop nav horizontal */
.f81-nav-desktop { display: none; }
.f81-nav-desktop-list {
  display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
@media (min-width: 1024px) {
  .f81-nav-desktop { display: flex; }
  .f81-burger { display: none !important; }
}

/* burger mobile */
.f81-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,0.92);
  border: 1.5px solid rgba(33,37,41,0.18);
  border-radius: 8px;
  color: var(--f81-deep-brown);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}
.f81-burger-bars {
  display: flex; flex-direction: column; gap: 4px;
  width: 24px; height: 16px;
}
.f81-burger-bars span {
  display: block; height: 2px; width: 100%;
  background: currentColor; border-radius: 2px;
}

@media (max-width: 1023px) {
  .f81-burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 8px !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1.5px solid rgba(33,37,41,0.18) !important;
    border-radius: 8px !important;
    color: var(--f81-deep-brown) !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }
  .f81-burger-bars, .f81-burger > span {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 24px !important;
    height: 16px !important;
  }
  .f81-header-actions, .f81-burger-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
}
@media (min-width: 1024px) {
  .f81-burger, .f81-burger-wrap { display: none !important; }
}

/* drawer mobile */
.f81-nav-mobile { display: none; }
@media (max-width: 1023px) {
  .f81-nav-mobile.is-open {
    display: block;                  /* block plutot que flex : evite les bugs
                                        de min-height auto qui bloquent le scroll
                                        interne quand la liste depasse */
    position: fixed; top: 0; right: 0;
    width: 86%; max-width: 380px;
    height: 100vh;                   /* fallback navigateurs anciens */
    height: 100dvh;                  /* hauteur viewport dynamique :
                                        exclut la barre d'URL iOS/Chrome mobile,
                                        donc les dernieres categories + le CTA
                                        ne sont plus caches derriere */
    max-height: 100vh;
    max-height: 100dvh;
    background: #ffffff;
    padding: 4.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;   /* scroll inertiel iOS */
    overscroll-behavior: contain;        /* le scroll ne fuit pas vers le body */
    box-shadow: -10px 0 30px rgba(33,37,41,0.3);
  }
  .f81-nav-mobile-list {
    list-style: none; margin: 0; padding: 0;
    display: block;
  }
  .f81-nav-mobile-list li {
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;                  /* securite : les items ne se compressent
                                        jamais a zero, meme si un parent passe
                                        en flex column */
  }
  .f81-nav-mobile-list a {
    display: block;
    padding: 1rem 0;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
  }
  .f81-drawer-close {
    position: fixed;                 /* fixed plutot que absolute : reste
                                        accessible meme apres scroll interne
                                        du drawer (le drawer touche le bord
                                        droit du viewport) */
    top: 0.75rem; right: 0.75rem;
    background: rgba(255,255,255,0.92);
    border: 0;
    width: 2.4rem; height: 2.4rem;
    border-radius: 50%;
    font-size: 1.6rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--f81-deep-brown);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 10001;
  }
  .f81-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
  }
  .f81-drawer-overlay.is-open { display: block; }

  /* FIX mobile : l'iframe YouTube tourne dans une couche compositing GPU
     qui peut s'afficher AU-DESSUS d'un position:fixed sur iOS Safari et
     certains Android. On masque entierement le hero (video + overlay)
     pendant que le drawer est ouvert, pour que le menu burger soit
     toujours integralement visible. */
  body.f81-drawer-open .f81-hero-video-wrap,
  body.f81-drawer-open .f81-hero-video,
  body.f81-drawer-open .f81-hero-video-overlay,
  body.f81-drawer-open .f81-hero-bg {
    visibility: hidden !important;
  }
  /* Force aussi le drawer et l'overlay dans leur propre contexte de
     composition (utile sur certains Android anciens). */
  .f81-nav-mobile.is-open,
  .f81-drawer-overlay.is-open {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
}

/* CTA drawer mobile */
.f81-drawer-cta {
  display: block;
  margin: 2rem 0 1.5rem;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--f81-primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
@media (min-width: 1024px) {
  .f81-drawer-cta { display: none !important; }
}

/* layout center menu split nav rules */
@media (min-width: 1024px) {
  .f81-header-inner {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    align-items: center;
  }
  .f81-nav-left, .f81-nav-right {
    flex: 0 1 auto;
    justify-content: center;
  }
  .f81-brand-link { order: 0; }
}

/* ======================== HERO (fade-reveal) ======================== */
.f81-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--f81-warm-cream);
}
.f81-hero-video-wrap { position: absolute; inset: 0; pointer-events: none; }
.f81-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;
}
.f81-hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.62) 100%);
}
.f81-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.f81-hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: rpFadeReveal 1.2s ease-out .15s forwards;
}
@keyframes rpFadeReveal {
  to { opacity: 1; transform: translateY(0); }
}
.f81-hero-title {
  font-family: var(--f81-font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.f81-hero-subtitle {
  font-family: var(--f81-font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  margin: 0 auto 2rem;
  max-width: 720px;
  line-height: 1.55;
}
.f81-hero--has-video .f81-hero-title,
.f81-hero--has-video .f81-hero-subtitle {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.f81-hero:not(.f81-hero--has-video) .f81-hero-title {
  color: var(--f81-deep-brown);
}
.f81-hero:not(.f81-hero--has-video) .f81-hero-subtitle {
  color: var(--f81-text);
}

/* ======================== BUTTONS ======================== */
.f81-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--f81-font-body);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--f81-radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.f81-btn--primary {
  background: var(--f81-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(235,160,12,0.30);
}
.f81-btn--primary:hover {
  background: var(--f81-primary-dark);
  transform: translateY(-2px);
  color: #fff;
}
.f81-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
}
.f81-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.f81-btn--cta {
  background: var(--f81-primary);
  color: #fff;
  position: relative;
  animation: rpMinimalUnderline 2.6s ease-in-out infinite;
}

/* CTA animation: minimal_underline_cta */
@keyframes rpMinimalUnderline {
  0%, 100% { box-shadow: 0 0 0 0 rgba(235,160,12,0); }
  50%      { box-shadow: 0 0 0 6px rgba(235,160,12,0.18); }
}
.f81-btn--cta::after {
  content: "";
  position: absolute; left: 18%; right: 18%; bottom: -6px;
  height: 2px;
  background: var(--f81-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.f81-btn--cta:hover::after { transform: scaleX(1); }

/* ======================== EDITORIAL BLOC ======================== */
.f81-editorial {
  background: var(--f81-warm-cream);
  padding: 5rem 1.5rem;
}
.f81-editorial-inner {
  max-width: 1000px; margin: 0 auto;
}
.f81-editorial h2 {
  text-align: center;
  margin-bottom: 1.6rem;
}
.f81-editorial .f81-editorial-intro {
  font-size: 1.18rem;
  line-height: 1.7;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.8rem;
  color: var(--f81-text);
}
.f81-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.f81-editorial-card {
  background: #fff;
  padding: 1.7rem 1.6rem;
  border-radius: var(--f81-radius-md);
  border-left: 4px solid var(--f81-primary);
  box-shadow: var(--f81-shadow-sm);
}
.f81-editorial-card h3 {
  color: var(--f81-deep-brown);
  font-size: 1.25rem;
  margin-bottom: .8rem;
}
.f81-editorial-card p {
  font-size: .98rem;
  line-height: 1.65;
  color: var(--f81-text);
  margin: 0;
}
.f81-editorial-card a { color: var(--f81-primary-dark); font-weight: 700; }
.f81-editorial-line {
  background: #fff;
  padding: 2rem 2.4rem;
  border-radius: var(--f81-radius-md);
  border-top: 4px solid var(--f81-sunflower);
}
.f81-editorial-line h3 {
  font-family: var(--f81-font-heading);
  margin-bottom: .8rem;
}
.f81-editorial-line p { margin: 0; color: var(--f81-text); }

/* ======================== CATEGORIES SECTION ======================== */
.f81-categories {
  padding: 5rem 1.5rem;
  background: var(--f81-bg);
}
.f81-section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.f81-section-eyebrow {
  display: inline-block;
  font-family: var(--f81-font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--f81-primary-dark);
  margin-bottom: .6rem;
  font-weight: 700;
}
.f81-section-head h2 { margin: 0; }
.f81-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  max-width: var(--f81-max-width);
  margin: 0 auto;
}
.f81-cat-card {
  display: block;
  position: relative;
  border-radius: var(--f81-radius-md);
  overflow: hidden;
  height: 280px;
  background: var(--f81-primary);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--f81-shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.f81-cat-card:hover { transform: translateY(-6px); box-shadow: var(--f81-shadow-lg); color: #fff; }
.f81-cat-card-img {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .6s;
}
.f81-cat-card:hover .f81-cat-card-img { transform: scale(1.06); }
.f81-cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(33,37,41,0.85) 100%);
}
.f81-cat-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.4rem;
  z-index: 2;
}
.f81-cat-card h3 {
  color: #fff;
  font-family: var(--f81-font-heading);
  margin: 0 0 .35rem;
  font-size: 1.45rem;
}
.f81-cat-card-count {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,0.85);
}

/* ======================== ARTICLE CARDS — LATEST ======================== */
.f81-latest {
  padding: 5rem 1.5rem;
  background: var(--f81-surface);
}
.f81-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--f81-max-width);
  margin: 0 auto;
}
@media (max-width: 900px) {
  .f81-articles-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}
@media (max-width: 600px) {
  .f81-articles-grid { grid-template-columns: 1fr; }
}
.f81-card {
  background: #fff;
  border-radius: var(--f81-radius-md);
  overflow: hidden;
  box-shadow: var(--f81-shadow-sm);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.f81-card:hover { transform: translateY(-4px); box-shadow: var(--f81-shadow-md); }
.f81-card-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--f81-warm-cream);
}
.f81-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s;
}
.f81-card:hover .f81-card-thumb img { transform: scale(1.05); }
.f81-card-body { padding: 1.4rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.f81-card-meta {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--f81-primary-dark);
  font-weight: 700;
  margin-bottom: .55rem;
}
.f81-card-title {
  font-family: var(--f81-font-heading);
  font-size: 1.22rem;
  color: var(--f81-deep-brown);
  margin: 0 0 .7rem;
  line-height: 1.25;
}
.f81-card-title a { color: inherit; }
.f81-card-title a:hover { color: var(--f81-primary-dark); }
.f81-card-excerpt {
  color: var(--f81-text);
  font-size: .98rem;
  flex: 1;
  margin: 0 0 .8rem;
}
.f81-card-readmore {
  font-weight: 700;
  color: var(--f81-primary-dark);
  font-size: .92rem;
}

/* ======================== TOOL ON HOME ======================== */
.f81-home-tool {
  padding: 5rem 1.5rem;
  background: var(--f81-warm-cream);
}
.f81-home-tool-inner {
  max-width: 920px; margin: 0 auto;
  text-align: center;
}
.f81-home-tool-intro {
  font-size: 1.05rem; line-height: 1.65;
  max-width: 700px; margin: 0 auto 2rem;
}
.f81-home-tool-embed {
  background: #fff;
  padding: 2.4rem 2rem;
  border-radius: var(--f81-radius-lg);
  box-shadow: var(--f81-shadow-md);
  text-align: left;
}

/* ======================== ABOUT TEASER ======================== */
.f81-about-teaser {
  padding: 5rem 1.5rem;
  background: var(--f81-bg);
}
.f81-about-teaser-inner {
  max-width: 980px; margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 720px) {
  .f81-about-teaser-inner { grid-template-columns: 1fr; text-align: center; }
}
.f81-about-teaser img.f81-persona-photo {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--f81-sunflower);
  box-shadow: var(--f81-shadow-md);
  margin: 0 auto;
}
.f81-about-teaser h2 { margin-bottom: .8rem; }

/* ======================== CATEGORY PAGE ======================== */
.f81-cat-hero {
  position: relative;
  height: 320px; max-height: 350px;
  overflow: hidden;
}
.f81-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.f81-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,0.78) 100%);
  padding: 1.5rem 1.5rem 2rem;
  max-width: var(--f81-max-width);
  margin: 0 auto;
}
.f81-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}
.f81-cat-intro {
  padding: 3rem 1.5rem 1rem;
  max-width: 880px; margin: 0 auto;
}
.f81-cat-intro p { font-size: 1.05rem; line-height: 1.7; }

/* ======================== TOOLS ======================== */
.f81-tool-page {
  padding: 4rem 1.5rem;
  background: var(--f81-bg);
}
.f81-tool-intro {
  max-width: 820px; margin: 0 auto 2.5rem;
  text-align: center;
}
.f81-tool-embed {
  max-width: 880px; margin: 0 auto;
  background: #fff;
  padding: 2.6rem 2rem;
  border-radius: var(--f81-radius-lg);
  box-shadow: var(--f81-shadow-md);
}

/* ======================== CONTACT ======================== */
.f81-contact-form {
  max-width: 880px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: var(--f81-radius-lg);
  overflow: hidden;
  box-shadow: var(--f81-shadow-md);
}

/* ======================== METRICS LINKS BLOCK ======================== */
.f81-metrics-block {
  padding: 3rem 1.5rem;
  background: var(--f81-surface);
}
.f81-metrics-list {
  max-width: var(--f81-max-width);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; list-style: none; padding: 0;
}
.f81-metrics-list a {
  display: inline-block;
  padding: .55rem 1.1rem;
  background: #fff;
  border: 1px solid var(--f81-line);
  border-radius: var(--f81-radius-pill);
  font-size: .9rem;
  color: var(--f81-text);
}
.f81-metrics-list a:hover {
  border-color: var(--f81-primary);
  color: var(--f81-primary-dark);
}

/* ======================== FOOTER ======================== */
/* Fond clair + tout le texte/liens/titres/copyright en NOIR pour lisibilite */
.f81-footer {
  background: #ffffff;
  color: #000000;
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid #e5e5e5;
}
.f81-footer-grid {
  max-width: var(--f81-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .f81-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .f81-footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
.f81-footer-col h3 {
  color: #000000;
  font-family: var(--f81-font-heading);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}
.f81-footer-col ul { list-style: none; padding: 0; margin: 0; }
.f81-footer-col li { margin-bottom: .55rem; }
.f81-footer-col a {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.35);
  text-underline-offset: 3px;
  font-size: .94rem;
}
.f81-footer-col a:hover {
  color: #000000;
  text-decoration-color: #000000;
}
.f81-footer-logo {
  display: block;
  width: 120px; height: auto;
  margin-bottom: 1rem;
}
.f81-footer-brand-pitch {
  color: #000000;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.f81-footer-brand-cta {
  display: inline-block;
  font-weight: 700;
  color: #000000 !important;
  text-decoration: none !important;
  border-bottom: 2px solid #000000;
  padding-bottom: 2px;
}
.f81-footer-brand-cta:hover {
  color: #000000 !important;
  border-bottom-color: #000000;
  opacity: .7;
}
.f81-footer-social {
  display: flex; gap: .9rem; margin-top: 1.2rem;
}
.f81-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  text-decoration: none;
  color: #000000;
}
.f81-footer-social a:hover { background: #000000; color: #ffffff; }
.f81-footer-bottom {
  max-width: var(--f81-max-width);
  margin: 3rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(0,0,0,0.18);
  text-align: center;
  color: #000000;
  font-size: .85rem;
}

/* ======================== PERSONA PHOTO IN ABOUT ======================== */
.f81-persona-photo {
  display: block;
  margin: 1.5rem auto 2rem;
  border-radius: var(--f81-radius-lg);
  box-shadow: var(--f81-shadow-md);
  max-width: 360px;
  width: 100%;
  height: auto;
}

/* ======================== ANIMATIONS — CTR comparison_toggle ======================== */
.f81-ctr-toggle {
  display: inline-flex;
  background: var(--f81-surface);
  border: 1px solid var(--f81-line);
  border-radius: var(--f81-radius-pill);
  padding: 4px;
}
.f81-ctr-toggle button {
  padding: .4rem 1rem;
  border: 0;
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--f81-radius-pill);
  cursor: pointer;
  color: var(--f81-text-soft);
  transition: background .25s, color .25s;
}
.f81-ctr-toggle button.is-active {
  background: var(--f81-primary);
  color: #fff;
}

/* ======================== ANIMATIONS — CTO social_proof_popup ======================== */
@keyframes rpSocialProofIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.f81-social-proof {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  background: #fff;
  border-radius: var(--f81-radius-md);
  box-shadow: var(--f81-shadow-lg);
  padding: .9rem 1.1rem;
  max-width: 320px;
  display: flex; gap: .8rem; align-items: center;
  z-index: 200;
  animation: rpSocialProofIn .5s ease-out;
  border-left: 4px solid var(--f81-primary);
}
.f81-social-proof-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--f81-primary);
  animation: rpDotPulse 1.6s ease-in-out infinite;
}
@keyframes rpDotPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.4); opacity: 1; }
}
.f81-social-proof-text { font-size: .87rem; color: var(--f81-text); }

/* ======================== MOUSE EFFECT — section_hover_background_shift ======================== */
@media (hover: hover) and (pointer: fine) {
  .f81-categories, .f81-latest, .f81-editorial, .f81-about-teaser, .f81-home-tool {
    transition: background .55s ease;
  }
  .f81-categories:hover {
    background: linear-gradient(135deg, var(--f81-bg) 0%, rgba(255,203,0,0.06) 100%);
  }
  .f81-latest:hover {
    background: linear-gradient(135deg, var(--f81-surface) 0%, rgba(235,160,12,0.06) 100%);
  }
  .f81-editorial:hover, .f81-home-tool:hover {
    background: linear-gradient(135deg, var(--f81-warm-cream) 0%, rgba(255,154,82,0.10) 100%);
  }
  .f81-about-teaser:hover {
    background: linear-gradient(135deg, var(--f81-bg) 0%, rgba(255,203,0,0.05) 100%);
  }
}

/* ======================== UTILITIES ======================== */
.f81-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--f81-primary-dark);
  margin-bottom: .5rem;
}
.f81-text-center { text-align: center; }
.f81-mt-large { margin-top: 3rem; }
.f81-mb-large { margin-bottom: 3rem; }
.f81-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ======================== RESPONSIVE TWEAKS ======================== */
@media (max-width: 1023px) {
  .f81-nav-left, .f81-nav-right { display: none; }
  .f81-header-inner { justify-content: space-between; }
  .f81-hero { min-height: 60vh; }
  .f81-hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .f81-editorial, .f81-categories, .f81-latest, .f81-home-tool, .f81-about-teaser {
    padding: 3.5rem 1rem;
  }
}
@media (max-width: 540px) {
  .f81-hero { min-height: 50vh; }
  .f81-cat-card { height: 220px; }
}


/* Mouse effect : section_hover_background_shift */
@media (hover: hover) and (pointer: fine) { .f81-categories, .f81-latest, .f81-editorial, .f81-about-teaser, .f81-home-tool { transition: background .55s ease; } .f81-categories:hover { background: linear-gradient(135deg, var(--f81-bg) 0%, rgba(255,203,0,0.06) 100%); } .f81-latest:hover { background: linear-gradient(135deg, var(--f81-surface) 0%, rgba(235,160,12,0.06) 100%); } .f81-editorial:hover, .f81-home-tool:hover { background: linear-gradient(135deg, var(--f81-warm-cream) 0%, rgba(255,154,82,0.10) 100%); } .f81-about-teaser:hover { background: linear-gradient(135deg, var(--f81-bg) 0%, rgba(255,203,0,0.05) 100%); } }
