/* =========================================================
   Maison Maugeoise — custom theme stylesheet
   Design System : Shopping Boheme Souk (terracotta/saffron/cream)
   Header layout : sticky-minimal
   Hero style    : featured-article
   Category lyt  : tldr-detailed (intro + outro)
   ========================================================= */

:root {
  --c4e-primary: #8B3A1F;
  --c4e-accent: #E8B845;
  --c4e-text: #3A1A0A;
  --c4e-text-soft: #7A5535;
  --c4e-bg: #FFF8E0;
  --c4e-surface: #FFFAF0;
  --c4e-line: #E5D095;
  --c4e-shadow-sm: 0 2px 6px rgba(58,26,10,.08);
  --c4e-shadow-md: 0 6px 18px rgba(58,26,10,.14);
  --c4e-shadow-lg: 0 16px 40px rgba(58,26,10,.20);
  --c4e-radius-sm: 4px;
  --c4e-radius-md: 8px;
  --c4e-radius-lg: 14px;
  --c4e-font-h: "Marcellus", "Playfair Display", Georgia, "Times New Roman", serif;
  --c4e-font-b: "Lora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --c4e-max-w: 1240px;
}

/* ===== Reset + base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body.c4e-body {
  margin: 0;
  font-family: var(--c4e-font-b);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c4e-text);
  background: var(--c4e-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--c4e-font-h);
  font-weight: 400;
  color: var(--c4e-text);
  line-height: 1.2;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; }
a { color: var(--c4e-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

main, .c4e-main { padding-top: 0 !important; margin-top: 0 !important; }

.c4e-container { max-width: var(--c4e-max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Buttons ===== */
.c4e-btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--c4e-font-b);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--c4e-radius-md);
  border: 1.5px solid var(--c4e-primary);
  background: transparent;
  color: var(--c4e-primary);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .15s ease;
}
.c4e-btn:hover { background: var(--c4e-primary); color: var(--c4e-surface); transform: translateY(-1px); }
.c4e-btn--cta {
  background: var(--c4e-accent);
  color: #fff;
  border-color: var(--c4e-accent);
  box-shadow: var(--c4e-shadow-md);
}
.c4e-btn--cta:hover { background: var(--c4e-primary); border-color: var(--c4e-primary); color: #fff; }
.c4e-btn--ghost { background: transparent; color: var(--c4e-primary); border-color: var(--c4e-line); }
.c4e-btn--ghost:hover { background: var(--c4e-primary); color: var(--c4e-surface); }

/* ===== Header (sticky-minimal) ===== */
.c4e-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c4e-surface);
  border-bottom: 1px solid var(--c4e-line);
  box-shadow: var(--c4e-shadow-sm);
  font-family: var(--c4e-font-b);
}
.c4e-header-inner {
  max-width: var(--c4e-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .8rem 1.5rem;
  min-height: 64px;
}
.c4e-brand-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--c4e-primary);
  flex-shrink: 0;
}
.c4e-brand-logo { height: auto; width: auto; max-height: 44px; }
.c4e-brand-name {
  font-family: var(--c4e-font-h);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--c4e-primary);
  letter-spacing: .01em;
  /* Casing style B (Title Case) : aucun text-transform appliqué */
}

/* Nav desktop : visible >=1024px, cachée mobile */
.c4e-nav-desktop { display: none; }
.c4e-nav-desktop-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.c4e-nav-desktop-list a {
  color: var(--c4e-text);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
  text-decoration: none;
  font-family: var(--c4e-font-b);
}
.c4e-nav-desktop-list a:hover { border-bottom-color: var(--c4e-accent); color: var(--c4e-accent); }
.c4e-nav-desktop-list .current-cat > a,
.c4e-nav-desktop-list .current-menu-item > a { border-bottom-color: var(--c4e-accent); }

/* CTA header (desktop only) */
.c4e-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.c4e-header-cta-desktop {
  padding: .55rem 1.1rem;
  font-size: .92rem;
  background: var(--c4e-accent);
  color: #fff;
  border-radius: var(--c4e-radius-md);
  text-decoration: none;
  font-weight: 600;
  border: 1.5px solid var(--c4e-accent);
  transition: background .2s, transform .15s;
}
.c4e-header-cta-desktop:hover { background: var(--c4e-primary); border-color: var(--c4e-primary); transform: translateY(-1px); }

/* Burger mobile */
.c4e-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  background: rgba(255,255,255,.92);
  border: 1.5px solid rgba(58,26,10,.18);
  border-radius: 8px;
  color: var(--c4e-text);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
}
.c4e-burger-bars, .c4e-burger > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 16px;
}
.c4e-burger-bars span,
.c4e-burger > span > span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease;
}

@media (min-width: 1024px) {
  .c4e-nav-desktop { display: flex; flex: 1; justify-content: center; margin: 0 1.5rem; }
  .c4e-burger, .c4e-burger-wrap { display: none !important; }
  .c4e-header-cta-desktop { display: inline-block; }
}

@media (max-width: 1023px) {
  .c4e-header-inner { justify-content: space-between; gap: .75rem; }
  .c4e-header-actions { gap: .5rem; }
  .c4e-header-cta-desktop { display: none !important; }
  .c4e-nav-desktop { display: none !important; }
}

/* ===== Drawer mobile ===== */
.c4e-nav-mobile { display: none; }
@media (max-width: 1023px) {
  .c4e-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--c4e-surface);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  .c4e-nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
  }
  .c4e-nav-mobile-list li { border-bottom: 1px solid var(--c4e-line); }
  .c4e-nav-mobile-list a {
    display: block;
    padding: .9rem .25rem;
    color: var(--c4e-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--c4e-font-b);
  }
  .c4e-nav-mobile-list a:hover { color: var(--c4e-accent); }
  .c4e-drawer-cta {
    display: block !important;
    margin: 1.5rem .25rem 0 !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--c4e-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
  .c4e-nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    font-size: 1.8rem;
    color: var(--c4e-text);
    cursor: pointer;
    line-height: 1;
  }
  .c4e-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58,26,10,.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .c4e-overlay.is-open { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1024px) {
  .c4e-drawer-cta { display: none !important; }
  .c4e-overlay { display: none !important; }
}

/* ===== Hero (featured-article) ===== */
.c4e-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c4e-primary);
  color: var(--c4e-surface);
}
.c4e-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(.92);
}
.c4e-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--c4e-max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  width: 100%;
}
.c4e-hero-featured-tag {
  display: inline-block;
  background: var(--c4e-accent);
  color: #fff;
  padding: .35rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}
.c4e-hero-title {
  font-family: var(--c4e-font-h);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  margin: 0 0 1rem;
  max-width: 820px;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
/* Force white (#fff) on hero H1 — fixed AND animated (typewriter / rotator / typed spans) */
.c4e-hero h1,
.c4e-hero .c4e-hero-title,
.c4e-hero h1 *,
.c4e-hero .c4e-hero-title *,
.c4e-hero .typewriter,
.c4e-hero .typewriter *,
.c4e-hero .rotator,
.c4e-hero .rotator *,
.c4e-hero .typed,
.c4e-hero .typed-cursor,
.c4e-hero .c4e-hero-title__rotator,
.c4e-hero .c4e-hero-title__rotator * {
  color: #fff !important;
}
.c4e-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 0 1.75rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.c4e-hero-cta-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.c4e-hero-cta-row .c4e-btn--cta { background: var(--c4e-accent); color: #fff; border-color: var(--c4e-accent); }
.c4e-hero-cta-row .c4e-btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.c4e-hero-cta-row .c4e-btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Hero overlay (vidéo seulement — pas appliqué quand image classique) */
.c4e-hero--has-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 100%);
}

/* ===== Editorial intro on home (400-700 mots) ===== */
.c4e-editorial-intro {
  background: var(--c4e-surface);
  padding: 4rem 0;
  border-bottom: 1px solid var(--c4e-line);
}
.c4e-editorial-intro .c4e-container { max-width: 880px; }
.c4e-editorial-intro h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--c4e-primary);
}
.c4e-editorial-intro p {
  color: var(--c4e-text);
  font-size: 1.05rem;
  line-height: 1.75;
}
.c4e-editorial-intro h3 {
  color: var(--c4e-primary);
  margin-top: 2rem;
  font-size: 1.4rem;
}
.c4e-editorial-intro .c4e-edito-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.c4e-editorial-intro .c4e-edito-pillars div {
  padding: 1.5rem;
  background: var(--c4e-bg);
  border-radius: var(--c4e-radius-md);
  border-left: 3px solid var(--c4e-accent);
}
.c4e-editorial-intro .c4e-edito-pillars strong {
  display: block;
  font-family: var(--c4e-font-h);
  color: var(--c4e-primary);
  font-size: 1.2rem;
  margin-bottom: .35rem;
}
@media (max-width: 768px) {
  .c4e-editorial-intro .c4e-edito-pillars { grid-template-columns: 1fr; }
  .c4e-editorial-intro { padding: 2.5rem 0; }
}

/* ===== Categories grid (home) ===== */
.c4e-categories {
  padding: 4rem 0;
  background: var(--c4e-bg);
}
.c4e-categories h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--c4e-primary);
}
.c4e-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.c4e-cat-card {
  display: block;
  position: relative;
  background: var(--c4e-surface);
  border-radius: var(--c4e-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--c4e-text);
  border: 1px solid var(--c4e-line);
  transition: transform .25s, box-shadow .25s;
  aspect-ratio: 4 / 5;
}
.c4e-cat-card:hover { transform: translateY(-4px); box-shadow: var(--c4e-shadow-md); }
.c4e-cat-card-img {
  display: block;
  width: 100%;
  height: 65%;
  background-size: cover;
  background-position: center;
  background-color: var(--c4e-primary);
}
.c4e-cat-card-body {
  padding: 1rem 1.1rem 1.2rem;
}
.c4e-cat-card-name {
  font-family: var(--c4e-font-h);
  font-size: 1.25rem;
  margin: 0 0 .25rem;
  color: var(--c4e-primary);
}
.c4e-cat-card-meta {
  font-size: .85rem;
  color: var(--c4e-text-soft);
}
@media (max-width: 980px) { .c4e-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .c4e-cat-grid { grid-template-columns: 1fr; } .c4e-cat-card { aspect-ratio: 5 / 3; } .c4e-cat-card-img { height: 60%; } }

/* ===== Latest articles grid ===== */
.c4e-latest {
  padding: 4rem 0;
  background: var(--c4e-surface);
}
.c4e-latest h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--c4e-primary);
}
.c4e-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.c4e-card-article {
  background: var(--c4e-bg);
  border: 1px solid var(--c4e-line);
  border-radius: var(--c4e-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.c4e-card-article:hover { transform: translateY(-3px); box-shadow: var(--c4e-shadow-md); }
.c4e-card-article-img-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--c4e-primary);
  overflow: hidden;
}
.c4e-card-article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.c4e-card-article:hover .c4e-card-article-img-wrap img { transform: scale(1.04); }
.c4e-card-article-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.c4e-card-article-cat {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c4e-accent);
  margin-bottom: .5rem;
}
.c4e-card-article-title {
  font-family: var(--c4e-font-h);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
  color: var(--c4e-text);
}
.c4e-card-article-title a { color: inherit; text-decoration: none; }
.c4e-card-article-title a:hover { color: var(--c4e-accent); }
.c4e-card-article-excerpt {
  font-size: .92rem;
  color: var(--c4e-text-soft);
  margin: 0 0 .9rem;
  flex: 1;
}
.c4e-card-article-meta {
  font-size: .82rem;
  color: var(--c4e-text-soft);
}
@media (max-width: 980px) { .c4e-latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .c4e-latest-grid { grid-template-columns: 1fr; } }

/* ===== Featured tool on home (tool_on_home = yes) ===== */
.c4e-tool-feature {
  padding: 4rem 0;
  background: var(--c4e-bg);
  border-top: 1px solid var(--c4e-line);
}
.c4e-tool-feature h2 {
  text-align: center;
  color: var(--c4e-primary);
  margin-bottom: .75rem;
}
.c4e-tool-feature-intro {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--c4e-text-soft);
  font-size: 1.05rem;
}
.c4e-tool-feature-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--c4e-surface);
  padding: 2rem 1.75rem;
  border-radius: var(--c4e-radius-lg);
  border: 1px solid var(--c4e-line);
  box-shadow: var(--c4e-shadow-md);
}

/* ===== Category page (tldr-detailed) ===== */
.c4e-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--c4e-primary);
}
.c4e-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.c4e-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,.75) 100%);
  padding: 3rem 1.5rem 2rem;
  max-width: var(--c4e-max-w);
  margin: 0 auto;
}
.c4e-cat-hero-title {
  color: #fff;
  font-family: var(--c4e-font-h);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}
.c4e-cat-intro {
  padding: 3rem 0 2rem;
  background: var(--c4e-surface);
}
.c4e-cat-intro .c4e-container { max-width: 880px; }
.c4e-cat-intro p { font-size: 1.05rem; line-height: 1.75; color: var(--c4e-text); }
.c4e-cat-tldr {
  background: var(--c4e-bg);
  border-left: 4px solid var(--c4e-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--c4e-radius-md) var(--c4e-radius-md) 0;
  margin-bottom: 2rem;
}
.c4e-cat-tldr strong {
  display: block;
  font-family: var(--c4e-font-h);
  color: var(--c4e-primary);
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.c4e-cat-articles {
  padding: 2rem 0 4rem;
  background: var(--c4e-surface);
}
.c4e-cat-outro {
  padding: 3rem 0 4rem;
  background: var(--c4e-bg);
  border-top: 1px solid var(--c4e-line);
}
.c4e-cat-outro .c4e-container { max-width: 880px; }

/* ===== Standard content pages (a-propos, contact, tools) ===== */
.c4e-page {
  padding: 3rem 0 4rem;
  background: var(--c4e-surface);
}
.c4e-page .c4e-container { max-width: 880px; }
.c4e-page h1 {
  color: var(--c4e-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}
.c4e-page h2 {
  color: var(--c4e-primary);
  margin-top: 2rem;
}
.c4e-page p { font-size: 1.05rem; line-height: 1.7; }
.c4e-page .c4e-persona-photo {
  display: block;
  max-width: 320px;
  margin: 0 auto 2rem;
  border-radius: var(--c4e-radius-lg);
  box-shadow: var(--c4e-shadow-md);
}
.c4e-contact-form {
  margin: 2rem 0;
  background: var(--c4e-bg);
  padding: 1.25rem;
  border-radius: var(--c4e-radius-md);
  border: 1px solid var(--c4e-line);
}

/* ===== Footer ===== */
.c4e-footer {
  background: var(--c4e-primary);
  color: var(--c4e-bg);
  padding: 3.5rem 0 0;
  font-family: var(--c4e-font-b);
}
.c4e-footer-inner {
  max-width: var(--c4e-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.c4e-footer-col-brand { padding-right: 1rem; }
.c4e-footer-logo {
  display: block;
  max-height: 60px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.c4e-footer-brand-pitch {
  color: var(--c4e-bg);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  opacity: .9;
}
.c4e-footer-brand-cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .55rem 1.1rem;
  color: var(--c4e-primary);
  background: var(--c4e-accent);
  border-radius: var(--c4e-radius-md);
  font-weight: 600;
  text-decoration: none;
  font-size: .92rem;
  transition: background .2s;
}
.c4e-footer-brand-cta:hover { background: var(--c4e-bg); color: var(--c4e-primary); }
.c4e-footer-title {
  font-family: var(--c4e-font-h);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 .9rem;
  letter-spacing: .02em;
}
.c4e-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.c4e-footer-links li { margin-bottom: .45rem; }
.c4e-footer-links a {
  color: var(--c4e-bg);
  text-decoration: underline;
  text-decoration-color: rgba(240,229,208,.35);
  text-underline-offset: 3px;
  font-size: .94rem;
  transition: color .2s;
}
.c4e-footer-links a:hover { color: var(--c4e-accent); }
.c4e-footer-socials {
  display: flex;
  gap: .65rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}
.c4e-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(240,229,208,.12);
  color: var(--c4e-bg);
  transition: background .2s;
}
.c4e-footer-socials a:hover { background: var(--c4e-accent); color: #fff; }
.c4e-footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid rgba(240,229,208,.2);
  text-align: center;
  font-size: .88rem;
  color: rgba(240,229,208,.85);
}
.c4e-footer-bottom span { display: inline-block; margin: 0 .35rem; }
.c4e-footer-bottom a { color: var(--c4e-accent); text-decoration: underline; }

@media (max-width: 980px) {
  .c4e-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .c4e-footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .c4e-footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ===== Marquee (CTR) ===== */
/* Animations CSS injectées par animations.* dans le builder Python */

/* ===== Persona photo override ===== */
.c4e-persona-photo {
  max-width: 280px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: var(--c4e-shadow-md);
  border: 4px solid var(--c4e-surface);
}

/* ===== Misc utilities ===== */
.c4e-section { padding: 3rem 0; }
.c4e-section-title {
  font-family: var(--c4e-font-h);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  color: var(--c4e-primary);
  margin-bottom: 2rem;
}
.c4e-text-center { text-align: center; }
.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;
}

/* ===== Editorial pillars decorative bullets ===== */
.c4e-edito-pillars span { display: block; font-size: .92rem; color: var(--c4e-text-soft); }

/* ===== Cards : pictogrammes typo ===== */
.c4e-card-article-cat::before {
  content: '\2014 ';
  color: var(--c4e-line);
}

/* ===== Single article placeholder (parent generatepress handles core) ===== */
.entry-content { font-family: var(--c4e-font-b); color: var(--c4e-text); line-height: 1.75; }
.entry-content a { color: var(--c4e-accent); text-decoration: underline; }
.entry-content a:hover { color: var(--c4e-primary); }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--c4e-primary); }

/* ===== Print ===== */
@media print {
  .c4e-header, .c4e-footer, .c4e-burger, .c4e-nav-mobile, .c4e-overlay, .c4e-tool-feature { display: none !important; }
  body { background: #fff; color: #000; }
}


/* === 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*="c4e-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
   (.c4e-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  body [class*="burger"], body button[class*="burger"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 42px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* [2026-06-17] BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* [2026-06-17] FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* [2026-06-17] FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* [2026-06-17] BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  padding: 8px !important;
  color: inherit !important;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06) !important;
  border-color: var(--c4e-accent, currentColor) !important;
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 22px !important;
  height: 16px !important;
  gap: 0 !important;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  margin: 2px 0 !important;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* [2026-06-19] FIX gap main padding-top (Claude met parfois padding-top: 30px sur .{prefix}-main qui casse le collage hero) */
html body main[class*="-main"],
html body main.c4e-main,
html body main#bdf-main, html body main#lda-main, html body main#a66-main,
html body main#b3b-main, html body main#e96-main, html body main#aaa-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* [2026-06-19] FIX drawer mobile height : force full viewport */
html body [class*="nav-mobile"]:not([class*="close"]):not([class*="overlay"]),
html body [class*="menu-mobile"]:not([class*="close"]),
html body [class*="drawer-mobile"]:not([class*="close"]) {
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  bottom: 0 !important;
  overflow-y: auto !important;
}

/* [2026-06-19] BURGER variation seedee : shape=step (w1=20/w2=22/w3=24) + dimensions + couleur + angle X */
html body button[class*="burger"] > span > span,
html body button[class*="burger"] > span:not([class*="bar"]):not([class*="line"]),
html body button[class*="burger"] [class*="bar"] > span,
html body button[class*="burger"] [class*="line"] > span {
  height: 2px !important;
  border-radius: 2px !important;
  background: currentColor !important;
  display: block !important;
  margin: 0 !important;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease !important;
}
/* Widths individuelles seedees -> forme distincte par site */
html body button[class*="burger"] > span > span:nth-child(1),
html body button[class*="burger"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"] [class*="line"] > span:nth-child(1) {
  width: 20px !important;
}
html body button[class*="burger"] > span > span:nth-child(2),
html body button[class*="burger"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"] [class*="line"] > span:nth-child(2) {
  width: 22px !important;
}
html body button[class*="burger"] > span > span:nth-child(3),
html body button[class*="burger"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"] [class*="line"] > span:nth-child(3) {
  width: 24px !important;
}
/* En etat ouvert (X) : les 3 barres ont meme largeur pour X symetrique */
html body button[class*="burger"][aria-expanded="true"] > span > span,
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span,
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span {
  width: 24px !important;
}
html body button[class*="burger"] > span:has(> span) {
  flex-direction: column !important;
  gap: 6px !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(1):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1) {
  transform: translateY(8.0px) rotate(45deg) !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(2):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2) {
  opacity: 0 !important;
}
html body button[class*="burger"][aria-expanded="true"] > span > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] > span:nth-child(3):not([class*="bar"]),
html body button[class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
html body button[class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3) {
  transform: translateY(-8.0px) rotate(-45deg) !important;
}

/* [2026-06-19] FIX contraste boutons (anti bouton invisible) */
html body a[class*="btn--primary"], html body button[class*="btn--primary"],
html body a[class*="btn-primary"], html body button[class*="btn-primary"],
html body a[class*="-cta"]:not([class*="ghost"]):not([class*="link"]),
html body button[class*="-cta"]:not([class*="ghost"]):not([class*="link"]) {
  color: #ffffff !important;
}
html body a[class*="btn--ghost"], html body button[class*="btn--ghost"],
html body a[class*="btn--secondary"], html body button[class*="btn--secondary"],
html body a[class*="btn-secondary"], html body button[class*="btn-secondary"] {
  color: var(--c4e-text, #1a1a1a) !important;
}

/* [2026-06-19] PERSONA shape variation seedee : round (50%) */
html body img[class*="persona"],
html body img[class*="author"],
html body img[class*="author-photo"],
html body img[class*="persona-photo"],
html body img[class*="redaction"],
html body img[class*="about-photo"],
html body img[class*="team-photo"],
html body img[class*="profile"],
html body [class*="persona"] > img,
html body [class*="author"] > img:not([class*="logo"]),
html body [class*="about"] img:not([class*="logo"]):not([class*="brand"]) {
  border-radius: 50% !important;
}


/* Mouse effect : link_hover_arrow_reveal */
/* link_hover_arrow_reveal — fleche qui apparait au survol des liens du contenu */
.c4e-content a:not(.c4e-btn):not(.c4e-brand-link):not(.c4e-footer-links a) {
  position: relative;
  text-decoration: none;
  color: #8B3A1F;
  border-bottom: 1px dashed #E8B845;
  padding-right: 0;
  transition: color .2s ease, padding-right .25s ease;
}
.c4e-content a:not(.c4e-btn):not(.c4e-brand-link)::after {
  content: '\2192';
  position: absolute;
  right: -1.1em;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  color: #E8B845;
  font-weight: 600;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.c4e-content a:not(.c4e-btn):not(.c4e-brand-link):hover {
  color: #E8B845;
  padding-right: 1.1em;
}
.c4e-content a:not(.c4e-btn):not(.c4e-brand-link):hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (hover: none) {
  .c4e-content a:not(.c4e-btn)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .c4e-content a { transition: none; }
  .c4e-content a::after { transition: none; }
}
