/* ========================================================================
   IMMATRICULE — Vintage Western Saloon design system
   Palette : crème parchemin + rouge saloon + brun cuir patiné
   Fonts   : Smokum (headings, vintage western display) + Roboto Slab (body)
   ======================================================================== */

:root {
  --ea1-primary:    #bf0808;
  --ea1-accent:     #8B3A1F;
  --ea1-text:       #2A1A0A;
  --ea1-text-soft:  #6A4A30;
  --ea1-bg:         #F0E0C5;
  --ea1-surface:    #FAEBC8;
  --ea1-line:       #C9A875;
  --ea1-shadow:     rgba(42, 26, 10, 0.18);
  --ea1-shadow-strong: rgba(42, 26, 10, 0.35);
  --ea1-font-head:  'Smokum', 'Roboto Slab', Georgia, serif;
  --ea1-font-body:  'Roboto Slab', Georgia, serif;
  --ea1-radius:     6px;
  --ea1-radius-lg:  12px;
  --ea1-container:  1180px;
  --ea1-header-h:   84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ea1-body {
  margin: 0;
  background: var(--ea1-bg);
  color: var(--ea1-text);
  font-family: var(--ea1-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ea1-primary); text-decoration: underline; text-decoration-color: var(--ea1-line); text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--ea1-accent); text-decoration-color: var(--ea1-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ea1-font-head);
  color: var(--ea1-text);
  letter-spacing: 0.03em;
  line-height: 1.18;
  margin: 1.6rem 0 0.8rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--ea1-primary); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1rem; }
strong { color: var(--ea1-text); font-weight: 700; }

.ea1-container { max-width: var(--ea1-container); margin: 0 auto; padding: 0 1.4rem; }

/* ================= BUTTONS (leather_brown style) ================= */
.ea1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--ea1-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #5C3018;
  border-radius: var(--ea1-radius);
  cursor: pointer;
  background: linear-gradient(180deg, #8B3A1F 0%, #5C2410 100%);
  color: #F0E0C5;
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.18), 0 3px 0 #2C1408, 0 5px 12px rgba(42, 26, 10, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.ea1-btn:hover { background: linear-gradient(180deg, #9C451F 0%, #6E2D14 100%); color: #fff; transform: translateY(-1px); }
.ea1-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.18), 0 1px 0 #2C1408; }

.ea1-btn--cta {
  background: linear-gradient(180deg, #d90909 0%, #8B0606 100%);
  border-color: #5C0404;
  color: #fff;
}
.ea1-btn--cta:hover { background: linear-gradient(180deg, #ef1010 0%, #a30707 100%); color: #fff; }

/* shadow_lift_hover animation */
.ea1-btn--cta, .ea1-cta { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease; will-change: transform, box-shadow; }
.ea1-btn--cta:hover, .ea1-cta:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(191, 8, 8, 0.28), 0 6px 12px rgba(42, 26, 10, 0.22); }
.ea1-btn--cta:active, .ea1-cta:active { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(191, 8, 8, 0.25); transition-duration: 0.08s; }
@media (prefers-reduced-motion: reduce) { .ea1-btn--cta, .ea1-cta { transition: none; } .ea1-btn--cta:hover, .ea1-cta:hover { transform: none; } }

/* ================= HEADER — saloon_wanted style ================= */
.ea1-header {
  background: linear-gradient(180deg, #F8EAC8 0%, #E8D4A4 100%);
  border-bottom: 6px double var(--ea1-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px var(--ea1-shadow);
}
.ea1-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--ea1-container);
  margin: 0 auto;
  padding: 0.8rem 1.4rem;
  min-height: var(--ea1-header-h);
}
.ea1-brand-link { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.ea1-brand-logo { height: 64px; width: auto; }
.ea1-brand-text { display: none; }

.ea1-nav { display: flex; align-items: center; }
.ea1-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.ea1-nav-list a, .ea1-nav-list .ea1-nav-link {
  text-decoration: none;
  font-family: var(--ea1-font-head);
  font-size: 1.1rem;
  letter-spacing: 0.07em;
  color: var(--ea1-text);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ea1-nav-list a:hover, .ea1-nav-list .current-menu-item > a { color: var(--ea1-primary); border-bottom-color: var(--ea1-primary); }

.ea1-burger {
  display: none;
  background: transparent;
  border: 2px solid var(--ea1-primary);
  color: var(--ea1-primary);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  border-radius: var(--ea1-radius);
  font-family: var(--ea1-font-head);
  font-size: 1.4rem;
  line-height: 1;
}

/* Mobile drawer */
.ea1-nav-mobile { display: none; }

@media (max-width: 980px) {
  .ea1-nav { display: none; }
  .ea1-burger { display: inline-flex; align-items: center; justify-content: center; }
  .ea1-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #FAEBC8;
    padding: 5rem 1.8rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--ea1-primary);
  }
  .ea1-nav-mobile.is-open ul { list-style: none; padding: 0; margin: 0; }
  .ea1-nav-mobile.is-open li { border-bottom: 1px solid var(--ea1-line); }
  .ea1-nav-mobile.is-open a {
    display: block;
    padding: 1rem 0;
    color: #2A1A0A;
    text-decoration: none;
    font-family: var(--ea1-font-head);
    font-size: 1.3rem;
    letter-spacing: 0.05em;
  }
  .ea1-nav-mobile.is-open a:hover { color: var(--ea1-primary); }
  .ea1-nav-mobile .ea1-nav-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--ea1-primary);
    color: #fff;
    border: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
  }
}

/* ================= HERO — featured-article style ================= */
.ea1-hero { position: relative; overflow: hidden; min-height: 70vh; background: var(--ea1-text); }
.ea1-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ea1-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--ea1-container);
  margin: 0 auto;
  padding: 5rem 1.4rem 4rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 70vh;
}
.ea1-hero-eyebrow {
  display: inline-block;
  background: var(--ea1-primary);
  color: #fff;
  padding: 0.35rem 1rem;
  font-family: var(--ea1-font-head);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 1rem;
  align-self: flex-start;
  text-decoration: none;
}
.ea1-hero-title {
  font-family: var(--ea1-font-head);
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
  max-width: 900px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.03em;
}
.ea1-hero-subtitle {
  color: #f4e6c8;
  font-size: 1.2rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.ea1-hero-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }
.ea1-hero-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Hero placeholder cards when no featured post yet */
.ea1-hero--no-post .ea1-hero-bg { opacity: 0.35; }

/* ================= SECTION SHELL ================= */
.ea1-section { padding: 4rem 0; }
.ea1-section--alt { background: var(--ea1-surface); border-top: 2px solid var(--ea1-line); border-bottom: 2px solid var(--ea1-line); }
.ea1-section-head { text-align: center; margin-bottom: 2.4rem; }
.ea1-section-head h2 { margin: 0 0 0.4rem; }
.ea1-section-head .ea1-section-sub { color: var(--ea1-text-soft); font-size: 1.05rem; }
.ea1-section-head::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--ea1-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ================= EDITORIAL BLOCK (home SEO 400-700 words) ================= */
.ea1-editorial { padding: 3.5rem 0; background: var(--ea1-bg); }
.ea1-editorial-inner { max-width: 880px; margin: 0 auto; padding: 0 1.4rem; }
.ea1-editorial h2 { color: var(--ea1-primary); border-bottom: 3px double var(--ea1-line); padding-bottom: 0.5rem; }
.ea1-editorial h3 { color: var(--ea1-accent); margin-top: 2rem; }
.ea1-editorial-card {
  background: var(--ea1-surface);
  border: 2px solid var(--ea1-line);
  padding: 1.4rem 1.6rem;
  border-radius: var(--ea1-radius);
  margin: 1.8rem 0;
  box-shadow: 0 3px 12px var(--ea1-shadow);
}
.ea1-editorial-card h3 { margin-top: 0; }

/* ================= CATEGORIES GRID ================= */
.ea1-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.ea1-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--ea1-radius-lg);
  background: var(--ea1-surface);
  border: 1px solid var(--ea1-line);
  text-decoration: none;
  color: var(--ea1-text);
  box-shadow: 0 4px 14px var(--ea1-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  min-height: 220px;
  aspect-ratio: 16 / 11;
}
.ea1-cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px var(--ea1-shadow-strong); }
.ea1-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  background-size: cover;
  background-position: center;
  background-color: var(--ea1-primary);
}
.ea1-cat-card-img--fallback { background: linear-gradient(135deg, var(--ea1-primary), var(--ea1-accent)); }
.ea1-cat-card-body { padding: 0.9rem 1rem; }
.ea1-cat-card-title {
  font-family: var(--ea1-font-head);
  font-size: 1.45rem;
  color: var(--ea1-text);
  margin: 0;
  letter-spacing: 0.04em;
}
.ea1-cat-card-meta { color: var(--ea1-text-soft); font-size: 0.85rem; margin-top: 0.25rem; }

@media (max-width: 980px) { .ea1-categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ea1-categories-grid { grid-template-columns: 1fr; } }

/* ================= LATEST ARTICLES (9 cards, 3 cols) ================= */
.ea1-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.ea1-article-card {
  background: var(--ea1-surface);
  border: 1px solid var(--ea1-line);
  border-radius: var(--ea1-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px var(--ea1-shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.ea1-article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px var(--ea1-shadow-strong); }
.ea1-article-thumb { aspect-ratio: 16 / 10; background: var(--ea1-line); overflow: hidden; }
.ea1-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ea1-article-body { padding: 1.1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.ea1-article-cat {
  font-family: var(--ea1-font-head);
  font-size: 0.85rem;
  color: var(--ea1-primary);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.ea1-article-title { font-size: 1.25rem; margin: 0 0 0.6rem; color: var(--ea1-text); font-family: var(--ea1-font-head); letter-spacing: 0.02em; }
.ea1-article-title a { color: inherit; text-decoration: none; }
.ea1-article-title a:hover { color: var(--ea1-primary); }
.ea1-article-excerpt { color: var(--ea1-text-soft); font-size: 0.95rem; flex: 1; }
.ea1-article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--ea1-text-soft); margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px dashed var(--ea1-line); }

@media (max-width: 980px) { .ea1-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ea1-latest-grid { grid-template-columns: 1fr; } }

/* ================= ABOUT TEASER (home section) ================= */
.ea1-about-teaser {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.6rem;
  align-items: center;
}
.ea1-about-teaser-img {
  border-radius: var(--ea1-radius-lg);
  overflow: hidden;
  border: 3px solid var(--ea1-line);
  box-shadow: 0 8px 22px var(--ea1-shadow-strong);
}
.ea1-about-teaser-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 3; }
.ea1-about-teaser-content h2 { margin-top: 0; }
@media (max-width: 760px) { .ea1-about-teaser { grid-template-columns: 1fr; text-align: center; } .ea1-about-teaser-img { max-width: 260px; margin: 0 auto; } }

/* ================= ABOUT PAGE persona photo ================= */
.ea1-persona-photo {
  float: right;
  max-width: 320px;
  margin: 0 0 1.4rem 1.6rem;
  border-radius: var(--ea1-radius-lg);
  border: 3px solid var(--ea1-line);
  box-shadow: 0 8px 22px var(--ea1-shadow-strong);
}
@media (max-width: 760px) { .ea1-persona-photo { float: none; margin: 0 auto 1.4rem; display: block; } }

/* ================= FOOTER — western_columns ================= */
.ea1-footer {
  background: linear-gradient(180deg, #3A1F0C 0%, #2A1408 100%);
  color: #E8D4A4;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 8px double var(--ea1-primary);
}
.ea1-footer a { color: #F0E0C5; text-decoration: underline; text-decoration-color: rgba(240, 224, 197, 0.4); }
.ea1-footer a:hover { color: #fff; text-decoration-color: #fff; }
.ea1-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--ea1-container);
  margin: 0 auto;
  padding: 0 1.4rem;
}
.ea1-footer-col h3 {
  font-family: var(--ea1-font-head);
  font-size: 1.4rem;
  color: var(--ea1-primary);
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
}
.ea1-footer-title { font-family: var(--ea1-font-head); font-size: 1.4rem; color: var(--ea1-primary); margin: 0 0 1rem; letter-spacing: 0.05em; }
.ea1-footer-logo { display: block; max-width: 160px; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.ea1-footer-brand-pitch { font-size: 0.95rem; line-height: 1.65; color: #E8D4A4; margin-bottom: 1.2rem; }
.ea1-footer-brand-cta {
  display: inline-block;
  background: var(--ea1-primary);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--ea1-radius);
  font-family: var(--ea1-font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.ea1-footer-brand-cta:hover { background: #d90909; color: #fff !important; }
.ea1-footer-links { list-style: none; padding: 0; margin: 0; }
.ea1-footer-links li { padding: 0.35rem 0; }
.ea1-footer-bottom {
  max-width: var(--ea1-container);
  margin: 3rem auto 0;
  padding: 1.5rem 1.4rem 0;
  border-top: 1px solid rgba(201, 168, 117, 0.3);
  text-align: center;
  font-size: 0.9rem;
  color: #C9A875;
}
.ea1-footer-social { display: flex; gap: 0.8rem; margin-top: 0.6rem; }
.ea1-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201, 168, 117, 0.18);
  color: #F0E0C5;
  text-decoration: none;
  font-size: 1rem;
}
.ea1-footer-social a:hover { background: var(--ea1-primary); color: #fff; }
@media (max-width: 980px) { .ea1-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ea1-footer-grid { grid-template-columns: 1fr; text-align: center; } .ea1-footer-logo { margin-left: auto; margin-right: auto; } }

/* ================= METRICS LINKS BLOCK (ea1_render_metrics_links) ================= */
.ea1-metrics { padding: 3rem 0; background: var(--ea1-surface); border-top: 1px solid var(--ea1-line); border-bottom: 1px solid var(--ea1-line); }
.ea1-metrics-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.ea1-metrics-link {
  background: #fff;
  border: 2px solid var(--ea1-line);
  padding: 0.8rem 1.2rem;
  border-radius: var(--ea1-radius);
  text-decoration: none;
  color: var(--ea1-text);
  font-family: var(--ea1-font-head);
  letter-spacing: 0.04em;
  transition: border-color 0.2s, transform 0.2s;
}
.ea1-metrics-link:hover { border-color: var(--ea1-primary); color: var(--ea1-primary); transform: translateY(-2px); }

/* ================= CATEGORY PAGE ================= */
.ea1-cat-page { padding: 3rem 0; }
.ea1-cat-page-head { text-align: center; margin-bottom: 2.5rem; }
.ea1-cat-page-head h1 { margin: 0 0 1rem; color: var(--ea1-primary); }
.ea1-cat-page-intro { max-width: 760px; margin: 0 auto; color: var(--ea1-text-soft); font-size: 1.05rem; }

/* ================= SINGLE POST ================= */
.ea1-single { padding: 3rem 0; }
.ea1-single-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; max-width: 1100px; margin: 0 auto; padding: 0 1.4rem; }
.ea1-single-content h1 { color: var(--ea1-text); }
.ea1-single-meta { color: var(--ea1-text-soft); font-size: 0.9rem; margin-bottom: 1.5rem; }
@media (max-width: 980px) { .ea1-single-layout { grid-template-columns: 1fr; } }

/* sticky_table_of_contents */
.ea1-toc { position: sticky; top: calc(var(--ea1-header-h) + 12px); max-height: calc(100vh - 100px); overflow-y: auto; padding: 1.2rem 1rem; background: var(--ea1-surface); border-left: 3px solid var(--ea1-primary); border-radius: 0 4px 4px 0; font-family: var(--ea1-font-body); }
.ea1-toc h3 { margin: 0 0 0.6rem; font-family: var(--ea1-font-head); color: var(--ea1-primary); letter-spacing: 0.04em; font-size: 1.2rem; }
.ea1-toc ul { list-style: none; padding: 0; margin: 0; }
.ea1-toc li { padding: 0.3rem 0; border-bottom: 1px dashed var(--ea1-line); }
.ea1-toc li:last-child { border-bottom: none; }
.ea1-toc a { color: var(--ea1-text); text-decoration: none; font-size: 0.95rem; display: block; transition: color 0.2s, padding-left 0.2s; }
.ea1-toc a:hover, .ea1-toc a.is-active { color: var(--ea1-primary); padding-left: 6px; }
@media (max-width: 980px) { .ea1-toc { position: relative; top: 0; max-height: none; } }

/* guarantee_badge CTO */
@keyframes ea1-badge-pulse {
  0%, 100% { transform: scale(1) rotate(-8deg); box-shadow: 0 4px 12px rgba(191, 8, 8, 0.35); }
  50% { transform: scale(1.06) rotate(-8deg); box-shadow: 0 8px 20px rgba(191, 8, 8, 0.55); }
}
.ea1-guarantee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px; height: 84px;
  background: radial-gradient(circle at 30% 30%, #bf0808, #8B3A1F);
  color: #F0E0C5;
  border-radius: 50%;
  font-family: var(--ea1-font-head);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.12;
  padding: 0.5rem;
  border: 2px dashed #F0E0C5;
  box-shadow: 0 4px 12px rgba(191, 8, 8, 0.35);
  animation: ea1-badge-pulse 2.4s ease-in-out infinite;
  letter-spacing: 0.04em;
  position: relative;
}
.ea1-guarantee-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(191, 8, 8, 0.4);
  border-radius: 50%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .ea1-guarantee-badge { animation: none; } }

/* ================= CONTACT FORM WRAPPER ================= */
.ea1-contact-form { margin-top: 2rem; background: #fff; border: 2px solid var(--ea1-line); border-radius: var(--ea1-radius); padding: 0.8rem; }
.ea1-contact-form iframe { display: block; }

/* ================= TYPOGRAPHIC HELPERS ================= */
.ea1-eyebrow { display: inline-block; font-family: var(--ea1-font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ea1-primary); font-size: 0.95rem; }
.ea1-divider { width: 100px; height: 4px; background: var(--ea1-primary); border: 0; margin: 1.6rem auto; border-radius: 2px; }

/* ================= RESPONSIVE LARGE ADJUSTMENTS ================= */
@media (max-width: 760px) {
  body.ea1-body { font-size: 16px; }
  .ea1-section { padding: 3rem 0; }
  .ea1-hero-inner { padding: 3.5rem 1.4rem 2.5rem; }
  .ea1-hero { min-height: 56vh; }
  .ea1-hero-inner { min-height: 56vh; }
}
@media (max-width: 480px) {
  .ea1-btn { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
  .ea1-brand-logo { height: 52px; }
}

/* Lock scroll when mobile nav is open */
body.ea1-no-scroll { overflow: hidden; }

/* 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. */
@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 */
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: 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; }
