/* =========================================================================
   NOTICIAS DE SALAMANCA - style.css custom
   Design System: Dark Mode Pro (DB) + paleta competitor La Gaceta (rojo press)
   Fonts: Space Grotesk (titres) + Inter (corps)
   ========================================================================= */

:root {
  --f0e-primary:    #202020;
  --f0e-accent:     #d23919;
  --f0e-accent-dk:  #a52c12;
  --f0e-text:       #202020;
  --f0e-text-soft:  #4d4d4d;
  --f0e-text-mute:  #767676;
  --f0e-bg:         #ffffff;
  --f0e-surface:    #f4f4f4;
  --f0e-surface-2:  #fdf5f3;
  --f0e-line:       #e9e9e9;
  --f0e-line-2:     #d2d2d2;

  --f0e-font-headings: 'Space Grotesk', system-ui, sans-serif;
  --f0e-font-body:     'Inter', system-ui, sans-serif;

  --f0e-radius:     6px;
  --f0e-radius-sm:  3px;
  --f0e-shadow-sm:  0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --f0e-shadow-md:  0 4px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --f0e-shadow-lg:  0 10px 28px rgba(0,0,0,.10);

  --f0e-max-w:      1280px;
  --f0e-gap:        1.5rem;
  --f0e-header-h:   78px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.f0e-body {
  margin: 0;
  font-family: var(--f0e-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--f0e-text);
  background: var(--f0e-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--f0e-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--f0e-accent-dk); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f0e-font-headings);
  font-weight: 700;
  color: var(--f0e-primary);
  margin: 0 0 .8em;
  line-height: 1.18;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p  { margin: 0 0 1.1em; }

main, .f0e-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.f0e-container {
  max-width: var(--f0e-max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header (logo-left-menu-center-cta-right) ---------- */
.f0e-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--f0e-bg);
  border-bottom: 1px solid var(--f0e-line);
  box-shadow: var(--f0e-shadow-sm);
}
.f0e-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  height: var(--f0e-header-h);
  max-width: var(--f0e-max-w);
  margin: 0 auto;
}
.f0e-brand-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.f0e-brand-logo {
  display: block;
  width: auto;
}
.f0e-brand-name {
  font-family: var(--f0e-font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--f0e-primary);
  letter-spacing: -.01em;
  line-height: 1;
}
.f0e-brand-tagline {
  display: none;
  font-size: .75rem;
  color: var(--f0e-text-soft);
}
@media (min-width: 1100px) {
  .f0e-brand-tagline { display: block; }
}

.f0e-nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin: 0 1.25rem;
}
.f0e-nav-list, .f0e-nav-desktop-list {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.f0e-nav-list a, .f0e-nav-desktop-list a {
  color: var(--f0e-primary);
  font-family: var(--f0e-font-body);
  font-weight: 500;
  font-size: .93rem;
  padding: .35rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
  text-decoration: none;
  display: inline-block;
}
.f0e-nav-list a:hover, .f0e-nav-desktop-list a:hover,
.f0e-nav-list .current-menu-item > a, .f0e-nav-desktop-list .current-cat > a {
  color: var(--f0e-accent);
  border-bottom-color: var(--f0e-accent);
}

.f0e-btn {
  display: inline-block;
  font-family: var(--f0e-font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--f0e-radius);
  padding: .65rem 1.2rem;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.f0e-btn--cta {
  background: var(--f0e-accent);
  color: #fff !important;
  border-color: var(--f0e-accent);
}
.f0e-btn--cta:hover {
  background: var(--f0e-accent-dk);
  border-color: var(--f0e-accent-dk);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(210,57,25,.22);
  transform: translateY(-1px);
}
.f0e-btn--ghost {
  background: transparent;
  color: var(--f0e-primary);
  border-color: var(--f0e-line-2);
}
.f0e-btn--ghost:hover {
  border-color: var(--f0e-primary);
  color: var(--f0e-primary);
  text-decoration: none;
}
.f0e-header-cta-desktop { display: none; flex-shrink: 0; }

.f0e-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--f0e-line-2);
  border-radius: var(--f0e-radius);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: var(--f0e-primary);
}
.f0e-burger:hover { background: var(--f0e-surface); }
.f0e-burger svg { width: 22px; height: 22px; }

/* Desktop: nav horizontal visible, burger cache */
@media (min-width: 1024px) {
  .f0e-nav-desktop { display: flex; }
  .f0e-burger { display: none !important; }
  .f0e-header-cta-desktop { display: inline-block; }
}

/* ---------- Drawer mobile ---------- */
.f0e-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 998;
}
.f0e-drawer-overlay.is-open { display: block; }

.f0e-nav-mobile { display: none; }
@media (max-width: 1023px) {
  .f0e-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 88%;
    max-width: 360px;
    background: #ffffff;
    padding: 4.5rem 0 2rem;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,.30);
  }
}
.f0e-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--f0e-line);
  border-radius: var(--f0e-radius);
  color: var(--f0e-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.f0e-nav-mobile-close:hover { background: var(--f0e-surface); }
.f0e-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.f0e-nav-mobile-list li {
  border-bottom: 1px solid var(--f0e-line);
}
.f0e-nav-mobile-list a {
  display: block;
  padding: 1rem 1.5rem;
  color: #0a0a0a;
  font-family: var(--f0e-font-headings);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.f0e-nav-mobile-list a:hover { background: var(--f0e-surface); color: var(--f0e-accent); }
.f0e-drawer-cta {
  display: block !important;
  margin: 1.5rem 1.5rem .75rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--f0e-accent) !important;
  color: #fff !important;
  border-radius: var(--f0e-radius) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
}
@media (min-width: 1024px) {
  .f0e-drawer-cta { display: none !important; }
}

/* ---------- Hero split-50-50 ---------- */
.f0e-hero {
  position: relative;
  background: var(--f0e-bg);
  border-bottom: 1px solid var(--f0e-line);
  overflow: hidden;
}
.f0e-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--f0e-max-w);
  margin: 0 auto;
}
@media (min-width: 900px) {
  .f0e-hero-inner { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.f0e-hero-text {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--f0e-bg);
}
@media (min-width: 900px) { .f0e-hero-text { padding: 4.5rem 3rem; } }
.f0e-hero-eyebrow {
  display: inline-block;
  font-family: var(--f0e-font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f0e-accent);
  margin-bottom: 1rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--f0e-accent);
  align-self: flex-start;
}
.f0e-hero-title {
  font-family: var(--f0e-font-headings);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1.1rem;
  color: var(--f0e-primary);
  letter-spacing: -.015em;
}
.f0e-hero-subtitle {
  font-size: 1.1rem;
  color: var(--f0e-text-soft);
  margin: 0 0 1.75rem;
  line-height: 1.55;
  max-width: 56ch;
}
.f0e-hero-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.f0e-hero-media {
  position: relative;
  min-height: 320px;
  background: var(--f0e-surface);
  overflow: hidden;
}
.f0e-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
@media (min-width: 900px) { .f0e-hero-bg { min-height: 100%; } }

/* ---------- Editorial block (SEO 400-700 words) ---------- */
.f0e-editorial {
  padding: 4rem 0 3rem;
  background: var(--f0e-bg);
}
.f0e-editorial-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.f0e-editorial h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 1rem;
}
.f0e-editorial h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .25em;
  bottom: .25em;
  width: 4px;
  background: var(--f0e-accent);
}
.f0e-editorial h3 {
  font-size: 1.2rem;
  color: var(--f0e-primary);
  margin: 1.5rem 0 .75rem;
}
.f0e-editorial p {
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--f0e-text);
}
.f0e-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .f0e-editorial-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.f0e-editorial-card {
  padding: 1.5rem;
  background: var(--f0e-surface);
  border-left: 3px solid var(--f0e-accent);
  border-radius: 0 var(--f0e-radius) var(--f0e-radius) 0;
}
.f0e-editorial-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.f0e-editorial-card p { margin-bottom: 0; font-size: .98rem; }
.f0e-editorial-callout {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--f0e-primary);
  color: #f5f5f5;
  border-radius: var(--f0e-radius);
}
.f0e-editorial-callout h3 {
  color: #ffffff;
  margin-top: 0;
}
.f0e-editorial-callout p {
  color: #f5f5f5;
  margin-bottom: 0;
}
.f0e-editorial-callout a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--f0e-accent);
  text-underline-offset: 3px;
}

/* ---------- Section titles ---------- */
.f0e-section { padding: 4rem 0; }
.f0e-section--alt { background: var(--f0e-surface); }
.f0e-section-head {
  max-width: var(--f0e-max-w);
  margin: 0 auto 2.25rem;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.f0e-section-eyebrow {
  font-family: var(--f0e-font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f0e-accent);
}
.f0e-section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--f0e-primary);
}
.f0e-section-lead {
  margin: .35rem 0 0;
  color: var(--f0e-text-soft);
  max-width: 70ch;
  font-size: 1rem;
}

/* ---------- Categories grid ---------- */
.f0e-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: var(--f0e-max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 700px) { .f0e-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .f0e-cats-grid { grid-template-columns: repeat(5, 1fr); } }
.f0e-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--f0e-bg);
  border: 1px solid var(--f0e-line);
  border-radius: var(--f0e-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--f0e-primary);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 170px;
}
.f0e-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--f0e-accent);
  box-shadow: var(--f0e-shadow-md);
  text-decoration: none;
  color: var(--f0e-primary);
}
.f0e-cat-card-img {
  display: block;
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: center;
  background-color: var(--f0e-primary);
}
.f0e-cat-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
  padding: .85rem 1rem 1rem;
}
.f0e-cat-card-name {
  font-family: var(--f0e-font-headings);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--f0e-primary);
  margin: 0;
}
.f0e-cat-card-count {
  font-size: .78rem;
  color: var(--f0e-text-mute);
  letter-spacing: .04em;
}

/* ---------- Article cards ---------- */
.f0e-articles-grid {
  display: grid;
  gap: 1.5rem;
  max-width: var(--f0e-max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .f0e-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .f0e-articles-grid { grid-template-columns: repeat(3, 1fr); } }
.f0e-articles-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .f0e-articles-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .f0e-articles-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .f0e-articles-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.f0e-article-card {
  display: flex;
  flex-direction: column;
  background: var(--f0e-bg);
  border: 1px solid var(--f0e-line);
  border-radius: var(--f0e-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.f0e-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--f0e-shadow-md);
}
.f0e-article-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--f0e-surface);
  overflow: hidden;
}
.f0e-article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.f0e-article-card-thumb--placeholder {
  background: linear-gradient(135deg, var(--f0e-surface) 0%, var(--f0e-line) 100%);
}
.f0e-article-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}
.f0e-article-card-meta {
  display: flex;
  gap: .75rem;
  font-size: .76rem;
  color: var(--f0e-text-mute);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.f0e-article-card-cat {
  color: var(--f0e-accent);
  font-weight: 600;
  text-decoration: none;
}
.f0e-article-card-cat:hover { text-decoration: underline; }
.f0e-article-card-title {
  margin: 0;
  font-family: var(--f0e-font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}
.f0e-article-card-title a {
  color: var(--f0e-primary);
  text-decoration: none;
}
.f0e-article-card-title a:hover {
  color: var(--f0e-accent);
  text-decoration: none;
}
.f0e-article-card-excerpt {
  font-size: .92rem;
  color: var(--f0e-text-soft);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Category empty placeholder ---------- */
.f0e-cat-empty {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--f0e-surface);
  border-radius: var(--f0e-radius);
}
.f0e-cat-empty p { color: var(--f0e-text-soft); margin: 0 0 .75rem; }

/* ---------- Cat page (sandwich layout) ---------- */
.f0e-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--f0e-primary);
}
.f0e-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .75;
}
.f0e-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75) 100%);
  padding: 0 1.25rem 1.75rem;
  max-width: var(--f0e-max-w);
  margin: 0 auto;
}
.f0e-cat-hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0;
}
.f0e-cat-intro {
  padding: 2.5rem 0 1.5rem;
}
.f0e-cat-intro-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.f0e-cat-intro p { font-size: 1.04rem; color: var(--f0e-text); line-height: 1.7; }

/* ---------- Footer (3 cols, tools[] vide) ---------- */
.f0e-footer {
  background: var(--f0e-primary);
  color: #e8e8e8;
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--f0e-accent);
  margin-top: 4rem;
}
.f0e-footer-inner {
  max-width: var(--f0e-max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 700px) { .f0e-footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .f0e-footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }
.f0e-footer-col h3.f0e-footer-title {
  font-family: var(--f0e-font-headings);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ffffff;
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--f0e-accent);
}
.f0e-footer-logo {
  display: block;
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.f0e-footer-brand-pitch {
  color: #d2d2d2;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.f0e-footer-brand-cta {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  font-size: .92rem;
  padding: .55rem 1rem;
  border: 1.5px solid var(--f0e-accent);
  border-radius: var(--f0e-radius);
  text-decoration: none;
  transition: background-color .2s ease;
}
.f0e-footer-brand-cta:hover {
  background: var(--f0e-accent);
  color: #ffffff;
  text-decoration: none;
}
.f0e-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.f0e-footer-links a {
  color: #e8e8e8;
  font-size: .94rem;
  text-decoration: none;
  transition: color .2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(232,232,232,.18);
  text-underline-offset: 3px;
}
.f0e-footer-links a:hover {
  color: var(--f0e-accent);
  text-decoration-color: var(--f0e-accent);
}
.f0e-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.f0e-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--f0e-radius);
  color: #ffffff;
  transition: background-color .2s ease, border-color .2s ease;
}
.f0e-footer-social a:hover {
  background: var(--f0e-accent);
  border-color: var(--f0e-accent);
}
.f0e-footer-social svg { width: 18px; height: 18px; }

.f0e-footer-bottom {
  max-width: var(--f0e-max-w);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: #a6a6a6;
}
.f0e-footer-bottom a {
  color: #d2d2d2;
  text-decoration: underline;
  text-decoration-color: rgba(210,210,210,.25);
}
.f0e-footer-bottom a:hover { color: var(--f0e-accent); }

/* ---------- Persona photo (a-propos) ---------- */
.f0e-persona-photo {
  display: block;
  max-width: 280px;
  width: 100%;
  border-radius: var(--f0e-radius);
  margin: 1.5rem auto;
  box-shadow: var(--f0e-shadow-md);
  border: 1px solid var(--f0e-line);
}

/* ---------- Contact form wrapper ---------- */
.f0e-contact-form {
  background: var(--f0e-surface);
  border-radius: var(--f0e-radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--f0e-line);
}

/* ---------- WP common ---------- */
.wp-block-image img { border-radius: var(--f0e-radius-sm); }
.entry-content > * { max-width: 100%; }

/* ---------- Animations (CTA / CTR / CTO) ---------- */
@keyframes f0e-border-draw {
  0%   { box-shadow: inset 0 0 0 0 rgba(210,57,25,0); border-color: rgba(210,57,25,.4); }
  50%  { box-shadow: inset 0 0 0 2px rgba(210,57,25,.5); border-color: #d23919; }
  100% { box-shadow: inset 0 0 0 1px rgba(210,57,25,.9); border-color: #d23919; }
}
.f0e-cta-anim:hover { animation: f0e-border-draw .5s ease forwards; }

@keyframes f0e-typing-cursor { 50% { opacity: 0; } }
@keyframes f0e-typing-reveal { from { width: 0; } to { width: 100%; } }
.f0e-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid currentColor;
  animation: f0e-typing-cursor 1s steps(1) infinite;
}
.f0e-typing--reveal {
  animation: f0e-typing-reveal 2.4s steps(40) .2s 1 normal both,
             f0e-typing-cursor 1s steps(1) infinite;
}

.f0e-trustpilot-embed {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  background: var(--f0e-surface);
  border: 1px solid var(--f0e-line);
  border-radius: var(--f0e-radius);
  font-size: .875rem;
  color: var(--f0e-text);
}
.f0e-trustpilot-embed .stars { color: #00b67a; letter-spacing: 1px; font-size: 1.1em; }
.f0e-trustpilot-embed .label { color: var(--f0e-text-soft); }
.f0e-trustpilot-embed strong { color: var(--f0e-primary); }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: var(--f0e-primary);
  color: #fff;
  padding: .5rem 1rem;
}

/* ---------- Media queries finales ---------- */
@media (max-width: 600px) {
  :root { --f0e-header-h: 64px; }
  .f0e-hero-text { padding: 2.5rem 1.25rem; }
  .f0e-section { padding: 2.75rem 0; }
  .f0e-editorial { padding: 2.5rem 0 1.5rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Custom site CSS */
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*="f0e-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(--f0e-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.
============================================================ */
.f0e-media-press {
  padding: 2.5rem 0;
  background: var(--f0e-bg-soft, var(--f0e-color-surface, #f9fafb));
  margin: 2rem 0;
}
.f0e-media-press > .f0e-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.f0e-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--f0e-color-text-soft, var(--f0e-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.f0e-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.f0e-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%);
}
.f0e-media-press-item:hover,
.f0e-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.f0e-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .f0e-media-press { padding: 1.8rem 0; }
  .f0e-media-press-grid { gap: 1.4rem; }
  .f0e-media-press-item { max-width: 110px; min-height: 36px; }
  .f0e-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) */
.f0e-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);
}
.f0e-media-press .f0e-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;
}
.f0e-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(--f0e-muted, #666);
  flex: 0 0 auto;
}
.f0e-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;
}
.f0e-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;
}
.f0e-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.f0e-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;
}
.f0e-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .f0e-media-press .f0e-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.f0e-cat-hero--align-left .f0e-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;
}
.f0e-cat-hero--align-center .f0e-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: 8px !important; padding: 8px !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; }
}

/* 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; }
