/* =============================================================
   PROF ET ENSUITE - Custom Theme CSS
   Design System: Corporate Médical Clinique (corporate-medical-05)
   Palette: competitor etreprof.fr (purple #753AD4 + orange #FFA929)
   Fonts: Inter (headings) / Open Sans (body)
   Prefix: c4b-
   Layouts: header=logo-center-menu-split / hero=zoom-on-scroll
            category=single-top / casing=UPPERCASE (style A)
   ============================================================= */

:root {
  --c4b-primary:    #753AD4;
  --c4b-primary-d:  #5B2BB0;
  --c4b-accent:     #FFA929;
  --c4b-accent-d:   #E68F0F;
  --c4b-text:       #1C1C1C;
  --c4b-text-soft:  #5A6573;
  --c4b-bg:         #FBFCFD;
  --c4b-surface:    #FFFFFF;
  --c4b-line:       #E0E0E0;
  --c4b-shadow:     0 4px 18px rgba(28, 28, 28, .07);
  --c4b-shadow-md:  0 8px 26px rgba(28, 28, 28, .10);
  --c4b-radius:     12px;
  --c4b-radius-sm:  8px;
  --c4b-radius-lg:  18px;
  --c4b-font-h:     'Inter', system-ui, -apple-system, sans-serif;
  --c4b-font-b:     'Open Sans', system-ui, -apple-system, sans-serif;
  --c4b-maxw:       1240px;
}

/* -------- Reset & base -------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.c4b-body {
  margin: 0; padding: 0;
  font-family: var(--c4b-font-b);
  font-size: 16px; line-height: 1.6;
  color: var(--c4b-text);
  background: var(--c4b-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--c4b-font-h);
  color: var(--c4b-text);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; color: var(--c4b-text); }
a { color: var(--c4b-primary); text-decoration: none; }
a:hover { color: var(--c4b-primary-d); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.c4b-container { max-width: var(--c4b-maxw); margin: 0 auto; padding: 0 1.5rem; }

/* -------- Buttons -------- */
.c4b-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .9rem 1.6rem;
  font-family: var(--c4b-font-h); font-weight: 600; font-size: .95rem;
  border-radius: var(--c4b-radius-sm); border: 0;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.c4b-btn:hover { transform: translateY(-2px); text-decoration: none; }
.c4b-btn--primary {
  background: var(--c4b-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(117, 58, 212, .25);
}
.c4b-btn--primary:hover { background: var(--c4b-primary-d); color: #fff; box-shadow: 0 6px 18px rgba(117, 58, 212, .35); }
.c4b-btn--ghost {
  background: transparent; color: var(--c4b-primary);
  border: 2px solid var(--c4b-primary);
}
.c4b-btn--ghost:hover { background: var(--c4b-primary); color: #fff; }
.c4b-btn--cta {
  background: var(--c4b-accent); color: #1C1C1C;
  box-shadow: 0 4px 12px rgba(255, 169, 41, .35);
}
.c4b-btn--cta:hover { background: var(--c4b-accent-d); color: #1C1C1C; box-shadow: 0 6px 20px rgba(255, 169, 41, .5); }

/* =============================================================
   HEADER - logo-center-menu-split
   Menu split: left categories | centered logo | right categories
   ============================================================= */
.c4b-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c4b-surface);
  border-bottom: 1px solid var(--c4b-line);
  box-shadow: 0 2px 12px rgba(28, 28, 28, .04);
}
.c4b-header-inner {
  max-width: var(--c4b-maxw); margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.2rem;
}
.c4b-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.c4b-brand-link { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.c4b-brand-link:hover { text-decoration: none; }
.c4b-brand-logo { width: auto; max-width: 56px; }
.c4b-brand-name {
  font-family: var(--c4b-font-h);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c4b-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Nav desktop - split left/right */
.c4b-nav-left, .c4b-nav-right {
  display: none;
  flex: 0 0 auto;
}
.c4b-nav-list {
  display: flex; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0; align-items: center;
}
.c4b-nav-list a {
  font-family: var(--c4b-font-h);
  font-weight: 500; font-size: .95rem;
  color: var(--c4b-text); text-decoration: none;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.c4b-nav-list a:hover { color: var(--c4b-primary); border-bottom-color: var(--c4b-primary); text-decoration: none; }

/* Burger - mobile only — silhouette: DOTS-V (3 pastilles empilees verticalement) */
.c4b-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  min-width: 46px; min-height: 46px;
  padding: 10px;
  background: rgba(117, 58, 212, .10);   /* var(--c4b-primary) ~10% */
  border: 1.5px solid var(--c4b-primary);
  border-radius: 50%;                    /* pastille ronde, pas le carre standard */
  color: var(--c4b-primary);
  cursor: pointer;
  position: relative;
  z-index: 10000;
  flex-shrink: 0;
  margin-left: auto;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.c4b-burger:hover {
  background: rgba(255, 169, 41, .18);   /* var(--c4b-accent) ~18% */
  border-color: var(--c4b-accent);
  box-shadow: 0 4px 14px rgba(117, 58, 212, .22);
}
.c4b-burger-bars {
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  width: 8px; height: 22px;
  transition: transform .35s cubic-bezier(.55, .1, .3, 1.35);
}
.c4b-burger-bars span {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c4b-primary);
  transition: background .25s ease, transform .25s ease;
}
.c4b-burger-bars span:nth-child(2) {
  background: var(--c4b-accent);          /* dot du milieu en accent orange */
}
/* Etat ouvert : aria-expanded="true" => is-active */
.c4b-burger.is-active {
  background: var(--c4b-primary);
  border-color: var(--c4b-primary-d);
  box-shadow: 0 4px 14px rgba(117, 58, 212, .35);
}
.c4b-burger.is-active .c4b-burger-bars {
  transform: rotate(90deg);              /* rotation 90deg (regle DOTS) */
}
.c4b-burger.is-active .c4b-burger-bars span {
  background: var(--c4b-accent);          /* tous les dots passent en orange */
}
.c4b-burger.is-active .c4b-burger-bars span:nth-child(2) {
  background: #FBFCFD;                   /* dot central en bg pour signaler X visuel */
  transform: scale(1.2);
}

/* Drawer mobile - HIDDEN by default */
.c4b-nav-mobile { display: none; }
.c4b-overlay { display: none; }

@media (max-width: 1023px) {
  .c4b-nav-mobile.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 380px;
    background: #ffffff; padding: 4.5rem 0 1.5rem;
    z-index: 9999; overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
  }
  .c4b-overlay.is-open {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9998;
  }
  .c4b-nav-mobile-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column;
  }
  .c4b-nav-mobile-list a {
    display: block; padding: 1rem 1.5rem;
    color: #0a0a0a; font-family: var(--c4b-font-h);
    font-weight: 500; font-size: 1.05rem;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
  }
  .c4b-nav-mobile-list a:hover { background: #f7f7f7; color: var(--c4b-primary); }
  .c4b-drawer-cta {
    display: block; margin: 2rem 1.5rem 1.5rem;
    padding: 1rem 1.5rem; text-align: center;
    background: var(--c4b-primary); color: #fff;
    border-radius: 8px; font-weight: 600;
    text-decoration: none; font-size: 1.05rem;
  }
  .c4b-drawer-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    background: transparent; border: 0;
    font-size: 1.6rem; color: #0a0a0a;
    cursor: pointer;
  }
}

@media (min-width: 1024px) {
  .c4b-header-inner {
    display: flex; justify-content: center; gap: 2.2rem;
  }
  .c4b-nav-left, .c4b-nav-right { display: flex; }
  .c4b-burger, .c4b-burger-wrap { display: none !important; }
  .c4b-drawer-cta { display: none !important; }
}

/* =============================================================
   HERO - zoom-on-scroll style
   ============================================================= */
.c4b-hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex; align-items: center;
  background: var(--c4b-text);
}
.c4b-hero-bg-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 1;
}
.c4b-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
  transition: transform .08s linear;
}
/* zoom-on-scroll dynamically driven by JS */
.c4b-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 28, 28, .55) 0%, rgba(28, 28, 28, .75) 100%);
  z-index: 2;
}
.c4b-hero-inner {
  position: relative; z-index: 3;
  max-width: var(--c4b-maxw); margin: 0 auto;
  padding: 4rem 1.5rem;
  color: #fff;
}
.c4b-hero-eyebrow {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--c4b-accent); color: #1C1C1C;
  font-family: var(--c4b-font-h); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.c4b-hero-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  max-width: 780px;
  margin-bottom: 1rem;
}
/* Force white on EVERY H1 in the hero — fixes + animated (typewriter / rotator)
   Covers : H1 lui-meme + tous descendants (spans typewriter, mots rotators,
   curseur ::after, caret ::before) pour qu'aucune animation ne reintroduise
   une couleur primary/accent/text par defaut. */
.c4b-hero h1,
.c4b-hero h1 *,
.c4b-hero h1 span,
.c4b-hero h1 .c4b-typewriter,
.c4b-hero h1 .c4b-typewriter-text,
.c4b-hero h1 .c4b-typewriter-cursor,
.c4b-hero h1 .c4b-rotator,
.c4b-hero h1 .c4b-rotator-word,
.c4b-hero h1 .c4b-rotate,
.c4b-hero h1 .c4b-rotate-word,
.c4b-hero h1 [class*="typewriter"],
.c4b-hero h1 [class*="rotator"],
.c4b-hero h1 [class*="rotate"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;   /* override eventuel gradient text */
  background: none !important;                   /* coupe un background-clip:text accidentel */
  -webkit-background-clip: initial !important;
}
.c4b-hero h1::before,
.c4b-hero h1::after,
.c4b-hero h1 span::before,
.c4b-hero h1 span::after {
  color: #ffffff !important;
  border-color: #ffffff !important;              /* caret typewriter (border-right) */
  background-color: #ffffff !important;          /* caret type "block" */
}
.c4b-hero-subtitle {
  color: #f5f5f5;
  font-size: 1.15rem;
  max-width: 680px;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.c4b-hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; }

/* =============================================================
   EDITORIAL INTRO (placed after hero, variant "after-hero")
   ============================================================= */
.c4b-editorial {
  background: var(--c4b-surface);
  padding: 4rem 0;
  border-bottom: 1px solid var(--c4b-line);
}
.c4b-editorial-inner {
  max-width: 920px; margin: 0 auto;
  padding: 0 1.5rem;
}
.c4b-editorial h2 {
  color: var(--c4b-text);
  font-size: 1.85rem;
  margin-bottom: 1.2rem;
}
.c4b-editorial h3 {
  color: var(--c4b-primary);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: .6rem;
}
.c4b-editorial p {
  color: #2a3340;
  font-size: 1.05rem;
  line-height: 1.75;
}
.c4b-editorial-callout {
  margin: 2.4rem 0 .5rem;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, rgba(117, 58, 212, .06), rgba(255, 169, 41, .06));
  border-left: 4px solid var(--c4b-primary);
  border-radius: var(--c4b-radius-sm);
}
.c4b-editorial-callout h3 { margin-top: 0; color: var(--c4b-primary); }
.c4b-editorial-callout p { margin-bottom: 0; }
.c4b-editorial a { color: var(--c4b-primary); font-weight: 600; }

/* =============================================================
   CATEGORIES GRID (Rubriques)
   ============================================================= */
.c4b-categories {
  padding: 4rem 0;
  background: var(--c4b-bg);
}
.c4b-section-head {
  text-align: center;
  margin-bottom: 2.6rem;
}
.c4b-section-head h2 {
  font-size: 2rem;
  color: var(--c4b-text);
  position: relative;
  display: inline-block;
}
.c4b-section-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--c4b-accent);
  margin: .8rem auto 0;
  border-radius: 2px;
}
.c4b-section-head p {
  color: var(--c4b-text-soft);
  font-size: 1.05rem;
  max-width: 620px;
  margin: .6rem auto 0;
}
.c4b-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: var(--c4b-maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.c4b-cat-card {
  position: relative;
  display: block;
  background: var(--c4b-surface);
  border: 1px solid var(--c4b-line);
  border-radius: var(--c4b-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--c4b-text);
  box-shadow: var(--c4b-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 260px;
}
.c4b-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--c4b-shadow-md);
  text-decoration: none;
  color: var(--c4b-text);
}
.c4b-cat-card-img {
  display: block;
  width: 100%; height: 160px;
  background-color: var(--c4b-primary);
  background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.c4b-cat-card:hover .c4b-cat-card-img { transform: scale(1.04); }
.c4b-cat-card-body {
  padding: 1.2rem 1.2rem 1.4rem;
}
.c4b-cat-card-body h3 {
  font-size: 1.15rem;
  color: var(--c4b-text);
  margin-bottom: .3rem;
}
.c4b-cat-card-body p {
  color: var(--c4b-text-soft);
  font-size: .9rem;
  margin: 0;
}

/* =============================================================
   LATEST ARTICLES GRID
   ============================================================= */
.c4b-latest {
  padding: 4rem 0;
  background: var(--c4b-surface);
  border-top: 1px solid var(--c4b-line);
}
.c4b-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: var(--c4b-maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.c4b-article-card {
  background: var(--c4b-surface);
  border: 1px solid var(--c4b-line);
  border-radius: var(--c4b-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--c4b-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.c4b-article-card:hover { transform: translateY(-4px); box-shadow: var(--c4b-shadow-md); }
.c4b-article-thumb {
  display: block; width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--c4b-primary), var(--c4b-accent));
  background-size: cover; background-position: center;
}
.c4b-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c4b-article-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.c4b-article-cat {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c4b-primary); margin-bottom: .5rem;
}
.c4b-article-card h3 {
  font-size: 1.1rem; line-height: 1.35;
  margin: 0 0 .5rem;
}
.c4b-article-card h3 a { color: var(--c4b-text); }
.c4b-article-card h3 a:hover { color: var(--c4b-primary); text-decoration: none; }
.c4b-article-excerpt {
  color: var(--c4b-text-soft);
  font-size: .92rem;
  margin: 0 0 .8rem;
  flex: 1;
}
.c4b-article-meta {
  font-size: .82rem; color: var(--c4b-text-soft);
  border-top: 1px solid var(--c4b-line);
  padding-top: .7rem;
}
.c4b-no-articles {
  text-align: center; padding: 2.4rem 1rem;
  color: var(--c4b-text-soft); grid-column: 1 / -1;
}

/* =============================================================
   CATEGORY PAGE (single-top)
   ============================================================= */
.c4b-cat-hero {
  position: relative;
  height: 320px; max-height: 350px;
  overflow: hidden;
  background: var(--c4b-primary);
}
.c4b-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.c4b-cat-hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  max-width: var(--c4b-maxw); margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .75) 100%);
}
.c4b-cat-hero-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .3rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.c4b-cat-intro {
  max-width: 920px; margin: 0 auto;
  padding: 2.4rem 1.5rem 1rem;
}
.c4b-cat-intro p {
  font-size: 1.05rem;
  color: var(--c4b-text);
  line-height: 1.75;
}
.c4b-cat-articles {
  max-width: var(--c4b-maxw); margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

/* =============================================================
   PERSONA PHOTO (About page)
   ============================================================= */
.c4b-persona-photo {
  display: block;
  width: 100%; max-width: 360px;
  margin: 0 auto 1.6rem;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(28, 28, 28, .15);
  border: 4px solid var(--c4b-surface);
}

/* =============================================================
   CONTACT FORM (JotForm wrapper)
   ============================================================= */
.c4b-contact-form {
  max-width: 820px; margin: 2rem auto;
  padding: 0 1rem;
}
.c4b-contact-form iframe {
  width: 100%; border: 0;
  border-radius: var(--c4b-radius);
  background: var(--c4b-surface);
}

/* =============================================================
   TOOLS (interactive widgets pages)
   ============================================================= */
.c4b-tool-wrap {
  max-width: 920px; margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.c4b-tool-intro p {
  font-size: 1.05rem;
  color: var(--c4b-text);
  line-height: 1.75;
}
.c4b-tool {
  background: var(--c4b-surface);
  border: 1px solid var(--c4b-line);
  border-radius: var(--c4b-radius);
  padding: 1.8rem;
  box-shadow: var(--c4b-shadow);
  margin: 2rem 0;
}
.c4b-tool h3 { color: var(--c4b-primary); margin-bottom: 1rem; }
.c4b-tool label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--c4b-text); }
.c4b-tool select, .c4b-tool input[type="number"], .c4b-tool input[type="text"] {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--c4b-line); border-radius: var(--c4b-radius-sm);
  font-family: var(--c4b-font-b); font-size: 1rem;
  margin-bottom: 1.2rem;
  background: var(--c4b-bg);
  color: var(--c4b-text);
}
.c4b-tool select:focus, .c4b-tool input:focus { border-color: var(--c4b-primary); outline: 0; }
.c4b-tool-result {
  margin-top: 1.5rem; padding: 1.4rem;
  background: linear-gradient(135deg, rgba(117, 58, 212, .07), rgba(255, 169, 41, .07));
  border-left: 4px solid var(--c4b-primary);
  border-radius: var(--c4b-radius-sm);
}
.c4b-tool-result strong { color: var(--c4b-primary); }

/* =============================================================
   FAQ (CTR animation: accordion_faq)
   ============================================================= */
.c4b-faq { max-width: 820px; margin: 2rem auto; }
.c4b-faq details {
  background: var(--c4b-surface);
  border: 1px solid var(--c4b-line);
  border-radius: var(--c4b-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: .7rem;
  box-shadow: var(--c4b-shadow);
}
.c4b-faq summary {
  cursor: pointer; font-weight: 600;
  font-family: var(--c4b-font-h);
  color: var(--c4b-text);
  list-style: none;
  position: relative; padding-right: 2rem;
}
.c4b-faq summary::-webkit-details-marker { display: none; }
.c4b-faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; color: var(--c4b-primary);
  transition: transform .3s ease;
}
.c4b-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.c4b-faq details[open] { animation: c4b-faq-open .35s ease; }
@keyframes c4b-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.c4b-faq p { margin: .8rem 0 .3rem; color: var(--c4b-text-soft); line-height: 1.65; }

/* =============================================================
   FOOTER
   ============================================================= */
.c4b-footer {
  background: #1C1C1C;
  color: #E0E0E0;
  padding: 3.6rem 0 1.4rem;
  margin-top: 4rem;
}
.c4b-footer-inner {
  max-width: var(--c4b-maxw); margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.2rem;
}
.c4b-footer-col h3.c4b-footer-title {
  font-family: var(--c4b-font-h);
  font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: #fff; margin-bottom: 1rem;
}
.c4b-footer-logo { max-height: 60px; width: auto; }
.c4b-footer-brand-pitch {
  color: #BDC4CC;
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.c4b-footer-brand-cta {
  display: inline-block;
  color: var(--c4b-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--c4b-accent);
  padding-bottom: 2px;
}
.c4b-footer-brand-cta:hover { color: #FFC773; border-color: #FFC773; }
.c4b-footer-links { list-style: none; margin: 0; padding: 0; }
.c4b-footer-links li { margin-bottom: .55rem; }
.c4b-footer-links a {
  color: #E0E0E0;
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s;
}
.c4b-footer-links a:hover { color: var(--c4b-accent); text-decoration: underline; }
.c4b-footer-bottom {
  max-width: var(--c4b-maxw); margin: 2.4rem auto 0;
  padding: 1.4rem 1.5rem 0;
  border-top: 1px solid #2a2a2a;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
  font-size: .85rem; color: #9CA4A4;
}
.c4b-footer-social { display: flex; gap: .8rem; }
.c4b-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #2a2a2a; color: #E0E0E0;
  transition: background .2s, color .2s;
}
.c4b-footer-social a:hover { background: var(--c4b-primary); color: #fff; }

/* =============================================================
   CTA animation - floating_whatsapp_button
   ============================================================= */
.c4b-floating-cta {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--c4b-accent);
  color: #1C1C1C;
  box-shadow: 0 6px 22px rgba(255, 169, 41, .5);
  text-decoration: none;
  animation: c4b-cta-float 3s ease-in-out infinite;
}
.c4b-floating-cta:hover { color: #1C1C1C; background: var(--c4b-accent-d); }
@keyframes c4b-cta-float {
  0%, 100% { transform: translateY(0); box-shadow: 0 6px 22px rgba(255, 169, 41, .5); }
  50% { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(255, 169, 41, .6); }
}

/* =============================================================
   CTO animation - free_trial_badge (pulse)
   ============================================================= */
.c4b-cto-badge {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--c4b-accent);
  color: #1C1C1C;
  border-radius: 999px;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  animation: c4b-cto-pulse 2.2s ease-in-out infinite;
}
@keyframes c4b-cto-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 169, 41, .6); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 169, 41, 0); }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1023px) {
  .c4b-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .c4b-cat-articles { grid-template-columns: repeat(2, 1fr); }
  .c4b-footer-inner { grid-template-columns: 1fr 1fr; }
  .c4b-hero-inner { padding: 3rem 1.5rem; }
}
@media (max-width: 640px) {
  .c4b-header-inner { padding: .7rem 1rem; gap: .6rem; justify-content: space-between; }
  .c4b-brand-name { font-size: 1rem; }
  .c4b-latest-grid { grid-template-columns: 1fr; }
  .c4b-cat-articles { grid-template-columns: 1fr; }
  .c4b-cat-grid { grid-template-columns: 1fr; }
  .c4b-footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .c4b-footer-bottom { flex-direction: column; align-items: flex-start; }
  .c4b-floating-cta { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}

/* tighten 0 padding-top */
main, .c4b-main { padding-top: 0; margin-top: 0; }


/* === 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*="c4b-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre (fix 2026-06-17) */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}


/* [2026-06-17] PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* [2026-06-17] BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.c4b-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent;
  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(--c4b-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;
  }
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--c4b-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : circle-soft (40%) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 40% !important;
}
