/* ==========================================================================
   moncorps.ch — Mon Corps — Asiatique Vietnamien Lotus
   Palette : jade #0F4A3C + beige chaud #E8A87C + crème #F5EDE0
   Polices : EB Garamond (titres) + Be Vietnam Pro (corps)
   ========================================================================== */

:root {
  --ebe-primary:    #0F4A3C;
  --ebe-accent:     #E8A87C;
  --ebe-bg:         #F5EDE0;
  --ebe-surface:    #FFFFFF;
  --ebe-text:       #0F4A3C;
  --ebe-text-soft:  #5A7068;
  --ebe-line:       #D5C8AC;
  --ebe-jade-dark:  #0a3329;
  --ebe-jade-soft:  #1a6a55;
  --ebe-cream-dark: #E8DCC4;
  --ebe-warm:       #E8A87C;
  --ebe-warm-dark:  #c98a5d;

  --ebe-font-h:    "EB Garamond", Georgia, "Times New Roman", serif;
  --ebe-font-b:    "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ebe-radius-sm: 6px;
  --ebe-radius:    12px;
  --ebe-radius-lg: 20px;
  --ebe-shadow-sm: 0 2px 8px rgba(15, 74, 60, 0.06);
  --ebe-shadow:    0 8px 24px rgba(15, 74, 60, 0.08);
  --ebe-shadow-lg: 0 18px 50px rgba(15, 74, 60, 0.12);

  --ebe-container: 1240px;
}

/* === Base reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ebe-body {
  margin: 0;
  font-family: var(--ebe-font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ebe-text);
  background: var(--ebe-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ebe-font-h); font-weight: 600; line-height: 1.2; color: var(--ebe-jade-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
p  { margin: 0 0 1em; }

main, .ebe-main { padding-top: 0 !important; margin-top: 0 !important; }

/* Container helper */
.ebe-container { width: min(var(--ebe-container), 92%); margin: 0 auto; }

/* === HEADER === */
.ebe-header {
  background: var(--ebe-bg);
  border-bottom: 1px solid var(--ebe-line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.ebe-header-inner {
  display: flex; align-items: center;
  width: min(var(--ebe-container), 94%);
  margin: 0 auto;
  padding: 14px 0;
  gap: 1.5rem;
}
.ebe-brand-link { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.ebe-brand-logo { max-height: 48px; width: auto; }
.ebe-brand-name {
  font-family: var(--ebe-font-h);
  font-weight: 600; font-size: 1.4rem;
  color: var(--ebe-jade-dark);
  letter-spacing: .01em;
}

/* Nav desktop = liens catégories horizontaux au centre */
.ebe-nav-desktop { display: none; flex: 1; justify-content: center; }
.ebe-nav-desktop-list {
  display: flex; gap: 1.4rem; list-style: none;
  margin: 0; padding: 0; align-items: center;
}
.ebe-nav-desktop-list a {
  display: inline-flex; align-items: center; gap: .42rem;
  font-size: .95rem; font-weight: 500;
  color: var(--ebe-jade-dark);
  padding: .4rem .15rem;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ebe-nav-desktop-list a:hover { color: var(--ebe-jade-soft); border-bottom-color: var(--ebe-warm); }
.ebe-nav-icon {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  vertical-align: middle;
}

/* Burger mobile */
.ebe-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: 8px !important;
  margin-left: auto !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1.5px solid var(--ebe-line) !important;
  border-radius: var(--ebe-radius-sm) !important;
  color: var(--ebe-jade-dark) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.ebe-burger-bars { display: flex !important; flex-direction: column !important; gap: 4px !important; width: 24px !important; height: 16px !important; }
.ebe-burger-bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.ebe-burger[aria-expanded="true"] .ebe-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ebe-burger[aria-expanded="true"] .ebe-burger-bars span:nth-child(2) { opacity: 0; }
.ebe-burger[aria-expanded="true"] .ebe-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer mobile = CACHE par defaut, visible quand .is-open */
.ebe-nav-mobile { display: none; }
.ebe-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10, 51, 41, 0.55);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.ebe-overlay.is-open { display: block; }
.ebe-drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  background: transparent; border: 1.5px solid var(--ebe-line);
  border-radius: 50%; cursor: pointer;
  color: var(--ebe-jade-dark);
  display: flex; align-items: center; justify-content: center;
}
.ebe-nav-mobile-list {
  list-style: none; margin: 0; padding: 0;
}
.ebe-nav-mobile-list li { border-bottom: 1px solid var(--ebe-line); }
.ebe-nav-mobile-list a {
  display: flex; align-items: center; gap: .65rem;
  padding: 1rem 1.5rem;
  font-size: 1.05rem; font-weight: 500;
  color: #0a0a0a;
}
.ebe-nav-mobile-list a:hover { color: var(--ebe-jade-soft); background: rgba(232, 168, 124, 0.08); }
.ebe-drawer-cta { display: none; }

@media (min-width: 1024px) {
  .ebe-nav-desktop { display: flex; }
  .ebe-burger { display: none !important; }
}
@media (max-width: 1023px) {
  .ebe-header-cta-desktop { display: none !important; }
  .ebe-nav-mobile.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: var(--ebe-surface) !important;
    padding: 4.5rem 0 2rem !important;
    z-index: 9999 !important; overflow-y: auto !important;
    box-shadow: -10px 0 30px rgba(10,51,41,0.3) !important;
  }
  .ebe-drawer-cta {
    display: block !important;
    margin: 2rem 1.5rem 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--ebe-jade-dark) !important;
    color: #fff !important;
    border-radius: var(--ebe-radius-sm) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    letter-spacing: .02em;
  }
}

/* === HERO === */
.ebe-hero {
  position: relative; overflow: hidden;
  min-height: 78vh;
  display: flex; align-items: center;
  background: var(--ebe-cream-dark);
}
.ebe-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.ebe-hero-inner {
  position: relative; z-index: 2;
  width: min(var(--ebe-container), 92%);
  margin: 0 auto;
  padding: 5rem 0;
}
.ebe-hero-title {
  font-family: var(--ebe-font-h);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 600; line-height: 1.05;
  color: var(--ebe-jade-dark);
  max-width: 18ch; margin-bottom: 1.2rem;
  letter-spacing: -.01em;
}
.ebe-hero-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--ebe-text-soft);
  max-width: 56ch; margin-bottom: 2rem;
  line-height: 1.55;
}
.ebe-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero fade-reveal animation */
.ebe-hero--fade-reveal .ebe-hero-title,
.ebe-hero--fade-reveal .ebe-hero-subtitle,
.ebe-hero--fade-reveal .ebe-hero-ctas {
  opacity: 0; transform: translateY(20px);
  animation: rpFadeReveal 1.3s cubic-bezier(.22, 1, .36, 1) forwards;
}
.ebe-hero--fade-reveal .ebe-hero-subtitle { animation-delay: .25s; }
.ebe-hero--fade-reveal .ebe-hero-ctas     { animation-delay: .5s; }
.ebe-hero--fade-reveal .ebe-hero-bg {
  opacity: 0; transform: scale(1.05);
  animation: rpFadeRevealBg 2s ease-out forwards;
}
@keyframes rpFadeReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rpFadeRevealBg {
  to { opacity: 1; transform: scale(1); }
}

/* CTA buttons */
.ebe-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--ebe-font-b);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: none; cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}
.ebe-btn--primary {
  background: var(--ebe-jade-dark);
  color: #fff;
  border: 2px solid var(--ebe-jade-dark);
}
.ebe-btn--primary:hover {
  background: var(--ebe-jade-soft);
  border-color: var(--ebe-jade-soft);
  transform: translateY(-2px);
  box-shadow: var(--ebe-shadow);
}
.ebe-btn--ghost {
  background: transparent;
  color: var(--ebe-jade-dark);
  border: 2px solid var(--ebe-jade-dark);
}
.ebe-btn--ghost:hover {
  background: var(--ebe-jade-dark);
  color: var(--ebe-bg);
}

/* CTA neon_outline_button animation === ANIM CTA === */
.ebe-btn--cta {
  background: var(--ebe-jade-dark);
  color: #fff;
  border: 2px solid var(--ebe-jade-dark);
  position: relative;
  animation: rpNeonOutline 2.6s ease-in-out infinite;
}
.ebe-btn--cta:hover {
  background: var(--ebe-jade-soft);
  border-color: var(--ebe-warm);
}
@keyframes rpNeonOutline {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(232, 168, 124, 0.55), 0 0 0 0 rgba(232, 168, 124, 0.0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232, 168, 124, 0.0), 0 0 22px 3px rgba(232, 168, 124, 0.45);
  }
}

/* === BLOC EDITORIAL SEO sur la home === */
.ebe-editorial-intro {
  background: var(--ebe-surface);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--ebe-line);
}
.ebe-editorial-intro-inner {
  width: min(900px, 92%);
  margin: 0 auto;
}
.ebe-editorial-intro h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--ebe-jade-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}
.ebe-editorial-intro h3 {
  font-size: 1.3rem;
  color: var(--ebe-jade-soft);
  margin-top: 2.4rem; margin-bottom: .6rem;
  font-family: var(--ebe-font-h);
}
.ebe-editorial-intro p { color: #1f3d34; font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.1em; }
.ebe-editorial-intro a {
  color: var(--ebe-warm-dark); border-bottom: 1px solid var(--ebe-warm);
  font-weight: 500; transition: color .2s;
}
.ebe-editorial-intro a:hover { color: var(--ebe-jade-dark); border-bottom-color: var(--ebe-jade-dark); }
.ebe-editorial-frame {
  margin-top: 2.5rem;
  border-left: 3px solid var(--ebe-warm);
  padding: 1.2rem 1.6rem;
  background: var(--ebe-cream-dark);
  border-radius: var(--ebe-radius-sm);
}
.ebe-editorial-frame h3 { margin-top: 0; color: var(--ebe-jade-dark); font-size: 1.15rem; }
.ebe-editorial-frame p { font-style: italic; margin-bottom: 0; color: #1f3d34; }

/* === SECTIONS PAR CATEGORIE sur la home === */
.ebe-cat-section {
  padding: 4rem 0 3rem;
  background: var(--ebe-bg);
}
.ebe-cat-section:nth-child(even) { background: var(--ebe-surface); }
.ebe-cat-section-inner { width: min(var(--ebe-container), 92%); margin: 0 auto; }
.ebe-cat-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--ebe-line);
  gap: 1rem; flex-wrap: wrap;
}
.ebe-cat-section-title {
  font-family: var(--ebe-font-h);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--ebe-jade-dark);
  margin: 0;
}
.ebe-cat-section-title a { color: inherit; }
.ebe-cat-section-title a:hover { color: var(--ebe-warm-dark); }
.ebe-cat-section-more {
  font-size: .92rem; font-weight: 600;
  color: var(--ebe-warm-dark); white-space: nowrap;
}
.ebe-cat-section-more:hover { color: var(--ebe-jade-dark); }

.ebe-cat-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ebe-card-article {
  background: var(--ebe-surface);
  border-radius: var(--ebe-radius);
  overflow: hidden;
  border: 1px solid var(--ebe-line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.ebe-cat-section:nth-child(even) .ebe-card-article { background: var(--ebe-bg); }
.ebe-card-article:hover { transform: translateY(-4px); box-shadow: var(--ebe-shadow); }
.ebe-card-article-img {
  display: block; aspect-ratio: 16/10;
  background: var(--ebe-cream-dark);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.ebe-card-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ebe-card-article:hover .ebe-card-article-img img { transform: scale(1.04); }
.ebe-card-article-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.ebe-card-article-title {
  font-family: var(--ebe-font-h);
  font-size: 1.15rem; line-height: 1.3;
  margin: 0 0 .55rem;
  color: var(--ebe-jade-dark);
}
.ebe-card-article-title a:hover { color: var(--ebe-warm-dark); }
.ebe-card-article-date {
  font-size: .82rem; color: var(--ebe-text-soft);
  letter-spacing: .03em;
}
.ebe-cat-empty {
  padding: 2.5rem;
  background: var(--ebe-surface);
  border: 1px dashed var(--ebe-line);
  border-radius: var(--ebe-radius);
  text-align: center;
  color: var(--ebe-text-soft);
}
.ebe-cat-empty a {
  color: var(--ebe-warm-dark); font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* === ROTATING WORDS — CTR === */
.ebe-rotating-wrap {
  display: inline-block; vertical-align: baseline;
  overflow: hidden; height: 1.2em; line-height: 1.2em;
}
.ebe-rotating {
  display: flex; flex-direction: column;
  animation: rpRotateWords 9s steps(3, end) infinite;
  color: var(--ebe-warm-dark);
  font-style: italic;
}
.ebe-rotating span { display: block; min-height: 1.2em; padding: 0 .15em; }
@keyframes rpRotateWords {
  0%, 28%   { transform: translateY(0%); }
  33%, 61%  { transform: translateY(-33.33%); }
  66%, 94%  { transform: translateY(-66.66%); }
  100%      { transform: translateY(-100%); }
}

/* === STICKY OFFER BOX — CTO === */
.ebe-sticky-offer {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 320px; max-width: calc(100vw - 3rem);
  background: var(--ebe-jade-dark);
  color: #fff;
  border-radius: var(--ebe-radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--ebe-shadow-lg);
  z-index: 90;
  transform: translateY(140%);
  animation: rpStickySlide .6s cubic-bezier(.22,1,.36,1) 4s forwards;
}
.ebe-sticky-offer-title { font-family: var(--ebe-font-h); font-size: 1.15rem; margin: 0 0 .4rem; color: #fff; }
.ebe-sticky-offer-text  { font-size: .92rem; color: rgba(245, 237, 224, 0.92); margin: 0 0 .9rem; line-height: 1.45; }
.ebe-sticky-offer-cta {
  display: inline-block; padding: .55rem 1.1rem;
  background: var(--ebe-warm); color: var(--ebe-jade-dark);
  border-radius: 999px; font-weight: 700; font-size: .92rem;
  text-decoration: none;
}
.ebe-sticky-offer-cta:hover { background: #fff; }
.ebe-sticky-close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: none; color: rgba(255,255,255,.7);
  font-size: 1.2rem; cursor: pointer; line-height: 1;
}
.ebe-sticky-close:hover { color: #fff; }
@keyframes rpStickySlide { to { transform: translateY(0); } }
.ebe-sticky-offer.is-closed { display: none; }
@media (max-width: 700px) {
  .ebe-sticky-offer { right: 1rem; left: 1rem; width: auto; bottom: 1rem; }
}

/* === CATEGORY PAGE === */
.ebe-cat-hero {
  position: relative;
  height: 320px; max-height: 350px;
  overflow: hidden;
  background: var(--ebe-cream-dark);
}
.ebe-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.ebe-cat-hero-inner {
  position: relative; z-index: 2; height: 100%;
  width: min(var(--ebe-container), 92%);
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 51, 41, 0.78) 100%);
}
.ebe-cat-hero-title {
  color: #fff;
  font-family: var(--ebe-font-h);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.ebe-cat-intro {
  background: var(--ebe-bg);
  padding: 3.5rem 0;
}
.ebe-cat-intro-inner { width: min(820px, 92%); margin: 0 auto; }
.ebe-cat-intro p { font-size: 1.06rem; line-height: 1.78; color: #1f3d34; margin-bottom: 1.1em; }
.ebe-cat-intro a { color: var(--ebe-warm-dark); border-bottom: 1px solid var(--ebe-warm); font-weight: 500; }
.ebe-cat-articles-wrap {
  padding: 2rem 0 4rem;
  background: var(--ebe-bg);
}
.ebe-cat-articles-grid {
  width: min(var(--ebe-container), 92%);
  margin: 0 auto;
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ebe-cat-outro {
  background: var(--ebe-surface);
  padding: 4rem 0;
  border-top: 1px solid var(--ebe-line);
}
.ebe-cat-outro-inner { width: min(820px, 92%); margin: 0 auto; }
.ebe-cat-outro h2 { font-size: 1.7rem; }
.ebe-cat-outro p { font-size: 1.02rem; line-height: 1.75; color: var(--ebe-text); }
.ebe-cat-outro a { color: var(--ebe-warm-dark); border-bottom: 1px solid var(--ebe-warm); }

/* === ARTICLE / PAGE === */
.ebe-page-content, .ebe-single-content {
  width: min(820px, 92%);
  margin: 0 auto;
  padding: 4rem 0 5rem;
}
.ebe-page-content h1, .ebe-single-content h1 { margin-bottom: 1.8rem; }
.ebe-page-content p, .ebe-single-content p { font-size: 1.05rem; line-height: 1.78; color: #1f3d34; margin-bottom: 1.1em; }
.ebe-page-content a, .ebe-single-content a { color: var(--ebe-warm-dark); border-bottom: 1px solid var(--ebe-warm); }

/* === PHOTO PERSONA === */
.ebe-persona-photo {
  display: block;
  width: 220px; height: 220px;
  border-radius: 50%; object-fit: cover;
  margin: 0 auto 2rem;
  box-shadow: var(--ebe-shadow);
  border: 4px solid var(--ebe-surface);
}

/* === CONTACT FORM === */
.ebe-contact-form {
  margin: 3rem 0 2rem;
  background: var(--ebe-surface);
  padding: 1.5rem;
  border-radius: var(--ebe-radius);
  border: 1px solid var(--ebe-line);
}

/* === FOOTER === */
.ebe-footer {
  background: var(--ebe-jade-dark);
  color: var(--ebe-bg);
  padding: 4rem 0 0;
  margin-top: 5rem;
}
.ebe-footer-cols {
  width: min(var(--ebe-container), 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 237, 224, 0.15);
}
.ebe-footer-col {}
.ebe-footer-logo { max-height: 56px; width: auto; height: auto; display: block; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.ebe-footer-brand-name { font-family: var(--ebe-font-h); font-size: 1.5rem; color: #fff; margin-bottom: .8rem; font-weight: 600; }
.ebe-footer-brand-pitch {
  font-size: .95rem; line-height: 1.65;
  color: rgba(245, 237, 224, 0.85);
  margin-bottom: 1.3rem;
}
.ebe-footer-brand-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ebe-warm);
  font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s;
}
.ebe-footer-brand-cta:hover { color: #fff; }
.ebe-footer-title {
  font-family: var(--ebe-font-h);
  font-size: 1.1rem;
  color: var(--ebe-warm);
  margin: 0 0 1rem;
  letter-spacing: .03em;
}
.ebe-footer-links { list-style: none; padding: 0; margin: 0; }
.ebe-footer-links li { margin-bottom: .55rem; }
.ebe-footer-links a {
  color: rgba(245, 237, 224, 0.88);
  font-size: .92rem;
  text-decoration: underline;
  text-decoration-color: rgba(245, 237, 224, 0.25);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.ebe-footer-links a:hover {
  color: #fff;
  text-decoration-color: var(--ebe-warm);
}

.ebe-footer-social {
  display: flex; gap: .75rem; margin-top: 1rem;
}
.ebe-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(245, 237, 224, 0.1);
  color: var(--ebe-bg);
  transition: background .2s, color .2s;
}
.ebe-footer-social a:hover { background: var(--ebe-warm); color: var(--ebe-jade-dark); }
.ebe-footer-social svg { width: 18px; height: 18px; }

.ebe-footer-bottom {
  width: min(var(--ebe-container), 92%);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(245, 237, 224, 0.65);
}
.ebe-footer-bottom a { color: inherit; text-decoration: underline; text-decoration-color: rgba(245, 237, 224, 0.25); }
.ebe-footer-bottom a:hover { color: var(--ebe-warm); }

/* === LIENS METRICS === */
.ebe-metrics-links {
  background: var(--ebe-cream-dark);
  padding: 3rem 0;
}
.ebe-metrics-inner { width: min(var(--ebe-container), 92%); margin: 0 auto; }
.ebe-metrics-title { font-family: var(--ebe-font-h); font-size: 1.4rem; text-align: center; margin: 0 0 1.5rem; color: var(--ebe-jade-dark); }
.ebe-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.ebe-metrics-card {
  background: var(--ebe-surface);
  padding: 1.1rem 1.3rem;
  border-radius: var(--ebe-radius-sm);
  border: 1px solid var(--ebe-line);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.ebe-metrics-card:hover { transform: translateY(-2px); box-shadow: var(--ebe-shadow-sm); }
.ebe-metrics-card a { color: var(--ebe-jade-dark); font-weight: 600; font-size: .98rem; }

/* === OUTILS interactifs (page outil) === */
.ebe-tool-wrapper {
  width: min(880px, 92%);
  margin: 3rem auto 5rem;
  padding: 2rem;
  background: var(--ebe-surface);
  border-radius: var(--ebe-radius-lg);
  box-shadow: var(--ebe-shadow-sm);
  border: 1px solid var(--ebe-line);
}
.ebe-tool-wrapper h2 { font-size: 1.6rem; color: var(--ebe-jade-dark); }
.ebe-tool-wrapper button {
  background: var(--ebe-jade-dark);
  color: #fff;
  border: none;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--ebe-font-b);
  font-weight: 600;
  cursor: pointer;
  font-size: .98rem;
  transition: background .2s;
}
.ebe-tool-wrapper button:hover { background: var(--ebe-jade-soft); }

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .ebe-footer-cols { grid-template-columns: 1fr 1fr; }
  .ebe-footer-brand-pitch { font-size: .9rem; }
  .ebe-hero { min-height: 64vh; }
  .ebe-hero-inner { padding: 4rem 0; }
}
@media (max-width: 600px) {
  .ebe-footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .ebe-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ebe-cat-articles { grid-template-columns: 1fr; }
  .ebe-persona-photo { width: 160px; height: 160px; }
  .ebe-hero-inner { padding: 3rem 0; }
  .ebe-cat-hero { height: 220px; }
}

/* === IMAGES placeholders fallbacks === */
.ebe-img-placeholder {
  background: linear-gradient(135deg, var(--ebe-cream-dark) 0%, var(--ebe-line) 100%);
}

/* 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; }
