/* ============================================================
   MBSR FRANCE — Custom theme stylesheet
   Design System: Sport Natation Piscine (DB) + competitor palette
   Palette: deep navy #135796 (primary) + wellness magenta #a81963 (accent)
   Fonts:   Outfit (headings) + Inter (body)
   ============================================================ */

:root {
  --b74-primary: #135796;
  --b74-primary-dark: #0e4276;
  --b74-accent: #a81963;
  --b74-accent-dark: #84134d;
  --b74-text: #1a1a1a;
  --b74-text-soft: #5a6470;
  --b74-bg: #ffffff;
  --b74-surface: #f7f7f7;
  --b74-line: #e5e5e5;
  --b74-shadow-sm: 0 2px 8px rgba(19, 87, 150, 0.06);
  --b74-shadow-md: 0 6px 22px rgba(19, 87, 150, 0.08);
  --b74-shadow-lg: 0 18px 48px rgba(19, 87, 150, 0.12);
  --b74-radius: 14px;
  --b74-radius-lg: 22px;
  --b74-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --b74-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --b74-container: 1240px;
  --b74-gutter: clamp(1rem, 3vw, 2rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.b74-body {
  margin: 0;
  font-family: var(--b74-font-body);
  color: var(--b74-text);
  background: var(--b74-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--b74-font-heading);
  font-weight: 700;
  color: var(--b74-text);
  line-height: 1.18;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin-top: 0; }

a { color: var(--b74-primary); }

img { max-width: 100%; height: auto; display: block; }

main.b74-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 60vh;
}

.b74-container {
  max-width: var(--b74-container);
  margin: 0 auto;
  padding: 0 var(--b74-gutter);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.b74-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--b74-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
  background-image: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.b74-btn--primary {
  background: var(--b74-primary);
  color: #fff;
}
.b74-btn--primary:hover { background: var(--b74-primary-dark); transform: translateY(-1px); box-shadow: var(--b74-shadow-md); }

.b74-btn--cta {
  background: linear-gradient(135deg, var(--b74-primary), var(--b74-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 25, 99, 0.18);
}
.b74-btn--cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(168, 25, 99, 0.28); }

.b74-btn--ghost {
  background: transparent;
  color: var(--b74-primary);
  border: 1.5px solid var(--b74-primary);
}
.b74-btn--ghost:hover { background: var(--b74-primary); color: #fff; }

/* ============================================================
   HEADER — logo-center-menu-split layout
   ============================================================ */

.b74-header {
  background: var(--b74-bg);
  border-bottom: 1px solid var(--b74-line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.b74-header-inner {
  max-width: var(--b74-container);
  margin: 0 auto;
  padding: 0.9rem var(--b74-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.b74-nav-desktop { display: none; }
.b74-nav-desktop-list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.b74-nav-desktop-list li { margin: 0; padding: 0; }
.b74-nav-desktop-list a {
  color: var(--b74-text);
  text-decoration: none;
  font-family: var(--b74-font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  background-image: none !important;
}
.b74-nav-desktop-list a:hover,
.b74-nav-desktop-list a:focus-visible,
.b74-nav-desktop-list .current-cat > a {
  border-bottom-color: var(--b74-accent);
  color: var(--b74-primary);
}

.b74-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  flex-grow: 0;
}
.b74-brand-link { text-decoration: none !important; background-image: none !important; }
.b74-brand-logo {
  width: auto;
  display: block;
}
.b74-brand-name {
  font-family: var(--b74-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  color: var(--b74-text);
}

/* CTA desktop dans le header */
.b74-header-cta-desktop {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
}

/* Burger (mobile only) */
.b74-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.18) !important;
  border-radius: 8px !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto;
}
.b74-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 24px !important;
  height: 16px !important;
}
.b74-burger-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.b74-burger[aria-expanded="true"] .b74-burger-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.b74-burger[aria-expanded="true"] .b74-burger-bars span:nth-child(2) { opacity: 0; }
.b74-burger[aria-expanded="true"] .b74-burger-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Drawer mobile — CACHÉ par défaut */
.b74-nav-mobile { display: none; }
.b74-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.b74-nav-mobile-list a {
  display: block;
  padding: 0.95rem 1rem;
  color: #0a0a0a;
  text-decoration: none;
  font-family: var(--b74-font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid #e5e5e5;
  background-image: none !important;
}
.b74-nav-mobile-list a:hover { color: var(--b74-primary); }
.b74-drawer-cta { display: none !important; }

.b74-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}
.b74-drawer-overlay.is-open { display: block; }

.b74-drawer-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: transparent;
  border: 0;
  color: #1a1a1a;
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.b74-drawer-close:hover { background: var(--b74-surface); }

/* ============================================================
   HERO — featured-article style
   ============================================================ */

.b74-hero {
  position: relative;
  background: var(--b74-bg);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--b74-line);
}

.b74-hero--featured-article .b74-hero-inner {
  max-width: var(--b74-container);
  margin: 0 auto;
  padding: 0 var(--b74-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.b74-hero-content { display: flex; flex-direction: column; gap: 1rem; }

.b74-hero-eyebrow {
  display: inline-block;
  font-family: var(--b74-font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b74-accent);
}
.b74-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--b74-accent);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.b74-hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--b74-text);
}
.b74-hero-title a {
  color: inherit;
  text-decoration: none;
  background-image: none !important;
}
.b74-hero-title a:hover { color: var(--b74-primary); }

.b74-hero-subtitle {
  font-size: 1.1rem;
  color: var(--b74-text-soft);
  margin: 0;
  line-height: 1.55;
}

.b74-hero-meta {
  font-size: 0.85rem;
  color: var(--b74-text-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.b74-hero-meta span:not(:first-child)::before { content: "·"; margin-right: 0.5rem; color: var(--b74-line); }

.b74-hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.5rem; }

.b74-hero-media {
  position: relative;
  border-radius: var(--b74-radius-lg);
  overflow: hidden;
  box-shadow: var(--b74-shadow-lg);
  aspect-ratio: 4 / 3;
}
.b74-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b74-hero-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--b74-primary), var(--b74-accent));
  color: #fff;
  font-family: var(--b74-font-heading);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 880px) {
  .b74-hero--featured-article .b74-hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .b74-hero-media { order: -1; }
}

/* ============================================================
   EDITORIAL INTRO BLOCK (after-hero)
   ============================================================ */

.b74-editorial-intro {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--b74-surface);
  border-bottom: 1px solid var(--b74-line);
}
.b74-editorial-intro-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--b74-gutter);
}
.b74-editorial-intro h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 1.2rem;
  color: var(--b74-primary);
  text-align: center;
}
.b74-editorial-intro h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--b74-text);
}
.b74-editorial-intro p {
  font-size: 1.02rem;
  color: var(--b74-text);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.b74-editorial-intro p:first-of-type::first-letter {
  font-family: var(--b74-font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  float: left;
  line-height: 0.92;
  margin: 0.18em 0.15em 0 0;
  color: var(--b74-accent);
}
.b74-editorial-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 1rem;
}
.b74-editorial-pillar {
  padding: 1.2rem 1.3rem;
  background: var(--b74-bg);
  border-left: 4px solid var(--b74-primary);
  border-radius: 0 var(--b74-radius) var(--b74-radius) 0;
}
.b74-editorial-pillar:nth-child(2) { border-left-color: var(--b74-accent); }
.b74-editorial-pillar:nth-child(3) { border-left-color: var(--b74-primary-dark); }
.b74-editorial-pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--b74-primary);
}
.b74-editorial-pillar p { margin: 0; font-size: 0.95rem; color: var(--b74-text-soft); }

.b74-editorial-callout {
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem;
  background: var(--b74-bg);
  border: 1px solid var(--b74-line);
  border-radius: var(--b74-radius);
  font-size: 0.97rem;
  color: var(--b74-text-soft);
  line-height: 1.65;
}
.b74-editorial-callout strong { color: var(--b74-primary); }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */

.b74-categories {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--b74-bg);
}
.b74-categories-inner { max-width: var(--b74-container); margin: 0 auto; padding: 0 var(--b74-gutter); }

.b74-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.b74-section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--b74-text);
}
.b74-section-head p {
  margin: 0;
  color: var(--b74-text-soft);
  max-width: 520px;
  font-size: 0.97rem;
}

.b74-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.b74-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--b74-bg);
  border: 1px solid var(--b74-line);
  border-radius: var(--b74-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background-image: none !important;
}
.b74-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b74-shadow-md);
  border-color: var(--b74-primary);
}

.b74-cat-card-img {
  display: block;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--b74-primary);
  background-image: linear-gradient(135deg, var(--b74-primary), var(--b74-accent));
}
.b74-cat-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}
.b74-cat-card-name {
  margin: 0 0 0.35rem;
  font-family: var(--b74-font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--b74-text);
}
.b74-cat-card-count {
  font-size: 0.82rem;
  color: var(--b74-text-soft);
  letter-spacing: 0.02em;
}

/* ============================================================
   LATEST ARTICLES GRID
   ============================================================ */

.b74-latest {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--b74-surface);
}
.b74-latest-inner { max-width: var(--b74-container); margin: 0 auto; padding: 0 var(--b74-gutter); }

.b74-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 1000px) { .b74-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .b74-articles-grid { grid-template-columns: 1fr; } }

.b74-card {
  display: flex;
  flex-direction: column;
  background: var(--b74-bg);
  border: 1px solid var(--b74-line);
  border-radius: var(--b74-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.b74-card:hover { transform: translateY(-2px); box-shadow: var(--b74-shadow-md); }

.b74-card-img-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--b74-primary), var(--b74-accent));
}
.b74-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.b74-card:hover .b74-card-img-wrap img { transform: scale(1.04); }

.b74-card-body { padding: 1.1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.b74-card-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--b74-text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.b74-card-meta a {
  color: var(--b74-accent);
  text-decoration: none;
  font-weight: 600;
  background-image: none !important;
}
.b74-card-title {
  margin: 0;
  font-family: var(--b74-font-heading);
  font-size: 1.15rem;
  line-height: 1.32;
  font-weight: 700;
}
.b74-card-title a {
  color: var(--b74-text);
  text-decoration: none;
  background-image: none !important;
}
.b74-card-title a:hover { color: var(--b74-primary); }
.b74-card-excerpt { color: var(--b74-text-soft); font-size: 0.93rem; margin: 0; line-height: 1.55; }

.b74-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--b74-bg);
  border: 1px dashed var(--b74-line);
  border-radius: var(--b74-radius);
  grid-column: 1 / -1;
}
.b74-empty-state p { color: var(--b74-text-soft); margin: 0 0 1rem; }

/* ============================================================
   FOOTER — 4 columns
   ============================================================ */

.b74-footer {
  background: #0e2a44;
  color: #d7e3ee;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: 4rem;
}

.b74-footer a {
  color: #ffffff;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.b74-footer a:hover, .b74-footer a:focus-visible {
  background-size: 100% 1.5px;
}

.b74-footer-inner {
  max-width: var(--b74-container);
  margin: 0 auto;
  padding: 0 var(--b74-gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .b74-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .b74-footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

.b74-footer-col {}
.b74-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  width: 120px;
  filter: brightness(1.05);
}
.b74-footer-brand-pitch {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #c0d2e1;
}
.b74-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--b74-font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff !important;
}

.b74-footer-title {
  font-family: var(--b74-font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0.4rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.b74-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.b74-footer-links a {
  font-size: 0.92rem;
}

.b74-footer-bottom {
  max-width: var(--b74-container);
  margin: 2.5rem auto 0;
  padding: 1.5rem var(--b74-gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #a5bccc;
}
.b74-footer-social {
  display: flex;
  gap: 0.8rem;
}

/* ============================================================
   PERSONA PHOTO (about page)
   ============================================================ */

.b74-persona-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: var(--b74-radius);
  box-shadow: var(--b74-shadow-md);
  margin: 1.5rem 0 2rem;
}

/* ============================================================
   CONTACT FORM WRAP
   ============================================================ */

.b74-contact-form {
  margin: 2rem 0;
  border-radius: var(--b74-radius);
  overflow: hidden;
  box-shadow: var(--b74-shadow-sm);
  background: var(--b74-bg);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

.b74-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--b74-primary), var(--b74-accent));
}
.b74-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b74-cat-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}
.b74-cat-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--b74-container);
  margin: 0 auto;
  padding: 0 var(--b74-gutter);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1.8rem;
}
.b74-cat-hero h1 {
  color: #fff;
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.b74-cat-hero .b74-cat-hero-crumb {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.b74-cat-hero .b74-cat-hero-crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  background-image: none !important;
}

.b74-cat-intro {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--b74-surface);
}
.b74-cat-intro-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--b74-gutter);
}
.b74-cat-intro p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--b74-text);
  margin: 0;
}

/* ============================================================
   RESPONSIVE — Desktop (≥ 1024px)
   ============================================================ */

@media (min-width: 1024px) {
  .b74-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    margin-right: 1rem;
  }
  .b74-nav-desktop.b74-nav-right {
    justify-content: flex-end;
    margin-left: 1rem;
    margin-right: 0;
  }
  .b74-burger { display: none !important; }
  .b74-header-cta-desktop {
    margin-left: 1rem;
  }
}

/* ============================================================
   MOBILE — Drawer activation + hide desktop CTA
   ============================================================ */

@media (max-width: 1023px) {
  .b74-header-cta-desktop,
  .b74-header .b74-btn--cta:not(.b74-drawer-cta) {
    display: none !important;
  }
  .b74-header-inner { justify-content: space-between; }

  .b74-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    color: #0a0a0a;
  }

  .b74-drawer-cta {
    display: block !important;
    margin: 2rem 0 1rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: linear-gradient(135deg, var(--b74-primary), var(--b74-accent)) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    background-image: linear-gradient(135deg, var(--b74-primary), var(--b74-accent)) !important;
    background-size: 100% 100% !important;
  }

  .b74-header-cta-wrap,
  .b74-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .b74-articles-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .b74-drawer-cta { display: none !important; }
  .b74-nav-mobile { display: none !important; }
  .b74-drawer-overlay { display: none !important; }
}

/* ============================================================
   COMPONENTS — Animations from JSON (CTA / CTR / CTO)
   ============================================================ */

@keyframes b74-magnetic-pulse {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, -1px); }
  50% { transform: translate(1.5px, 1px); }
  75% { transform: translate(-1px, 1.5px); }
}
.b74-btn--cta:hover { animation: b74-magnetic-pulse 1.4s ease-in-out infinite; }

@keyframes b74-trust-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.b74-ctr-trust {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  opacity: 0.92;
}
.b74-ctr-trust > * { animation: b74-trust-fade-in 0.6s ease both; }
.b74-ctr-trust > *:nth-child(1) { animation-delay: 0.05s; }
.b74-ctr-trust > *:nth-child(2) { animation-delay: 0.15s; }
.b74-ctr-trust > *:nth-child(3) { animation-delay: 0.25s; }
.b74-ctr-trust > *:nth-child(4) { animation-delay: 0.35s; }

@keyframes b74-free-trial-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 25, 99, 0); }
  50% { box-shadow: 0 0 0 6px rgba(168, 25, 99, 0.18); }
}
.b74-cto-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--b74-accent), var(--b74-primary));
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  animation: b74-free-trial-glow 2.4s ease-in-out infinite;
}

/* ============================================================
   MOUSE EFFECT — link_hover_underline_slide (also applied)
   ============================================================ */
a:not([class*="b74-btn"]):not(.b74-brand-link):not(.b74-footer-logo):not(.b74-card-img-wrap):not(.b74-cat-card) {
  position: relative;
}

@media (hover: none) {
  a:not([class*="b74-btn"]) { background-image: none !important; }
}

/* ============================================================
   SCROLLBAR + UTILS
   ============================================================ */

::selection { background: var(--b74-accent); color: #fff; }

.b74-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;
}

.b74-tool-page-wrap {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 var(--b74-gutter);
}
.b74-tool-page-wrap h1 { color: var(--b74-primary); }
.b74-tool-page-wrap .b74-tool-intro { color: var(--b74-text-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }


/* Site overrides */
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*="b74-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(--b74-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.
============================================================ */
.b74-media-press {
  padding: 2.5rem 0;
  background: var(--b74-bg-soft, var(--b74-color-surface, #f9fafb));
  margin: 2rem 0;
}
.b74-media-press > .b74-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b74-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b74-color-text-soft, var(--b74-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.b74-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.b74-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%);
}
.b74-media-press-item:hover,
.b74-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.b74-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .b74-media-press { padding: 1.8rem 0; }
  .b74-media-press-grid { gap: 1.4rem; }
  .b74-media-press-item { max-width: 110px; min-height: 36px; }
  .b74-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) */
.b74-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);
}
.b74-media-press .b74-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;
}
.b74-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(--b74-muted, #666);
  flex: 0 0 auto;
}
.b74-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;
}
.b74-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;
}
.b74-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.b74-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;
}
.b74-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .b74-media-press .b74-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.b74-cat-hero--align-left .b74-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;
}
.b74-cat-hero--align-center .b74-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: 2px !important; padding: 8px !important;
     
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 0 !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}


/* Mouse effect : link_hover_underline_slide */
a:not([class*=b74-btn]):not(.b74-brand-link):not(.b74-footer-logo-link){position:relative;text-decoration:none;background-image:linear-gradient(currentColor,currentColor);background-size:0% 1.5px;background-position:0 100%;background-repeat:no-repeat;transition:background-size .35s cubic-bezier(.22,.61,.36,1)}a:not([class*=b74-btn]):not(.b74-brand-link):not(.b74-footer-logo-link):hover,a:not([class*=b74-btn]):not(.b74-brand-link):not(.b74-footer-logo-link):focus-visible{background-size:100% 1.5px}@media (hover:none){a:not([class*=b74-btn]){background-image:none!important}}
