/* =====================================================================
   LOUPIOT FRANCE — style.css
   Design system: Spirituel Tarot Divination (deep night purple + gold)
   Hero: mosaic-categories | Header: sticky-minimal | Category: sandwich
   ===================================================================== */

:root {
  --e64-primary:    #1A0F2A;
  --e64-accent:     #D4AF37;
  --e64-bg:         #2A1A4A;
  --e64-surface:    #3A2560;
  --e64-text:       #F5EFE0;
  --e64-text-soft:  #B8A5D5;
  --e64-line:       #5A4080;
  --e64-shadow:     0 12px 36px rgba(8, 4, 18, 0.55);
  --e64-shadow-sm:  0 4px 14px rgba(8, 4, 18, 0.35);
  --e64-radius:     14px;
  --e64-radius-sm:  8px;
  --e64-radius-lg:  22px;
  --e64-font-h:     'Cinzel Decorative', 'Times New Roman', serif;
  --e64-font-b:     'Lora', Georgia, serif;
  --e64-container:  1240px;
  --e64-header-h:   76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.e64-body {
  margin: 0;
  background: var(--e64-bg);
  color: var(--e64-text);
  font-family: var(--e64-font-b);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--e64-accent); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .85; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--e64-font-h);
  color: var(--e64-text);
  line-height: 1.22;
  letter-spacing: .01em;
  margin: 0 0 .65em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; }
h2 + p, h3 + p { margin-top: .25rem; }

p { margin: 0 0 1.05rem; }

.e64-container { width: 100%; max-width: var(--e64-container); margin: 0 auto; padding: 0 1.25rem; }

main, .e64-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ============================================================
   HEADER — sticky-minimal (logo gauche, menu inline, CTA droite)
   ============================================================ */
.e64-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 15, 42, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--e64-line);
  box-shadow: var(--e64-shadow-sm);
}
.e64-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--e64-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--e64-header-h);
}
.e64-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.e64-brand-logo {
  width: auto;
  display: block;
}
.e64-brand-name {
  font-family: var(--e64-font-h);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--e64-text);
  letter-spacing: .05em;
}

/* Desktop nav — visible from 1024px */
.e64-nav-desktop { display: none; }
.e64-nav-desktop-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.e64-nav-desktop-list a {
  color: var(--e64-text);
  font-family: var(--e64-font-b);
  font-weight: 500;
  font-size: .96rem;
  padding: .45rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.e64-nav-desktop-list a:hover,
.e64-nav-desktop-list .current-menu-item > a {
  border-bottom-color: var(--e64-accent);
  color: var(--e64-accent);
  opacity: 1;
}

/* Burger button — mobile only, 42x42 min */
.e64-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  background: rgba(245, 239, 224, 0.94);
  border: 1.5px solid rgba(26, 15, 42, 0.18);
  border-radius: 8px;
  color: var(--e64-primary);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
  margin-left: auto;
}
.e64-burger-bars,
.e64-burger > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.e64-burger-bars i,
.e64-burger > span i {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--e64-primary);
  border-radius: 2px;
}
.e64-burger-label { display: none; }

/* CTA in header (visible desktop only — règle #18bis) */
.e64-header-cta-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.e64-btn--cta,
.e64-header-cta-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.25rem;
  background: var(--e64-accent);
  color: var(--e64-primary);
  font-family: var(--e64-font-b);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--e64-radius-sm);
  border: 1.5px solid var(--e64-accent);
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.e64-btn--cta:hover,
.e64-header-cta-desktop:hover {
  background: transparent;
  color: var(--e64-accent);
  opacity: 1;
}

/* Mobile drawer — HIDDEN by default */
.e64-nav,
.e64-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .e64-header-cta-desktop,
  .e64-header .e64-header-cta-desktop { display: none !important; }
  .e64-header-cta-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
}

@media (max-width: 1023px) {
  .e64-nav.is-open,
  .e64-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--e64-primary);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid var(--e64-line);
  }
  .e64-nav .e64-nav-close,
  .e64-nav-mobile .e64-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1px solid var(--e64-line);
    color: var(--e64-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
  }
  .e64-nav.is-open ul,
  .e64-nav-mobile.is-open ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .e64-nav.is-open li,
  .e64-nav-mobile.is-open li {
    border-bottom: 1px solid var(--e64-line);
  }
  .e64-nav.is-open a,
  .e64-nav-mobile.is-open a {
    display: block;
    padding: 1rem 0;
    color: var(--e64-text);
    font-family: var(--e64-font-h);
    font-size: 1.05rem;
    text-decoration: none;
  }
  .e64-nav.is-open a:hover,
  .e64-nav-mobile.is-open a:hover { color: var(--e64-accent); opacity: 1; }
  .e64-drawer-cta {
    display: block !important;
    margin: 2rem 0 0;
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--e64-accent);
    color: var(--e64-primary);
    border-radius: var(--e64-radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    font-family: var(--e64-font-b);
  }
  .e64-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
  }
  .e64-nav-overlay.is-open { display: block; }
}

@media (min-width: 1024px) {
  .e64-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1.5rem; }
  .e64-burger,
  .e64-nav,
  .e64-nav-mobile,
  .e64-nav-overlay,
  .e64-drawer-cta { display: none !important; }
}

/* ============================================================
   HERO — mosaic-categories
   ============================================================ */
.e64-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,175,55,0.18), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(212,175,55,0.10), transparent 60%),
    linear-gradient(180deg, var(--e64-primary), var(--e64-bg));
}
.e64-hero-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.e64-hero-title {
  font-family: var(--e64-font-h);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  letter-spacing: .02em;
  color: var(--e64-text);
  margin: 0 0 1rem;
}
.e64-hero-title em {
  font-style: italic;
  color: var(--e64-accent);
  font-weight: 700;
}
.e64-hero-subtitle {
  font-size: 1.15rem;
  color: var(--e64-text-soft);
  margin: 0 auto 1.5rem;
  max-width: 580px;
  line-height: 1.55;
}
.e64-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  background: var(--e64-accent);
  color: var(--e64-primary);
  font-family: var(--e64-font-b);
  font-weight: 600;
  border-radius: var(--e64-radius-sm);
  text-decoration: none;
  font-size: 1rem;
  border: 1.5px solid var(--e64-accent);
  transition: background .2s, color .2s;
}
.e64-hero-cta:hover { background: transparent; color: var(--e64-accent); opacity: 1; }

/* Mosaic grid — categories tiles */
.e64-hero-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
  max-width: var(--e64-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.e64-mosaic-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--e64-radius);
  background: var(--e64-surface);
  box-shadow: var(--e64-shadow-sm);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.e64-mosaic-tile:hover { transform: translateY(-3px); box-shadow: var(--e64-shadow); opacity: 1; }
.e64-mosaic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform .6s;
}
.e64-mosaic-tile:hover .e64-mosaic-img { transform: scale(1.05); }
.e64-mosaic-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10,5,22,0.85) 100%);
  z-index: 2;
}
.e64-mosaic-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 3;
  font-family: var(--e64-font-h);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--e64-text);
  letter-spacing: .02em;
}
.e64-mosaic-label small {
  display: block;
  font-family: var(--e64-font-b);
  font-weight: 400;
  font-size: .8rem;
  color: var(--e64-text-soft);
  margin-top: .2rem;
  letter-spacing: 0;
  font-style: italic;
}
/* Mosaic tile spans for varied layout */
.e64-mosaic-tile--lg  { grid-column: span 6; grid-row: span 2; }
.e64-mosaic-tile--md  { grid-column: span 4; grid-row: span 2; }
.e64-mosaic-tile--sm  { grid-column: span 4; }
.e64-mosaic-tile--xs  { grid-column: span 3; }
.e64-mosaic-tile--wide { grid-column: span 8; }
.e64-mosaic-tile--tall { grid-column: span 4; grid-row: span 2; }

@media (max-width: 900px) {
  .e64-hero-mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 130px; }
  .e64-mosaic-tile--lg  { grid-column: span 6; grid-row: span 2; }
  .e64-mosaic-tile--md  { grid-column: span 3; grid-row: span 2; }
  .e64-mosaic-tile--sm  { grid-column: span 3; }
  .e64-mosaic-tile--xs  { grid-column: span 3; }
  .e64-mosaic-tile--wide { grid-column: span 6; }
  .e64-mosaic-tile--tall { grid-column: span 3; grid-row: span 2; }
}
@media (max-width: 560px) {
  .e64-hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .e64-mosaic-tile { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ============================================================
   EDITORIAL SEO BLOCK — 400-700 mots éditoriaux home
   ============================================================ */
.e64-editorial {
  background: linear-gradient(180deg, var(--e64-bg), var(--e64-primary));
  padding: 4rem 0;
  position: relative;
}
.e64-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.e64-editorial-inner > h2 {
  text-align: center;
  font-family: var(--e64-font-h);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  color: var(--e64-accent);
  margin-bottom: 2rem;
  font-style: italic;
}
.e64-editorial-inner h3 {
  font-family: var(--e64-font-h);
  font-size: 1.3rem;
  color: var(--e64-text);
  margin-top: 2rem;
  margin-bottom: .65rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--e64-line);
}
.e64-editorial-inner p {
  color: var(--e64-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.e64-editorial-inner a { color: var(--e64-accent); border-bottom: 1px dashed var(--e64-accent); }
.e64-editorial-inner a:hover { color: var(--e64-text); border-bottom-style: solid; }
.e64-editorial-callout {
  background: var(--e64-surface);
  border-left: 4px solid var(--e64-accent);
  padding: 1.25rem 1.5rem;
  border-radius: var(--e64-radius-sm);
  margin-top: 2rem;
  font-style: italic;
  color: var(--e64-text-soft);
}

/* ============================================================
   CATEGORY SECTIONS ON HOME (mode by-category)
   ============================================================ */
.e64-cat-section {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.e64-cat-section:nth-child(even) { background: rgba(58, 37, 96, 0.25); }
.e64-cat-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--e64-container);
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
  flex-wrap: wrap;
}
.e64-cat-section-header h2 {
  margin: 0;
  font-family: var(--e64-font-h);
  font-size: 1.7rem;
}
.e64-cat-section-header h2 a {
  color: var(--e64-text);
  text-decoration: none;
}
.e64-cat-section-header h2 a:hover { color: var(--e64-accent); opacity: 1; }
.e64-cat-section-header .e64-cat-link-all {
  font-size: .9rem;
  color: var(--e64-text-soft);
  border-bottom: 1px solid var(--e64-text-soft);
  padding-bottom: 2px;
}
.e64-cat-section-header .e64-cat-link-all:hover {
  color: var(--e64-accent);
  border-bottom-color: var(--e64-accent);
  opacity: 1;
}
.e64-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--e64-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (max-width: 900px) { .e64-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .e64-cat-grid { grid-template-columns: 1fr; } }

.e64-cat-empty {
  max-width: var(--e64-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  color: var(--e64-text-soft);
  font-style: italic;
}
.e64-cat-empty a {
  display: inline-block;
  margin-top: .5rem;
  border: 1px solid var(--e64-accent);
  padding: .55rem 1.1rem;
  border-radius: var(--e64-radius-sm);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.e64-card {
  background: var(--e64-surface);
  border-radius: var(--e64-radius);
  overflow: hidden;
  box-shadow: var(--e64-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(212,175,55,0.10);
}
.e64-card:hover { transform: translateY(-4px); box-shadow: var(--e64-shadow); }
.e64-card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--e64-primary);
}
.e64-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.e64-card:hover .e64-card-thumb img { transform: scale(1.05); }
.e64-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.e64-card-title {
  font-family: var(--e64-font-h);
  font-size: 1.1rem;
  margin: 0 0 .5rem;
  line-height: 1.3;
}
.e64-card-title a { color: var(--e64-text); text-decoration: none; }
.e64-card-title a:hover { color: var(--e64-accent); opacity: 1; }
.e64-card-date {
  font-size: .82rem;
  color: var(--e64-text-soft);
  font-style: italic;
  margin: 0 0 .5rem;
}
.e64-card-excerpt {
  font-size: .92rem;
  color: var(--e64-text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   TOOL ON HOME (embed)
   ============================================================ */
.e64-tool-on-home {
  background: linear-gradient(180deg, var(--e64-primary), var(--e64-bg));
  padding: 4rem 0;
  border-top: 1px solid var(--e64-line);
  border-bottom: 1px solid var(--e64-line);
}
.e64-tool-on-home-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.e64-tool-on-home h2 {
  text-align: center;
  font-family: var(--e64-font-h);
  color: var(--e64-accent);
  margin-bottom: 1rem;
}
.e64-tool-on-home > .e64-tool-on-home-inner > p {
  text-align: center;
  color: var(--e64-text-soft);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.02rem;
}

/* ============================================================
   CATEGORY PAGE — sandwich layout (intro + posts + outro?)
   ============================================================ */
.e64-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--e64-primary);
}
.e64-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e64-cat-hero .e64-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, transparent 30%, rgba(10,5,22,0.85) 100%);
}
.e64-cat-hero h1 {
  color: var(--e64-text);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
}
.e64-cat-intro {
  padding: 2.5rem 0 1.5rem;
}
.e64-cat-intro .e64-container { max-width: 880px; }
.e64-cat-intro p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--e64-text);
}

/* ============================================================
   FOOTER — 4 colonnes + brand + pitch + CTA + social + tools
   ============================================================ */
.e64-footer {
  background: var(--e64-primary);
  color: var(--e64-text);
  border-top: 2px solid var(--e64-accent);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.e64-footer-inner {
  max-width: var(--e64-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) { .e64-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .e64-footer-inner { grid-template-columns: 1fr; } }

.e64-footer-col h3.e64-footer-title {
  font-family: var(--e64-font-h);
  font-size: 1rem;
  color: var(--e64-accent);
  margin: 0 0 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.e64-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  max-width: 160px;
  width: auto;
}
.e64-footer-brand-pitch {
  color: var(--e64-text);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.e64-footer-brand-cta {
  display: inline-block;
  margin-top: .5rem;
  color: var(--e64-accent);
  font-family: var(--e64-font-b);
  font-weight: 600;
  border-bottom: 1px solid var(--e64-accent);
  padding-bottom: 2px;
  text-decoration: none;
  font-size: .95rem;
}
.e64-footer-brand-cta:hover { color: var(--e64-text); border-bottom-color: var(--e64-text); opacity: 1; }

.e64-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.e64-footer-links li { margin: 0 0 .5rem; }
.e64-footer-links a {
  color: var(--e64-text);
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s;
}
.e64-footer-links a:hover { color: var(--e64-accent); opacity: 1; }

.e64-footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.e64-footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--e64-line);
  border-radius: 50%;
  color: var(--e64-text);
  transition: background .2s, color .2s;
}
.e64-footer-social a:hover { background: var(--e64-accent); color: var(--e64-primary); opacity: 1; }
.e64-footer-social svg { width: 18px; height: 18px; }

.e64-footer-bottom {
  border-top: 1px solid var(--e64-line);
  margin-top: 2.5rem;
  padding: 1.25rem 1.25rem 0;
  max-width: var(--e64-container);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--e64-text-soft);
}

/* ============================================================
   PERSONA PHOTO (page À propos)
   ============================================================ */
.e64-persona-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--e64-radius);
  margin: 1rem 0 2rem;
  box-shadow: var(--e64-shadow);
  border: 1px solid var(--e64-accent);
  float: left;
  margin-right: 1.5rem;
}
@media (max-width: 700px) {
  .e64-persona-photo { float: none; margin: 1rem auto 2rem; display: block; }
}

/* ============================================================
   CONTACT FORM WRAPPER
   ============================================================ */
.e64-contact-form {
  background: var(--e64-surface);
  border-radius: var(--e64-radius);
  padding: 1.5rem 1rem;
  margin: 2rem 0;
  border: 1px solid var(--e64-line);
}

/* ============================================================
   ANIMATIONS — CTA (magnetic_button)
   ============================================================ */
@keyframes lpf-magnetic-pulse {
  0%, 100% { transform: translate3d(0, 0, 0); box-shadow: 0 4px 18px rgba(212,175,55,0.35); }
  50%      { transform: translate3d(0, -2px, 0); box-shadow: 0 10px 28px rgba(212,175,55,0.55); }
}
.e64-btn--cta, .lpf-btn--cta {
  animation: lpf-magnetic-pulse 3.6s ease-in-out infinite;
  will-change: transform;
}

/* CTR — rotating_words_effect (signature in editorial) */
@keyframes lpf-words-rotate {
  0%, 18%   { opacity: 0; transform: translateY(8px); }
  24%, 42%  { opacity: 1; transform: translateY(0); }
  48%, 100% { opacity: 0; transform: translateY(-8px); }
}
.e64-rotator { display: inline-block; position: relative; height: 1.25em; vertical-align: bottom; overflow: hidden; min-width: 8ch; }
.e64-rotator-word {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--e64-accent);
  font-style: italic;
  animation: lpf-words-rotate 8s linear infinite;
}
.e64-rotator-word:nth-child(1) { animation-delay: 0s; }
.e64-rotator-word:nth-child(2) { animation-delay: 2s; }
.e64-rotator-word:nth-child(3) { animation-delay: 4s; }
.e64-rotator-word:nth-child(4) { animation-delay: 6s; }

/* CTO — secure_payment_badge (used on tool cards / trust badges) */
@keyframes lpf-secure-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.45); border-color: rgba(212,175,55,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(212,175,55,0); border-color: rgba(212,175,55,1); }
}
.e64-cto-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--e64-accent);
  background: rgba(212,175,55,0.06);
  animation: lpf-secure-glow 2.4s ease-in-out infinite;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.e64-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.e64-divider { height: 1px; background: var(--e64-line); margin: 2rem 0; border: 0; }
.e64-section-pad { padding: 3rem 0; }
.e64-text-center { text-align: center; }
.e64-mb-1 { margin-bottom: .5rem; }
.e64-mb-2 { margin-bottom: 1rem; }
.e64-mb-3 { margin-bottom: 2rem; }

/* WordPress required */
.wp-caption, .gallery-caption, .alignleft, .alignright, .aligncenter { max-width: 100%; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); height: 1px; width: 1px; overflow: hidden; }


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="e64-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;
}


/* PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.e64-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@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;
  }
}

/* BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer !important;
  padding: 8px;
  color: inherit;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06);
  border-color: var(--e64-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.
============================================================ */
.e64-media-press {
  padding: 2.5rem 0;
  background: var(--e64-bg-soft, var(--e64-color-surface, #f9fafb));
  margin: 2rem 0;
}
.e64-media-press > .e64-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.e64-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--e64-color-text-soft, var(--e64-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.e64-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.e64-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%);
}
.e64-media-press-item:hover,
.e64-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.e64-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .e64-media-press { padding: 1.8rem 0; }
  .e64-media-press-grid { gap: 1.4rem; }
  .e64-media-press-item { max-width: 110px; min-height: 36px; }
  .e64-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 main.bdf-main, body main.e64-main, 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) */
.e64-media-press, .bdf-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);
}
.e64-media-press .e64-container,
.bdf-media-press .bdf-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;
}
.e64-media-press-title, .bdf-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(--e64-muted, #666);
  flex: 0 0 auto;
}
.e64-media-press-grid, .bdf-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;
}
.e64-media-press-item, .bdf-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;
}
.e64-media-press-item:hover, .bdf-media-press-item:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.e64-media-press img, .bdf-media-press img,
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;
}
.e64-media-press a:hover img, .bdf-media-press a:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .e64-media-press .e64-container, .bdf-media-press .bdf-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}


/* FIX anti-empreinte : variation alignement titre categorie (left/center seedee) */
.e64-cat-hero--align-left .e64-cat-hero-inner,
.bdf-cat-hero--align-left .bdf-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;
}
.e64-cat-hero--align-center .e64-cat-hero-inner,
.bdf-cat-hero--align-center .bdf-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;
}

/* 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; }
