/* =========================================================
   HARMONIE DÉCOR — Custom theme (Organique Lin Naturel)
   Palette : forest #1d695c + terracotta #bf5e3e + lin #EFE9DC
   Fonts   : Bodoni Moda (titres) + Karla (corps)
   ========================================================= */

:root {
  --ee4-primary:   #1d695c;
  --ee4-primary-d: #155349;
  --ee4-accent:    #bf5e3e;
  --ee4-accent-d:  #9c4a30;
  --ee4-text:      #1e1e1c;
  --ee4-text-soft: #757575;
  --ee4-bg:        #EFE9DC;
  --ee4-surface:   #F8F3E5;
  --ee4-line:      #D5C8B0;
  --ee4-white:     #ffffff;

  --ee4-font-headings: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --ee4-font-body:     'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ee4-radius:   4px;
  --ee4-radius-l: 6px;
  --ee4-shadow-1: 0 1px 3px rgba(30,30,28,0.06);
  --ee4-shadow-2: 0 10px 30px rgba(30,30,28,0.10);

  --ee4-container: 1240px;
  --ee4-header-h:  74px;
}

/* RESET soft */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ee4-body {
  margin: 0;
  font-family: var(--ee4-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ee4-text);
  background: var(--ee4-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--ee4-font-headings);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ee4-text);
  margin: 0 0 0.7em;
}
h1 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

a { color: var(--ee4-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ee4-accent); }

p { margin: 0 0 1em; }
.ee4-container { max-width: var(--ee4-container); margin: 0 auto; padding: 0 1.5rem; }
.ee4-main { min-height: 60vh; padding-top: 0; }

/* =========================================================
   HEADER — sticky-minimal
   ========================================================= */
.ee4-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ee4-bg);
  border-bottom: 1px solid var(--ee4-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(239, 233, 220, 0.92);
  height: var(--ee4-header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.25s;
}
.ee4-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(30,30,28,0.07);
}
.ee4-header-inner {
  width: 100%;
  max-width: var(--ee4-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.ee4-brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ee4-text);
}
.ee4-brand-logo {
  height: 42px;
  width: auto;
}
.ee4-brand-name {
  font-family: var(--ee4-font-headings);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ee4-text);
}

/* NAV — horizontal desktop */
.ee4-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.ee4-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.4rem;
}
.ee4-nav-list a {
  font-family: var(--ee4-font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ee4-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s;
}
.ee4-nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--ee4-accent);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}
.ee4-nav-list a:hover { color: var(--ee4-primary); }
.ee4-nav-list a:hover::after { transform: scaleX(1); }

/* CTA Header (cta_in_header == yes) */
.ee4-btn--cta {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  font-family: var(--ee4-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ee4-text);
  background: linear-gradient(90deg, var(--ee4-accent) 50%, transparent 50%) right / 200% 100%;
  border: 1.5px solid var(--ee4-accent);
  border-radius: var(--ee4-radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.45s ease, color 0.3s ease;
}
.ee4-btn--cta:hover {
  background-position: left;
  color: var(--ee4-white);
}

/* BURGER mobile */
.ee4-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 110;
}
.ee4-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ee4-text);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.ee4-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ee4-burger.is-open span:nth-child(2) { opacity: 0; }
.ee4-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DRAWER mobile — caché par défaut */
.ee4-nav-mobile { display: none; }

/* =========================================================
   HERO — zoom-on-scroll
   ========================================================= */
.ee4-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--ee4-bg);
}
.ee4-hero-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ee4-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.05s linear;
}
/* zoom-on-scroll : la classe is-scrolled applique le zoom via JS */
.ee4-hero.is-scrolled .ee4-hero-bg {
  transform: scale(var(--ee4-zoom, 1));
}
.ee4-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ee4-container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--ee4-white);
  text-align: center;
}
.ee4-hero-title {
  font-family: var(--ee4-font-headings);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--ee4-white);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  letter-spacing: -0.005em;
}
.ee4-hero-subtitle {
  font-family: var(--ee4-font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.ee4-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ee4-btn--hero {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  font-family: var(--ee4-font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--ee4-radius);
  transition: transform 0.2s, background 0.2s;
}
.ee4-btn--hero.is-primary {
  background: var(--ee4-accent);
  color: var(--ee4-white);
  border: 1.5px solid var(--ee4-accent);
}
.ee4-btn--hero.is-primary:hover {
  background: var(--ee4-accent-d);
  border-color: var(--ee4-accent-d);
}
.ee4-btn--hero.is-ghost {
  background: transparent;
  color: var(--ee4-white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.ee4-btn--hero.is-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--ee4-white);
}

/* =========================================================
   SECTIONS génériques
   ========================================================= */
.ee4-section {
  padding: 5rem 0;
}
.ee4-section--surface { background: var(--ee4-surface); }
.ee4-section--white   { background: var(--ee4-white); }
.ee4-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.ee4-eyebrow {
  display: inline-block;
  font-family: var(--ee4-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ee4-accent);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.ee4-section-title {
  font-family: var(--ee4-font-headings);
  margin: 0 0 0.6rem;
}
.ee4-section-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ee4-text-soft);
  font-size: 1.05rem;
}

/* =========================================================
   ÉDITO HOME (bloc 400-700 mots SEO)
   ========================================================= */
.ee4-editorial {
  background: var(--ee4-bg);
  padding: 4.5rem 0;
}
.ee4-editorial-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ee4-editorial h2 {
  font-family: var(--ee4-font-headings);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  text-align: center;
  margin-bottom: 2rem;
}
.ee4-editorial h3 {
  font-family: var(--ee4-font-headings);
  margin-top: 2.3rem;
  font-size: 1.3rem;
  color: var(--ee4-primary);
}
.ee4-editorial p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ee4-text);
}
.ee4-editorial .ee4-pull {
  font-family: var(--ee4-font-headings);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--ee4-accent);
  margin: 2rem 0;
  color: var(--ee4-primary);
  background: var(--ee4-surface);
  border-radius: 0 var(--ee4-radius) var(--ee4-radius) 0;
}

/* =========================================================
   GRID CATEGORIES (rubriques)
   ========================================================= */
.ee4-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ee4-cat-card {
  position: relative;
  display: block;
  border-radius: var(--ee4-radius-l);
  overflow: hidden;
  background: var(--ee4-surface);
  box-shadow: var(--ee4-shadow-1);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 4 / 5;
}
.ee4-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ee4-shadow-2);
}
.ee4-cat-card-img {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--ee4-primary);
  background-size: cover;
  background-position: center;
  position: absolute;
  inset: 0;
}
.ee4-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,28,0) 40%, rgba(30,30,28,0.78) 100%);
}
.ee4-cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 2;
  color: var(--ee4-white);
}
.ee4-cat-card-body h3 {
  font-family: var(--ee4-font-headings);
  color: var(--ee4-white);
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.ee4-cat-card-body p {
  font-size: 0.92rem;
  margin: 0;
  color: rgba(255,255,255,0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   GRID ARTICLES (cards)
   ========================================================= */
.ee4-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.ee4-article-card {
  background: var(--ee4-white);
  border-radius: var(--ee4-radius-l);
  overflow: hidden;
  box-shadow: var(--ee4-shadow-1);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.ee4-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ee4-shadow-2);
}
.ee4-article-card-img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  background: var(--ee4-surface);
}
.ee4-article-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ee4-article-card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ee4-accent);
  margin-bottom: 0.55rem;
  font-weight: 600;
}
.ee4-article-card-body h3 {
  font-family: var(--ee4-font-headings);
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.ee4-article-card-body h3 a {
  color: var(--ee4-text);
  text-decoration: none;
}
.ee4-article-card-body h3 a:hover { color: var(--ee4-primary); }
.ee4-article-card-excerpt {
  color: var(--ee4-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ee4-article-card-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ee4-primary);
  letter-spacing: 0.02em;
}

/* =========================================================
   TOOL embed sur HOME
   ========================================================= */
.ee4-tool-section {
  background: var(--ee4-surface);
  padding: 4.5rem 0;
}
.ee4-tool-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ee4-tool-intro {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ee4-text-soft);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   FOOTER — 4 colonnes natural_fabric
   ========================================================= */
.ee4-footer {
  background: #2b2925;
  color: #e8dfce;
  padding: 4.5rem 0 1.5rem;
  margin-top: 4rem;
  font-family: var(--ee4-font-body);
}
.ee4-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.ee4-footer-col h3.ee4-footer-title {
  font-family: var(--ee4-font-headings);
  color: #f5ecd9;
  font-size: 1.15rem;
  margin: 0 0 1.2rem;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.ee4-footer-logo {
  height: auto;
  width: 130px;
  margin-bottom: 1.2rem;
  display: block;
  filter: brightness(0) invert(0.92);
}
.ee4-footer-brand-pitch {
  color: #d8cfba;
  line-height: 1.65;
  font-size: 0.96rem;
  margin: 0 0 1.3rem;
}
.ee4-footer-brand-cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f5ecd9;
  text-decoration: underline;
  text-decoration-color: var(--ee4-accent);
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.ee4-footer-brand-cta:hover { color: var(--ee4-accent); }

.ee4-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ee4-footer-links li {
  margin-bottom: 0.7rem;
}
.ee4-footer-links a {
  color: #e8dfce;
  text-decoration: underline;
  text-decoration-color: rgba(232, 223, 206, 0.25);
  text-underline-offset: 3px;
  font-size: 0.96rem;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ee4-footer-links a:hover {
  color: var(--ee4-accent);
  text-decoration-color: var(--ee4-accent);
}

.ee4-footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.ee4-footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232, 223, 206, 0.3);
  border-radius: 50%;
  color: #e8dfce;
  transition: background 0.2s, border-color 0.2s;
}
.ee4-footer-social a:hover {
  background: var(--ee4-accent);
  border-color: var(--ee4-accent);
  color: #fff;
}
.ee4-footer-social svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.ee4-footer-bottom {
  border-top: 1px solid rgba(232, 223, 206, 0.18);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.ee4-footer-copy {
  font-size: 0.85rem;
  color: #bbb09a;
}
.ee4-footer-copy strong { color: #f5ecd9; }
.ee4-footer-tagline {
  font-style: italic;
  font-family: var(--ee4-font-headings);
  color: #bbb09a;
  font-size: 0.9rem;
}

/* =========================================================
   PAGE — content (a-propos, contact)
   ========================================================= */
.ee4-page {
  background: var(--ee4-bg);
  padding: 4rem 0;
}
.ee4-page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ee4-page h1.ee4-page-title {
  font-family: var(--ee4-font-headings);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 2rem;
}
.ee4-page-content h2 {
  margin-top: 2.5rem;
  color: var(--ee4-primary);
  font-size: 1.5rem;
}
.ee4-page-content p {
  line-height: 1.75;
  font-size: 1.05rem;
}
.ee4-persona-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 2rem auto;
  border-radius: var(--ee4-radius-l);
  box-shadow: var(--ee4-shadow-2);
}
.ee4-contact-form {
  margin-top: 2.5rem;
  background: var(--ee4-surface);
  padding: 1rem;
  border-radius: var(--ee4-radius-l);
}

/* =========================================================
   METRICS LINKS (bloc home milieu)
   ========================================================= */
.ee4-metrics-links {
  background: var(--ee4-white);
  padding: 3rem 0;
  border-top: 1px solid var(--ee4-line);
  border-bottom: 1px solid var(--ee4-line);
}
.ee4-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: var(--ee4-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ee4-metric-item {
  text-align: center;
}
.ee4-metric-item a {
  display: block;
  padding: 1.2rem;
  border: 1px solid var(--ee4-line);
  border-radius: var(--ee4-radius);
  color: var(--ee4-text);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.ee4-metric-item a:hover {
  background: var(--ee4-primary);
  color: var(--ee4-white);
  border-color: var(--ee4-primary);
}

/* =========================================================
   CATEGORY PAGE
   ========================================================= */
.ee4-cat-header {
  background: var(--ee4-surface);
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--ee4-line);
}
.ee4-cat-header h1 {
  font-family: var(--ee4-font-headings);
  margin-bottom: 1rem;
}
.ee4-cat-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ee4-text-soft);
  line-height: 1.7;
}

/* =========================================================
   ANNOUNCEMENT BAR (CTR — top_announcement_bar)
   ========================================================= */
@keyframes ee4-ctr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.ee4-announcement-bar {
  position: relative;
  background: var(--ee4-primary);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  animation: ee4-ctr-pulse 4s ease-in-out infinite;
}
.ee4-announcement-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.4rem;
}

/* =========================================================
   NEW BADGE (CTO — new_badge_animation)
   ========================================================= */
@keyframes ee4-new-badge {
  0%   { transform: rotate(-8deg) scale(0.92); }
  50%  { transform: rotate(-8deg) scale(1.04); }
  100% { transform: rotate(-8deg) scale(0.92); }
}
.ee4-badge-new {
  display: inline-block;
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ee4-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  animation: ee4-new-badge 2.2s ease-in-out infinite;
  z-index: 3;
}

/* =========================================================
   MEDIA QUERIES — responsive
   ========================================================= */
@media (max-width: 1100px) {
  .ee4-cats-grid { grid-template-columns: repeat(3, 1fr); }
  .ee4-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .ee4-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .ee4-footer-col--tools { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .ee4-header-inner { padding: 0 1rem; }
  .ee4-nav { display: none; }
  .ee4-burger { display: block; }

  /* Drawer mobile visible UNIQUEMENT lorsque .is-open est ajouté */
  .ee4-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--ee4-bg);
    padding: 5rem 1.5rem 2rem;
    z-index: 105;
    overflow-y: auto;
    box-shadow: -12px 0 30px rgba(0,0,0,0.25);
  }
  .ee4-nav-mobile.is-open ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .ee4-nav-mobile.is-open li {
    border-bottom: 1px solid var(--ee4-line);
  }
  .ee4-nav-mobile.is-open a {
    display: block;
    padding: 1rem 0.4rem;
    color: var(--ee4-text);
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
  }
  .ee4-nav-mobile.is-open a:hover { color: var(--ee4-primary); }
  .ee4-nav-mobile.is-open .ee4-btn--cta {
    margin-top: 1.4rem;
    text-align: center;
    display: block;
  }

  .ee4-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ee4-articles-grid { grid-template-columns: 1fr; }
  .ee4-section { padding: 3.5rem 0; }
  .ee4-hero { min-height: 60vh; }
  .ee4-hero-inner { padding: 3rem 1.2rem; }
  .ee4-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ee4-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .ee4-editorial { padding: 3rem 0; }
  .ee4-editorial .ee4-pull {
    font-size: 1.15rem;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .ee4-cats-grid { grid-template-columns: 1fr; gap: 1rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .ee4-hero-title { font-size: 1.95rem; }
  .ee4-hero-subtitle { font-size: 1rem; }
  .ee4-btn--hero { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: 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 v1 */
/* 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: 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: drawer-mobile height fix v1 */
@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 {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }
}


/* Validator: footer logo no-filter v1 */
/* Bug : Claude applique filter:brightness(0) invert(X) sur le logo footer
 * en pensant que le fond est sombre. Si le fond est clair (beige/blanc/gris
 * clair), le logo devient quasi-blanc → invisible. On force filter:none
 * partout dans le footer. Exception : si le footer a une classe dark/black
 * explicite, le filtre invert peut etre utile → on garde. */
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 {
  /* Si footer explicitement sombre : laisse le filtre original (peut etre invert) */
  filter: brightness(0) invert(1) !important;
}
