/* =====================================================================
   AUDREY COACH MONTPELLIER — Custom Child Theme Stylesheet
   Design System: Sport Boxe Ring (Black Ops One + Roboto)
   Palette: bleu marine #132055 / accent orange #ff912c / fond clair #ffffff
   ===================================================================== */

/* --- 1. Tokens / Variables ------------------------------------------- */
:root {
  --be2-primary:    #132055;
  --be2-primary-2:  #1f2e7a;
  --be2-accent:     #ff912c;
  --be2-accent-2:   #ffb87a;
  --be2-text:       #1f2124;
  --be2-text-soft:  #69727d;
  --be2-bg:         #ffffff;
  --be2-surface:    #f5f6fc;
  --be2-surface-2:  #edeefb;
  --be2-line:       #d8dbe6;
  --be2-dark:       #0a0f24;
  --be2-success:    #2a8a4a;
  --be2-danger:     #d9534f;

  --be2-font-h:     "Black Ops One", "Impact", "Oswald", system-ui, sans-serif;
  --be2-font-b:     "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --be2-shadow-sm:  0 2px 6px rgba(19, 32, 85, 0.06);
  --be2-shadow-md:  0 8px 24px rgba(19, 32, 85, 0.10);
  --be2-shadow-lg:  0 16px 40px rgba(19, 32, 85, 0.14);

  --be2-radius-sm:  6px;
  --be2-radius-md:  10px;
  --be2-radius-lg:  16px;

  --be2-container:  1240px;
  --be2-gutter:     clamp(1rem, 2vw, 1.5rem);
}

/* --- 2. Reset & Base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--be2-font-b);
  font-size: 17px;
  line-height: 1.6;
  color: var(--be2-text);
  background: var(--be2-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main, .be2-main { padding-top: 0 !important; margin-top: 0 !important; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--be2-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--be2-accent); }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--be2-font-h);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.015em;
  color: var(--be2-primary);
  margin: 0 0 1rem;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

.be2-container { max-width: var(--be2-container); margin: 0 auto; padding: 0 var(--be2-gutter); }

/* --- 3. Buttons & CTA ------------------------------------------------ */
.be2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--be2-font-b);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--be2-radius-sm);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.be2-btn--primary {
  background: var(--be2-primary);
  color: #fff;
  border-color: var(--be2-primary);
}
.be2-btn--primary:hover { background: var(--be2-primary-2); border-color: var(--be2-primary-2); color: #fff; transform: translateY(-1px); box-shadow: var(--be2-shadow-md); }
.be2-btn--ghost {
  background: transparent;
  color: var(--be2-primary);
  border-color: var(--be2-primary);
}
.be2-btn--ghost:hover { background: var(--be2-primary); color: #fff; }

/* CTA with shine sweep animation */
.be2-btn--cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(110deg, var(--be2-accent) 0%, var(--be2-accent) 45%, var(--be2-accent-2) 50%, var(--be2-accent) 55%, var(--be2-accent) 100%);
  background-size: 200% 100%;
  animation: be2-cta-shine-sweep 3.2s ease-in-out infinite;
  border-color: var(--be2-accent);
}
.be2-btn--cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 145, 44, 0.45); }
@keyframes be2-cta-shine-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- 4. Header ------------------------------------------------------- */
.be2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--be2-line);
}
.be2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem var(--be2-gutter);
  max-width: var(--be2-container);
  margin: 0 auto;
}
.be2-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.be2-brand-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--be2-primary);
}
.be2-brand-logo {
  width: auto;
  display: block;
  flex-shrink: 0;
}
.be2-brand-name {
  font-family: var(--be2-font-h);
  font-size: 1.05rem;
  color: var(--be2-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

/* Desktop nav: horizontal, visible >= 1024px */
.be2-nav-desktop { display: none; flex: 1; justify-content: center; margin: 0 1rem; }
.be2-nav-desktop-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.be2-nav-desktop-list a {
  color: var(--be2-text);
  font-family: var(--be2-font-b);
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.be2-nav-desktop-list a:hover { color: var(--be2-primary); border-bottom-color: var(--be2-accent); }
.be2-nav-desktop-list .current-menu-item > a,
.be2-nav-desktop-list .current-cat > a { color: var(--be2-primary); border-bottom-color: var(--be2-primary); }

/* Header CTA (desktop only, hidden mobile) */
.be2-header-actions { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.be2-header-cta-desktop { font-size: 0.85rem; padding: 0.7rem 1.2rem; }

/* Burger button: mobile only */
.be2-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(19, 32, 85, 0.20);
  border-radius: 8px;
  color: var(--be2-primary);
  cursor: pointer;
  position: relative;
  z-index: 10000;
  flex-shrink: 0;
}
.be2-burger-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.be2-burger-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.be2-burger.is-active .be2-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.be2-burger.is-active .be2-burger-bars span:nth-child(2) { opacity: 0; }
.be2-burger.is-active .be2-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer: hidden by default, slides in on toggle */
.be2-nav-mobile { display: none; }
.be2-nav-mobile-overlay { display: none; }

@media (max-width: 1023px) {
  .be2-nav-desktop { display: none !important; }
  .be2-header-cta-desktop { display: none !important; }
  .be2-burger { display: inline-flex !important; }

  .be2-nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
  }
  .be2-nav-mobile.is-open { transform: translateX(0); }
  .be2-nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
  }
  .be2-nav-mobile-list li { border-bottom: 1px solid var(--be2-line); }
  .be2-nav-mobile-list a {
    display: block;
    padding: 1rem 0;
    color: var(--be2-text);
    font-family: var(--be2-font-b);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
  }
  .be2-nav-mobile-list a:hover { color: var(--be2-primary); }
  .be2-nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--be2-text);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
  }
  .be2-nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    display: block;
  }
  .be2-nav-mobile-overlay.is-visible { opacity: 1; pointer-events: auto; }

  .be2-drawer-cta {
    display: block !important;
    margin: 1.4rem 0 0 !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--be2-accent) !important;
    color: #fff !important;
    border-radius: var(--be2-radius-sm) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.02rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
  }
}

@media (min-width: 1024px) {
  .be2-nav-desktop { display: flex !important; }
  .be2-burger { display: none !important; }
  .be2-drawer-cta { display: none !important; }
}

/* --- 5. Hero (fade-reveal) ------------------------------------------- */
.be2-hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--be2-primary);
}
.be2-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;
}
.be2-hero.is-revealed .be2-hero-bg { opacity: 1; transform: scale(1); }
.be2-hero--has-video .be2-hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 2;
}
.be2-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--be2-container);
  margin: 0 auto;
  padding: 5rem var(--be2-gutter);
  color: #fff;
  width: 100%;
}
.be2-hero-eyebrow {
  display: inline-block;
  background: var(--be2-accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  font-family: var(--be2-font-b);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--be2-radius-sm);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease .2s, transform .8s ease .2s;
}
.be2-hero-title {
  font-family: var(--be2-font-h);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  margin: 0 0 1rem;
  max-width: 760px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .4s, transform 1s ease .4s;
}
.be2-hero-subtitle {
  font-family: var(--be2-font-b);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: #f5f5f5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 620px;
  margin: 0 0 2rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .6s, transform 1s ease .6s;
}
.be2-hero-cta {
  display: inline-flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease .8s, transform 1s ease .8s;
}
.be2-hero.is-revealed .be2-hero-eyebrow,
.be2-hero.is-revealed .be2-hero-title,
.be2-hero.is-revealed .be2-hero-subtitle,
.be2-hero.is-revealed .be2-hero-cta { opacity: 1; transform: translateY(0); }

/* --- 6. Section layout ---------------------------------------------- */
.be2-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.be2-section--surface { background: var(--be2-surface); }
.be2-section--dark { background: var(--be2-dark); color: #f5f5f5; }
.be2-section--dark h1, .be2-section--dark h2, .be2-section--dark h3 { color: #fff; }

.be2-section-title {
  text-align: center;
  margin-bottom: 0.8rem;
}
.be2-section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--be2-text-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* --- 7. Categories grid (rubriques) --------------------------------- */
.be2-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.be2-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--be2-line);
  border-radius: var(--be2-radius-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: var(--be2-text);
  min-height: 280px;
}
.be2-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--be2-shadow-lg);
  border-color: var(--be2-primary);
}
.be2-cat-card-img {
  display: block;
  width: 100%;
  height: 160px;
  background-color: var(--be2-primary);
  background-size: cover;
  background-position: center;
}
.be2-cat-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.be2-cat-card-name {
  font-family: var(--be2-font-h);
  font-size: 1.25rem;
  color: var(--be2-primary);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.be2-cat-card-desc {
  font-size: 0.93rem;
  color: var(--be2-text-soft);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 8. Editorial block (home middle, after-categories variant) ----- */
.be2-editorial {
  background: var(--be2-surface);
}
.be2-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
}
.be2-editorial h2 { text-align: left; }
.be2-editorial h3 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--be2-accent);
  display: inline-block;
}
.be2-editorial p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--be2-text);
  margin-bottom: 1rem;
}
.be2-editorial a { color: var(--be2-primary); border-bottom: 1px solid var(--be2-line); }
.be2-editorial a:hover { color: var(--be2-accent); border-bottom-color: var(--be2-accent); }
.be2-editorial-line {
  background: #fff;
  border-left: 4px solid var(--be2-accent);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  border-radius: 0 var(--be2-radius-sm) var(--be2-radius-sm) 0;
  box-shadow: var(--be2-shadow-sm);
}
.be2-editorial-line h3 {
  margin-top: 0;
  border-bottom: none;
  display: block;
}

/* --- 9. Latest posts grid ------------------------------------------- */
.be2-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 1023px) { .be2-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .be2-latest-grid { grid-template-columns: 1fr; } }

.be2-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--be2-line);
  border-radius: var(--be2-radius-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.be2-card:hover { transform: translateY(-3px); box-shadow: var(--be2-shadow-md); }
.be2-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--be2-surface);
}
.be2-card-img--placeholder {
  background: linear-gradient(135deg, var(--be2-primary) 0%, var(--be2-primary-2) 100%);
}
.be2-card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.be2-card-cat {
  display: inline-block;
  font-family: var(--be2-font-b);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--be2-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  text-decoration: none;
}
.be2-card-title {
  font-family: var(--be2-font-h);
  font-size: 1.15rem;
  line-height: 1.18;
  color: var(--be2-primary);
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.be2-card-title a { color: inherit; text-decoration: none; }
.be2-card-title a:hover { color: var(--be2-accent); }
.be2-card-excerpt {
  font-size: 0.95rem;
  color: var(--be2-text-soft);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex: 1;
}
.be2-card-meta {
  font-size: 0.82rem;
  color: var(--be2-text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.be2-card-meta time { color: var(--be2-text-soft); }

.be2-empty-cat {
  grid-column: 1 / -1;
  padding: 2.5rem;
  text-align: center;
  background: var(--be2-surface);
  border: 1px dashed var(--be2-line);
  border-radius: var(--be2-radius-md);
  color: var(--be2-text-soft);
}

/* --- 10. Home embedded tool section --------------------------------- */
.be2-home-tool {
  background: linear-gradient(135deg, #f5f6fc 0%, #edeefb 100%);
}
.be2-home-tool-inner { max-width: 900px; margin: 0 auto; }
.be2-home-tool h2 { text-align: center; }
.be2-home-tool-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--be2-text-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* --- 11. Category page hero (cat-hero) ------------------------------ */
.be2-cat-hero {
  position: relative;
  width: 100%;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--be2-primary);
}
.be2-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.be2-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--be2-container);
  margin: 0 auto;
  padding: 2rem var(--be2-gutter);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}
.be2-cat-hero h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.be2-cat-intro {
  max-width: 880px;
  margin: 2.5rem auto;
  padding: 0 var(--be2-gutter);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--be2-text);
}
.be2-cat-intro p { margin-bottom: 1rem; }
.be2-cat-outro {
  background: var(--be2-surface);
  padding: 2.5rem 0;
  margin-top: 3rem;
}
.be2-cat-outro-inner { max-width: 880px; margin: 0 auto; padding: 0 var(--be2-gutter); }

/* --- 12. Persona photo on a-propos ---------------------------------- */
.be2-persona-photo {
  display: block;
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: var(--be2-radius-lg);
  box-shadow: var(--be2-shadow-md);
  margin: 2rem auto;
  border: 4px solid #fff;
}

/* --- 13. Contact form wrapper --------------------------------------- */
.be2-contact-form {
  margin: 2.5rem 0;
  background: #fff;
  border: 1px solid var(--be2-line);
  border-radius: var(--be2-radius-md);
  padding: 0.5rem;
  box-shadow: var(--be2-shadow-sm);
}
.be2-contact-form iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--be2-radius-sm);
}

/* --- 14. Footer (4 columns: brand / cats / outils / utility) -------- */
.be2-footer {
  background: var(--be2-dark);
  color: #d5d8e0;
  padding: 3.5rem 0 1.5rem;
}
.be2-footer-grid {
  max-width: var(--be2-container);
  margin: 0 auto;
  padding: 0 var(--be2-gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 980px) {
  .be2-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}
@media (max-width: 560px) {
  .be2-footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

.be2-footer-col h3 {
  font-family: var(--be2-font-h);
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--be2-accent);
  display: inline-block;
}
.be2-footer-logo {
  display: block;
  margin: 0 0 1rem;
  height: auto;
  width: 130px;
  filter: brightness(0) invert(1);
}
.be2-footer-brand-pitch {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #b4b7c4;
  margin: 0 0 1rem;
}
.be2-footer-brand-cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--be2-accent);
  border: 1.5px solid var(--be2-accent);
  border-radius: var(--be2-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .2s ease, color .2s ease;
}
.be2-footer-brand-cta:hover { background: var(--be2-accent); color: #fff; }

.be2-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.be2-footer-links li { margin-bottom: 0.55rem; }
.be2-footer-links a {
  color: #d5d8e0;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color .18s ease;
}
.be2-footer-links a:hover { color: var(--be2-accent); }

.be2-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.be2-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #d5d8e0;
  transition: background .18s ease, color .18s ease;
}
.be2-footer-social a:hover { background: var(--be2-accent); color: #fff; }

.be2-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem auto 0;
  max-width: var(--be2-container);
  padding: 1.2rem var(--be2-gutter) 0;
  font-size: 0.82rem;
  color: #8c92a3;
  text-align: center;
  letter-spacing: 0.02em;
}
.be2-footer-bottom a { color: #b4b7c4; text-decoration: underline; }
.be2-footer-bottom a:hover { color: var(--be2-accent); }

/* --- 15. Article single ------------------------------------------- */
.be2-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem var(--be2-gutter) 4rem;
}
.be2-article-meta {
  color: var(--be2-text-soft);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.be2-article-content { font-size: 1.06rem; line-height: 1.75; }
.be2-article-content h2 { margin-top: 2.5rem; }
.be2-article-content h3 { margin-top: 2rem; }
.be2-article-content a { border-bottom: 1px solid var(--be2-accent); }

/* --- 16. CTR Timeline animation (scroll-triggered) ---------------- */
.be2-ctr-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--be2-line);
}
.be2-ctr-timeline-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
  position: relative;
  padding: 1rem 1.2rem;
  background: #fff;
  border-radius: var(--be2-radius-sm);
  box-shadow: var(--be2-shadow-sm);
}
.be2-ctr-timeline-item::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  background: var(--be2-accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--be2-accent);
}
.be2-ctr-timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes be2-ctr-fadein-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- 17. CTO comparison pricing table ----------------------------- */
.be2-cto-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.be2-cto-tier {
  background: #fff;
  border: 1px solid var(--be2-line);
  border-radius: var(--be2-radius-md);
  padding: 1.6rem 1.4rem;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.be2-cto-tier:hover { transform: translateY(-3px); box-shadow: var(--be2-shadow-md); }
.be2-cto-featured {
  border-color: var(--be2-accent);
  animation: be2-cto-pulse 2.4s ease-in-out infinite;
}
@keyframes be2-cto-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 145, 44, 0.4); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 145, 44, 0); }
}
.be2-cto-tier-name { font-family: var(--be2-font-h); color: var(--be2-primary); text-transform: uppercase; }
.be2-cto-tier-price { font-size: 2rem; font-weight: 700; margin: 1rem 0; color: var(--be2-primary); }
.be2-cto-tier ul { list-style: none; padding: 0; margin: 0; }
.be2-cto-tier ul li { padding: 0.4rem 0; border-bottom: 1px solid var(--be2-line); font-size: 0.93rem; }
.be2-cto-tier ul li:last-child { border-bottom: none; }

/* --- 18. Utility classes ---------------------------------------------- */
.be2-text-center { text-align: center; }
.be2-mt-3 { margin-top: 1.5rem; }
.be2-mb-3 { margin-bottom: 1.5rem; }
.be2-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;
}

/* --- 19. Page width fix ---------------------------------------------- */
.be2-page { max-width: 880px; margin: 0 auto; padding: 3rem var(--be2-gutter) 4rem; }
.be2-page h1 { margin-bottom: 1.5rem; }
.be2-page p { font-size: 1.04rem; line-height: 1.7; margin-bottom: 1rem; }
.be2-page h2 { margin-top: 2rem; }
.be2-page h3 { margin-top: 1.6rem; }

/* --- 20. Body class typo defaults ------------------------------------ */
.be2-body { font-family: var(--be2-font-b); }

/* --- 21. Tool page wrap ---------------------------------------------- */
.be2-tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem var(--be2-gutter) 4rem;
}
.be2-tool-page-title {
  text-align: center;
  margin-bottom: 1rem;
}
.be2-tool-page-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  color: var(--be2-text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}
.be2-tool-page-desc {
  margin-top: 3rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--be2-text);
}
.be2-tool-page-faq {
  margin-top: 2.5rem;
  background: var(--be2-surface);
  padding: 2rem;
  border-radius: var(--be2-radius-md);
}
.be2-tool-page-faq h2 { margin-top: 0; }
.be2-tool-page-faq details {
  border-bottom: 1px solid var(--be2-line);
  padding: 1rem 0;
}
.be2-tool-page-faq details:last-child { border-bottom: none; }
.be2-tool-page-faq summary {
  cursor: pointer;
  font-family: var(--be2-font-b);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--be2-primary);
  margin: 0;
}
.be2-tool-page-faq details[open] summary { color: var(--be2-accent); }
.be2-tool-page-faq details p { margin: 0.7rem 0 0; line-height: 1.6; color: var(--be2-text); }

/* --- 22. Print -------------------------------------------------------- */
@media print {
  .be2-header, .be2-footer, .be2-burger, .be2-nav-mobile, .be2-nav-mobile-overlay { display: none !important; }
  body { color: #000; background: #fff; }
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
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 [class*="lda-main"], body [class*="bdf-main"], body [class*="be2-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 (fix 2026-06-17) */
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;
}


/* [2026-06-17] PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
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;
  }
}

/* [2026-06-17] BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.be2-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    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;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
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;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  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) !important;
  border-color: var(--be2-accent, currentColor) !important;
}
/* 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 !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* 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 !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  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 !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX gap main padding-top (Claude met parfois padding-top: 30px sur .{prefix}-main qui casse le collage hero) */
html body main[class*="-main"],
html body main.be2-main,
html body main#bdf-main, html body main#lda-main, html body main#a66-main,
html body main#b3b-main, html body main#e96-main, html body main#aaa-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* [2026-06-19] FIX drawer mobile height : force full viewport */
html body [class*="nav-mobile"]:not([class*="close"]):not([class*="overlay"]),
html body [class*="menu-mobile"]:not([class*="close"]),
html body [class*="drawer-mobile"]:not([class*="close"]) {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  bottom: 0 !important;
  overflow-y: auto !important;
}

/* [2026-06-19] BURGER variation seedee : shape=step (w1=16/w2=18/w3=20) + dimensions + couleur + angle X */
html body button[class*="burger"] > span > span,
html body button[class*="burger"] > span:not([class*="bar"]):not([class*="line"]),
html body button[class*="burger"] [class*="bar"] > span,
html body button[class*="burger"] [class*="line"] > span {
  height: 3px !important;
  border-radius: 0 !important;
  background: var(--be2-accent, currentColor) !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease !important;
}
/* Widths individuelles seedees -> forme distincte par site */
html body button[class*="burger"] > span > span:nth-child(1),
html body button[class*="burger"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"] [class*="line"] > span:nth-child(1) {
  width: 16px !important;
}
html body button[class*="burger"] > span > span:nth-child(2),
html body button[class*="burger"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"] [class*="line"] > span:nth-child(2) {
  width: 18px !important;
}
html body button[class*="burger"] > span > span:nth-child(3),
html body button[class*="burger"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"] [class*="line"] > span:nth-child(3) {
  width: 20px !important;
}
/* En etat ouvert (X) : les 3 barres ont meme largeur pour X symetrique */
html body button[class*="burger"][aria-expanded="true"] > span > span,
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span,
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span {
  width: 20px !important;
}
html body button[class*="burger"] > span:has(> span) {
  flex-direction: column !important;
  gap: 5px !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(1):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1) {
  transform: translateY(8.0px) rotate(45deg) !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(2):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2) {
  opacity: 0 !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(3):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3) {
  transform: translateY(-8.0px) rotate(-45deg) !important;
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--be2-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : round (50%) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 50% !important;
}

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !important; margin: 0 !important; font-weight: 800 !important; text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !important; }
body [class*="cat-hero"] [class*="breadcrumb"], body [class*="cat-hero"] nav[aria-label*="riane"], body [class*="cat-hero"] nav[aria-label*="readcrumb"] { display: none !important; }

/* Validator: nav-mobile drawer hidden by default 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; }
