/* ==========================================================================
   CHRONO RECETTE — child theme custom CSS
   Design system: Cuisine Mexicaine Taquería (DB pick cuisine-mexican-taco-05)
   Header: logo-left-menu-right | Hero: fade-reveal | Category: tldr-detailed
   ========================================================================== */

/* ---------- 1. ROOT VARS ---------- */
:root {
  --e1d-primary:   #C8102E;
  --e1d-accent:    #F5B700;
  --e1d-text:      #3A0F0A;
  --e1d-text-soft: #7A4530;
  --e1d-bg:        #FFF5DC;
  --e1d-surface:   #FFFAF0;
  --e1d-line:      #F0D095;

  --e1d-primary-dark: #9C0823;
  --e1d-accent-dark:  #C49600;

  --e1d-font-headings: "Limelight", "Georgia", serif;
  --e1d-font-body:     "Karla", "Helvetica Neue", Arial, sans-serif;

  --e1d-radius-sm: 4px;
  --e1d-radius:    8px;
  --e1d-radius-lg: 14px;

  --e1d-shadow-sm: 0 2px 6px rgba(58, 15, 10, .08);
  --e1d-shadow:    0 6px 18px rgba(58, 15, 10, .12);
  --e1d-shadow-lg: 0 14px 38px rgba(58, 15, 10, .18);

  --e1d-cont-w: 1200px;
  --e1d-cont-x: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- 2. RESET + BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.e1d-body {
  margin: 0;
  font-family: var(--e1d-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--e1d-text);
  background: var(--e1d-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--e1d-font-headings);
  color: var(--e1d-text);
  line-height: 1.18;
  margin: 0 0 .75em;
  font-weight: 400;
  letter-spacing: .02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }

p { margin: 0 0 1em; }

a {
  color: var(--e1d-primary);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
a:hover { color: var(--e1d-primary-dark); }

.e1d-container {
  max-width: var(--e1d-cont-w);
  margin: 0 auto;
  padding-left: var(--e1d-cont-x);
  padding-right: var(--e1d-cont-x);
}

main, .e1d-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ---------- 3. BUTTONS ---------- */
.e1d-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--e1d-radius);
  font-family: var(--e1d-font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.e1d-btn--cta {
  background: var(--e1d-primary);
  color: #fff !important;
  box-shadow: var(--e1d-shadow);
}
.e1d-btn--cta:hover {
  background: var(--e1d-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--e1d-shadow-lg);
  color: #fff !important;
}
.e1d-btn--ghost {
  background: transparent;
  color: var(--e1d-text) !important;
  border-color: var(--e1d-line);
}
.e1d-btn--ghost:hover {
  border-color: var(--e1d-primary);
  color: var(--e1d-primary) !important;
}

/* ---------- 4. HEADER (logo-left-menu-right) ---------- */
.e1d-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--e1d-surface);
  border-bottom: 1px solid var(--e1d-line);
  box-shadow: 0 1px 0 rgba(58, 15, 10, .04);
}
.e1d-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  max-width: var(--e1d-cont-w);
  margin: 0 auto;
  padding: .85rem var(--e1d-cont-x);
  min-height: 72px;
}
.e1d-brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--e1d-text);
  flex-shrink: 0;
}
.e1d-brand-logo { width: auto; }
.e1d-brand-name {
  font-family: var(--e1d-font-headings);
  font-size: 1.45rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--e1d-primary);
  white-space: nowrap;
}
.e1d-brand-tagline {
  font-size: .75rem;
  color: var(--e1d-text-soft);
  margin-top: -.15rem;
  letter-spacing: .05em;
}

.e1d-nav-desktop { display: none; }
.e1d-nav-desktop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.e1d-nav-desktop-list a {
  color: var(--e1d-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding: .4rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  text-transform: capitalize;
}
.e1d-nav-desktop-list a:hover,
.e1d-nav-desktop-list .current-menu-item > a {
  border-bottom-color: var(--e1d-primary);
  color: var(--e1d-primary);
}

/* Burger (mobile only) */
.e1d-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, .92) !important;
  border: 1.5px solid rgba(58, 15, 10, .18) !important;
  border-radius: 8px !important;
  color: var(--e1d-text) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto !important;
}
.e1d-burger-bars,
.e1d-burger > span {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.e1d-burger-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s;
}
.e1d-burger-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ---------- 5. MOBILE DRAWER (hidden default) ---------- */
.e1d-nav-mobile,
.e1d-nav { display: none; }

@media (max-width: 1023px) {
  .e1d-nav-mobile.is-open,
  .e1d-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .25);
  }
  .e1d-nav-mobile-list,
  .e1d-nav.is-open ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .e1d-nav-mobile-list li,
  .e1d-nav.is-open li {
    border-bottom: 1px solid #e5e5e5;
  }
  .e1d-nav-mobile-list a,
  .e1d-nav.is-open a {
    display: block;
    padding: 1rem .25rem;
    color: #0a0a0a !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    transition: color .2s;
  }
  .e1d-nav-mobile-list a:hover,
  .e1d-nav.is-open a:hover {
    color: var(--e1d-primary) !important;
  }
}

/* CTA dans drawer mobile (toujours, même si pas de CTA header) */
.e1d-drawer-cta {
  display: none;
  margin: 2rem 0 1rem;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--e1d-primary) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 1023px) {
  .e1d-nav-mobile.is-open .e1d-drawer-cta,
  .e1d-nav.is-open .e1d-drawer-cta { display: block; }
}

/* Overlay sombre derrière le drawer */
.e1d-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9990;
}
.e1d-overlay.is-open { display: block; }

.e1d-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border: 1px solid var(--e1d-line);
  background: var(--e1d-surface);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--e1d-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: nav visible, burger hidden */
@media (min-width: 1024px) {
  .e1d-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin: 0 1.5rem;
  }
  .e1d-burger,
  .e1d-burger-wrap { display: none !important; }
}

/* ---------- 6. HERO (fade-reveal style) ---------- */
.e1d-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--e1d-bg);
}
.e1d-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease-out, transform 1.6s ease-out;
}
.e1d-hero.is-revealed .e1d-hero-bg {
  opacity: 1;
  transform: scale(1);
}
.e1d-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 880px;
  padding: 5rem var(--e1d-cont-x);
  color: #fff;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease-out .3s, transform 1.1s ease-out .3s;
}
.e1d-hero.is-revealed .e1d-hero-inner {
  opacity: 1;
  transform: translateY(0);
}
.e1d-hero-inner::before {
  content: "";
  position: absolute;
  inset: -2rem;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 80%);
  z-index: -1;
  border-radius: 50%;
}
.e1d-hero-title {
  font-family: var(--e1d-font-headings);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .55);
  letter-spacing: .04em;
}
.e1d-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 auto 2rem;
  max-width: 640px;
  color: #fff8e3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  font-weight: 500;
}
.e1d-hero-cta {
  display: inline-flex;
  margin-top: 1rem;
}
/* SI hero a une vidéo : overlay dégradé pour lisibilité */
.e1d-hero--has-video .e1d-hero-bg { display: none; }
.e1d-hero-video-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.e1d-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}
.e1d-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .65) 100%);
  z-index: 2;
}

/* ---------- 7. EDITORIAL INTRO BLOCK (after-hero variant) ---------- */
.e1d-editorial-intro {
  background: var(--e1d-surface);
  padding: 4rem 0;
  border-bottom: 1px solid var(--e1d-line);
}
.e1d-editorial-intro-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--e1d-cont-x);
}
.e1d-editorial-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--e1d-text);
  margin-bottom: 1rem;
  text-align: center;
}
.e1d-editorial-intro h3 {
  font-family: var(--e1d-font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--e1d-primary);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 2rem 0 .75rem;
  border-left: 4px solid var(--e1d-accent);
  padding-left: .85rem;
}
.e1d-editorial-intro p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--e1d-text);
  margin: 0 0 1.2rem;
}
.e1d-editorial-intro .e1d-pillar {
  background: var(--e1d-bg);
  border-left: 4px solid var(--e1d-primary);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: var(--e1d-radius-sm);
}
.e1d-editorial-intro .e1d-pillar h4 {
  margin: 0 0 .5rem;
  font-family: var(--e1d-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--e1d-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.e1d-editorial-intro a {
  color: var(--e1d-primary);
  font-weight: 600;
}

/* ---------- 8. SECTION CATEGORIES (rubriques) ---------- */
.e1d-section { padding: 4rem 0; }
.e1d-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.e1d-section-head .e1d-eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--e1d-primary);
  font-weight: 700;
  margin-bottom: .5rem;
  font-family: var(--e1d-font-body);
}
.e1d-categories {
  background: var(--e1d-bg);
}
.e1d-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.e1d-cat-card {
  position: relative;
  border-radius: var(--e1d-radius);
  overflow: hidden;
  background: var(--e1d-surface);
  box-shadow: var(--e1d-shadow-sm);
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .35s, box-shadow .35s;
}
.e1d-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e1d-shadow-lg);
}
.e1d-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  background-color: var(--e1d-primary);
  background-size: cover;
  background-position: center;
}
.e1d-cat-card-fallback {
  background: linear-gradient(135deg, var(--e1d-primary) 0%, var(--e1d-accent) 100%);
}
.e1d-cat-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}
.e1d-cat-card-name {
  font-family: var(--e1d-font-headings);
  font-size: 1.4rem;
  color: var(--e1d-primary);
  margin: 0 0 .4rem;
  letter-spacing: .03em;
}
.e1d-cat-card-desc {
  font-size: .9rem;
  color: var(--e1d-text-soft);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 9. LATEST ARTICLES GRID ---------- */
.e1d-latest { background: var(--e1d-surface); }
.e1d-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.e1d-card {
  background: var(--e1d-bg);
  border: 1px solid var(--e1d-line);
  border-radius: var(--e1d-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.e1d-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e1d-shadow);
}
.e1d-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--e1d-line);
  overflow: hidden;
}
.e1d-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.e1d-card-thumb-fallback {
  background: linear-gradient(135deg, var(--e1d-accent) 0%, var(--e1d-primary) 100%);
  width: 100%;
  height: 100%;
}
.e1d-card-body { padding: 1.2rem 1.3rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.e1d-card-cat {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--e1d-primary);
  font-weight: 700;
  margin-bottom: .5rem;
  text-decoration: none;
}
.e1d-card-title {
  font-family: var(--e1d-font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 .65rem;
  line-height: 1.35;
  color: var(--e1d-text);
}
.e1d-card-title a { color: inherit; text-decoration: none; }
.e1d-card-title a:hover { color: var(--e1d-primary); }
.e1d-card-excerpt {
  font-size: .92rem;
  color: var(--e1d-text-soft);
  margin: 0 0 1rem;
  flex: 1;
}
.e1d-card-meta {
  font-size: .78rem;
  color: var(--e1d-text-soft);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--e1d-line);
  padding-top: .75rem;
}

/* ---------- 10. CATEGORY PAGE (tldr-detailed layout) ---------- */
.e1d-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--e1d-primary);
}
.e1d-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e1d-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .75) 100%);
  padding: 2rem var(--e1d-cont-x);
  max-width: var(--e1d-cont-w);
  margin: 0 auto;
}
.e1d-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.e1d-cat-tldr {
  background: var(--e1d-surface);
  padding: 3rem 0 1rem;
}
.e1d-cat-tldr-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--e1d-cont-x);
}
.e1d-cat-tldr h2 {
  font-size: 1.4rem;
  color: var(--e1d-primary);
  margin: 0 0 1rem;
  border-left: 4px solid var(--e1d-accent);
  padding-left: .8rem;
}
.e1d-cat-tldr-summary {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--e1d-text);
  background: var(--e1d-bg);
  padding: 1.5rem 1.75rem;
  border-radius: var(--e1d-radius);
  margin-bottom: 2rem;
}
.e1d-cat-detailed { padding: 1rem 0 3rem; }

/* ---------- 11. FOOTER (4 columns) ---------- */
.e1d-footer {
  background: #2b0707;
  color: #fbe9d3;
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.e1d-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--e1d-cont-w);
  margin: 0 auto;
  padding: 0 var(--e1d-cont-x) 3rem;
}
.e1d-footer-col h3,
.e1d-footer-title {
  font-family: var(--e1d-font-headings);
  font-size: 1.15rem;
  color: var(--e1d-accent);
  letter-spacing: .06em;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}
.e1d-footer-brand-pitch {
  font-size: .95rem;
  line-height: 1.65;
  color: #fbe9d3;
  margin: 0 0 1.25rem;
}
.e1d-footer-brand-cta {
  display: inline-block;
  padding: .65rem 1.25rem;
  background: var(--e1d-primary);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--e1d-radius);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s;
}
.e1d-footer-brand-cta:hover { background: var(--e1d-primary-dark); }
.e1d-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  max-width: 140px;
  filter: brightness(1.1);
}
.e1d-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.e1d-footer-links li { margin-bottom: .5rem; }
.e1d-footer-links a {
  color: #fbe9d3 !important;
  text-decoration: none;
  font-size: .93rem;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.e1d-footer-links a:hover {
  color: var(--e1d-accent) !important;
  border-bottom-color: var(--e1d-accent);
}
.e1d-footer-bottom {
  background: #1a0303;
  padding: 1.25rem 0;
  text-align: center;
  font-size: .85rem;
  color: #d4a777;
}
.e1d-footer-bottom-inner {
  max-width: var(--e1d-cont-w);
  margin: 0 auto;
  padding: 0 var(--e1d-cont-x);
}
.e1d-footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.e1d-footer-social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--e1d-accent);
  border-radius: 50%;
  color: var(--e1d-accent) !important;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.e1d-footer-social a:hover {
  background: var(--e1d-accent);
  color: #2b0707 !important;
}

/* Metrics links section */
.e1d-metrics-links {
  padding: 3rem 0;
  background: var(--e1d-surface);
  border-top: 1px solid var(--e1d-line);
  border-bottom: 1px solid var(--e1d-line);
}
.e1d-metrics-links h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.e1d-metrics-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0 var(--e1d-cont-x);
  max-width: var(--e1d-cont-w);
  margin-left: auto;
  margin-right: auto;
}
.e1d-metrics-list a {
  color: var(--e1d-text);
  text-decoration: underline;
  font-weight: 500;
}

/* ---------- 12. PERSONA / ABOUT page ---------- */
.e1d-persona-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--e1d-accent);
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: var(--e1d-shadow);
}

/* ---------- 13. CONTACT page (JotForm) ---------- */
.e1d-contact-form {
  max-width: 760px;
  margin: 2rem auto;
  background: var(--e1d-surface);
  padding: 1.5rem;
  border-radius: var(--e1d-radius);
  border: 1px solid var(--e1d-line);
}
.e1d-contact-form iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* ---------- 14. TOOLS pages (calculators / quiz) ---------- */
.e1d-tool-page {
  padding: 3rem 0 4rem;
  background: var(--e1d-bg);
}
.e1d-tool-page-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--e1d-cont-x);
}
.e1d-tool-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--e1d-primary);
}
.e1d-tool-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--e1d-text);
  margin-bottom: 2rem;
}
.e1d-tool-box {
  background: var(--e1d-surface);
  border: 2px solid var(--e1d-line);
  border-radius: var(--e1d-radius-lg);
  padding: 2rem;
  margin: 1rem 0 2.5rem;
  box-shadow: var(--e1d-shadow);
}
.e1d-tool-faq {
  margin: 2.5rem 0;
}
.e1d-tool-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.e1d-tool-faq details {
  border: 1px solid var(--e1d-line);
  border-radius: var(--e1d-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: var(--e1d-surface);
}
.e1d-tool-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--e1d-text);
  font-size: 1.02rem;
}
.e1d-tool-faq details[open] summary { color: var(--e1d-primary); }

/* ---------- 15. ANIMATIONS — CTA: magnetic_button ---------- */
@keyframes e1d-magnetic-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(200, 16, 46, .35); }
  50%      { box-shadow: 0 10px 32px rgba(200, 16, 46, .55); }
}
.e1d-btn--cta {
  animation: e1d-magnetic-pulse 2.8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.e1d-btn--cta::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transition: left .6s ease;
}
.e1d-btn--cta:hover::before { left: 100%; }

/* ---------- 16. ANIMATIONS — CTR: tabbed_content ---------- */
.e1d-ctr-tabs {
  border: 1px solid var(--e1d-line);
  border-radius: var(--e1d-radius);
  overflow: hidden;
  margin: 2rem 0;
  background: var(--e1d-surface);
}
.e1d-ctr-tabs-nav {
  display: flex;
  background: var(--e1d-bg);
  border-bottom: 1px solid var(--e1d-line);
}
.e1d-ctr-tab-btn {
  flex: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--e1d-font-body);
  font-weight: 700;
  font-size: .92rem;
  color: var(--e1d-text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .25s, color .25s, border-bottom-color .25s;
  border-bottom: 3px solid transparent;
}
.e1d-ctr-tab-btn.is-active {
  background: var(--e1d-surface);
  color: var(--e1d-primary);
  border-bottom-color: var(--e1d-primary);
}
.e1d-ctr-tab-content { padding: 1.5rem 1.75rem; }
.e1d-ctr-tab-pane { display: none; animation: e1d-tab-fade .35s ease-out; }
.e1d-ctr-tab-pane.is-active { display: block; }
@keyframes e1d-tab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 17. ANIMATIONS — CTO: download_resource_box ---------- */
.e1d-cto-download-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--e1d-primary) 0%, var(--e1d-primary-dark) 100%);
  color: #fff;
  border-radius: var(--e1d-radius-lg);
  margin: 2.5rem 0;
  box-shadow: var(--e1d-shadow);
  position: relative;
  overflow: hidden;
}
.e1d-cto-download-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  animation: e1d-cto-bounce 2.2s ease-in-out infinite;
}
@keyframes e1d-cto-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.e1d-cto-download-text { flex: 1; }
.e1d-cto-download-text h4 {
  color: #fff;
  margin: 0 0 .35rem;
  font-family: var(--e1d-font-body);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.e1d-cto-download-text p {
  margin: 0;
  color: #ffeac0;
  font-size: .95rem;
}
.e1d-cto-download-btn {
  flex-shrink: 0;
  padding: .75rem 1.4rem;
  background: var(--e1d-accent);
  color: #2b0707 !important;
  border-radius: var(--e1d-radius);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .2s, background .2s;
}
.e1d-cto-download-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* ---------- 18. MOUSE EFFECT: link_hover_icon_move ---------- */
@media (hover: hover) {
  .e1d-card-title a,
  .e1d-nav-desktop-list a,
  .e1d-footer-links a {
    position: relative;
    display: inline-block;
    transition: transform .25s ease, color .25s ease;
  }
  .e1d-card-title a::after,
  .e1d-nav-desktop-list a::after,
  .e1d-footer-links a::after {
    content: " →";
    display: inline-block;
    opacity: 0;
    margin-left: 0;
    transform: translateX(-6px);
    transition: opacity .3s ease, transform .3s ease, margin-left .3s ease;
    color: var(--e1d-accent);
    font-weight: 700;
  }
  .e1d-card-title a:hover::after,
  .e1d-nav-desktop-list a:hover::after,
  .e1d-footer-links a:hover::after {
    opacity: 1;
    margin-left: .35rem;
    transform: translateX(0);
  }
  .e1d-card-title a:hover,
  .e1d-nav-desktop-list a:hover,
  .e1d-footer-links a:hover {
    color: var(--e1d-primary);
  }
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .e1d-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .e1d-hero { min-height: 60vh; }
}

@media (max-width: 640px) {
  .e1d-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .e1d-cat-grid {
    grid-template-columns: 1fr;
  }
  .e1d-article-grid {
    grid-template-columns: 1fr;
  }
  .e1d-hero { min-height: 55vh; }
  .e1d-hero-inner { padding: 3rem 1.25rem; }
  .e1d-cto-download-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- 20. UTILITIES ---------- */
.e1d-text-center { text-align: center; }
.e1d-mt-2 { margin-top: 2rem; }
.e1d-mb-2 { margin-bottom: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Mouse effect : link_hover_icon_move */
@media (hover: hover) { .e1d-card-title a, .e1d-nav-desktop-list a, .e1d-footer-links a { position: relative; display: inline-block; transition: transform .25s ease, color .25s ease; } .e1d-card-title a::after, .e1d-nav-desktop-list a::after, .e1d-footer-links a::after { content: ' \2192'; display: inline-block; opacity: 0; margin-left: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease, margin-left .3s ease; color: var(--e1d-accent, #F5B700); font-weight: 700; } .e1d-card-title a:hover::after, .e1d-nav-desktop-list a:hover::after, .e1d-footer-links a:hover::after { opacity: 1; margin-left: .35rem; transform: translateX(0); } .e1d-card-title a:hover, .e1d-nav-desktop-list a:hover, .e1d-footer-links a:hover { color: var(--e1d-primary, #C8102E); } }

/* 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; }
