/* ==========================================================================
   Aly Media — Custom theme CSS
   Design System: Financial News TV (PT Serif + PT Sans)
   Palette: red-dominant news (#e90b0b primary) + navy accent (#1c3146)
   Mega menu layout: B - grid 3 cols
   ========================================================================== */

/* ---------- Variables & reset ---------- */
:root {
  --alm-color-primary:   #e90b0b;
  --alm-color-accent:    #1c3146;
  --alm-color-text:      #1c1c1c;
  --alm-color-text-soft: #7a7a7a;
  --alm-color-bg:        #ffffff;
  --alm-color-surface:   #f5f5f5;
  --alm-color-line:      #e5e5e5;
  --alm-color-white:     #ffffff;
  --alm-font-headings:   "PT Serif", Georgia, serif;
  --alm-font-body:       "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --alm-max-width:       1240px;
  --alm-space-1:         .5rem;
  --alm-space-2:         1rem;
  --alm-space-3:         1.5rem;
  --alm-space-4:         2rem;
  --alm-space-5:         3rem;
  --alm-space-6:         4rem;
  --alm-radius-sm:       4px;
  --alm-radius-md:       6px;
  --alm-shadow-sm:       0 1px 3px rgba(0,0,0,0.06);
  --alm-shadow-md:       0 4px 12px rgba(0,0,0,0.08);
  --alm-shadow-lg:       0 10px 30px rgba(0,0,0,0.12);
}

html[data-theme="dark"] {
  --alm-color-text:      #f5f5f5;
  --alm-color-text-soft: #a5a5a5;
  --alm-color-bg:        #121417;
  --alm-color-surface:   #1c1f24;
  --alm-color-line:      #2a2f36;
  --alm-color-accent:    #4a90e2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--alm-font-body);
  color: var(--alm-color-text);
  background: var(--alm-color-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--alm-color-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--alm-color-primary); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--alm-font-headings);
  color: var(--alm-color-text);
  line-height: 1.25;
  margin: 0 0 var(--alm-space-2) 0;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 var(--alm-space-2) 0; }

.alm-container {
  max-width: var(--alm-max-width);
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
  width: 100%;
}

main, .alm-main { padding-top: 0 !important; margin-top: 0 !important; }

/* ---------- Buttons ---------- */
.alm-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  font-family: var(--alm-font-body);
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--alm-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-decoration: none;
  line-height: 1;
}
.alm-btn--primary { background: var(--alm-color-primary); color: #fff; }
.alm-btn--primary:hover { background: #c40808; color: #fff; transform: translateY(-2px); }
.alm-btn--outline { background: transparent; color: var(--alm-color-accent); border-color: var(--alm-color-accent); }
.alm-btn--outline:hover { background: var(--alm-color-accent); color: #fff; }
.alm-btn--cta {
  background: var(--alm-color-primary);
  color: #fff;
  padding: .85rem 1.6rem;
}
.alm-btn--cta::after {
  content: "\2192";
  display: inline-block;
  margin-left: .35rem;
  animation: alm-cta-arrow-slide 2.4s ease-in-out infinite;
}
.alm-btn--cta:hover { background: var(--alm-color-accent); color: #fff; transform: translateY(-2px); }
@keyframes alm-cta-arrow-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- Header ---------- */
.alm-header {
  background: var(--alm-color-bg);
  border-bottom: 1px solid var(--alm-color-line);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: background .3s;
}
.alm-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem var(--alm-space-3);
  max-width: var(--alm-max-width);
  margin: 0 auto;
  justify-content: flex-start;
}
.alm-brand-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.alm-brand-logo { width: auto; max-height: 44px; }
.alm-brand-name {
  font-family: var(--alm-font-headings);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--alm-color-text);
  letter-spacing: .01em;
}

/* Desktop nav — horizontale visible ≥1024px */
.alm-nav-desktop { display: none; }
.alm-nav-desktop-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.alm-nav-desktop-list > li { position: relative; }
.alm-nav-desktop-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--alm-color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .1rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.alm-nav-desktop-list > li > a svg {
  width: 16px;
  height: 16px;
  color: currentColor;
  vertical-align: middle;
}
.alm-nav-desktop-list > li > a:hover,
.alm-nav-desktop-list > li:hover > a,
.alm-nav-desktop-list > li:focus-within > a {
  border-bottom-color: var(--alm-color-primary);
  color: var(--alm-color-primary);
}

/* Mega menu layout B — grid 3 cols */
.alm-mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 760px;
  max-width: 92vw;
  background: var(--alm-color-bg);
  border: 1px solid var(--alm-color-line);
  border-top: 3px solid var(--alm-color-primary);
  box-shadow: var(--alm-shadow-lg);
  padding: 1.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 600;
}
.alm-nav-desktop-list > li:hover > .alm-mega-panel,
.alm-nav-desktop-list > li:focus-within > .alm-mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.alm-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.alm-mega-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  text-decoration: none;
  color: var(--alm-color-text);
}
.alm-mega-item-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--alm-radius-sm);
  background: var(--alm-color-surface);
  display: block;
}
.alm-mega-item-title {
  font-family: var(--alm-font-headings);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--alm-color-text);
  margin: 0;
}
.alm-mega-item-date {
  font-size: .78rem;
  color: var(--alm-color-text-soft);
}
.alm-mega-item:hover .alm-mega-item-title { color: var(--alm-color-primary); }
.alm-mega-see-all {
  display: inline-block;
  margin-top: .8rem;
  font-weight: 700;
  color: var(--alm-color-primary);
  text-decoration: none;
  font-size: .9rem;
}
.alm-mega-see-all:hover { text-decoration: underline; }

/* Dark mode toggle button — crescent icon */
.alm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--alm-color-line);
  background: transparent;
  color: var(--alm-color-text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.alm-theme-toggle:hover { background: var(--alm-color-surface); border-color: var(--alm-color-primary); color: var(--alm-color-primary); }
.alm-theme-toggle svg { width: 20px; height: 20px; }
.alm-theme-toggle .alm-icon-crescent-dark { display: none; }
html[data-theme="dark"] .alm-theme-toggle .alm-icon-crescent-light { display: none; }
html[data-theme="dark"] .alm-theme-toggle .alm-icon-crescent-dark { display: inline-block; }

/* Header CTA desktop */
.alm-header-cta-desktop {
  padding: .65rem 1.2rem;
  font-size: .9rem;
  white-space: nowrap;
}

/* Burger button (mobile only) */
.alm-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--alm-color-line);
  border-radius: var(--alm-radius-sm);
  cursor: pointer;
  margin-left: auto;
}
.alm-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--alm-color-text);
  transition: transform .2s, opacity .2s;
}

/* Mobile drawer — hidden by default */
.alm-nav-mobile { display: none; }
.alm-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 998;
}
.alm-drawer-overlay.is-open { display: block; }

@media (max-width: 1023px) {
  .alm-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--alm-color-bg);
    padding: 4.5rem 1.5rem 1.5rem;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .alm-nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--alm-color-text);
    cursor: pointer;
    line-height: 1;
    padding: .25rem .5rem;
  }
  .alm-nav-mobile-list {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
  }
  .alm-nav-mobile-list li {
    border-bottom: 1px solid var(--alm-color-line);
  }
  .alm-nav-mobile-list a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem .5rem;
    color: var(--alm-color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
  }
  .alm-nav-mobile-list a:hover { color: var(--alm-color-primary); }
  .alm-nav-mobile-list a svg { width: 18px; height: 18px; color: currentColor; }
  .alm-drawer-cta {
    display: block !important;
    margin: 1.5rem 0 0.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--alm-color-primary) !important;
    color: #fff !important;
    border-radius: var(--alm-radius-sm) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
}

/* Desktop breakpoint: nav visible, burger hidden */
@media (min-width: 1024px) {
  .alm-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1rem; }
  .alm-burger { display: none !important; }
  .alm-drawer-cta { display: none !important; }
}
@media (max-width: 1023px) {
  .alm-header-cta-desktop, .alm-header .alm-btn--cta:not(.alm-drawer-cta) { display: none !important; }
}

/* ---------- Hero — manifesto style ---------- */
.alm-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--alm-color-bg);
  border-bottom: 1px solid var(--alm-color-line);
}
.alm-hero--manifesto {
  background: var(--alm-color-surface);
  text-align: center;
}
.alm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-hero-kicker {
  display: inline-block;
  font-family: var(--alm-font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--alm-color-primary);
  border-top: 2px solid var(--alm-color-primary);
  border-bottom: 2px solid var(--alm-color-primary);
  padding: .35rem 0;
  margin-bottom: 1.5rem;
}
.alm-hero-manifesto-quote {
  font-family: var(--alm-font-headings);
  font-size: clamp(1.75rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--alm-color-text);
  margin: 0 0 1.4rem;
  position: relative;
}
.alm-hero-manifesto-quote::before {
  content: "\201C";
  display: block;
  font-size: 6rem;
  line-height: .3;
  color: var(--alm-color-primary);
  margin-bottom: 1rem;
  font-family: var(--alm-font-headings);
}
.alm-hero-subtitle {
  font-family: var(--alm-font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--alm-color-text-soft);
  max-width: 720px;
  margin: 0 auto 1.8rem;
}
.alm-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.alm-hero-signature {
  margin-top: 2rem;
  font-family: var(--alm-font-headings);
  font-style: italic;
  color: var(--alm-color-text-soft);
  font-size: .95rem;
}

/* ---------- Editorial block on home ---------- */
.alm-editorial {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--alm-color-bg);
}
.alm-editorial-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-editorial h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--alm-color-text);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: .6rem;
}
.alm-editorial h2::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 60px;
  height: 3px;
  background: var(--alm-color-primary);
}
.alm-editorial h3 {
  color: var(--alm-color-accent);
  margin-top: 2rem;
  margin-bottom: .7rem;
  font-size: 1.35rem;
}
.alm-editorial p {
  font-size: 1.05rem;
  color: var(--alm-color-text);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.alm-editorial a {
  color: var(--alm-color-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(233, 11, 11, .2);
  transition: border-color .2s;
}
.alm-editorial a:hover { border-bottom-color: var(--alm-color-primary); }
.alm-editorial-quote {
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--alm-color-primary);
  background: var(--alm-color-surface);
  font-style: italic;
  margin: 2rem 0;
  color: var(--alm-color-text);
}

/* ---------- Category sections on home ---------- */
.alm-cat-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--alm-color-line);
}
.alm-cat-section:nth-child(even) { background: var(--alm-color-surface); }
.alm-cat-section-inner {
  max-width: var(--alm-max-width);
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-cat-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.alm-cat-section-title {
  font-family: var(--alm-font-headings);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--alm-color-text);
  margin: 0;
  text-decoration: none;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--alm-color-primary);
}
.alm-cat-section-title:hover { color: var(--alm-color-primary); }
.alm-cat-section-link {
  color: var(--alm-color-accent);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.alm-cat-section-link:hover { color: var(--alm-color-primary); }
.alm-cat-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.alm-latest-item {
  display: flex;
  flex-direction: column;
  background: var(--alm-color-bg);
  border: 1px solid var(--alm-color-line);
  border-radius: var(--alm-radius-md);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
}
.alm-latest-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--alm-shadow-md);
}
.alm-latest-item-img-wrap {
  aspect-ratio: 16/9;
  background: var(--alm-color-surface);
  overflow: hidden;
  display: block;
}
.alm-latest-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alm-latest-item-body { padding: 1.1rem 1.2rem; }
.alm-latest-item-title {
  font-family: var(--alm-font-headings);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--alm-color-text);
  margin: 0 0 .5rem;
}
.alm-latest-item-date {
  font-size: .82rem;
  color: var(--alm-color-text-soft);
}
.alm-cat-section-empty {
  padding: 2rem;
  text-align: center;
  color: var(--alm-color-text-soft);
  background: var(--alm-color-bg);
  border: 1px dashed var(--alm-color-line);
  border-radius: var(--alm-radius-md);
}

/* ---------- Category page (tldr-detailed layout) ---------- */
.alm-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
}
.alm-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.alm-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,0.75) 100%);
  padding: 0 var(--alm-space-3) 2rem;
}
.alm-cat-hero-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  max-width: var(--alm-max-width);
  margin: 0 auto;
  width: 100%;
}
.alm-cat-intro {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--alm-color-bg);
}
.alm-cat-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-cat-intro p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--alm-color-text);
}
.alm-cat-articles {
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.alm-cat-articles-inner {
  max-width: var(--alm-max-width);
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.alm-cat-outro {
  padding: clamp(3rem, 5vw, 4rem) 0;
  background: var(--alm-color-surface);
  border-top: 1px solid var(--alm-color-line);
}
.alm-cat-outro-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-cat-outro h2 {
  color: var(--alm-color-accent);
  margin-bottom: 1.2rem;
}
.alm-cat-outro a {
  color: var(--alm-color-primary);
  font-weight: 600;
}

/* ---------- Article cards ---------- */
.alm-card {
  background: var(--alm-color-bg);
  border: 1px solid var(--alm-color-line);
  border-radius: var(--alm-radius-md);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.alm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--alm-shadow-md);
}
.alm-card-img-wrap {
  aspect-ratio: 16/9;
  background: var(--alm-color-surface);
  overflow: hidden;
  display: block;
}
.alm-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alm-card-body {
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.alm-card-category {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--alm-color-primary);
  margin-bottom: .5rem;
}
.alm-card-title {
  font-family: var(--alm-font-headings);
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--alm-color-text);
  margin: 0 0 .6rem;
}
.alm-card-title a { color: inherit; text-decoration: none; }
.alm-card-title a:hover { color: var(--alm-color-primary); }
.alm-card-excerpt {
  font-size: .95rem;
  color: var(--alm-color-text-soft);
  line-height: 1.55;
  margin: 0 0 .7rem;
}
.alm-card-meta {
  margin-top: auto;
  font-size: .8rem;
  color: var(--alm-color-text-soft);
}

/* ---------- Footer ---------- */
.alm-footer {
  background: #1a1a1a;
  color: #e5e5e5;
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--alm-color-primary);
}
html[data-theme="dark"] .alm-footer { background: #0a0c0e; }
.alm-footer-inner {
  max-width: var(--alm-max-width);
  margin: 0 auto;
  padding: 0 var(--alm-space-3);
}
.alm-footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.alm-footer-col h3, .alm-footer-title {
  font-family: var(--alm-font-headings);
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.alm-footer-logo {
  display: block;
  max-height: 60px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.alm-footer-brand-pitch {
  color: #cccccc;
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.alm-footer-brand-cta {
  display: inline-block;
  color: var(--alm-color-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.alm-footer-brand-cta:hover { color: #ffffff; border-bottom-color: var(--alm-color-primary); }
.alm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alm-footer-links li { margin-bottom: .55rem; }
.alm-footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.alm-footer-links a:hover { color: #ffffff; text-decoration: underline; }
.alm-footer-social {
  display: flex;
  gap: .7rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}
.alm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
  transition: background .2s;
}
.alm-footer-social a:hover { background: var(--alm-color-primary); }
.alm-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: #999999;
}
.alm-footer-bottom a { color: #cccccc; }
.alm-footer-bottom a:hover { color: #ffffff; }

@media (max-width: 900px) {
  .alm-footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .alm-footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Persona photo on about page ---------- */
.b54-persona-photo, .alm-persona-photo {
  max-width: 240px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  float: right;
  margin: 0 0 1.5rem 1.5rem;
  border: 4px solid var(--alm-color-primary);
}
@media (max-width: 700px) {
  .b54-persona-photo, .alm-persona-photo {
    float: none;
    margin: 0 auto 1.5rem;
    display: block;
  }
}

/* ---------- Contact form wrapper ---------- */
.b54-contact-form {
  margin: 2rem 0;
  padding: 1rem 0;
}

/* ---------- Mouse effect: image grayscale on non-hover ---------- */
@media (hover: hover) {
  .alm-card-img, .alm-cat-card img, .alm-latest-item-img, .alm-mega-item-img {
    filter: grayscale(60%);
    transition: filter .5s ease, transform .5s ease;
  }
  .alm-card:hover .alm-card-img,
  .alm-latest-item:hover .alm-latest-item-img,
  .alm-mega-item:hover .alm-mega-item-img {
    filter: grayscale(0%);
    transform: scale(1.03);
  }
}
@media (hover: none) {
  .alm-card-img, .alm-cat-card img, .alm-latest-item-img, .alm-mega-item-img {
    filter: none;
  }
}

/* ---------- CTR — floating tooltip ---------- */
@keyframes alm-ctr-tooltip-float { 0%, 100% { transform: translateY(0) translateX(-50%); } 50% { transform: translateY(-4px) translateX(-50%); } }
.alm-has-tooltip { position: relative; }
.alm-ctr-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--alm-color-accent);
  color: #fff;
  padding: .4rem .75rem;
  border-radius: var(--alm-radius-sm);
  font-size: .85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  animation: alm-ctr-tooltip-float 2s ease-in-out infinite;
}
.alm-has-tooltip:hover .alm-ctr-tooltip { opacity: 1; }

/* ---------- CTO — whatsapp floating widget ---------- */
@keyframes alm-cto-whatsapp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50%      { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
.alm-cto-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: alm-cto-whatsapp-pulse 2s ease-in-out infinite;
}
.alm-cto-whatsapp:hover { background: #128C7E; color: #fff; }
.alm-cto-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Utilities ---------- */
.alm-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;
}
.alm-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .alm-header-inner { justify-content: space-between; }
  .alm-brand-link { flex: 1; }
  .alm-cat-section-grid { grid-template-columns: 1fr; }
  .alm-cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .alm-cat-grid { grid-template-columns: 1fr; }
  .alm-hero-manifesto-quote::before { font-size: 4rem; }
  .alm-hero-manifesto-quote { font-size: clamp(1.5rem, 8vw, 2.4rem); }
}


/* Custom site CSS */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body, body, body [class*="b54-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !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;
  border: none !important; display: block !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;
}



body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}


@media (max-width: 1023px) {
  /* FIX width:auto -> ne plus l'imposer (laisse child theme définir width).
     Sinon écrase le child et le burger devient 0 de large -> invisible. */
  body [class*="burger"], body button[class*="burger"] {
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}



body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}


body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}


body [class*="burger"] {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer !important;
  padding: 8px;
  color: inherit;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06);
  border-color: var(--b54-accent, currentColor);
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 16px;
  gap: 0;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  margin: 2px 0;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Mobile : 1 SEUL CTA visible (dans le burger).
   Sur mobile le CTA original du header est masque ; sur desktop le clone est hidden. */
@media (max-width: 1023px) {
  body [class*="header-cta"] [class*="btn--cta"],
  body [class*="header__cta"] [class*="btn--cta"],
  body [class*="header-cta"] > [class*="cta"],
  body [class*="header__cta"] > a {
    display: none !important;
  }
}


/* ============================================================
   Section 'On parle de nous' (media press)
   Logos grayscale par defaut, couleur au hover.
   Grid responsive 2-6 colonnes, gap auto.
============================================================ */
.b54-media-press {
  padding: 2.5rem 0;
  background: var(--b54-bg-soft, var(--b54-color-surface, #f9fafb));
  margin: 2rem 0;
}
.b54-media-press > .b54-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b54-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b54-color-text-soft, var(--b54-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.b54-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.b54-media-press-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 160px;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
  opacity: .65;
  filter: grayscale(100%);
}
.b54-media-press-item:hover,
.b54-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.b54-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .b54-media-press { padding: 1.8rem 0; }
  .b54-media-press-grid { gap: 1.4rem; }
  .b54-media-press-item { max-width: 110px; min-height: 36px; }
  .b54-media-press-item img { max-height: 36px; }
}


/* FIX gap header->hero (parent theme override) + media-press compact centre */
body main, body.home main, body.archive main, body.single main,
body, body, body main[class*="-main"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* MEDIA PRESS : layout horizontal compact CENTRE (titre + logos cote a cote au centre) */
.b54-media-press section[class*="media-press"] {
  padding: 24px 0 !important;
  margin: 0 !important;
  background: #fafafa;
  border-block: 1px solid rgba(0,0,0,0.06);
}
.b54-media-press .b54-container,
section[class*="media-press"] [class*="container"] {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  text-align: center;
}
.b54-media-press-title,
section[class*="media-press"] [class*="title"] {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b54-muted, #666);
  flex: 0 0 auto;
}
.b54-media-press-grid,
section[class*="media-press"] [class*="grid"] {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: center;
}
.b54-media-press-item,
section[class*="media-press"] [class*="item"] {
  display: inline-flex !important;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.b54-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.b54-media-press imgimg,
section[class*="media-press"] img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.b54-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .b54-media-press .b54-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.b54-cat-hero--align-left .b54-cat-hero-inner
section[class*="cat-hero--align-left"] [class*="cat-hero-inner"] {
  text-align: left !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 24px;
}
.b54-cat-hero--align-center .b54-cat-hero-inner
section[class*="cat-hero--align-center"] [class*="cat-hero-inner"] {
  text-align: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}


@media (max-width: 1023.98px) {  [class*="-header-cta-wrap"],
  [class*="-header-actions"],
  [class*="-burger-wrap"],
  [class*="-header-right"],
  [class*="-header-actions-mobile"] {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
  }  [class*="-burger"] > span,
  [class*="-burger-bars"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 24px !important;
    min-height: 16px !important;
  }  [class*="-burger-bars"] > *,
  [class*="-burger"] > span > * {
    display: block !important;
    min-width: 24px !important;
    min-height: 2px !important;
  }  [class*="-header-cta-desktop"] {
    display: none !important;
  }  [class*="-burger-label"] {
    display: none !important;
  }
}
@media (min-width: 1024px) {  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: none !important;
  }
}


/* Burger style */
@media (max-width: 1023.98px) {
  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    width: 42px !important; height: 42px !important;
    border-radius: 4px !important; padding: 8px !important;
     
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 1px !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}


/* Mouse effect : image_hover_grayscale_to_color */
@media (hover: hover) { .alm-card-img, .alm-cat-card img, .alm-latest-item img { filter: grayscale(60%); transition: filter .5s ease, transform .5s ease; } .alm-card:hover .alm-card-img, .alm-cat-card:hover img, .alm-latest-item:hover img { filter: grayscale(0%); transform: scale(1.03); } } @media (hover: none) { .alm-card-img, .alm-cat-card img, .alm-latest-item img { filter: none; } }

/* 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; }
