/* ============================================================================
   LE CÉLESTE GOURMAND — Feuille de style principale
   Design System : Seasonal Saint-Valentin
   Palette : #C8102E (rouge passion) + #F5C8D0 (rose tendre)
   Fonts   : Italianno (headings display) + Cormorant (body serif)
   ============================================================================ */

/* ---- Variables du site ---- */
:root {
  --b57-primary:      #C8102E;
  --b57-primary-hover:#a30d26;
  --b57-accent:       #F5C8D0;
  --b57-text:         #3A0F1A;
  --b57-text-soft:    #8C5575;
  --b57-bg:           #FFFAFB;
  --b57-surface:      #FFFFFF;
  --b57-line:         #F0D5DC;
  --b57-shadow:       0 8px 22px rgba(58, 15, 26, 0.08);
  --b57-shadow-hover: 0 12px 32px rgba(58, 15, 26, 0.16);
  --b57-radius:       6px;
  --b57-radius-lg:    12px;

  --b57-font-headings: 'Italianno', 'Playfair Display', cursive;
  --b57-font-display:  'Italianno', 'Playfair Display', cursive;
  --b57-font-body:     'Cormorant', 'Playfair Display', Georgia, serif;

  --b57-container:     1180px;
  --b57-container-narrow: 880px;

  --b57-header-h:      88px;
}

/* ---- Reset light + typo ---- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.b57-body {
  margin: 0;
  padding: 0;
  background: var(--b57-bg);
  color: var(--b57-text);
  font-family: var(--b57-font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--b57-primary); text-decoration: none; transition: color .18s ease; }
a:hover, a:focus { color: var(--b57-primary-hover); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .8rem;
  font-family: var(--b57-font-body);
  color: var(--b57-text);
  font-weight: 600;
  line-height: 1.25;
}

/* Italianno reserved for hero title + brand */
.b57-hero-title, .b57-brand-name { font-family: var(--b57-font-display); font-weight: 400; }

p { margin: 0 0 1rem; }

.b57-container {
  max-width: var(--b57-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.b57-container-narrow { max-width: var(--b57-container-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* Skip link accessibilité */
.skip-link.screen-reader-text {
  position: absolute; left: -9999px; top: -9999px;
}
.skip-link.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px; z-index: 99999;
  background: var(--b57-primary); color: #fff; padding: 8px 14px; border-radius: 4px;
  left: 8px; top: 8px;
}

/* ============================================================================
   HEADER — logo à gauche + nav horizontal desktop + burger mobile
   CTA_IN_HEADER = no → pas de bouton dans le header desktop
   ============================================================================ */
.b57-header {
  background: var(--b57-surface);
  border-bottom: 1px solid var(--b57-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(200, 16, 46, 0.03);
}

.b57-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--b57-container);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  min-height: 68px;
}

.b57-brand { flex: 0 0 auto; }
.b57-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--b57-text);
  text-decoration: none;
}
.b57-brand-link:hover, .b57-brand-link:focus {
  text-decoration: none;
  color: var(--b57-primary);
}
.b57-brand-logo {
  max-width: 100%;
  width: auto;
  /* pas de hauteur en dur — b57_logo_size customizer impose la hauteur */
}
.b57-brand-name {
  font-family: var(--b57-font-display);
  font-size: 2.15rem;
  line-height: 1;
  color: var(--b57-primary);
  letter-spacing: 0;
}

/* Nav desktop centrée */
.b57-nav-desktop { display: none; }
.b57-nav-desktop-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.b57-nav-desktop-list li { margin: 0; }
.b57-nav-desktop-list a {
  color: var(--b57-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: .45rem .1rem;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.b57-nav-desktop-list a:hover,
.b57-nav-desktop-list a:focus,
.b57-nav-desktop-list .current-menu-item > a,
.b57-nav-desktop-list .current-cat > a {
  color: var(--b57-primary);
  border-bottom-color: var(--b57-primary);
}

/* Burger button mobile */
.b57-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--b57-line);
  border-radius: var(--b57-radius);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: border-color .18s;
}
.b57-burger:hover, .b57-burger:focus { border-color: var(--b57-primary); }
.b57-burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--b57-text);
  border-radius: 2px;
  transition: transform .18s, opacity .18s;
}
.b57-burger[aria-expanded="true"] .b57-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.b57-burger[aria-expanded="true"] .b57-burger-line:nth-child(2) { opacity: 0; }
.b57-burger[aria-expanded="true"] .b57-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer mobile — CACHÉ par défaut */
.b57-nav-mobile {
  display: none;
}
.b57-drawer-overlay {
  display: none;
}

/* Body lock quand drawer ouvert */
body.b57-drawer-locked { overflow: hidden; }

/* ============================================================================
   MAIN — pas de padding-top (colle direct sous le header sticky)
   ============================================================================ */
.b57-main, main.b57-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 60vh;
}

/* ============================================================================
   HERO — style classic-overlay (image plein-écran + gradient + titre centré)
   ============================================================================ */
.b57-hero {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  isolation: isolate;
}
.b57-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(.92);
}
.b57-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(58, 15, 26, 0.15) 0%,
    rgba(58, 15, 26, 0.55) 55%,
    rgba(58, 15, 26, 0.75) 100%);
}
.b57-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  color: #fff;
}
.b57-hero-eyebrow {
  font-family: var(--b57-font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 .8rem;
}
.b57-hero-title {
  font-family: var(--b57-font-display);
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  font-weight: 400;
}
.b57-hero-subtitle {
  font-family: var(--b57-font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.b57-hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Buttons ---- */
.b57-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.8rem;
  border-radius: var(--b57-radius);
  font-family: var(--b57-font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .18s ease, background .18s ease;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.b57-btn--cta {
  background: var(--b57-primary);
  color: #fff;
  border-color: var(--b57-primary);
}
.b57-btn--cta:hover, .b57-btn--cta:focus {
  background: var(--b57-primary-hover);
  border-color: var(--b57-primary-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--b57-shadow-hover);
}
.b57-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.b57-btn--ghost:hover, .b57-btn--ghost:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

/* ============================================================================
   SECTIONS génériques
   ============================================================================ */
.b57-categories,
.b57-editorial,
.b57-latest,
.b57-home-tool {
  padding: 4.5rem 0;
}
.b57-section-title {
  font-family: var(--b57-font-body);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--b57-primary);
  text-align: center;
  margin: 0 0 .8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.b57-section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--b57-text-soft);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* ============================================================================
   CATÉGORIES — grille responsive
   ============================================================================ */
.b57-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.b57-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--b57-radius-lg);
  background: var(--b57-surface);
  box-shadow: var(--b57-shadow);
  text-decoration: none;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.b57-cat-card:hover, .b57-cat-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--b57-shadow-hover);
  text-decoration: none;
}
.b57-cat-card-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .5s ease;
}
.b57-cat-card:hover .b57-cat-card-img,
.b57-cat-card:focus .b57-cat-card-img {
  transform: scale(1.05);
}
.b57-cat-card-img--fallback {
  background: linear-gradient(135deg, var(--b57-primary), var(--b57-accent));
}
.b57-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(58, 15, 26, 0) 45%,
    rgba(58, 15, 26, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}
.b57-cat-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #fff;
}
.b57-cat-card-name {
  font-family: var(--b57-font-body);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.b57-cat-card-arrow {
  font-size: 1.25rem;
  color: var(--b57-accent);
  font-weight: 300;
}

/* ============================================================================
   EDITORIAL — après catégories (bloc SEO 400-700 mots)
   ============================================================================ */
.b57-editorial {
  background: linear-gradient(180deg, var(--b57-bg) 0%, #FFF5F7 100%);
}
.b57-editorial-container { max-width: 960px; }
.b57-editorial-lead {
  text-align: center;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--b57-text);
  margin: 0 auto 3rem;
  max-width: 780px;
}
.b57-editorial-lead em {
  color: var(--b57-primary);
  font-style: italic;
}
.b57-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.b57-editorial-block {
  background: var(--b57-surface);
  border-radius: var(--b57-radius-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--b57-shadow);
  border-top: 3px solid var(--b57-primary);
}
.b57-editorial-block h3 {
  font-family: var(--b57-font-body);
  color: var(--b57-primary);
  font-size: 1.25rem;
  margin: 0 0 .8rem;
  font-weight: 600;
  line-height: 1.3;
}
.b57-editorial-block p {
  margin: 0;
  color: var(--b57-text);
  line-height: 1.65;
}
.b57-editorial-manifesto {
  background: var(--b57-surface);
  border: 1px solid var(--b57-line);
  border-left: 4px solid var(--b57-primary);
  border-radius: var(--b57-radius);
  padding: 1.5rem 1.8rem;
  text-align: center;
  color: var(--b57-text);
  font-size: 1.05rem;
  line-height: 1.7;
}
.b57-editorial-manifesto p { margin: 0; }
.b57-editorial-manifesto strong { color: var(--b57-primary); }

/* ============================================================================
   LATEST POSTS — grille 3 colonnes
   ============================================================================ */
.b57-latest { background: var(--b57-surface); }
.b57-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.b57-post-card {
  background: var(--b57-bg);
  border-radius: var(--b57-radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
  box-shadow: var(--b57-shadow);
}
.b57-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b57-shadow-hover);
}
.b57-post-card-link {
  display: block;
  color: var(--b57-text);
  text-decoration: none;
  height: 100%;
}
.b57-post-card-link:hover, .b57-post-card-link:focus { color: var(--b57-primary); text-decoration: none; }
.b57-post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--b57-accent);
}
.b57-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.b57-post-card:hover .b57-post-card-thumb img { transform: scale(1.04); }
.b57-post-card-thumb--fallback {
  background: linear-gradient(135deg, var(--b57-primary), var(--b57-accent));
}
.b57-post-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.b57-post-card-cat {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--b57-primary);
  font-weight: 600;
  margin-bottom: .5rem;
}
.b57-post-card-title {
  font-family: var(--b57-font-body);
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 .8rem;
  color: var(--b57-text);
  font-weight: 600;
}
.b57-post-card-meta {
  font-size: .88rem;
  color: var(--b57-text-soft);
}
.b57-empty {
  text-align: center;
  color: var(--b57-text-soft);
  font-size: 1.1rem;
  padding: 3rem 1rem;
}

/* ============================================================================
   HOME TOOL — embed d'un outil (rule #15 : OUTIL_ON_HOME=yes)
   ============================================================================ */
.b57-home-tool {
  background: linear-gradient(180deg, #FFF5F7 0%, var(--b57-bg) 100%);
  text-align: center;
}
.b57-home-tool-cta {
  margin: 2rem 0 1.5rem;
}
.b57-home-tool-suggest {
  color: var(--b57-text-soft);
  font-size: .98rem;
  max-width: 720px;
  margin: 0 auto;
}
.b57-home-tool-suggest a {
  color: var(--b57-primary);
  border-bottom: 1px dotted var(--b57-primary);
}

/* ============================================================================
   FOOTER — 4 colonnes
   ============================================================================ */
.b57-footer {
  background: var(--b57-text); /* dark burgundy */
  color: #F5E7EC;
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.b57-footer-inner {
  max-width: var(--b57-container);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
.b57-footer-col { }
.b57-footer-logo {
  filter: brightness(0) invert(1) opacity(.95);
  max-width: 140px;
}
.b57-footer-brand-pitch {
  font-size: .98rem;
  line-height: 1.65;
  color: #F5E7EC;
  margin-bottom: 1.2rem;
}
.b57-footer-brand-cta {
  display: inline-block;
  color: var(--b57-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--b57-accent);
  padding-bottom: 2px;
  font-size: .98rem;
}
.b57-footer-brand-cta:hover, .b57-footer-brand-cta:focus {
  color: #fff;
  border-bottom-color: #fff;
  text-decoration: none;
}
.b57-footer-title {
  color: var(--b57-accent);
  font-family: var(--b57-font-body);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1.3rem;
  font-weight: 600;
}
.b57-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b57-footer-links li { margin: 0 0 .65rem; }
.b57-footer-links a {
  color: #F5E7EC;
  text-decoration: none;
  font-size: .96rem;
  transition: color .18s;
}
.b57-footer-links a:hover, .b57-footer-links a:focus {
  color: var(--b57-accent);
  text-decoration: underline;
}
.b57-footer-bottom {
  border-top: 1px solid rgba(245, 200, 208, 0.2);
  padding: 1.4rem 1.5rem;
  text-align: center;
  color: rgba(245, 231, 236, 0.75);
  font-size: .88rem;
}
.b57-footer-copyright { margin: 0; }

/* Social links (rendered by b57_render_social_links) */
.b57-social-links {
  display: flex;
  gap: .7rem;
  margin-top: 1.3rem;
  padding: 0;
  list-style: none;
}
.b57-social-links a,
.b57-social-links li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  color: #F5E7EC;
  border-radius: 50%;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.b57-social-links a:hover,
.b57-social-links a:focus {
  background: var(--b57-primary);
  color: #fff;
}

/* ============================================================================
   CONTACT PAGE — wrapper JotForm
   ============================================================================ */
.b57-contact-form {
  margin: 2rem 0 3rem;
  background: var(--b57-surface);
  border: 1px solid var(--b57-line);
  border-radius: var(--b57-radius-lg);
  overflow: hidden;
  padding: 1rem;
}

/* ============================================================================
   PERSONA PHOTO (page à-propos)
   ============================================================================ */
.b57-persona-photo {
  max-width: 320px;
  border-radius: var(--b57-radius-lg);
  margin: 1.5rem 0;
  box-shadow: var(--b57-shadow);
  border: 4px solid var(--b57-surface);
}

/* ============================================================================
   CATEGORY PAGE — hero max 350px
   ============================================================================ */
.b57-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  isolation: isolate;
}
.b57-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b57-cat-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(58, 15, 26, 0.85) 100%);
  pointer-events: none;
}
.b57-cat-hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: var(--b57-container);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.b57-cat-hero-title {
  font-family: var(--b57-font-display);
  color: #fff;
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  font-weight: 400;
}

/* ============================================================================
   TOOL PAGE — container wrapper
   ============================================================================ */
.b57-tool-page {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.b57-tool-page h1 {
  font-family: var(--b57-font-body);
  color: var(--b57-primary);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

/* ============================================================================
   ANIMATIONS — CTA ripple + CTR progress bar + CTO badge
   (injectées par le builder Python depuis animations.*_keyframes_css)
   ============================================================================ */
.b57-btn--cta { position: relative; overflow: hidden; }
.b57-btn--cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--b57-ripple-x, 50%) var(--b57-ripple-y, 50%), rgba(255,255,255,0.55) 0, transparent 60%);
  opacity: 0;
  transition: opacity .55s ease-out;
  pointer-events: none;
}
.b57-btn--cta.b57-ripple::after {
  opacity: 1;
  animation: b57-ripple .55s ease-out forwards;
}
@keyframes b57-ripple {
  0%   { transform: scale(0.4); opacity: .7; }
  60%  { opacity: .3; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Reading progress bar */
.b57-reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(200, 16, 46, 0.12);
  z-index: 9999;
  pointer-events: none;
}
.b57-reading-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--b57-primary) 0%, var(--b57-accent) 100%);
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.45);
  transition: width .1s linear;
}

/* Guarantee badge (flottant en bas à gauche desktop) */
.b57-guarantee-badge {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9990;
  background: var(--b57-surface);
  border: 1px solid var(--b57-line);
  border-left: 3px solid var(--b57-primary);
  color: var(--b57-text);
  padding: .8rem 2rem .8rem 1.1rem;
  border-radius: var(--b57-radius);
  box-shadow: var(--b57-shadow);
  font-size: .88rem;
  line-height: 1.5;
  max-width: 260px;
  opacity: 0;
  transform: translateY(20px);
  animation: b57-badge-in .7s cubic-bezier(.16,.79,.28,1) 1.5s forwards;
}
.b57-guarantee-badge strong { color: var(--b57-primary); display: block; font-size: .95rem; margin-bottom: .15rem; }
.b57-guarantee-badge__close {
  position: absolute; top: 4px; right: 6px;
  background: none; border: 0; color: var(--b57-text-soft); cursor: pointer;
  font-size: 1.15rem; line-height: 1; padding: 2px 6px;
}
@keyframes b57-badge-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   MEDIA QUERIES — mobile-first cascade
   ============================================================================ */

/* Tablette (max 1023px) — burger visible, nav desktop cachée */
@media (max-width: 1023px) {
  .b57-nav-desktop { display: none !important; }
  .b57-burger { display: inline-flex; }

  /* Header CTA desktop caché en mobile */
  .b57-header-cta-desktop,
  [class*="b57-header"] [class*="b57-btn--cta"]:not([class*="b57-drawer-"]) {
    display: none !important;
  }

  /* Drawer mobile visible quand ouvert */
  .b57-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--b57-surface);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(58, 15, 26, 0.3);
    transform: translateX(0);
  }
  .b57-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .b57-nav-mobile-list li {
    border-bottom: 1px solid var(--b57-line);
  }
  .b57-nav-mobile-list a {
    display: block;
    padding: 1rem .3rem;
    color: var(--b57-text);
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 500;
  }
  .b57-nav-mobile-list a:hover,
  .b57-nav-mobile-list a:focus {
    color: var(--b57-primary);
  }
  .b57-nav-mobile-sep a {
    color: var(--b57-primary) !important;
    font-style: italic;
    padding-top: 1.5rem !important;
  }
  .b57-drawer-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    border: 1px solid var(--b57-line);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--b57-text);
  }
  .b57-drawer-close:hover, .b57-drawer-close:focus {
    background: var(--b57-primary);
    color: #fff;
    border-color: var(--b57-primary);
  }

  /* Overlay du drawer */
  .b57-drawer-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(58, 15, 26, 0.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
  }

  /* CTA en bas du drawer (règle CRITIQUE 2026-06-07) */
  .b57-drawer-cta {
    display: block !important;
    margin: 2rem 0 1.5rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--b57-primary) !important;
    color: #fff !important;
    border-radius: var(--b57-radius) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }

  /* Grilles responsive */
  .b57-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .b57-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .b57-editorial-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .b57-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Desktop ≥ 1024px — nav horizontale visible, burger caché */
@media (min-width: 1024px) {
  .b57-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 1.5rem;
  }
  .b57-burger { display: none !important; }
  .b57-nav-mobile { display: none !important; }
  .b57-drawer-overlay { display: none !important; }
  .b57-drawer-cta { display: none !important; }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
  .b57-container, .b57-container-narrow { padding: 0 1rem; }
  .b57-hero { min-height: 52vh; }
  .b57-hero-inner { padding: 3.5rem 1.2rem 3rem; }
  .b57-hero-eyebrow { font-size: .72rem; letter-spacing: 0.2em; }
  .b57-hero-title { font-size: clamp(3rem, 12vw, 4rem); }
  .b57-hero-subtitle { font-size: 1rem; }

  .b57-categories, .b57-editorial, .b57-latest, .b57-home-tool {
    padding: 3rem 0;
  }
  .b57-section-title { font-size: 1.8rem; }
  .b57-cat-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .b57-latest-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .b57-editorial-block { padding: 1.4rem 1.3rem; }
  .b57-footer-inner { grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2rem; }

  .b57-btn { padding: .85rem 1.4rem; font-size: .95rem; }
  .b57-hero-cta { gap: .8rem; }
  .b57-hero-cta .b57-btn { flex: 1 1 45%; }

  /* Cache badge de garantie sur mobile */
  .b57-guarantee-badge { display: none; }
}

/* Very small phones ( <400px ) */
@media (max-width: 400px) {
  .b57-cat-grid { grid-template-columns: 1fr; }
  .b57-hero-title { font-size: 3rem; }
  .b57-brand-name { font-size: 1.7rem; }
}

/* ============================================================================
   PRINT
   ============================================================================ */
@media print {
  .b57-header, .b57-footer, .b57-guarantee-badge, .b57-reading-progress,
  .b57-nav-mobile, .b57-drawer-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .b57-guarantee-badge { opacity: 1; transform: none; animation: none; }
}


/* Site theme rules */
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*="b57-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(--b57-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.
============================================================ */
.b57-media-press {
  padding: 2.5rem 0;
  background: var(--b57-bg-soft, var(--b57-color-surface, #f9fafb));
  margin: 2rem 0;
}
.b57-media-press > .b57-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b57-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b57-color-text-soft, var(--b57-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.b57-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.b57-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%);
}
.b57-media-press-item:hover,
.b57-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.b57-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .b57-media-press { padding: 1.8rem 0; }
  .b57-media-press-grid { gap: 1.4rem; }
  .b57-media-press-item { max-width: 110px; min-height: 36px; }
  .b57-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) */
.b57-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);
}
.b57-media-press .b57-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;
}
.b57-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(--b57-muted, #666);
  flex: 0 0 auto;
}
.b57-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;
}
.b57-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;
}
.b57-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.b57-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;
}
.b57-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .b57-media-press .b57-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.b57-cat-hero--align-left .b57-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;
}
.b57-cat-hero--align-center .b57-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;
    background: transparent !important; border: 1px solid currentColor !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; }
}

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !important; margin: 0 !important; font-weight: 800 !important; text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !important; }
body [class*="cat-hero"] [class*="breadcrumb"], body [class*="cat-hero"] nav[aria-label*="riane"], body [class*="cat-hero"] nav[aria-label*="readcrumb"] { display: none !important; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }

/* RANKO LECELESTE HERO WHITE + MOBILE DRAWER FIX 2026-07-27 */
.b57-hero .b57-hero-title { color: #fff !important; }
@media (max-width: 1023px) {
  body.b57-body nav#b57-nav-mobile.is-open { display:flex!important;visibility:visible!important;opacity:1!important;flex-direction:column!important;position:fixed!important;inset:0 0 0 auto!important;width:min(86vw,380px)!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;padding:4.5rem 1.5rem 2rem!important;overflow-y:auto!important;background:#fff!important;color:#18120f!important;z-index:10001!important; }
  body.b57-body nav#b57-nav-mobile.is-open .b57-nav-mobile-list { display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important; }
  body.b57-body nav#b57-nav-mobile.is-open .b57-nav-mobile-list li { display:block!important;visibility:visible!important; }
  body.b57-body nav#b57-nav-mobile.is-open .b57-nav-mobile-list a { display:block!important;visibility:visible!important;color:#18120f!important;font-size:1.08rem!important;line-height:1.3!important;padding:.9rem .2rem!important; }
  body.b57-body nav#b57-nav-mobile.is-open button.b57-drawer-close { display:flex!important;visibility:visible!important;opacity:1!important;position:absolute!important;top:14px!important;right:14px!important;width:44px!important;height:44px!important;align-items:center!important;justify-content:center!important;padding:0!important;border:1px solid rgba(0,0,0,.15)!important;border-radius:50%!important;background:#fff!important;color:#18120f!important;font-size:2rem!important;line-height:1!important;z-index:2!important; }
}
/* RANKO LECELESTE BURGER REDESIGN FINAL 2026-07-27 */
@media (max-width: 1023px) {
  body.b57-body header.b57-header button#b57-burger {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin-left: auto !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg,#5f142d,#9a3151) !important;
    box-shadow: 0 9px 22px rgba(95,20,45,.3) !important;
    z-index: 10000 !important;
  }
  body.b57-body header.b57-header button#b57-burger > span.b57-burger-line {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 2px !important;
    min-height: 2px !important;
    max-height: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform-origin: center !important;
    transition: transform .25s ease,opacity .2s ease !important;
  }
  body.b57-body header.b57-header button#b57-burger[aria-expanded="true"] {
    background: linear-gradient(135deg,#3a0f1a,#741e39) !important;
  }
  body.b57-body header.b57-header button#b57-burger[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  body.b57-body header.b57-header button#b57-burger[aria-expanded="true"] > span:nth-child(2) { opacity: 0 !important; }
  body.b57-body header.b57-header button#b57-burger[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
  body.b57-body nav#b57-nav-mobile.is-open > ul.b57-nav-mobile-list,
  body.b57-body nav#b57-nav-mobile.is-open > ul.b57-nav-mobile-list > li,
  body.b57-body nav#b57-nav-mobile.is-open > ul.b57-nav-mobile-list > li > a {
    visibility: visible !important;
    opacity: 1 !important;
  }
  body.b57-body nav#b57-nav-mobile.is-open > ul.b57-nav-mobile-list { display: flex !important; flex-direction: column !important; }
  body.b57-body nav#b57-nav-mobile.is-open > ul.b57-nav-mobile-list > li { display: block !important; width: 100% !important; }
  body.b57-body nav#b57-nav-mobile.is-open > ul.b57-nav-mobile-list > li > a { display: block !important; width: 100% !important; color: #18120f !important; background: transparent !important; }
}