/* ============================================================================
   sciences box — custom theme styles (Phase 1 / RANKOPRESS v3)
   Mega menu layout: D - Hero banner | Hero: classic-overlay | Header: sticky-minimal
   ============================================================================ */

/* ---------- 1. VARIABLES + BASE ---------- */
:root {
  --e96-primary:    #004874;
  --e96-primary-d:  #00355a;
  --e96-accent:     #ee871b;
  --e96-accent-d:   #d57112;
  --e96-text:       #212529;
  --e96-text-soft:  #6c757d;
  --e96-bg:         #ffffff;
  --e96-surface:    #f8f9fa;
  --e96-line:       #dee2e6;
  --e96-font-head:  'Quicksand', system-ui, sans-serif;
  --e96-font-body:  'Nunito', system-ui, sans-serif;
  --e96-radius:     10px;
  --e96-shadow-sm:  0 2px 8px rgba(0, 72, 116, .06);
  --e96-shadow-md:  0 6px 22px rgba(0, 72, 116, .10);
  --e96-shadow-lg:  0 14px 38px rgba(0, 72, 116, .14);
  --e96-container:  1240px;
  --e96-header-h:   72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.e96-body {
  margin: 0;
  font-family: var(--e96-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--e96-text);
  background: var(--e96-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .e96-brand-name {
  font-family: var(--e96-font-head);
  color: var(--e96-primary);
  margin: 0 0 .8rem;
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }

a { color: var(--e96-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--e96-accent); }

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }

main, .e96-main { padding-top: 0 !important; margin-top: 0 !important; }
.e96-container { max-width: var(--e96-container); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- 2. BUTTONS ---------- */
.e96-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  font-family: var(--e96-font-head);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  letter-spacing: .01em;
}
.e96-btn--primary {
  background: var(--e96-primary);
  color: #fff;
}
.e96-btn--primary:hover { background: var(--e96-primary-d); color: #fff; }

.e96-btn--ghost {
  background: transparent;
  color: var(--e96-primary);
  border-color: var(--e96-primary);
}
.e96-btn--ghost:hover { background: var(--e96-primary); color: #fff; }

/* CTA — rounded_to_square_hover animation */
@keyframes e96-cta-rounded-to-square {
  0% { border-radius: 30px; }
  100% { border-radius: 6px; }
}
.e96-btn--cta {
  background: var(--e96-accent);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  padding: .85rem 1.7rem;
  transition: border-radius .35s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.e96-btn--cta:hover {
  background: var(--e96-accent-d);
  color: #fff;
  animation: e96-cta-rounded-to-square .35s forwards;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 72, 116, .22);
}

/* CTO — secure_payment_badge pulse */
@keyframes e96-cto-pulse-secure {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(238, 135, 27, .55); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(238, 135, 27, 0); }
}
.e96-cto-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  background: var(--e96-surface);
  color: var(--e96-primary);
  border: 1.5px solid var(--e96-line);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  animation: e96-cto-pulse-secure 2.4s ease-in-out infinite;
}

/* ---------- 3. HEADER (sticky-minimal) ---------- */
.e96-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--e96-line);
  transition: box-shadow .25s ease;
}
.e96-header.e96-is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 72, 116, .08);
}
.e96-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--e96-header-h);
  padding: .55rem 1.25rem;
  max-width: var(--e96-container);
  margin: 0 auto;
}
.e96-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.e96-brand-logo {
  display: block;
  width: auto;
}
.e96-brand-name {
  font-family: var(--e96-font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--e96-primary);
  text-transform: lowercase;
  letter-spacing: 0;
}

/* Desktop nav */
.e96-nav-desktop { display: none; }
.e96-nav-desktop-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.4rem;
  align-items: center;
}
.e96-nav-desktop-list > li { position: relative; }
.e96-nav-desktop-list > li > a {
  display: inline-block;
  padding: .55rem .2rem;
  font-family: var(--e96-font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--e96-text);
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.e96-nav-desktop-list > li > a:hover,
.e96-nav-desktop-list > li:hover > a,
.e96-nav-desktop-list > li:focus-within > a {
  color: var(--e96-primary);
  border-bottom-color: var(--e96-accent);
}

/* Mega menu — Layout D (hero banner) */
.e96-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(880px, 92vw);
  background: #fff;
  border: 1px solid var(--e96-line);
  border-radius: var(--e96-radius);
  box-shadow: var(--e96-shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 110;
}
.e96-nav-desktop-list > li:hover > .e96-megamenu,
.e96-nav-desktop-list > li:focus-within > .e96-megamenu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.e96-megamenu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
.e96-megamenu-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: var(--e96-surface);
  transition: transform .25s;
}
.e96-megamenu-featured:hover { transform: translateY(-2px); }
.e96-megamenu-featured-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--e96-line);
}
.e96-megamenu-featured-body { padding: .9rem 1rem 1rem; }
.e96-megamenu-featured-meta {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--e96-accent);
  font-weight: 700;
  margin-bottom: .35rem;
}
.e96-megamenu-featured-title {
  font-family: var(--e96-font-head);
  font-size: 1.05rem;
  color: var(--e96-primary);
  margin: 0 0 .35rem;
  line-height: 1.3;
  font-weight: 600;
}
.e96-megamenu-featured-date {
  font-size: .78rem;
  color: var(--e96-text-soft);
}

.e96-megamenu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.e96-megamenu-list-item a {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.e96-megamenu-list-item a:hover { background: var(--e96-surface); }
.e96-megamenu-list-item-thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--e96-line);
}
.e96-megamenu-list-item-body { flex: 1; min-width: 0; }
.e96-megamenu-list-item-title {
  font-family: var(--e96-font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--e96-text);
  margin: 0 0 .2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.e96-megamenu-list-item-date {
  font-size: .72rem;
  color: var(--e96-text-soft);
}
.e96-megamenu-link-all {
  display: inline-block;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--e96-accent);
  border-bottom: 1px dashed transparent;
}
.e96-megamenu-link-all:hover { border-bottom-color: var(--e96-accent); }
.e96-megamenu-empty {
  padding: 1.4rem;
  color: var(--e96-text-soft);
  font-size: .92rem;
  text-align: center;
}

/* Burger button + mobile drawer */
.e96-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, 0.92) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
  border-radius: 8px !important;
  color: var(--e96-primary) !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
}
.e96-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.e96-burger-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.e96-burger.is-open .e96-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.e96-burger.is-open .e96-burger-bars span:nth-child(2) { opacity: 0; }
.e96-burger.is-open .e96-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.e96-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 9998;
}
.e96-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.e96-nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background: #fff;
  padding: 4.5rem 0 2rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
  flex-direction: column;
}
.e96-nav-mobile.is-open {
  display: flex;
}
.e96-nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--e96-surface);
  border: 1.5px solid var(--e96-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--e96-primary);
}
.e96-nav-mobile-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--e96-line);
}
.e96-nav-mobile-list li { border-bottom: 1px solid var(--e96-line); }
.e96-nav-mobile-list li:last-child { border-bottom: none; }
.e96-nav-mobile-list a {
  display: block;
  padding: 1rem 1.5rem;
  font-family: var(--e96-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #0a0a0a;
  text-decoration: none;
}
.e96-nav-mobile-list a:hover { background: var(--e96-surface); color: var(--e96-primary); }

.e96-drawer-cta {
  display: block;
  margin: 1rem 1.5rem 1rem;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--e96-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  font-family: var(--e96-font-head);
}
.e96-drawer-cta:hover { background: var(--e96-accent-d); color: #fff; }

/* Desktop / mobile breakpoint */
@media (min-width: 1024px) {
  .e96-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1.5rem; }
  .e96-burger { display: none !important; }
  .e96-nav-mobile, .e96-drawer-overlay { display: none !important; }
}
@media (hover: none) {
  .e96-megamenu { display: none !important; }
}

/* ---------- 4. HERO (classic-overlay) ---------- */
.e96-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: var(--e96-primary);
}
.e96-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e96-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--e96-container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  color: #fff;
}
.e96-hero-content {
  max-width: 640px;
  background: rgba(0, 53, 90, .72);
  padding: 2rem 2rem 2.2rem;
  border-radius: var(--e96-radius);
  border-left: 4px solid var(--e96-accent);
}
.e96-hero-eyebrow {
  font-family: var(--e96-font-head);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--e96-accent);
  margin-bottom: .6rem;
  display: block;
}
.e96-hero-title {
  font-family: var(--e96-font-head);
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem);
  color: #fff;
  margin: 0 0 .8rem;
  line-height: 1.18;
  font-weight: 700;
}
.e96-hero-subtitle {
  font-size: 1.05rem;
  color: #f1f5f8;
  margin-bottom: 1.4rem;
  line-height: 1.55;
}
.e96-hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- 5. SECTIONS BASE ---------- */
.e96-section {
  padding: clamp(3rem, 2rem + 2vw, 5rem) 0;
}
.e96-section-alt { background: var(--e96-surface); }

.e96-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--e96-line);
}
.e96-section-eyebrow {
  font-family: var(--e96-font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--e96-accent);
  margin: 0 0 .35rem;
}
.e96-section-title { margin: 0; }
.e96-section-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--e96-primary);
}

/* ---------- 6. EDITORIAL HOME BLOC ---------- */
.e96-editorial-intro h2 { color: var(--e96-primary); }
.e96-editorial-intro h3 {
  color: var(--e96-primary);
  font-size: 1.25rem;
  margin-top: 1.6rem;
  margin-bottom: .5rem;
}
.e96-editorial-intro p { color: var(--e96-text); font-size: 1.02rem; line-height: 1.75; }
.e96-editorial-intro a { color: var(--e96-primary); border-bottom: 1px dashed var(--e96-accent); }
.e96-editorial-intro a:hover { color: var(--e96-accent); }

.e96-editorial-line {
  background: var(--e96-surface);
  border-left: 4px solid var(--e96-accent);
  padding: 1.3rem 1.5rem;
  margin: 1.6rem 0;
  border-radius: 0 8px 8px 0;
}
.e96-editorial-line p { margin: 0; font-size: .96rem; color: var(--e96-text); }
.e96-editorial-line strong { color: var(--e96-primary); }

.e96-editorial-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.e96-editorial-cols article {
  background: #fff;
  border: 1px solid var(--e96-line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.3rem;
}
.e96-editorial-cols article h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
  color: var(--e96-primary);
}
.e96-editorial-cols article p {
  font-size: .92rem;
  color: var(--e96-text-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- 7. CATEGORIES (front-page rubriques) ---------- */
.e96-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.e96-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--e96-line);
  border-radius: var(--e96-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.e96-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e96-shadow-md);
  border-color: var(--e96-accent);
}
.e96-cat-card-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--e96-surface);
}
.e96-cat-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

/* CTR — image_zoom_card */
@keyframes e96-ctr-zoom-in {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.e96-cat-card:hover .e96-cat-card-img-wrap img,
.e96-article-card:hover .e96-article-thumb img {
  animation: e96-ctr-zoom-in .5s forwards;
}

.e96-cat-card-fallback {
  background: linear-gradient(135deg, var(--e96-primary) 0%, var(--e96-primary-d) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--e96-font-head);
  font-size: 2rem;
  font-weight: 700;
}
.e96-cat-card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.e96-cat-card-title {
  font-family: var(--e96-font-head);
  font-size: 1.2rem;
  color: var(--e96-primary);
  margin: 0 0 .4rem;
  font-weight: 600;
}
.e96-cat-card-desc {
  font-size: .9rem;
  color: var(--e96-text-soft);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 8. LATEST ARTICLES ---------- */
.e96-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.e96-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--e96-line);
  border-radius: var(--e96-radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
}
.e96-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e96-shadow-md);
}
.e96-article-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--e96-surface);
}
.e96-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.e96-article-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.e96-article-cat {
  font-family: var(--e96-font-head);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--e96-accent);
  font-weight: 700;
  margin-bottom: .35rem;
}
.e96-article-title {
  font-family: var(--e96-font-head);
  font-size: 1.05rem;
  color: var(--e96-primary);
  margin: 0 0 .5rem;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.e96-article-excerpt {
  font-size: .9rem;
  color: var(--e96-text-soft);
  line-height: 1.55;
  margin: 0 0 .8rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.e96-article-date {
  font-size: .78rem;
  color: var(--e96-text-soft);
}

/* ---------- 9. CATEGORY PAGE (single-bottom layout) ---------- */
.e96-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.e96-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e96-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: var(--e96-container);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .75) 100%);
}
.e96-cat-hero-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  margin: 0;
  font-family: var(--e96-font-head);
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 700;
}
.e96-cat-intro {
  padding: 2.5rem 0 1.5rem;
}
.e96-cat-intro p { font-size: 1.02rem; line-height: 1.7; color: var(--e96-text); }
.e96-cat-outro {
  background: var(--e96-surface);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--e96-line);
}
.e96-cat-outro h2 { font-size: 1.4rem; }
.e96-cat-outro p { font-size: .98rem; line-height: 1.65; color: var(--e96-text); }

/* ---------- 10. TOOL ON HOME (embed) ---------- */
.e96-tool-on-home {
  background: var(--e96-surface);
  padding: clamp(3rem, 2rem + 2vw, 4.5rem) 0;
  border-top: 1px solid var(--e96-line);
}
.e96-tool-on-home-intro {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}
.e96-tool-on-home-intro h2 { color: var(--e96-primary); margin-bottom: .8rem; }
.e96-tool-on-home-intro p { color: var(--e96-text-soft); font-size: 1rem; line-height: 1.6; }

/* ---------- 11. PERSONA + CONTACT ---------- */
.e96-persona-photo {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--e96-radius);
  margin: 0 0 1.5rem;
  box-shadow: var(--e96-shadow-md);
}
.e96-contact-form {
  background: #fff;
  border: 1px solid var(--e96-line);
  border-radius: var(--e96-radius);
  padding: 1.5rem;
  box-shadow: var(--e96-shadow-sm);
  margin-top: 2rem;
}
.e96-contact-form iframe { width: 100%; min-height: 1100px; border: none; display: block; }

/* ---------- 12. FOOTER ---------- */
.e96-footer {
  background: #0c2c44;
  color: #d6e5f1;
  padding-top: 3.5rem;
  margin-top: 4rem;
}
.e96-footer-inner {
  max-width: var(--e96-container);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.2rem;
}
.e96-footer-col .e96-footer-title {
  font-family: var(--e96-font-head);
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.e96-footer-brand .e96-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.e96-footer-brand-pitch {
  font-size: .92rem;
  line-height: 1.65;
  color: #c3d4e2;
  margin-bottom: 1.2rem;
}
.e96-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.1rem;
  background: transparent;
  border: 1.5px solid var(--e96-accent);
  color: var(--e96-accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.e96-footer-brand-cta:hover { background: var(--e96-accent); color: #fff; }

.e96-footer-links { list-style: none; margin: 0; padding: 0; }
.e96-footer-links li { margin-bottom: .55rem; }
.e96-footer-links a {
  color: #d6e5f1;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.e96-footer-links a:hover { color: #fff; border-bottom-color: var(--e96-accent); }

.e96-footer-social {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.e96-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.4rem 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: #9ab3c6;
}
.e96-footer-bottom a { color: #d6e5f1; }
.e96-footer-bottom a:hover { color: #fff; }

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .e96-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  :root { --e96-header-h: 64px; }
  .e96-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .e96-hero { min-height: 460px; }
  .e96-hero-content { padding: 1.4rem 1.4rem 1.7rem; background: rgba(0, 53, 90, .82); }
  .e96-cats-grid, .e96-articles-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .e96-megamenu-grid { grid-template-columns: 1fr; }
}

/* ---------- 14. METRICS LINKS BLOC (placeholder) ---------- */
.e96-metrics-links {
  background: var(--e96-surface);
  padding: 2rem 0;
  border-top: 1px solid var(--e96-line);
  border-bottom: 1px solid var(--e96-line);
}
.e96-metrics-links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.e96-metrics-links-list a {
  display: inline-block;
  padding: .45rem 1rem;
  background: #fff;
  border: 1px solid var(--e96-line);
  border-radius: 20px;
  font-size: .85rem;
  color: var(--e96-text);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.e96-metrics-links-list a:hover { border-color: var(--e96-accent); color: var(--e96-accent); }

/* ---------- 15. UTILITIES ---------- */
.e96-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;
}

/* 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; }
/* RANKO SB-HERO-WHITE 2026-07-10 */
.e96-hero-title { color: #ffffff !important; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }

