/*
Theme Name: Sport Insolite Magazine — Child of GeneratePress
Description: Sports Surf Vagues design — webzine des sports insolites (surf, ultra-trail, longe-cote, freediving, aventure). Fonts: Pacifico + Karla. Palette: cyan ocean #0099CC + amber sunset #F5C342.
Version: 1.0.0
*/

/* ==============================================================
   1) VARIABLES ROOT (Sports Surf Vagues palette from DB)
   ============================================================== */
:root{
  --a8f-primary:      #0099CC;
  --a8f-primary-dark: #007AA3;
  --a8f-primary-soft: #B3E0F0;
  --a8f-accent:       #F5C342;
  --a8f-accent-dark:  #D9A82F;
  --a8f-text:         #0A2A3F;
  --a8f-text-soft:    #5A6A80;
  --a8f-text-mute:    #8A96A8;
  --a8f-bg:           #FFF8E5;
  --a8f-surface:      #FFFFFF;
  --a8f-surface-alt:  #FFFCF0;
  --a8f-line:         #F0DC95;
  --a8f-line-soft:    #EDE4C6;
  --a8f-dark:         #072133;

  --a8f-font-h: 'Pacifico', cursive;
  --a8f-font-b: 'Karla', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --a8f-radius-sm: 6px;
  --a8f-radius:    12px;
  --a8f-radius-lg: 20px;
  --a8f-shadow-sm: 0 2px 6px rgba(10,42,63,.08);
  --a8f-shadow:    0 8px 24px rgba(10,42,63,.10);
  --a8f-shadow-lg: 0 20px 48px rgba(10,42,63,.18);

  --a8f-max: 1280px;
}

/* ==============================================================
   2) RESET & BASE
   ============================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, .a8f-body{
  margin: 0;
  font-family: var(--a8f-font-b);
  font-size: 17px;
  line-height: 1.65;
  color: var(--a8f-text);
  background: var(--a8f-bg);
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--a8f-primary); text-decoration: none; transition: color .18s ease; }
a:hover{ color: var(--a8f-primary-dark); }

/* Kill margins main / gap between header and first content */
main, .a8f-main{ padding-top: 0 !important; margin-top: 0 !important; }
.a8f-main{ min-height: 40vh; }

/* Container */
.a8f-container{
  width: 100%;
  max-width: var(--a8f-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==============================================================
   3) TYPOGRAPHY
   ============================================================== */
h1, h2, h3, .a8f-h{
  font-family: var(--a8f-font-h);
  color: var(--a8f-text);
  line-height: 1.15;
  margin: 0 0 .6rem;
  font-weight: 400;
  letter-spacing: 0;
}
h1{ font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4, h5, h6{
  font-family: var(--a8f-font-b);
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--a8f-text);
}
p{ margin: 0 0 1rem; }
strong{ color: var(--a8f-text); font-weight: 700; }

/* ==============================================================
   4) BUTTONS
   ============================================================== */
.a8f-btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--a8f-font-b);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.a8f-btn--cta{
  background: var(--a8f-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px -4px rgba(0,153,204,.55);
}
.a8f-btn--cta:hover{
  background: var(--a8f-primary-dark);
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 10px 24px -8px rgba(0,153,204,.6);
}
.a8f-btn--cta:active{ transform: scale(.98); }
.a8f-btn--ctr{
  background: var(--a8f-accent);
  color: var(--a8f-dark) !important;
  box-shadow: 0 4px 14px -4px rgba(245,195,66,.4);
}
.a8f-btn--ctr:hover{
  background: var(--a8f-accent-dark);
  color: var(--a8f-dark) !important;
}
.a8f-btn--ghost{
  background: transparent;
  color: var(--a8f-text);
  border-color: var(--a8f-line);
}
.a8f-btn--ghost:hover{
  background: var(--a8f-surface);
  border-color: var(--a8f-primary);
  color: var(--a8f-primary);
}

/* ==============================================================
   5) HEADER — logo-center-menu-split
   ============================================================== */
.a8f-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--a8f-surface);
  border-bottom: 1px solid var(--a8f-line-soft);
  box-shadow: 0 1px 0 rgba(10,42,63,.04);
}
.a8f-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.6rem 1.25rem;
  max-width: var(--a8f-max);
  margin: 0 auto;
}

/* Logo + brand */
.a8f-brand-link{
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--a8f-text);
  flex-shrink: 0;
}
.a8f-brand-logo{
  width: auto;
  max-height: 56px;
  display: block;
}
.a8f-brand-name{
  font-family: var(--a8f-font-h);
  font-size: 1.35rem;
  color: var(--a8f-primary);
  line-height: 1;
  /* Case style B — no text-transform */
  letter-spacing: 0;
}
.a8f-brand-tagline{
  display: none;
  font-size: .8rem;
  color: var(--a8f-text-soft);
}

/* Nav desktop split — hidden on mobile */
.a8f-nav-desktop{ display: none; }
.a8f-nav-left, .a8f-nav-right{ display: none; }

/* Header CTA (desktop only) */
.a8f-header-cta-desktop{
  display: none;
}

/* Burger mobile — visible <1024 */
.a8f-burger{
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--a8f-line);
  background: var(--a8f-surface);
  border-radius: 10px;
  cursor: pointer;
  color: var(--a8f-text);
  transition: background .2s, border-color .2s;
}
.a8f-burger:hover{ background: var(--a8f-bg); border-color: var(--a8f-primary); }
.a8f-burger:focus{ outline: 2px solid var(--a8f-primary); outline-offset: 2px; }
.a8f-burger svg{ width: 22px; height: 22px; display: block; }

/* ==============================================================
   6) MOBILE DRAWER — HIDDEN BY DEFAULT
   ============================================================== */
.a8f-nav-mobile{
  display: none;
}
.a8f-nav-mobile-overlay{
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,33,51,.55);
  z-index: 9998;
}
.a8f-nav-mobile-overlay.is-open{ display: block; }

.a8f-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: 1.25rem 1.25rem 1.5rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(10,42,63,.28);
}
.a8f-nav-mobile-header{
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--a8f-line-soft);
}
.a8f-nav-mobile-close{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--a8f-line);
  border-radius: 8px; cursor: pointer;
  color: #0a0a0a;
}
.a8f-nav-mobile-close:hover{ background: var(--a8f-bg); }
.a8f-nav-mobile-close svg{ width: 20px; height: 20px; }
.a8f-nav-mobile-list{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.a8f-nav-mobile-list li{
  border-bottom: 1px solid var(--a8f-line-soft);
}
.a8f-nav-mobile-list a{
  display: block;
  padding: .95rem 0;
  color: #0a0a0a;
  font-family: var(--a8f-font-b);
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  transition: color .18s, padding-left .18s;
}
.a8f-nav-mobile-list a:hover{
  color: var(--a8f-primary);
  padding-left: .35rem;
}
.a8f-drawer-cta{
  display: block;
  margin: 1.75rem 0 .5rem;
  padding: 1rem 1.25rem;
  text-align: center;
  background: var(--a8f-primary);
  color: #ffffff !important;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.02rem;
}
.a8f-drawer-cta:hover{ background: var(--a8f-primary-dark); color: #ffffff !important; }

/* ==============================================================
   7) HERO — latest-articles-slider (2 cols desktop)
   ============================================================== */
.a8f-hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 20% 10%, rgba(0,153,204,.18), transparent 60%),
    radial-gradient(50% 80% at 90% 90%, rgba(245,195,66,.22), transparent 60%),
    var(--a8f-bg);
  padding: 3rem 0 3.5rem;
  margin: 0 !important;
}
.a8f-hero-inner{
  max-width: var(--a8f-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.a8f-hero--has-latest .a8f-hero-main{ text-align: center; }
.a8f-hero-eyebrow{
  display: inline-block;
  font-family: var(--a8f-font-b);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--a8f-primary);
  background: rgba(0,153,204,.10);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.a8f-hero-title{
  font-family: var(--a8f-font-h);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  color: var(--a8f-text);
  margin: 0 0 1rem;
}
.a8f-hero-subtitle{
  font-family: var(--a8f-font-b);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: var(--a8f-text-soft);
  max-width: 55ch;
  margin: 0 auto 1.6rem;
}
.a8f-hero--has-latest .a8f-hero-subtitle{ margin: 0 0 1.6rem; }
.a8f-hero-cta-wrap{
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center;
}
.a8f-hero--has-latest .a8f-hero-cta-wrap{ justify-content: flex-start; }

/* Wave separator bottom of hero */
.a8f-hero::after{
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 40px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path fill='%23FFF8E5' d='M0,30 C240,60 480,0 720,20 C960,40 1200,10 1440,30 L1440,60 L0,60 Z'/></svg>") no-repeat bottom / cover;
  pointer-events: none;
}

/* ---- Aperçu articles hero (slider layout) ---- */
.a8f-hero-latest{
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem;
  scrollbar-color: var(--a8f-primary-soft) transparent;
}
.a8f-hero-latest::-webkit-scrollbar{ height: 6px; }
.a8f-hero-latest::-webkit-scrollbar-thumb{ background: var(--a8f-primary-soft); border-radius: 999px; }
.a8f-hero-latest-item{
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  min-width: 240px; max-width: 240px;
  scroll-snap-align: start; flex-shrink: 0;
  text-decoration: none; color: inherit;
  padding: .5rem;
  background: var(--a8f-surface);
  border: 1px solid var(--a8f-line-soft);
  border-radius: var(--a8f-radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.a8f-hero-latest-item:hover{
  transform: translateY(-3px);
  box-shadow: var(--a8f-shadow);
  color: inherit;
}
.a8f-hero-latest-thumb{
  display: block; width: 100%; height: 130px;
  overflow: hidden; border-radius: 8px;
}
.a8f-hero-latest-thumb img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.a8f-hero-latest-body{ display: block; padding: .1rem .2rem .35rem; }
.a8f-hero-latest-title{
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--a8f-font-b);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.32;
  color: var(--a8f-text);
  margin-bottom: .35rem;
}
.a8f-hero-latest-date{
  font-family: var(--a8f-font-b);
  font-size: .78rem;
  color: var(--a8f-text-soft);
}
/* Placeholder si 0 article publie */
.a8f-hero-latest-placeholder{
  padding: 1.5rem; background: var(--a8f-surface);
  border: 1px dashed var(--a8f-line);
  border-radius: var(--a8f-radius);
  text-align: center;
}
.a8f-hero-latest-placeholder-title{
  font-family: var(--a8f-font-b);
  font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem;
  color: var(--a8f-text);
}
.a8f-hero-latest-placeholder-desc{
  font-size: .95rem; margin: 0 0 1rem; line-height: 1.5;
  color: var(--a8f-text-soft);
}
.a8f-hero-latest-placeholder-links{
  display: flex; flex-direction: column; gap: .5rem;
}
.a8f-hero-latest-placeholder-link{
  padding: .55rem 1rem;
  background: var(--a8f-primary);
  color: #ffffff !important;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.a8f-hero-latest-placeholder-link:hover{ background: var(--a8f-primary-dark); color: #ffffff !important; }

/* ==============================================================
   8) HOME ABOUT — persona + bio + CTA (right after hero)
   ============================================================== */
.a8f-home-about{
  padding: 4rem 1.25rem;
  background: var(--a8f-surface-alt);
  margin: 0 !important;
}
.a8f-hero + .a8f-home-about{ margin-top: 0 !important; }
.a8f-home-about-inner{
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
.a8f-home-about-media img{
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(10,42,63,.15);
  border: 4px solid #fff;
}
.a8f-home-about-eyebrow{
  display: inline-block;
  font-family: var(--a8f-font-b);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--a8f-primary);
  margin-bottom: .75rem;
}
.a8f-home-about-title{
  font-family: var(--a8f-font-h);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: var(--a8f-text);
  margin: 0 0 .9rem;
}
.a8f-home-about-bio{
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(10,42,63,.82);
  margin: 0 0 1.3rem;
}
.a8f-home-about-cta{
  display: inline-block;
  font-family: var(--a8f-font-b);
  font-weight: 700;
  color: var(--a8f-primary);
  font-size: 1rem;
  border-bottom: 2px solid var(--a8f-primary);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s, padding-left .2s;
}
.a8f-home-about-cta:hover{
  color: var(--a8f-primary-dark); border-color: var(--a8f-primary-dark);
  padding-left: 4px;
}

/* ==============================================================
   9) HOME INTRO EDITORIAL (H2 + H3 + 3+ liens)
   ============================================================== */
.a8f-home-intro{
  padding: 4rem 1.25rem;
  background: var(--a8f-bg);
}
.a8f-home-intro-inner{
  max-width: 820px; margin: 0 auto; text-align: left;
}
.a8f-home-intro-title{
  font-family: var(--a8f-font-h);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--a8f-text);
  margin: 0 0 1.2rem;
  text-align: center;
}
.a8f-home-intro-lead{
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--a8f-text);
  margin: 0 0 1.8rem;
}
.a8f-home-intro-h3{
  font-family: var(--a8f-font-h);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: var(--a8f-primary);
  margin: 0 0 1rem;
  text-align: center;
}
.a8f-home-intro-body{
  font-size: 1rem;
  line-height: 1.7;
  color: var(--a8f-text);
  margin: 0;
}
.a8f-home-intro a{
  color: var(--a8f-primary);
  border-bottom: 1px dotted var(--a8f-primary);
  font-weight: 600;
}
.a8f-home-intro a:hover{ color: var(--a8f-primary-dark); border-color: var(--a8f-primary-dark); }

/* ==============================================================
   10) HOME — PER-CATEGORY BLOCKS (by-category mode)
   ============================================================== */
.a8f-home-categories{
  padding: 3rem 1.25rem;
  background: var(--a8f-bg);
}
.a8f-home-cat-block{
  max-width: var(--a8f-max);
  margin: 0 auto 3.5rem;
}
.a8f-home-cat-block:last-child{ margin-bottom: 0; }
.a8f-home-cat-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--a8f-line);
}
.a8f-home-cat-title{
  font-family: var(--a8f-font-h);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}
.a8f-home-cat-title a{ color: var(--a8f-text); }
.a8f-home-cat-title a:hover{ color: var(--a8f-primary); }
.a8f-home-cat-more{
  font-family: var(--a8f-font-b);
  font-size: .88rem;
  font-weight: 700;
  color: var(--a8f-primary);
  white-space: nowrap;
  padding-bottom: .2rem;
}
.a8f-home-cat-more:hover{ color: var(--a8f-primary-dark); }
.a8f-home-cat-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Article card */
.a8f-card{
  display: flex;
  flex-direction: column;
  background: var(--a8f-surface);
  border: 1px solid var(--a8f-line-soft);
  border-radius: var(--a8f-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
}
.a8f-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--a8f-shadow);
  border-color: var(--a8f-primary-soft);
  color: inherit;
}
.a8f-card-thumb{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--a8f-bg);
}
.a8f-card-thumb img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.a8f-card:hover .a8f-card-thumb img{ transform: scale(1.04); }
.a8f-card-body{
  padding: 1.2rem 1.2rem 1.4rem;
  display: flex; flex-direction: column; gap: .5rem;
  flex: 1;
}
.a8f-card-title{
  font-family: var(--a8f-font-b);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.32;
  color: var(--a8f-text);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.a8f-card-meta{
  font-family: var(--a8f-font-b);
  font-size: .8rem;
  color: var(--a8f-text-soft);
  display: flex; gap: .6rem; align-items: center;
}
.a8f-card-excerpt{
  font-size: .94rem;
  line-height: 1.55;
  color: var(--a8f-text-soft);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.a8f-card-more{
  margin-top: auto;
  font-family: var(--a8f-font-b);
  font-weight: 700;
  font-size: .88rem;
  color: var(--a8f-primary);
  padding-top: .5rem;
}
.a8f-card-empty{
  padding: 2rem;
  border: 1px dashed var(--a8f-line);
  border-radius: var(--a8f-radius);
  text-align: center;
  background: var(--a8f-surface);
  color: var(--a8f-text-soft);
}
.a8f-card-empty a{
  display: inline-block; margin-top: .75rem;
  color: var(--a8f-primary); font-weight: 700;
}

/* ==============================================================
   11) CATEGORY PAGE (tldr-detailed layout)
   ============================================================== */
.a8f-cat-hero{
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--a8f-primary);
}
.a8f-cat-hero-bg{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}
.a8f-cat-hero-overlay{
  position: relative; z-index: 2;
  height: 100%;
  max-width: var(--a8f-max); margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(7,33,51,.78) 100%);
}
.a8f-cat-hero-title{
  font-family: var(--a8f-font-h);
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.a8f-cat-intro{
  padding: 2.5rem 1.25rem 1rem;
}
.a8f-cat-intro-inner{
  max-width: 820px; margin: 0 auto;
}
.a8f-cat-intro-inner p{
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--a8f-text);
}
.a8f-cat-intro-inner p:first-child{ font-size: 1.12rem; }
.a8f-cat-articles{
  padding: 1rem 1.25rem 3rem;
}
.a8f-cat-articles-grid{
  max-width: var(--a8f-max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ==============================================================
   12) PAGE STANDARD (a-propos, contact)
   ============================================================== */
.a8f-page{
  padding: 2.5rem 1.25rem 3rem;
}
.a8f-page-inner{
  max-width: 780px; margin: 0 auto;
}
.a8f-page-title{
  font-family: var(--a8f-font-h);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--a8f-text);
  text-align: center;
  margin: 0 0 2rem;
}
.a8f-page-inner p{
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--a8f-text);
}
.a8f-page-inner h2{
  font-family: var(--a8f-font-h);
  color: var(--a8f-primary);
  margin: 2rem 0 1rem;
}
.a8f-page-inner h3{
  font-family: var(--a8f-font-b);
  font-weight: 700;
  color: var(--a8f-text);
  margin: 1.5rem 0 .75rem;
}
.a8f-persona-photo{
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem;
  box-shadow: var(--a8f-shadow);
  border: 4px solid #fff;
}

/* Contact form wrapper */
.a8f-contact-form{
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--a8f-surface);
  border-radius: var(--a8f-radius);
  box-shadow: var(--a8f-shadow-sm);
}

/* ==============================================================
   13) FOOTER — 4 colonnes wave surf style
   ============================================================== */
.a8f-footer{
  background: #ffffff;
  color: #1a1a1a;
  padding: 3.5rem 1.25rem 1.5rem;
  border-top: 3px solid var(--a8f-primary);
  position: relative;
  margin-top: 3rem;
}
.a8f-footer::before{
  content: "";
  position: absolute; top: -32px; left: 0; right: 0;
  height: 32px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path fill='%23ffffff' d='M0,30 C240,60 480,0 720,20 C960,40 1200,10 1440,30 L1440,60 L0,60 Z'/></svg>") no-repeat top / cover;
  pointer-events: none;
}
.a8f-footer-inner{
  max-width: var(--a8f-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.a8f-footer-col h3, .a8f-footer-col h4{
  font-family: var(--a8f-font-b);
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a1a;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--a8f-primary);
  display: inline-block;
}
.a8f-footer-brand .a8f-footer-logo{
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}
.a8f-footer-brand-name{
  font-family: var(--a8f-font-h);
  font-size: 1.4rem;
  color: var(--a8f-primary);
  margin: 0 0 .75rem;
}
.a8f-footer-brand-pitch{
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.a8f-footer-brand-cta{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #ffffff !important;
  background: var(--a8f-primary);
  padding: .65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.a8f-footer-brand-cta:hover{ background: var(--a8f-primary-dark); color: #ffffff !important; }
.a8f-footer-col ul{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.a8f-footer-col li a{
  color: #1a1a1a;
  font-size: .95rem;
  text-decoration: underline;
  text-decoration-color: rgba(0,153,204,.35);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.a8f-footer-col li a:hover{
  color: var(--a8f-primary);
  text-decoration-color: var(--a8f-primary);
}

/* Footer search block */
.a8f-footer-search{ margin-top: 1rem; }
.a8f-footer-search-form{
  display: flex; align-items: stretch;
  border: 1px solid var(--a8f-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  max-width: 320px;
}
.a8f-footer-search-field{
  flex: 1;
  border: 0;
  padding: .55rem 1rem;
  font-family: var(--a8f-font-b);
  font-size: .92rem;
  color: #1a1a1a;
  background: transparent;
  outline: none;
}
.a8f-footer-search-field::placeholder{ color: var(--a8f-text-mute); }
.a8f-footer-search-btn{
  border: 0;
  padding: 0 .95rem;
  background: var(--a8f-primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.a8f-footer-search-btn:hover{ background: var(--a8f-primary-dark); }

.a8f-footer-social{
  display: flex; gap: .75rem; margin-top: 1rem;
}
.a8f-footer-social a{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--a8f-bg);
  color: var(--a8f-text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.a8f-footer-social a:hover{ background: var(--a8f-primary); color: #fff; }
.a8f-footer-social svg{ width: 18px; height: 18px; }

.a8f-footer-bottom{
  max-width: var(--a8f-max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--a8f-line-soft);
  text-align: center;
  font-size: .88rem;
  color: #6b7280;
  font-family: var(--a8f-font-b);
}
.a8f-footer-bottom-tagline{
  display: block;
  margin-top: .3rem;
  font-family: var(--a8f-font-h);
  color: var(--a8f-primary);
  font-size: 1.05rem;
}

/* ==============================================================
   14) ANIMATIONS — CTA scale + CTR carousel
   ============================================================== */
@keyframes a8f-cta-pulse{
  0%{transform:scale(1)}
  50%{transform:scale(1.03)}
  100%{transform:scale(1)}
}
@keyframes a8f-ctr-slide{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}
.a8f-ctr-carousel{
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}
.a8f-ctr-carousel-track{
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: a8f-ctr-slide 32s linear infinite;
  will-change: transform;
}
.a8f-ctr-carousel:hover .a8f-ctr-carousel-track{ animation-play-state: paused; }

/* ==============================================================
   15) BREADCRUMBS
   ============================================================== */
.a8f-breadcrumb{
  padding: 1rem 1.25rem;
  font-family: var(--a8f-font-b);
  font-size: .85rem;
  color: var(--a8f-text-soft);
}
.a8f-breadcrumb-inner{ max-width: var(--a8f-max); margin: 0 auto; }
.a8f-breadcrumb a{ color: var(--a8f-primary); }
.a8f-breadcrumb-sep{ margin: 0 .5rem; color: var(--a8f-line); }

/* ==============================================================
   16) RESPONSIVE
   ============================================================== */

/* Tablet ≥768px */
@media (min-width: 768px){
  .a8f-home-cat-grid{ grid-template-columns: 1fr 1fr; }
  .a8f-cat-articles-grid{ grid-template-columns: 1fr 1fr; }
  .a8f-home-about-inner{
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    text-align: left;
  }
  .a8f-home-about-media img{ width: 220px; height: 220px; margin: 0; }
  .a8f-footer-inner{ grid-template-columns: 1.6fr 1fr 1fr; }
  .a8f-hero{ padding: 5rem 0 5.5rem; }
}

/* Desktop ≥1024px */
@media (min-width: 1024px){
  /* Hero split 2 cols with articles right */
  .a8f-hero--has-latest .a8f-hero-inner{
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
    text-align: left;
  }
  .a8f-hero--has-latest .a8f-hero-main{ text-align: left; }
  .a8f-home-cat-grid{ grid-template-columns: repeat(3, 1fr); }
  .a8f-cat-articles-grid{ grid-template-columns: repeat(3, 1fr); }
  .a8f-footer-inner{ grid-template-columns: 1.6fr 1fr 1fr 1fr; }

  /* Header logo-center-menu-split */
  .a8f-header-inner{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .a8f-nav-left, .a8f-nav-right{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
  }
  .a8f-nav-left li a, .a8f-nav-right li a{
    color: var(--a8f-text);
    font-family: var(--a8f-font-b);
    font-weight: 600;
    font-size: .96rem;
    text-decoration: none;
    padding: .4rem .2rem;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
  }
  .a8f-nav-left li a:hover, .a8f-nav-right li a:hover{
    color: var(--a8f-primary);
    border-bottom-color: var(--a8f-primary);
  }
  .a8f-brand-link{ margin: 0 .5rem; }
  .a8f-brand-tagline{ display: block; margin-top: 2px; }
  .a8f-brand-logo{ max-height: 60px; }

  /* Header CTA on right */
  .a8f-header-cta-desktop{
    display: inline-flex;
    margin-left: 1rem;
    padding: .55rem 1.1rem;
    font-size: .88rem;
  }

  /* Burger hidden on desktop */
  .a8f-burger{ display: none !important; }
  .a8f-drawer-cta{ display: none !important; }
}

/* Wide ≥1200px */
@media (min-width: 1200px){
  .a8f-nav-left, .a8f-nav-right{ gap: 1.8rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .a8f-ctr-carousel-track{ animation: none; }
}

/* Print */
@media print{
  .a8f-header, .a8f-footer, .a8f-nav-mobile, .a8f-hero-cta-wrap{ display: none !important; }
  .a8f-body{ background: #fff; color: #000; }
}


/* Site overrides */
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, body, body [class*="a8f-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 */
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;
}



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;
  }
}


@media (max-width: 1023px) {
  /* FIX width:auto -> ne plus l'imposer (laisse child theme définir width).
     Sinon écrase le child et le burger devient 0 de large -> invisible. */
  body [class*="burger"], body button[class*="burger"] {
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    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;
  }
}



body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}


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;
}


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(--a8f-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;
  }
}


/* Mobile : 1 SEUL CTA visible (dans le burger).
   Sur mobile le CTA original du header est masque ; sur desktop le clone est hidden. */
@media (max-width: 1023px) {
  body [class*="header-cta"] [class*="btn--cta"],
  body [class*="header__cta"] [class*="btn--cta"],
  body [class*="header-cta"] > [class*="cta"],
  body [class*="header__cta"] > a {
    display: none !important;
  }
}


/* ============================================================
   Section 'On parle de nous' (media press)
   Logos grayscale par defaut, couleur au hover.
   Grid responsive 2-6 colonnes, gap auto.
============================================================ */
.a8f-media-press {
  padding: 2.5rem 0;
  background: var(--a8f-bg-soft, var(--a8f-color-surface, #f9fafb));
  margin: 2rem 0;
}
.a8f-media-press > .a8f-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.a8f-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a8f-color-text-soft, var(--a8f-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.a8f-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.a8f-media-press-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 160px;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
  opacity: .65;
  filter: grayscale(100%);
}
.a8f-media-press-item:hover,
.a8f-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.a8f-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .a8f-media-press { padding: 1.8rem 0; }
  .a8f-media-press-grid { gap: 1.4rem; }
  .a8f-media-press-item { max-width: 110px; min-height: 36px; }
  .a8f-media-press-item img { max-height: 36px; }
}


/* FIX gap header->hero (parent theme override) + media-press compact centre */
body main, body.home main, body.archive main, body.single main,
body, body, body main[class*="-main"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* MEDIA PRESS : layout horizontal compact CENTRE (titre + logos cote a cote au centre) */
.a8f-media-press section[class*="media-press"] {
  padding: 24px 0 !important;
  margin: 0 !important;
  background: #fafafa;
  border-block: 1px solid rgba(0,0,0,0.06);
}
.a8f-media-press .a8f-container,
section[class*="media-press"] [class*="container"] {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  text-align: center;
}
.a8f-media-press-title,
section[class*="media-press"] [class*="title"] {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a8f-muted, #666);
  flex: 0 0 auto;
}
.a8f-media-press-grid,
section[class*="media-press"] [class*="grid"] {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: center;
}
.a8f-media-press-item,
section[class*="media-press"] [class*="item"] {
  display: inline-flex !important;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.a8f-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.a8f-media-press imgimg,
section[class*="media-press"] img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.a8f-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .a8f-media-press .a8f-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.a8f-cat-hero--align-left .a8f-cat-hero-inner
section[class*="cat-hero--align-left"] [class*="cat-hero-inner"] {
  text-align: left !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 24px;
}
.a8f-cat-hero--align-center .a8f-cat-hero-inner
section[class*="cat-hero--align-center"] [class*="cat-hero-inner"] {
  text-align: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}


@media (max-width: 1023.98px) {  [class*="-header-cta-wrap"],
  [class*="-header-actions"],
  [class*="-burger-wrap"],
  [class*="-header-right"],
  [class*="-header-actions-mobile"] {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
  }  [class*="-burger"] > span,
  [class*="-burger-bars"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 24px !important;
    min-height: 16px !important;
  }  [class*="-burger-bars"] > *,
  [class*="-burger"] > span > * {
    display: block !important;
    min-width: 24px !important;
    min-height: 2px !important;
  }  [class*="-header-cta-desktop"] {
    display: none !important;
  }  [class*="-burger-label"] {
    display: none !important;
  }
}
@media (min-width: 1024px) {  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: none !important;
  }
}


/* Burger style */
@media (max-width: 1023.98px) {
  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important; padding: 8px !important;
    background: rgba(0,0,0,0.10) !important; 
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 1px !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}


/* rp-contrast-autofix-2026-07-31 */
/* AUTO-FIX contraste WCAG AA (validator_contrast.py) */
/* FOOTER : fond blanc + texte sombre partout */
.a8f-footer { background: #ffffff !important; color: #1a1a1a !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
.a8f-footer a { color: #1a1a1a !important; }
.a8f-footer a:hover { color: var(--a8f-accent, #333) !important; }
.a8f-footer-col h3,
.a8f-footer-col h4 { color: #1a1a1a !important; border-bottom: 1px solid rgba(0,0,0,0.12) !important; }
.a8f-footer-brand-pitch,
.a8f-brand-tagline { color: #4b5563 !important; }
.a8f-footer-bottom,
.a8f-copyright { border-top: 1px solid rgba(0,0,0,0.08) !important; color: #6b7280 !important; }
.a8f-footer-brand-cta { background: var(--a8f-accent, #1a1a1a) !important; color: #ffffff !important; }
.a8f-footer-brand-cta:hover { background: var(--a8f-primary, #000) !important; color: #ffffff !important; }

/* BOUTONS CTA : texte blanc force (garde-fou contre texte=fond) */
.a8f-btn--cta,
a.a8f-btn--cta,
button.a8f-btn--cta { color: #ffffff !important; }
.a8f-btn--cta:hover { color: #ffffff !important; }
.a8f-btn--ctr { color: #ffffff !important; }
.a8f-btn--ctr:hover { color: #ffffff !important; }

/* BOUTONS FOOTER (CTA + search) : texte blanc force */
.a8f-footer-brand-cta,
.a8f-footer-brand-cta:visited { color: #ffffff !important; }
.a8f-footer-brand-cta:hover { color: #ffffff !important; }
.a8f-footer-search-btn { color: #ffffff !important; }
.a8f-footer-search-btn svg { color: #ffffff !important; stroke: #ffffff !important; }
.a8f-footer-search-btn:hover { color: #ffffff !important; }
.a8f-footer-search-field { color: #1a1a1a !important; background: #ffffff !important; }
.a8f-footer-search-field::placeholder { color: rgba(0,0,0,0.5) !important; }

/* DRAWER MOBILE : fond blanc + texte sombre */
.a8f-drawer,
.a8f-nav-mobile,
.a8f-mobile-menu { background: #ffffff !important; }
.a8f-drawer a,
.a8f-nav-mobile a,
.a8f-mobile-menu a { color: #0a0a0a !important; }

/* CARDS BODY : texte lisible sur fond clair */
.a8f-card-body h3,
.a8f-card-body p { color: inherit; }

/* ANTI-GAP About : verrouille les margins entre .home-about et TOUTES les sections voisines
   (l'ordre HOME_SECTIONS_ORDER V0-V5 place About à des positions différentes = besoin d'un
   verrou général pour éviter les trous visibles entre sections adjacentes) */
.a8f-home-about { margin: 0 !important; }
.a8f-hero { margin-bottom: 0 !important; }
.a8f-categories, .a8f-latest, .a8f-home-intro { margin-top: 0 !important; margin-bottom: 0 !important; }
.a8f-home-about + section { margin-top: 0 !important; }
section + .a8f-home-about { margin-top: 0 !important; }
.a8f-home-about + .a8f-footer, .a8f-home-about + footer { margin-top: 0 !important; }

/* 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. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { 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; }
