/*
 * tablet spirit — custom theme stylesheet
 * Design system: Shopping Marketplace E-com (Plus Jakarta Sans + Inter)
 * Palette: competitor-derived (iphon.fr) — primary #34ace1, accent #ff2649
 * Brand styling: lowercase (style C)
 */

/* ====================================================================
 * 1. ROOT VARIABLES
 * ==================================================================== */
:root {
  --b9d-primary:     #34ace1;
  --b9d-primary-dk:  #2a8ab4;
  --b9d-accent:      #ff2649;
  --b9d-accent-dk:   #d11a3a;
  --b9d-text:        #1a1a1a;
  --b9d-text-soft:   #696969;
  --b9d-bg:          #ffffff;
  --b9d-surface:     #f5f5f5;
  --b9d-surface-dk:  #ebebeb;
  --b9d-line:        #e5e5e5;
  --b9d-shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.06);
  --b9d-shadow-md:   0 8px 24px rgba(0, 0, 0, 0.08);
  --b9d-shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.12);
  --b9d-radius-sm:   8px;
  --b9d-radius-md:   12px;
  --b9d-radius-lg:   18px;
  --b9d-font-head:   'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --b9d-font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --b9d-container:   1240px;
  --b9d-gap-section: 4rem;
}

/* ====================================================================
 * 2. BASE / RESET
 * ==================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.b9d-body {
  margin: 0;
  font-family: var(--b9d-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--b9d-text);
  background: var(--b9d-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--b9d-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--b9d-primary-dk); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--b9d-font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--b9d-text);
  margin: 0 0 .9rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }

main, .b9d-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 60vh;
}

.b9d-container {
  max-width: var(--b9d-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ====================================================================
 * 3. BUTTONS
 * ==================================================================== */
.b9d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--b9d-radius-md);
  font-family: var(--b9d-font-head);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  line-height: 1.1;
}
.b9d-btn--primary {
  background: var(--b9d-primary);
  color: #fff;
}
.b9d-btn--primary:hover {
  background: var(--b9d-primary-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--b9d-shadow-md);
}
.b9d-btn--cta {
  background: var(--b9d-accent);
  color: #fff;
  font-weight: 700;
  padding: .95rem 1.6rem;
  box-shadow: 0 4px 14px rgba(255, 38, 73, 0.32);
}
.b9d-btn--cta:hover {
  background: var(--b9d-accent-dk);
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 38, 73, 0.4);
}
.b9d-btn--ghost {
  background: transparent;
  color: var(--b9d-text);
  border-color: var(--b9d-line);
}
.b9d-btn--ghost:hover {
  border-color: var(--b9d-primary);
  color: var(--b9d-primary);
}

/* ====================================================================
 * 4. HEADER (logo-center-menu-split)
 * Layout: nav-left | brand | nav-right — flex centered, gap 2rem.
 * NEVER `grid-template-columns: 1fr auto 1fr` (causes huge empty space).
 * ==================================================================== */
.b9d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--b9d-line);
}
.b9d-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 1.25rem;
  max-width: var(--b9d-container);
  margin: 0 auto;
}
.b9d-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.b9d-brand-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.b9d-brand-logo {
  width: auto;
  display: block;
}
.b9d-brand-name {
  font-family: var(--b9d-font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--b9d-text);
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1;
}

/* Desktop nav — split into left and right */
.b9d-nav-left,
.b9d-nav-right {
  display: none;
}
.b9d-nav-list {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.b9d-nav-list a {
  color: var(--b9d-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.b9d-nav-list a:hover {
  color: var(--b9d-primary);
  border-bottom-color: var(--b9d-primary);
}

/* Burger button — mobile only (brand-coloured circular pill) */
.b9d-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, var(--b9d-primary) 0%, var(--b9d-primary-dk) 100%) !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(52, 172, 225, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.b9d-burger:hover,
.b9d-burger:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(52, 172, 225, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  outline: none;
}
.b9d-burger:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(52, 172, 225, 0.4);
}
.b9d-burger[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--b9d-accent) 0%, var(--b9d-accent-dk) 100%) !important;
  box-shadow: 0 4px 14px rgba(255, 38, 73, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.b9d-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 0 !important;
  width: 20px !important;
  height: 14px !important;
}
.b9d-burger-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.b9d-burger-bars span:nth-child(2) {
  width: 70%;
  align-self: flex-end;
}
.b9d-burger:hover .b9d-burger-bars span:nth-child(2) {
  width: 100%;
}
.b9d-burger[aria-expanded="true"] .b9d-burger-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.b9d-burger[aria-expanded="true"] .b9d-burger-bars span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.b9d-burger[aria-expanded="true"] .b9d-burger-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Header actions wrap — always visible (parent of burger) */
.b9d-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

/* === DESKTOP (≥1024px) === */
@media (min-width: 1024px) {
  .b9d-header-inner {
    padding: 1.1rem 1.5rem;
  }
  .b9d-nav-left,
  .b9d-nav-right {
    display: flex;
    flex: 0 1 auto;
  }
  .b9d-nav-left {
    justify-content: flex-end;
  }
  .b9d-nav-right {
    justify-content: flex-start;
  }
  .b9d-burger,
  .b9d-header-actions {
    display: none !important;
  }
}

/* === MOBILE (<1024px) === */
@media (max-width: 1023px) {
  .b9d-header-inner {
    justify-content: space-between;
    padding: .8rem 1rem;
  }
  .b9d-brand-name {
    font-size: 1.15rem;
  }
  .b9d-nav-left,
  .b9d-nav-right {
    display: none !important;
  }
}

/* ====================================================================
 * 5. MOBILE DRAWER
 * ==================================================================== */
.b9d-nav-mobile {
  display: none;
}
.b9d-nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b9d-nav-mobile-list li {
  border-bottom: 1px solid var(--b9d-line);
}
.b9d-nav-mobile-list a {
  display: block;
  padding: 1rem .5rem;
  color: var(--b9d-text);
  text-decoration: none;
  font-family: var(--b9d-font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.b9d-nav-mobile-list a:hover,
.b9d-nav-mobile-list a:focus {
  color: var(--b9d-primary);
}

@media (max-width: 1023px) {
  .b9d-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #fff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    color: var(--b9d-text);
  }
  .b9d-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--b9d-surface);
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--b9d-text);
    line-height: 1;
  }
  .b9d-drawer-cta {
    display: block !important;
    margin: 2rem 0 1rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--b9d-accent) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
}
@media (min-width: 1024px) {
  .b9d-drawer-cta { display: none !important; }
}
.b9d-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}
.b9d-drawer-backdrop.is-open {
  display: block;
}

/* ====================================================================
 * 6. HERO (zoom-on-scroll)
 * Image starts at scale(1), grows to scale(1.18) as user scrolls past
 * ==================================================================== */
.b9d-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b9d-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(var(--b9d-hero-scale, 1));
  transition: transform .15s linear;
  will-change: transform;
}
.b9d-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 4rem 1.5rem;
  max-width: 880px;
}
.b9d-hero-title {
  font-family: var(--b9d-font-head);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: lowercase;
}
.b9d-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 1.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  font-weight: 400;
  color: #fff;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.b9d-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.b9d-hero-actions .b9d-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.b9d-hero-actions .b9d-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

/* Hero has-video (rule #17) — overlay only when YouTube video is the bg */
.b9d-hero--has-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
}
/* No overlay on image hero — image stays visible as designed */

/* ====================================================================
 * 7. EDITORIAL INTRO BLOCK (home — 400-700 words SEO content)
 * Placement = after-hero (default variant, hash%3 != 0)
 * ==================================================================== */
.b9d-editorial-intro {
  padding: var(--b9d-gap-section) 0;
  background: var(--b9d-bg);
}
.b9d-editorial-intro-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b9d-editorial-intro h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 2.2rem 0 1rem;
  color: var(--b9d-text);
}
.b9d-editorial-intro h2:first-child {
  margin-top: 0;
}
.b9d-editorial-intro h3 {
  font-size: 1.25rem;
  margin: 1.6rem 0 .7rem;
  color: var(--b9d-primary-dk);
}
.b9d-editorial-intro p {
  color: var(--b9d-text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.1rem;
}
.b9d-editorial-intro a {
  color: var(--b9d-primary);
  border-bottom: 1.5px solid var(--b9d-primary);
  padding-bottom: 1px;
  font-weight: 500;
}
.b9d-editorial-intro a:hover {
  color: var(--b9d-accent);
  border-bottom-color: var(--b9d-accent);
}
.b9d-editorial-intro .b9d-edito-pull {
  border-left: 4px solid var(--b9d-primary);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
  background: var(--b9d-surface);
  border-radius: 0 var(--b9d-radius-md) var(--b9d-radius-md) 0;
  font-style: italic;
  color: var(--b9d-text);
  font-size: 1.08rem;
  line-height: 1.65;
}

/* ====================================================================
 * 8. CATEGORIES GRID (home — "Rubriques" section)
 * ==================================================================== */
.b9d-categories {
  padding: var(--b9d-gap-section) 0;
  background: var(--b9d-surface);
}
.b9d-categories .b9d-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1.25rem;
}
.b9d-categories .b9d-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 .5rem;
}
.b9d-categories .b9d-section-header p {
  color: var(--b9d-text-soft);
  font-size: 1.05rem;
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.b9d-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--b9d-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b9d-cat-card {
  position: relative;
  background: #fff;
  border-radius: var(--b9d-radius-lg);
  overflow: hidden;
  box-shadow: var(--b9d-shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 280px;
}
.b9d-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--b9d-shadow-lg);
  color: inherit;
}
.b9d-cat-card-img {
  display: block;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--b9d-primary);
  background-repeat: no-repeat;
}
.b9d-cat-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.b9d-cat-card-title {
  font-family: var(--b9d-font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--b9d-text);
}
.b9d-cat-card-desc {
  color: var(--b9d-text-soft);
  font-size: .92rem;
  margin: 0 0 .8rem;
  line-height: 1.5;
}
.b9d-cat-card-cta {
  color: var(--b9d-primary);
  font-weight: 600;
  font-size: .92rem;
  margin-top: auto;
}

/* ====================================================================
 * 9. LATEST POSTS GRID (home — "Derniers articles")
 * 15 articles → 3 columns × 5 rows on desktop
 * ==================================================================== */
.b9d-latest {
  padding: var(--b9d-gap-section) 0;
  background: var(--b9d-bg);
}
.b9d-latest .b9d-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1.25rem;
}
.b9d-latest .b9d-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.b9d-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: var(--b9d-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b9d-article-card {
  background: #fff;
  border-radius: var(--b9d-radius-lg);
  overflow: hidden;
  border: 1px solid var(--b9d-line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.b9d-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b9d-shadow-md);
  color: inherit;
}
.b9d-article-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--b9d-surface);
  object-fit: cover;
}
.b9d-article-card-img-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--b9d-primary) 0%, var(--b9d-primary-dk) 100%);
}
.b9d-article-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.b9d-article-card-meta {
  font-size: .82rem;
  color: var(--b9d-text-soft);
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.b9d-article-card-meta a {
  color: var(--b9d-primary);
}
.b9d-article-card-title {
  font-family: var(--b9d-font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .55rem;
  color: var(--b9d-text);
  line-height: 1.35;
}
.b9d-article-card-excerpt {
  color: var(--b9d-text-soft);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .b9d-article-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}
@media (max-width: 600px) {
  .b9d-article-grid { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ====================================================================
 * 10. PAGE CATEGORY (sandwich layout — intro top, articles middle, outro bottom)
 * ==================================================================== */
.b9d-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--b9d-primary);
}
.b9d-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b9d-cat-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78) 100%);
  padding: 2rem 1.25rem;
  max-width: var(--b9d-container);
  margin: 0 auto;
}
.b9d-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: none;
}
.b9d-cat-intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}
.b9d-cat-intro p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--b9d-text);
  margin: 0 0 1.1rem;
}
.b9d-cat-intro a {
  color: var(--b9d-primary);
  border-bottom: 1.5px solid var(--b9d-primary);
}
.b9d-cat-outro {
  max-width: 920px;
  margin: 2rem auto 4rem;
  padding: 2.4rem 1.25rem;
  border-top: 2px solid var(--b9d-line);
}
.b9d-cat-outro h2 {
  color: var(--b9d-text);
  margin-top: 0;
}
.b9d-cat-outro p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--b9d-text);
}
.b9d-cat-outro a {
  color: var(--b9d-primary);
  border-bottom: 1.5px solid var(--b9d-primary);
}
.b9d-cat-posts {
  max-width: var(--b9d-container);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

/* ====================================================================
 * 11. PAGE ABOUT / PERSONA
 * ==================================================================== */
.b9d-page-about {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.b9d-page-about h1 {
  margin-bottom: 2rem;
}
.b9d-page-about h2 {
  margin-top: 2.4rem;
}
.b9d-page-about h3 {
  margin-top: 1.8rem;
  color: var(--b9d-primary-dk);
}
.b9d-page-about p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--b9d-text);
  margin: 0 0 1.1rem;
}
.b9d-page-about a {
  color: var(--b9d-primary);
  border-bottom: 1.5px solid var(--b9d-primary);
}
.b9d-persona-photo {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: var(--b9d-radius-lg);
  margin: 0 0 1.6rem;
  box-shadow: var(--b9d-shadow-md);
  float: right;
  margin-left: 2rem;
}
@media (max-width: 700px) {
  .b9d-persona-photo {
    float: none;
    margin: 0 auto 1.6rem;
  }
}

/* ====================================================================
 * 12. PAGE CONTACT / JOTFORM
 * ==================================================================== */
.b9d-page-contact {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.b9d-page-contact h1 {
  margin-bottom: 1.5rem;
}
.b9d-page-contact h2 {
  margin-top: 2rem;
}
.b9d-page-contact p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--b9d-text);
  margin: 0 0 1.1rem;
}
.b9d-contact-form {
  margin-top: 2.5rem;
  background: var(--b9d-surface);
  border: 1px solid var(--b9d-line);
  border-radius: var(--b9d-radius-lg);
  padding: 1.5rem;
}

/* ====================================================================
 * 13. PAGE TOOL
 * ==================================================================== */
.b9d-page-tool {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.b9d-page-tool h1 {
  margin-bottom: 1.5rem;
}
.b9d-page-tool .b9d-tool-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--b9d-text);
  margin: 0 0 2rem;
}
.b9d-page-tool .b9d-tool-widget {
  margin: 2rem 0 2.5rem;
}
.b9d-page-tool .b9d-tool-faq {
  margin-top: 3rem;
  border-top: 2px solid var(--b9d-line);
  padding-top: 2.5rem;
}
.b9d-page-tool .b9d-tool-faq h2 {
  margin-bottom: 1.5rem;
}
.b9d-page-tool details {
  background: var(--b9d-surface);
  border-radius: var(--b9d-radius-md);
  padding: 1rem 1.3rem;
  margin-bottom: .8rem;
  border: 1px solid var(--b9d-line);
}
.b9d-page-tool details summary {
  cursor: pointer;
  font-family: var(--b9d-font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--b9d-text);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.b9d-page-tool details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--b9d-primary);
  font-weight: 700;
  transition: transform .3s;
}
.b9d-page-tool details[open] summary::after {
  content: '−';
}
.b9d-page-tool details p {
  margin: .9rem 0 0;
  color: var(--b9d-text);
  font-size: .98rem;
  line-height: 1.6;
}

/* ====================================================================
 * 14. FOOTER (4 columns: brand+pitch / categories / useful / tools)
 * ==================================================================== */
.b9d-footer {
  background: #0f1419;
  color: #d1d5db;
  padding: 4rem 0 2rem;
  margin-top: var(--b9d-gap-section);
}
.b9d-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--b9d-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.b9d-footer-col {
  min-width: 0;
}
.b9d-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  width: 120px;
  max-width: 100%;
  filter: brightness(1.1);
}
.b9d-footer-brand-pitch {
  color: #e5e7eb;
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 1.3rem;
}
.b9d-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--b9d-primary);
  font-weight: 600;
  font-family: var(--b9d-font-head);
  text-decoration: none;
  font-size: .98rem;
  padding: .5rem .9rem;
  border: 1.5px solid var(--b9d-primary);
  border-radius: var(--b9d-radius-sm);
  transition: all .25s;
}
.b9d-footer-brand-cta:hover {
  background: var(--b9d-primary);
  color: #fff;
}
.b9d-footer-title {
  font-family: var(--b9d-font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.b9d-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.b9d-footer-links li {
  margin: 0 0 .6rem;
}
.b9d-footer-links a {
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-color: rgba(229, 231, 235, 0.3);
  text-underline-offset: 3px;
  font-size: .92rem;
  transition: color .2s;
}
.b9d-footer-links a:hover {
  color: var(--b9d-primary);
  text-decoration-color: var(--b9d-primary);
}
.b9d-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 2rem 1.25rem 0;
  text-align: center;
  font-size: .85rem;
  color: #9ca3af;
  max-width: var(--b9d-container);
  margin-left: auto;
  margin-right: auto;
}
.b9d-footer-bottom a {
  color: #d1d5db;
}
.b9d-footer-bottom a:hover {
  color: var(--b9d-primary);
}
.b9d-footer-social {
  display: flex;
  gap: .7rem;
  justify-content: center;
  margin-top: 1rem;
}
.b9d-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background .25s;
}
.b9d-footer-social a:hover {
  background: var(--b9d-primary);
}

@media (max-width: 900px) {
  .b9d-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 560px) {
  .b9d-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ====================================================================
 * 15. CTA / NEWSLETTER SECTION
 * ==================================================================== */
.b9d-cta-section {
  padding: var(--b9d-gap-section) 0;
  background: linear-gradient(135deg, var(--b9d-primary) 0%, var(--b9d-primary-dk) 100%);
  color: #fff;
  text-align: center;
}
.b9d-cta-section h2,
section.b9d-cta-section h2,
.b9d-cta-section .b9d-container h2 {
  color: #ffffff !important;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.b9d-cta-section p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.08rem;
  line-height: 1.65;
}
.b9d-cta-section .b9d-btn--cta {
  background: #fff;
  color: var(--b9d-primary-dk);
  font-weight: 700;
  padding: 1rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.b9d-cta-section .b9d-btn--cta:hover {
  background: #f5fbff;
  color: var(--b9d-primary-dk);
  transform: translateY(-2px);
}

/* ====================================================================
 * 16. ANIMATIONS (CTA / CTR / CTO) — defined via JSON, but we add support classes
 * ==================================================================== */
@keyframes b9d-cta-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.08) rotate(-1deg); }
  55% { transform: scale(0.96) rotate(1deg); }
  75% { transform: scale(1.04); }
}
.b9d-btn--cta {
  animation: b9d-cta-pop 2.4s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}
.b9d-btn--cta:hover {
  animation-play-state: paused;
}

@keyframes b9d-ctr-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.b9d-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  animation: b9d-ctr-fade .5s ease-out both;
}

@keyframes b9d-cto-slide-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.b9d-contact-form,
.b9d-cto-trigger {
  animation: b9d-cto-slide-in .6s ease-out both;
}

/* ====================================================================
 * 17. MOUSE EFFECT — image_hover_focus (rule: enabled=yes)
 * ==================================================================== */
@media (hover: hover) and (pointer: fine) {
  .b9d-img-focus-group .b9d-cat-card-img,
  .b9d-img-focus-group .b9d-article-card-img,
  .b9d-img-focus-group .b9d-article-card-img-placeholder {
    transition: filter .4s ease, opacity .4s ease, transform .5s ease;
  }
  .b9d-img-focus-group:hover .b9d-cat-card:not(:hover) .b9d-cat-card-img,
  .b9d-img-focus-group:hover .b9d-article-card:not(:hover) .b9d-article-card-img,
  .b9d-img-focus-group:hover .b9d-article-card:not(:hover) .b9d-article-card-img-placeholder {
    filter: grayscale(.55) blur(2px);
    opacity: .55;
  }
  .b9d-img-focus-group .b9d-cat-card:hover .b9d-cat-card-img,
  .b9d-img-focus-group .b9d-article-card:hover .b9d-article-card-img,
  .b9d-img-focus-group .b9d-article-card:hover .b9d-article-card-img-placeholder {
    filter: none;
    opacity: 1;
    transform: scale(1.03);
  }
}

/* ====================================================================
 * 18. UTILITIES
 * ==================================================================== */
.b9d-section-title-center {
  text-align: center;
  margin-bottom: 2rem;
}
.b9d-eyebrow {
  display: inline-block;
  font-family: var(--b9d-font-head);
  font-weight: 700;
  font-size: .85rem;
  color: var(--b9d-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====================================================================
 * 19. WP CONTENT NORMALISATION
 * ==================================================================== */
.entry-content,
.b9d-entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.entry-content p,
.b9d-entry-content p {
  margin: 0 0 1.1rem;
}
.entry-content img,
.b9d-entry-content img {
  border-radius: var(--b9d-radius-md);
  margin: 1.5rem 0;
}

/* Mobile sizing for hero CTA + spacing */
@media (max-width: 700px) {
  :root { --b9d-gap-section: 3rem; }
  .b9d-hero { min-height: 60vh; }
  .b9d-hero-actions { flex-direction: column; align-items: stretch; }
  .b9d-hero-actions .b9d-btn { width: 100%; }
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="b9d-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre (fix 2026-06-17) */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}



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) {
  
  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(--b9d-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;
  }
}


/* Mouse effect : image_hover_focus */
/* image_hover_focus — when hovering an image in a group, the others fade and desaturate to focus attention. */ @media (hover: hover) and (pointer: fine) { .b9d-img-focus-group img, .b9d-img-focus-group .b9d-cat-card-img, .b9d-img-focus-group .b9d-article-card-img { transition: filter .4s ease, opacity .4s ease, transform .5s ease; } .b9d-img-focus-group:hover img:not(:hover), .b9d-img-focus-group:hover .b9d-cat-card-img:not(:hover), .b9d-img-focus-group:hover .b9d-article-card-img:not(:hover) { filter: grayscale(.55) blur(2px); opacity: .55; } .b9d-img-focus-group img:hover, .b9d-img-focus-group .b9d-cat-card-img:hover, .b9d-img-focus-group .b9d-article-card-img:hover { filter: none; opacity: 1; transform: scale(1.03); z-index: 2; position: relative; } }
