/*
 * Theme: maison medor — Hand-Drawn Recettes custom design
 * Prefix: eea (anti-footprint, scoped to this site)
 * Design System: handdrawn-recipe-06 (Caveat + Karla, warm cream + terracotta)
 * Hero style: magazine-cover
 * Header layout: logo-left-menu-right
 * Mega menu: B (grid 3 cols)
 * Brand casing: C lowercase
 */

/* =========================================================================
   1) VARIABLES
   ========================================================================= */
:root {
  --eea-primary:   #5A3A2A;
  --eea-accent:    #E55A30;
  --eea-text:      #3A2014;
  --eea-text-soft: #7A5530;
  --eea-bg:        #FBEED1;
  --eea-surface:   #FFF7E0;
  --eea-line:      #EBD095;
  --eea-footer-bg: #3A2014;
  --eea-footer-fg: #FBEED1;
  --eea-font-h: "Caveat", "Brush Script MT", cursive;
  --eea-font-b: "Karla", system-ui, -apple-system, sans-serif;
  --eea-radius: 12px;
  --eea-shadow: 0 8px 24px -10px rgba(58, 32, 20, 0.18);
}

/* =========================================================================
   2) BASE / RESET-LIGHT
   ========================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .eea-body {
  margin: 0;
  font-family: var(--eea-font-b);
  color: var(--eea-text);
  background: var(--eea-bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--eea-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--eea-accent); }
h1, h2, h3, h4, h5 { font-family: var(--eea-font-h); color: var(--eea-primary); line-height: 1.15; margin: 0 0 .8rem; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
button { cursor: pointer; font-family: inherit; }

main, .eea-main { padding-top: 0 !important; margin-top: 0 !important; min-height: 50vh; }

.eea-container { max-width: 1200px; margin: 0 auto; padding: 0 1.3rem; }

/* =========================================================================
   3) HEADER — logo-left-menu-right
   ========================================================================= */
.eea-header {
  background: var(--eea-bg);
  border-bottom: 1.5px solid var(--eea-line);
  position: sticky;
  top: 0;
  z-index: 800;
}
.eea-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem 1.3rem;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: flex-start;
}

/* Brand (logo image + lowercase wordmark) */
.eea-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--eea-primary);
  flex-shrink: 0;
}
.eea-brand-logo {
  width: auto;
  display: block;
}
.eea-brand-name {
  font-family: var(--eea-font-h);
  font-size: 1.85rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--eea-primary);
}

/* Desktop nav (visible only ≥ 1024px) */
.eea-nav-desktop {
  display: none;
}
.eea-nav-desktop-list {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}
.eea-nav-desktop-list > li { position: relative; }
.eea-nav-desktop-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--eea-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding: .45rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.eea-nav-desktop-list > li > a:hover,
.eea-nav-desktop-list > li > a:focus-visible {
  border-bottom-color: var(--eea-accent);
  color: var(--eea-accent);
}
.eea-nav-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mega menu panel — Layout B: grid 3 cols */
/* Mega menu layout: B - grid 3 cols */
.eea-mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 720px;
  max-width: 880px;
  background: #fff;
  border: 1.5px solid var(--eea-line);
  border-radius: var(--eea-radius);
  box-shadow: var(--eea-shadow);
  padding: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 900;
}
.eea-nav-desktop-list > li:hover > .eea-mega-panel,
.eea-nav-desktop-list > li:focus-within > .eea-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.eea-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.eea-mega-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--eea-text);
  border-radius: 10px;
  overflow: hidden;
  background: var(--eea-surface);
  border: 1px solid var(--eea-line);
  transition: transform .2s, box-shadow .2s;
}
.eea-mega-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(58, 32, 20, 0.25);
  color: var(--eea-primary);
}
.eea-mega-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--eea-line);
}
.eea-mega-card-body {
  padding: .65rem .8rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.eea-mega-card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--eea-primary);
}
.eea-mega-card-date {
  font-size: .8rem;
  color: var(--eea-text-soft);
}
.eea-mega-empty {
  padding: 1rem;
  text-align: center;
  color: var(--eea-text-soft);
  font-style: italic;
}
.eea-mega-cta {
  margin-top: 1rem;
  text-align: right;
}
.eea-mega-cta a {
  font-weight: 600;
  color: var(--eea-accent);
  text-decoration: none;
}
.eea-mega-cta a:hover { text-decoration: underline; }

/* Burger button (mobile only) */
.eea-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 9px !important;
  background: rgba(255, 247, 224, 0.95) !important;
  border: 1.5px solid rgba(58, 32, 20, 0.22) !important;
  border-radius: 9px !important;
  color: var(--eea-primary) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto !important;
}
.eea-burger-bars,
.eea-burger > span {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 18px !important;
  justify-content: center !important;
}
.eea-burger-bars span {
  display: block !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  width: 100% !important;
  transition: transform .25s, opacity .15s;
}
.eea-burger[aria-expanded="true"] .eea-burger-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eea-burger[aria-expanded="true"] .eea-burger-bars span:nth-child(2) { opacity: 0; }
.eea-burger[aria-expanded="true"] .eea-burger-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer — HIDDEN by default (desktop) */
.eea-nav-mobile { display: none; }
.eea-nav-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.eea-nav-mobile-list li { border-bottom: 1px solid var(--eea-line); }
.eea-nav-mobile-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.5rem;
  color: var(--eea-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background .15s;
}
.eea-nav-mobile-list a:hover,
.eea-nav-mobile-list a:focus {
  background: var(--eea-surface);
  color: var(--eea-primary);
}
.eea-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 32, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 9998;
}
.eea-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.eea-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--eea-line);
  color: var(--eea-text);
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Desktop CTA in drawer is hidden (no CTA in header for this site) */
.eea-drawer-cta { display: none !important; }

/* =========================================================================
   4) HERO — magazine-cover style
   ========================================================================= */
.eea-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--eea-surface);
}
.eea-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.eea-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 6rem 1.3rem 4rem;
  background: linear-gradient(180deg, transparent 0%, transparent 35%, rgba(58, 32, 20, 0.06) 100%);
}
.eea-hero-cover {
  max-width: 720px;
  background: rgba(255, 247, 224, 0.94);
  border: 2px solid var(--eea-line);
  border-radius: 18px;
  padding: 2rem 2.4rem 2.2rem;
  box-shadow: var(--eea-shadow);
  backdrop-filter: blur(2px);
}
.eea-hero-eyebrow {
  display: inline-block;
  font-family: var(--eea-font-h);
  font-size: 1.4rem;
  color: var(--eea-accent);
  margin: 0 0 .3rem;
  letter-spacing: .02em;
}
.eea-hero-title {
  font-family: var(--eea-font-h);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 .9rem;
  color: var(--eea-primary);
}
.eea-hero-sub {
  font-size: 1.1rem;
  color: var(--eea-text);
  line-height: 1.55;
  margin: 0 0 1.4rem;
}
.eea-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--eea-accent);
  color: #fff;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s, transform .15s;
}
.eea-hero-cta:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  color: #fff;
}

/* =========================================================================
   5) HOME — editorial intro (placement: after-hero)
   ========================================================================= */
.eea-editorial {
  background: var(--eea-bg);
  padding: 4rem 0 3.5rem;
}
.eea-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.3rem;
}
.eea-editorial h2 {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  margin-bottom: 1.5rem;
}
.eea-editorial h3 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  color: var(--eea-accent);
}
.eea-editorial p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--eea-text);
}
.eea-editorial-note {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--eea-surface);
  border-left: 4px solid var(--eea-accent);
  border-radius: 6px;
  font-style: italic;
  color: var(--eea-text-soft);
}

/* =========================================================================
   6) HOME — by-category section (1 block per category)
   ========================================================================= */
.eea-by-cat {
  padding: 3rem 0 2rem;
}
.eea-by-cat-block {
  padding: 2.6rem 0;
  border-top: 1.5px dashed var(--eea-line);
}
.eea-by-cat-block:first-child { border-top: 0; }
.eea-by-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.eea-by-cat-title {
  font-family: var(--eea-font-h);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0;
}
.eea-by-cat-title a {
  text-decoration: none;
  color: var(--eea-primary);
}
.eea-by-cat-title a:hover { color: var(--eea-accent); }
.eea-by-cat-more {
  font-size: .95rem;
  font-weight: 600;
  color: var(--eea-accent);
  text-decoration: none;
}
.eea-by-cat-more:hover { text-decoration: underline; }
.eea-by-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.eea-card {
  display: flex;
  flex-direction: column;
  background: var(--eea-surface);
  border: 1px solid var(--eea-line);
  border-radius: var(--eea-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--eea-text);
  transition: transform .2s, box-shadow .2s;
}
.eea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(58, 32, 20, 0.28);
  color: var(--eea-primary);
}
.eea-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--eea-line);
}
.eea-card-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.eea-card-cat {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--eea-accent);
}
.eea-card-title {
  font-family: var(--eea-font-h);
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--eea-primary);
  margin: 0;
}
.eea-card-meta {
  font-size: .85rem;
  color: var(--eea-text-soft);
  margin-top: auto;
  padding-top: .5rem;
}
.eea-by-cat-empty {
  background: var(--eea-surface);
  border: 1px dashed var(--eea-line);
  padding: 1.4rem 1.5rem;
  border-radius: var(--eea-radius);
  text-align: center;
  color: var(--eea-text-soft);
}
.eea-by-cat-empty a {
  font-weight: 600;
  color: var(--eea-accent);
}

/* =========================================================================
   7) CATEGORY PAGE — intro-faq layout
   ========================================================================= */
.eea-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--eea-primary);
}
.eea-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.eea-cat-hero .eea-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.4rem;
  background: linear-gradient(180deg, transparent 30%, rgba(58, 32, 20, 0.75) 100%);
}
.eea-cat-hero h1 {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.eea-cat-intro {
  padding: 2.6rem 0 1.5rem;
}
.eea-cat-intro .eea-container { max-width: 820px; }
.eea-cat-intro p { font-size: 1.05rem; line-height: 1.7; }
.eea-cat-faq {
  background: var(--eea-surface);
  padding: 2.6rem 0;
  border-top: 1.5px solid var(--eea-line);
  border-bottom: 1.5px solid var(--eea-line);
}
.eea-cat-faq .eea-container { max-width: 820px; }
.eea-faq-item {
  background: #fff;
  border: 1px solid var(--eea-line);
  border-radius: 10px;
  margin-bottom: .8rem;
  overflow: hidden;
}
.eea-faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--eea-primary);
  font-family: var(--eea-font-h);
  font-size: 1.25rem;
  list-style: none;
}
.eea-faq-item summary::-webkit-details-marker { display: none; }
.eea-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--eea-accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .2s;
}
.eea-faq-item[open] summary::after { content: "−"; }
.eea-faq-item-body {
  padding: 0 1.2rem 1rem;
  color: var(--eea-text-soft);
}
.eea-cat-posts {
  padding: 2.5rem 0;
}
.eea-cat-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.eea-cat-outro {
  background: var(--eea-surface);
  padding: 2.5rem 0;
  border-top: 1.5px dashed var(--eea-line);
}
.eea-cat-outro .eea-container { max-width: 820px; }

/* =========================================================================
   8) FOOTER
   ========================================================================= */
.eea-footer {
  background: var(--eea-footer-bg);
  color: var(--eea-footer-fg);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.eea-footer a {
  color: var(--eea-footer-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.eea-footer a:hover { color: #fff; }
.eea-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.3rem;
}
.eea-footer-col h3 {
  font-family: var(--eea-font-h);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.eea-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  filter: brightness(0) invert(1);
}
.eea-footer-brand-pitch {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--eea-footer-fg);
  opacity: 0.9;
  margin-bottom: 1rem;
}
.eea-footer-brand-cta {
  display: inline-block;
  font-weight: 700;
  color: var(--eea-accent) !important;
  text-decoration: none !important;
  border-bottom: 2px solid var(--eea-accent);
  padding-bottom: 2px;
}
.eea-footer-brand-cta:hover {
  filter: brightness(1.15);
  color: #fff !important;
  border-bottom-color: #fff;
}
.eea-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.eea-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(251, 238, 209, 0.22);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  opacity: 0.85;
}
.eea-footer-social {
  display: inline-flex;
  gap: .8rem;
}
.eea-footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 238, 209, 0.4);
  border-radius: 50%;
  text-decoration: none;
}
.eea-footer-social a:hover {
  background: var(--eea-accent);
  border-color: var(--eea-accent);
}

/* =========================================================================
   9) PERSONA / ABOUT
   ========================================================================= */
.eea-persona-photo, .bf3-persona-photo {
  max-width: 280px;
  border-radius: 14px;
  border: 3px solid var(--eea-line);
  box-shadow: var(--eea-shadow);
  margin: 1.2rem 0;
  float: right;
  margin-left: 1.5rem;
}
@media (max-width: 720px) {
  .eea-persona-photo, .bf3-persona-photo { float: none; max-width: 100%; margin: 1rem 0; }
}

/* =========================================================================
   10) CONTACT FORM WRAPPER
   ========================================================================= */
.bf3-contact-form {
  margin: 2rem 0;
  border: 1.5px solid var(--eea-line);
  border-radius: var(--eea-radius);
  background: var(--eea-surface);
  padding: 1rem;
  overflow: hidden;
}
.bf3-contact-form iframe { width: 100% !important; border: 0; }

/* =========================================================================
   11) BUTTONS
   ========================================================================= */
.eea-btn, .bf3-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.eea-btn--primary, .bf3-btn--primary {
  background: var(--eea-primary);
  color: #fff;
}
.eea-btn--cta, .bf3-btn--cta {
  position: relative;
  background: var(--eea-accent);
  color: #fff;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  overflow: hidden;
}
.eea-btn--cta:hover, .bf3-btn--cta:hover { filter: brightness(0.92); color: #fff; }
.eea-btn--ghost {
  background: transparent;
  color: var(--eea-primary);
  border: 2px solid var(--eea-primary);
}
.eea-btn--ghost:hover { background: var(--eea-primary); color: #fff; }

/* =========================================================================
   12) RESPONSIVE
   ========================================================================= */
@media (min-width: 1024px) {
  .eea-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin: 0 0 0 1.5rem;
  }
  .eea-burger,
  .eea-burger-bars { display: none !important; }
  .eea-nav-mobile,
  .eea-nav-overlay { display: none !important; }
}

@media (max-width: 1023px) {
  .eea-nav-desktop { display: none !important; }

  /* Drawer open state */
  .eea-nav-mobile.is-open,
  #eea-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4rem 0 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    color: #0a0a0a;
  }
  .eea-nav-mobile.is-open .eea-nav-mobile-list a { color: #0a0a0a; }

  /* CTA hidden mobile header (no CTA in header for this site) */
  .eea-header-cta-desktop,
  .eea-header [class*="-btn--cta"]:not([class*="-drawer-"]) {
    display: none !important;
  }

  /* The wrapper that contains the burger MUST be visible mobile */
  .eea-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .eea-burger-label { display: none !important; }
}

@media (max-width: 980px) {
  .eea-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .eea-by-cat-grid {
    grid-template-columns: 1fr;
  }
  .eea-cat-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .eea-footer-grid {
    grid-template-columns: 1fr;
  }
  .eea-cat-posts-grid {
    grid-template-columns: 1fr;
  }
  .eea-hero-cover {
    padding: 1.5rem 1.4rem;
  }
  .eea-hero { min-height: 60vh; }
}

/* =========================================================================
   13) MEGA MENU MOBILE FALLBACK — hide mega panel on mobile (drawer is used)
   ========================================================================= */
@media (hover: none), (max-width: 1023px) {
  .eea-mega-panel { display: none !important; }
}

/* =========================================================================
   14) ACCESSIBILITY
   ========================================================================= */
.visually-hidden,
.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;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--eea-accent) 50%, white);
  outline-offset: 2px;
}

/* =========================================================================
   15) WORDPRESS DEFAULT CLASSES
   ========================================================================= */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide, .alignfull { max-width: 100%; }


/* === 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*="bf3-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 (fix 2026-06-17) */
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;
}


/* [2026-06-17] 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;
  }
}

/* [2026-06-17] 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
   (.bf3-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    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;
  }
}

/* [2026-06-17] 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.
*/
/* [2026-06-17] 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;
}

/* [2026-06-17] 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;
}

/* [2026-06-17] 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 !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  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) !important;
  border-color: var(--bf3-accent, currentColor) !important;
}
/* 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 !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* 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 !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  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 !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--bf3-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : round (50%) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 50% !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; }
