/* ==========================================================================
   artois-moto.com — Custom theme (child of Blocksy)
   Design System: Auto Mechanics Garage (Black Ops One + Roboto)
   Palette: competitor motomag.com (green primary + slate text)
   Hero: latest-edition | Header: sticky-minimal | Category: tldr-detailed
   ========================================================================== */

:root {
  --fe8-primary:   #65bc7b;
  --fe8-primary-d: #4d9a61;
  --fe8-accent:    #e85c58;
  --fe8-text:      #212934;
  --fe8-text-soft: #5a5f68;
  --fe8-bg:        #ffffff;
  --fe8-surface:   #f9f9fb;
  --fe8-line:      #e6e6e6;
  --fe8-dark:      #161a20;
  --fe8-h-font:    "Black Ops One", "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --fe8-b-font:    "Roboto", "Helvetica Neue", Arial, sans-serif;
  --fe8-radius:    6px;
  --fe8-shadow-sm: 0 2px 8px rgba(33,41,52,0.06);
  --fe8-shadow-md: 0 6px 20px rgba(33,41,52,0.1);
  --fe8-container: 1240px;
}

/* ----- Reset / base ----- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fe8-body {
  margin: 0;
  font-family: var(--fe8-b-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fe8-text);
  background: var(--fe8-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fe8-text); text-decoration: none; }
a:hover { color: var(--fe8-primary-d); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fe8-h-font);
  color: var(--fe8-text);
  line-height: 1.15;
  margin: 0 0 .6rem;
  letter-spacing: .02em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

main, .fe8-main { padding-top: 0 !important; margin-top: 0 !important; }

.fe8-container { max-width: var(--fe8-container); margin: 0 auto; padding: 0 1.25rem; }

/* ==========================================================================
   HEADER — sticky-minimal (logo left, nav horizontal, no header CTA)
   ========================================================================== */
.fe8-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fe8-line);
  padding: .6rem 0;
}
.fe8-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: flex-start;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.fe8-brand-link {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--fe8-text);
  flex-shrink: 0;
}
.fe8-brand-logo { height: 42px; width: auto; }
.fe8-brand-name {
  font-family: var(--fe8-h-font);
  font-size: 1.1rem;
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--fe8-text);
  line-height: 1;
}

/* nav desktop — collée au logo, gap propre, jamais 1fr */
.fe8-nav-desktop { display: none; }
.fe8-nav-desktop-list {
  display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center;
}
.fe8-nav-desktop-list a {
  color: var(--fe8-text);
  font-family: var(--fe8-b-font);
  font-weight: 600;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.fe8-nav-desktop-list a:hover { border-bottom-color: var(--fe8-primary); color: var(--fe8-primary-d); }

@media (min-width: 1024px) {
  .fe8-nav-desktop { display: flex; }
  .fe8-burger { display: none !important; }
}

/* burger button mobile */
.fe8-burger {
  margin-left: auto;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fe8-text);
}
.fe8-burger svg { width: 22px; height: 22px; }

/* drawer mobile — hidden par défaut */
.fe8-nav { display: none; }
@media (max-width: 1023px) {
  .fe8-nav.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 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .fe8-nav.is-open ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
  }
  .fe8-nav.is-open li { border-bottom: 1px solid var(--fe8-line); }
  .fe8-nav.is-open a {
    display: block;
    padding: 1rem 0;
    color: #0a0a0a;
    font-family: var(--fe8-h-font);
    font-size: 1.05rem;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .fe8-nav.is-open a:hover { color: var(--fe8-primary-d); }
  .fe8-nav-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 38px; height: 38px;
    background: transparent; border: none; cursor: pointer;
    color: #0a0a0a;
    display: flex; align-items: center; justify-content: center;
  }
  .fe8-nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
  }
  .fe8-nav-overlay.is-open { display: block; }
}

/* ==========================================================================
   HERO — latest-edition (magazine eyebrow + big title + intro + meta)
   ========================================================================== */
.fe8-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  background: var(--fe8-dark);
  color: #ffffff;
}
.fe8-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.fe8-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
  color: #ffffff;
}
.fe8-hero-eyebrow {
  display: inline-block;
  font-family: var(--fe8-b-font);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fe8-primary);
  background: rgba(101,188,123,0.12);
  border: 1px solid rgba(101,188,123,0.4);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.fe8-hero-title {
  font-family: var(--fe8-h-font);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #ffffff;
  max-width: 920px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.fe8-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 720px;
  margin: 0 0 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.fe8-hero-meta {
  display: flex; gap: 1.5rem; align-items: center;
  font-size: .85rem;
  color: rgba(255,255,255,0.75);
}
.fe8-hero-meta strong { color: var(--fe8-primary); font-weight: 700; }

.fe8-hero-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--fe8-primary);
  color: #ffffff !important;
  font-family: var(--fe8-h-font);
  font-size: .95rem;
  letter-spacing: .06em;
  padding: 1rem 1.8rem;
  border-radius: var(--fe8-radius);
  margin-top: .5rem;
  transition: background .25s, transform .25s;
  text-decoration: none !important;
  border: 0;
  animation: fe8-pulse-button 2.4s ease-in-out infinite;
}
.fe8-hero-cta:hover { background: var(--fe8-primary-d); transform: translateY(-2px); }

/* Hero dark gradient applied ONLY when video is present (rule absolue) */
.fe8-hero--has-video .fe8-hero-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
}
.fe8-hero-video-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fe8-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;
}

/* ==========================================================================
   EDITORIAL block (400-700 words SEO) — placed after hero
   ========================================================================== */
.fe8-editorial {
  background: var(--fe8-bg);
  padding: 4rem 0;
  border-bottom: 1px solid var(--fe8-line);
}
.fe8-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.fe8-editorial-intro {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--fe8-text);
  margin-bottom: 2rem;
}
.fe8-editorial-intro p:first-of-type::first-letter {
  font-family: var(--fe8-h-font);
  font-size: 3.2rem;
  float: left;
  line-height: .9;
  margin: .2rem .6rem 0 0;
  color: var(--fe8-primary);
}
.fe8-editorial h2 {
  font-family: var(--fe8-h-font);
  color: var(--fe8-text);
  margin-top: 2.5rem;
  font-size: 1.6rem;
  letter-spacing: .02em;
  border-left: 4px solid var(--fe8-primary);
  padding-left: .8rem;
}
.fe8-editorial h3 {
  font-family: var(--fe8-h-font);
  color: var(--fe8-text);
  margin-top: 1.8rem;
  font-size: 1.2rem;
}
.fe8-editorial p { color: var(--fe8-text); margin-bottom: 1rem; }
.fe8-editorial a {
  color: var(--fe8-primary-d);
  border-bottom: 1px dotted var(--fe8-primary);
  font-weight: 500;
}
.fe8-editorial a:hover { color: var(--fe8-accent); }

.fe8-editorial-aside {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  background: var(--fe8-surface);
  border-left: 4px solid var(--fe8-accent);
  border-radius: 0 var(--fe8-radius) var(--fe8-radius) 0;
}
.fe8-editorial-aside h3 {
  margin-top: 0;
  color: var(--fe8-accent);
  border-left: 0;
  padding-left: 0;
}
.fe8-editorial-aside p { margin: 0; font-size: .98rem; }

/* ==========================================================================
   CATEGORIES (Rubriques)
   ========================================================================== */
.fe8-section-title {
  font-family: var(--fe8-h-font);
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: .4rem;
  letter-spacing: .04em;
}
.fe8-section-kicker {
  text-align: center;
  font-family: var(--fe8-b-font);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fe8-primary);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.fe8-categories {
  padding: 4rem 0;
  background: var(--fe8-surface);
}
.fe8-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.fe8-cat-card {
  position: relative;
  border-radius: var(--fe8-radius);
  overflow: hidden;
  background: var(--fe8-bg);
  box-shadow: var(--fe8-shadow-sm);
  transition: transform .35s, box-shadow .35s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.fe8-cat-card:hover { transform: translateY(-4px); box-shadow: var(--fe8-shadow-md); }
.fe8-cat-card-img {
  display: block;
  width: 100%; height: 160px;
  background-size: cover; background-position: center;
  background-color: var(--fe8-primary);
}
.fe8-cat-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe8-cat-card-body { padding: 1.1rem 1.25rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.fe8-cat-card-name {
  font-family: var(--fe8-h-font);
  font-size: 1.15rem;
  margin: 0 0 .35rem;
  color: var(--fe8-text);
  letter-spacing: .03em;
}
.fe8-cat-card-meta {
  font-family: var(--fe8-b-font);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fe8-primary);
  font-weight: 700;
}

/* ==========================================================================
   ARTICLE CARDS (latest grid)
   ========================================================================== */
.fe8-latest {
  padding: 4.5rem 0;
  background: var(--fe8-bg);
}
.fe8-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1100px) {
  .fe8-latest-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 840px) {
  .fe8-latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .fe8-latest-grid { grid-template-columns: 1fr; }
}

.fe8-card {
  background: var(--fe8-bg);
  border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.fe8-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fe8-shadow-md);
}
.fe8-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--fe8-surface);
}
.fe8-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.fe8-card:hover .fe8-card-thumb img { transform: scale(1.08); }

.fe8-card-body { padding: 1.2rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.fe8-card-cat {
  font-family: var(--fe8-b-font);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fe8-primary);
  font-weight: 700;
  margin-bottom: .55rem;
}
.fe8-card-title {
  font-family: var(--fe8-h-font);
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 .65rem;
  color: var(--fe8-text);
  letter-spacing: .02em;
}
.fe8-card-title a { color: inherit; }
.fe8-card-title a:hover { color: var(--fe8-primary-d); }
.fe8-card-excerpt { font-size: .92rem; color: var(--fe8-text-soft); margin: 0 0 .9rem; flex: 1; }
.fe8-card-meta { font-size: .78rem; color: var(--fe8-text-soft); }

/* ==========================================================================
   "by-category" mode blocks (variant — anti-empreinte)
   ========================================================================== */
.fe8-bycat-section { padding: 3rem 0; border-bottom: 1px solid var(--fe8-line); }
.fe8-bycat-section:nth-child(even) { background: var(--fe8-surface); }
.fe8-bycat-header {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: var(--fe8-container); margin: 0 auto 1.5rem; padding: 0 1.25rem;
}
.fe8-bycat-header h2 {
  font-family: var(--fe8-h-font);
  font-size: 1.7rem;
  margin: 0;
}
.fe8-bycat-header h2 a { color: var(--fe8-text); }
.fe8-bycat-header h2 a:hover { color: var(--fe8-primary-d); }
.fe8-bycat-header .fe8-bycat-more {
  font-size: .85rem; font-weight: 700; color: var(--fe8-primary-d);
  text-transform: uppercase; letter-spacing: .08em;
}

/* ==========================================================================
   TOOL ON HOME (embed if HOME_HAS_TOOL=yes)
   ========================================================================== */
.fe8-home-tool {
  padding: 4rem 0;
  background: var(--fe8-dark);
  color: #ffffff;
}
.fe8-home-tool .fe8-container { max-width: 900px; }
.fe8-home-tool h2 {
  color: #ffffff; text-align: center;
  font-family: var(--fe8-h-font);
  margin-bottom: 1rem;
}
.fe8-home-tool .fe8-home-tool-intro {
  text-align: center; max-width: 640px; margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.85);
}
.fe8-home-tool-wrap {
  background: var(--fe8-surface); color: var(--fe8-text);
  border-radius: var(--fe8-radius);
  padding: 2rem;
}

/* ==========================================================================
   CATEGORY PAGE — tldr-detailed
   ========================================================================== */
.fe8-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.fe8-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.fe8-cat-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.fe8-cat-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  font-family: var(--fe8-h-font);
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}
.fe8-cat-hero .fe8-breadcrumb { color: rgba(255,255,255,0.85); font-size: .85rem; margin-bottom: .5rem; }
.fe8-cat-hero .fe8-breadcrumb a { color: rgba(255,255,255,0.9); }

.fe8-cat-intro {
  padding: 3rem 0 1rem;
}
.fe8-cat-intro-inner {
  max-width: 820px; margin: 0 auto; padding: 0 1.25rem;
  font-size: 1.05rem; line-height: 1.7;
}
.fe8-cat-intro-inner a { color: var(--fe8-primary-d); border-bottom: 1px dotted var(--fe8-primary); }

.fe8-cat-tldr {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.5rem;
  background: var(--fe8-surface);
  border-left: 4px solid var(--fe8-primary);
  border-radius: 0 var(--fe8-radius) var(--fe8-radius) 0;
}
.fe8-cat-tldr-title {
  font-family: var(--fe8-h-font); font-size: 1rem; color: var(--fe8-primary-d);
  margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .1em;
}
.fe8-cat-tldr ul { margin: 0; padding-left: 1.2rem; }
.fe8-cat-tldr li { margin-bottom: .35rem; font-size: .96rem; }

.fe8-cat-posts { padding: 2rem 0 4rem; }
.fe8-cat-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOOL PAGE (interactive tool wrapper)
   ========================================================================== */
.fe8-tool-page {
  padding: 3rem 0 5rem;
}
.fe8-tool-page-inner { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.fe8-tool-page h1 { font-family: var(--fe8-h-font); }
.fe8-tool-page-intro { font-size: 1.05rem; line-height: 1.7; margin: 1rem 0 2rem; }
.fe8-tool-page-intro a { color: var(--fe8-primary-d); border-bottom: 1px dotted var(--fe8-primary); }

.fe8-tool-wrap {
  background: var(--fe8-surface);
  border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.fe8-tool-wrap input,
.fe8-tool-wrap select,
.fe8-tool-wrap button {
  font-family: var(--fe8-b-font);
  font-size: 1rem;
  padding: .65rem .85rem;
  border-radius: var(--fe8-radius);
  border: 1px solid var(--fe8-line);
}
.fe8-tool-wrap label { font-weight: 600; margin-bottom: .25rem; display: block; color: var(--fe8-text); }
.fe8-tool-wrap button {
  background: var(--fe8-primary); color: #ffffff; border: 0;
  cursor: pointer; padding: .85rem 1.5rem;
  font-family: var(--fe8-h-font); letter-spacing: .04em; font-size: .95rem;
  transition: background .25s;
}
.fe8-tool-wrap button:hover { background: var(--fe8-primary-d); }
.fe8-tool-wrap .fe8-tool-result {
  margin-top: 1.5rem; padding: 1.2rem; background: #ffffff;
  border-left: 4px solid var(--fe8-accent); border-radius: 0 var(--fe8-radius) var(--fe8-radius) 0;
}

.fe8-tool-faq h2 { font-family: var(--fe8-h-font); }
.fe8-tool-faq details {
  padding: 1rem 1.2rem;
  background: var(--fe8-surface);
  border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  margin-bottom: .65rem;
}
.fe8-tool-faq summary {
  cursor: pointer; font-weight: 700; color: var(--fe8-text);
}
.fe8-tool-faq details[open] summary { color: var(--fe8-primary-d); }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.fe8-contact-page { padding: 3rem 0 5rem; }
.fe8-contact-page-inner { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.fe8-contact-page h1 { font-family: var(--fe8-h-font); }
.fe8-contact-page-intro { font-size: 1.05rem; line-height: 1.7; margin: 1rem 0 2.5rem; }
.fe8-contact-page-intro a { color: var(--fe8-primary-d); border-bottom: 1px dotted var(--fe8-primary); }

.fe8-contact-form {
  background: var(--fe8-surface);
  border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  padding: 1.5rem;
}

/* ==========================================================================
   PERSONA photo (À propos)
   ========================================================================== */
.fe8-persona-photo {
  display: block;
  max-width: 320px;
  width: 100%;
  margin: 0 auto 2rem;
  border-radius: var(--fe8-radius);
  box-shadow: var(--fe8-shadow-md);
}

/* ==========================================================================
   FOOTER (mechanic_columns style — 4 cols + brand pitch)
   ========================================================================== */
.fe8-footer {
  background: var(--fe8-dark);
  color: #d6d8db;
  padding: 4rem 0 0;
  border-top: 4px solid var(--fe8-primary);
}
.fe8-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
@media (max-width: 980px) {
  .fe8-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .fe8-footer-grid { grid-template-columns: 1fr; }
}

.fe8-footer-col {}
.fe8-footer-logo { display: block; margin-bottom: 1rem; height: auto; }
.fe8-footer-brand-pitch {
  color: #d6d8db;
  font-size: .96rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
}
.fe8-footer-brand-cta {
  display: inline-block;
  color: var(--fe8-primary) !important;
  font-family: var(--fe8-h-font);
  font-size: .9rem;
  letter-spacing: .06em;
  padding: .5rem 0;
  border-bottom: 1px solid var(--fe8-primary);
  text-decoration: none !important;
}
.fe8-footer-brand-cta:hover { color: #ffffff !important; border-bottom-color: #ffffff; }

.fe8-footer-title {
  font-family: var(--fe8-h-font);
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fe8-footer-links { list-style: none; padding: 0; margin: 0; }
.fe8-footer-links li { margin-bottom: .55rem; }
.fe8-footer-links a {
  color: #d6d8db !important;
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: rgba(214,216,219,0.25);
  text-underline-offset: 3px;
}
.fe8-footer-links a:hover { color: var(--fe8-primary) !important; }

.fe8-footer-social { display: flex; gap: .75rem; flex-wrap: wrap; }
.fe8-footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: #d6d8db !important;
  transition: background .25s;
}
.fe8-footer-social a:hover { background: var(--fe8-primary); color: #ffffff !important; }
.fe8-footer-social svg { width: 18px; height: 18px; }

.fe8-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: .82rem;
  color: #9da1a8;
}
.fe8-footer-bottom strong { color: #ffffff; font-family: var(--fe8-h-font); letter-spacing: .04em; }

/* ==========================================================================
   METRICS LINKS BLOCK (rendered via functions.php)
   ========================================================================== */
.fe8-metrics {
  padding: 3rem 0;
  background: var(--fe8-surface);
  border-top: 1px solid var(--fe8-line);
  border-bottom: 1px solid var(--fe8-line);
}
.fe8-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--fe8-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.fe8-metrics-card {
  background: var(--fe8-bg);
  border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  padding: 1.25rem;
  text-align: center;
}
.fe8-metrics-num {
  font-family: var(--fe8-h-font);
  font-size: 2rem;
  color: var(--fe8-primary-d);
  display: block;
  margin-bottom: .35rem;
}
.fe8-metrics-label { font-size: .85rem; color: var(--fe8-text-soft); }

/* ==========================================================================
   ANIMATIONS — CTA pulse_button / CTR image_zoom_card / CTO lead_magnet_box
   ========================================================================== */
@keyframes fe8-pulse-button {
  0%, 100% { box-shadow: 0 0 0 0 rgba(101,188,123,0.55); }
  50% { box-shadow: 0 0 0 14px rgba(101,188,123,0); }
}
.fe8-btn--cta { animation: fe8-pulse-button 2.4s ease-in-out infinite; }

/* image_zoom_card — already applied above on .fe8-card:hover .fe8-card-thumb img */

@keyframes fe8-lead-magnet-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); box-shadow: 0 0 32px rgba(232,92,88,0.18); }
}
.fe8-lead-magnet { animation: fe8-lead-magnet-pulse 3s ease-in-out infinite; }

/* ==========================================================================
   FAQ Schema box (intro-faq layout)
   ========================================================================== */
.fe8-faq {
  max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem;
}
.fe8-faq h2 { font-family: var(--fe8-h-font); margin-bottom: 1.5rem; }
.fe8-faq details {
  padding: 1rem 1.2rem;
  background: var(--fe8-surface);
  border: 1px solid var(--fe8-line);
  border-radius: var(--fe8-radius);
  margin-bottom: .65rem;
}
.fe8-faq summary { cursor: pointer; font-weight: 700; color: var(--fe8-text); font-family: var(--fe8-h-font); }
.fe8-faq details[open] summary { color: var(--fe8-primary-d); }
.fe8-faq details p { margin-top: .8rem; color: var(--fe8-text-soft); }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.fe8-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .8rem 1.4rem;
  background: var(--fe8-primary);
  color: #ffffff !important;
  font-family: var(--fe8-h-font);
  font-size: .92rem;
  letter-spacing: .05em;
  border-radius: var(--fe8-radius);
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .25s, transform .25s;
}
.fe8-btn:hover { background: var(--fe8-primary-d); transform: translateY(-2px); }
.fe8-btn--ghost {
  background: transparent;
  color: var(--fe8-primary-d) !important;
  border: 1px solid var(--fe8-primary);
}
.fe8-btn--ghost:hover { background: var(--fe8-primary); color: #ffffff !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !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; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !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; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }

/* === [RP2G safety-net 2026-06-06] burger drawer force-visible === */
@media (max-width: 1023px) {
  .fe8-nav.is-open {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 86% !important; max-width: 380px !important;
    background: #fff !important;
    padding: 4.5rem 1.5rem 2rem !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important;
  }
  .fe8-nav.is-open ul,
  .fe8-nav.is-open .fe8-nav-mobile-list {
    display: block !important;
    visibility: visible !important;
    list-style: none !important;
    padding: 0 !important; margin: 0 !important;
    height: auto !important; max-height: none !important;
    overflow: visible !important;
  }
  .fe8-nav.is-open ul li,
  .fe8-nav.is-open .fe8-nav-mobile-list li {
    display: list-item !important;
    border-bottom: 1px solid #eee !important;
    height: auto !important; padding: 0 !important; margin: 0 !important;
    list-style: none !important;
  }
  .fe8-nav.is-open ul li a,
  .fe8-nav.is-open .fe8-nav-mobile-list li a {
    display: block !important;
    visibility: visible !important;
    padding: 1rem 0 !important;
    color: #0a0a0a !important;
    font-size: 1.05rem !important;
    text-decoration: none !important;
  }
  .fe8-nav-overlay.is-open { display: block !important; }
}

/* === [RP2G fix 2026-06-06] force fe8-nav drawer height 100vh === */
@media (max-width: 1023px) {
  .fe8-nav.is-open {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }
}

/* === [RP2G fix 2026-06-06] overlay drawer doit etre SEMI-TRANSPARENT NOIR pas blanc === */
.b95-drawer-overlay,
[class*="-overlay"][class*="drawer"],
[class*="drawer"][class*="-overlay"],
[id*="-overlay"][id*="drawer"],
[class*="-burger-overlay"],
[class*="-nav-overlay"] {
  background: rgba(0, 0, 0, 0.55) !important;
}
.b95-drawer-overlay.is-open,
[class*="-overlay"][class*="drawer"].is-open,
[class*="-nav-overlay"].is-open {
  background: rgba(0, 0, 0, 0.55) !important;
  z-index: 9998 !important;
}
/* drawer doit etre AU DESSUS de l'overlay */
.b95-nav-mobile.is-open, .fe8-nav.is-open,
[class*="-nav-mobile"].is-open, [class*="-drawer"]:not([class*="overlay"]).is-open {
  z-index: 10000 !important;
}
