/* ==========================================================================
   Centre Social St Loup — feuille de chou moderne
   Design System: Pop Tutti Frutti (rose pop + turquoise menthe)
   Layout: logo-left-menu-center-cta-right
   Hero: latest-edition
   Category: intro-faq
   ========================================================================== */

/* ---------- Variables racine ---------- */
:root {
  --e5e-primary:      #FF4FA1;
  --e5e-primary-dark: #D63985;
  --e5e-accent:       #4FFFD8;
  --e5e-accent-dark:  #2BD9B3;
  --e5e-text:         #1F0A24;
  --e5e-text-soft:    #5A3A6A;
  --e5e-bg:           #FFFAF0;
  --e5e-bg-alt:       #FFF3E6;
  --e5e-surface:      #FFFFFF;
  --e5e-line:         #FFC8E0;
  --e5e-line-soft:    #FFE4F0;

  --e5e-shadow-sm: 0 2px 8px rgba(31, 10, 36, 0.06);
  --e5e-shadow-md: 0 6px 20px rgba(255, 79, 161, 0.12);
  --e5e-shadow-lg: 0 16px 40px rgba(31, 10, 36, 0.12);

  --e5e-radius-sm: 8px;
  --e5e-radius:    16px;
  --e5e-radius-lg: 28px;
  --e5e-radius-pill: 999px;

  --e5e-container: 1240px;
  --e5e-gap: 1.5rem;

  --e5e-font-headings: "Chango", "Fredoka", system-ui, sans-serif;
  --e5e-font-body:     "Nunito", "Inter", system-ui, sans-serif;

  --e5e-trans: .25s cubic-bezier(.4,.0,.2,1);
}

/* ---------- Reset doux ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--e5e-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--e5e-text);
  background: var(--e5e-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--e5e-primary-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color var(--e5e-trans); }
a:hover { color: var(--e5e-primary); }

h1, h2, h3, h4 {
  font-family: var(--e5e-font-headings);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--e5e-text);
  margin: 0 0 .8em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }

main, .e5e-main { padding-top: 0 !important; margin-top: 0 !important; }

.e5e-container { width: min(100% - 2rem, var(--e5e-container)); margin-inline: auto; }
.e5e-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* ---------- Boutons ---------- */
.e5e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--e5e-radius-pill);
  font-family: var(--e5e-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--e5e-trans), box-shadow var(--e5e-trans), background var(--e5e-trans);
  line-height: 1.2;
}
.e5e-btn--cta {
  background: var(--e5e-primary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 79, 161, 0.35);
}
.e5e-btn--cta:hover {
  background: var(--e5e-primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 79, 161, 0.45);
}
.e5e-btn--ghost {
  background: transparent;
  color: var(--e5e-text);
  border-color: var(--e5e-text);
}
.e5e-btn--ghost:hover { background: var(--e5e-text); color: var(--e5e-bg); }
.e5e-btn--accent {
  background: var(--e5e-accent);
  color: var(--e5e-text);
  box-shadow: 0 6px 18px rgba(79, 255, 216, 0.35);
}
.e5e-btn--accent:hover { background: var(--e5e-accent-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.e5e-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--e5e-bg);
  border-bottom: 3px solid var(--e5e-line);
  backdrop-filter: saturate(180%);
}
.e5e-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .9rem 0;
  width: min(100% - 2rem, var(--e5e-container));
  margin-inline: auto;
}
.e5e-brand-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--e5e-text);
  flex-shrink: 0;
}
.e5e-brand-logo {
  width: auto;
}
.e5e-brand-name {
  font-family: var(--e5e-font-headings);
  font-size: 1.45rem;
  color: var(--e5e-text);
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Nav desktop centrée (logo-left-menu-center-cta-right) */
.e5e-nav-desktop { display: none; }
.e5e-nav-desktop-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.e5e-nav-desktop-list a {
  color: var(--e5e-text);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  padding: .45rem .15rem;
  border-bottom: 2.5px solid transparent;
  transition: border-color .2s, color .2s;
}
.e5e-nav-desktop-list a:hover { border-bottom-color: var(--e5e-primary); color: var(--e5e-primary-dark); }
.e5e-nav-desktop-list .current-menu-item > a,
.e5e-nav-desktop-list .current-cat > a { border-bottom-color: var(--e5e-accent); }

.e5e-header-cta-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  margin-left: auto;
}
.e5e-header-cta-desktop {
  padding: .7rem 1.3rem;
  font-size: .92rem;
}

/* Burger mobile — bouton en haut a droite du header */
.e5e-burger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 10px !important;
  background: var(--e5e-primary) !important;
  border: 2px solid var(--e5e-primary-dark) !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  cursor: pointer !important;
  z-index: 10000 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  box-shadow: 0 4px 12px rgba(255, 79, 161, 0.35) !important;
  margin-left: auto !important;
}
.e5e-burger-bars {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 4px !important;
  width: 22px !important;
  height: 16px !important;
}
.e5e-burger-bars span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #FFFFFF;
  border-radius: 2px;
}

/* Drawer mobile (caché par défaut, ouvert via JS) */
.e5e-nav, .e5e-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .e5e-header-cta-desktop,
  .e5e-header .e5e-btn--cta:not(.e5e-drawer-cta) {
    display: none !important;
  }
  .e5e-header-cta-wrap, .e5e-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }
  .e5e-burger {
    display: inline-flex !important;
    margin-left: auto !important;
  }
  .e5e-nav-mobile.is-open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #FFFFFF !important;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(31, 10, 36, 0.3);
    color: #1a1a1a;
  }
  .e5e-nav-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .e5e-nav-mobile-list li {
    border-bottom: 1px solid #E5E5E5;
  }
  .e5e-nav-mobile-list a {
    display: block;
    padding: 1rem .5rem;
    font-size: 1.05rem;
    color: #1a1a1a !important;
    text-decoration: none;
    font-weight: 600;
  }
  .e5e-nav-mobile-list a:hover { color: var(--e5e-primary-dark) !important; }
  .e5e-drawer-cta {
    display: block !important;
    margin: 2rem 0 1rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    background: var(--e5e-primary) !important;
    color: #FFFFFF !important;
    border-radius: var(--e5e-radius-pill) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
  }
  .e5e-drawer-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border: none; background: transparent;
    color: #1a1a1a; cursor: pointer;
    font-size: 1.6rem; line-height: 1;
  }
  .e5e-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(31, 10, 36, 0.55);
    z-index: 9998;
  }
  .e5e-drawer-overlay.is-visible { display: block; }
}

@media (min-width: 1024px) {
  .e5e-nav-desktop {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 1.5rem;
  }
  .e5e-burger, .e5e-drawer-cta { display: none !important; }
}

/* ---------- Hero "latest-edition" ---------- */
.e5e-hero {
  position: relative;
  padding: 0;
  background: linear-gradient(135deg, #FFF3E6 0%, #FFFAF0 60%, #E6FFF6 100%);
  border-bottom: 3px solid var(--e5e-line);
  overflow: hidden;
  min-height: 70vh;
}
.e5e-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
  width: min(100% - 2rem, var(--e5e-container));
  margin-inline: auto;
}
.e5e-hero-content { max-width: 640px; }
.e5e-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--e5e-accent);
  color: var(--e5e-text);
  padding: .35rem 1rem;
  border-radius: var(--e5e-radius-pill);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.e5e-hero-title {
  font-family: var(--e5e-font-headings);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  color: var(--e5e-text);
}
.e5e-hero-title em {
  font-style: normal;
  color: var(--e5e-primary);
}
.e5e-hero-subtitle {
  font-size: 1.2rem;
  color: var(--e5e-text-soft);
  margin: 0 0 2rem;
  line-height: 1.55;
}
.e5e-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.e5e-hero-visual {
  position: relative;
  border-radius: var(--e5e-radius-lg);
  overflow: hidden;
  box-shadow: var(--e5e-shadow-lg);
  aspect-ratio: 3 / 2;
}
.e5e-hero-bg { width: 100%; height: 100%; object-fit: cover; }
.e5e-hero-edition-badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  background: var(--e5e-primary);
  color: #FFFFFF;
  padding: .55rem 1.1rem;
  border-radius: var(--e5e-radius-pill);
  font-weight: 800;
  font-size: .85rem;
  box-shadow: var(--e5e-shadow-md);
}

@media (min-width: 900px) {
  .e5e-hero-inner {
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
  }
}

/* ---------- Bloc éditorial home (after-hero) ---------- */
.e5e-editorial-intro {
  background: var(--e5e-surface);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--e5e-line);
}
.e5e-editorial-intro-inner {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}
.e5e-editorial-intro h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--e5e-text);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
.e5e-editorial-intro h3 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  color: var(--e5e-primary-dark);
}
.e5e-editorial-intro p {
  font-size: 1.05rem;
  color: var(--e5e-text);
  line-height: 1.75;
}
.e5e-editorial-intro a {
  color: var(--e5e-primary-dark);
  font-weight: 700;
  text-decoration: underline;
}
.e5e-editorial-line {
  background: linear-gradient(135deg, var(--e5e-accent) 0%, #C6FFF0 100%);
  border-radius: var(--e5e-radius);
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  border-left: 5px solid var(--e5e-primary);
  color: var(--e5e-text);
}
.e5e-editorial-line h3 { margin-top: 0; color: var(--e5e-text); }

/* ---------- Section catégories ---------- */
.e5e-categories {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--e5e-bg-alt);
}
.e5e-section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.e5e-section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin: 0 0 .7rem;
}
.e5e-section-head p {
  color: var(--e5e-text-soft);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}
.e5e-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  width: min(100% - 2rem, var(--e5e-container));
  margin-inline: auto;
}
.e5e-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--e5e-surface);
  border: 2px solid var(--e5e-line-soft);
  border-radius: var(--e5e-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--e5e-text);
  transition: transform var(--e5e-trans), box-shadow var(--e5e-trans), border-color var(--e5e-trans);
  min-height: 260px;
}
.e5e-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e5e-shadow-md);
  border-color: var(--e5e-primary);
  color: var(--e5e-text);
}
.e5e-cat-card-img {
  display: block;
  width: 100%;
  height: 160px;
  background-color: var(--e5e-bg-alt);
  background-size: cover;
  background-position: center;
}
.e5e-cat-card-img--placeholder {
  background: linear-gradient(135deg, var(--e5e-primary) 0%, var(--e5e-accent) 100%);
}
.e5e-cat-card-body {
  padding: 1.1rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.e5e-cat-card-title {
  font-family: var(--e5e-font-headings);
  font-size: 1.3rem;
  margin: 0 0 .4rem;
  color: var(--e5e-text);
}
.e5e-cat-card-desc {
  color: var(--e5e-text-soft);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Latest posts grid ---------- */
.e5e-latest {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--e5e-bg);
}
.e5e-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: min(100% - 2rem, var(--e5e-container));
  margin-inline: auto;
}
@media (min-width: 980px) {
  .e5e-card-grid { grid-template-columns: repeat(3, 1fr); }
}
.e5e-card {
  background: var(--e5e-surface);
  border: 1px solid var(--e5e-line-soft);
  border-radius: var(--e5e-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--e5e-trans), box-shadow var(--e5e-trans);
}
.e5e-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--e5e-shadow-md);
}
.e5e-card-thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--e5e-bg-alt);
}
.e5e-card-thumb-link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.e5e-card:hover .e5e-card-thumb-link img { transform: scale(1.05); }
.e5e-card-body { padding: 1.1rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.e5e-card-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--e5e-primary-dark);
  text-decoration: none;
  margin-bottom: .2rem;
}
.e5e-card-title {
  font-family: var(--e5e-font-headings);
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.25;
}
.e5e-card-title a { color: var(--e5e-text); text-decoration: none; }
.e5e-card-title a:hover { color: var(--e5e-primary-dark); }
.e5e-card-excerpt {
  color: var(--e5e-text-soft);
  font-size: .94rem;
  margin: 0;
}
.e5e-card-meta {
  margin-top: auto;
  font-size: .82rem;
  color: var(--e5e-text-soft);
}

/* ---------- Section "À propos rapide" ---------- */
.e5e-about-home {
  background: linear-gradient(135deg, var(--e5e-primary) 0%, #FF7DB8 100%);
  color: #FFFFFF;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.e5e-about-home-inner {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
  text-align: center;
}
.e5e-about-home h2 { color: #FFFFFF; }
.e5e-about-home p {
  font-size: 1.1rem;
  opacity: .95;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.e5e-about-home .e5e-btn--accent { color: var(--e5e-text); }

/* ---------- Footer ---------- */
.e5e-footer {
  background: #1F0A24;
  color: #F5F0E5;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.e5e-footer a { color: #FFD9EC; text-decoration: underline; }
.e5e-footer a:hover { color: var(--e5e-accent); }
.e5e-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--e5e-container));
  margin-inline: auto;
}
@media (min-width: 760px) {
  .e5e-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.e5e-footer-col h3 {
  color: var(--e5e-accent);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: .03em;
}
.e5e-footer-title {
  color: var(--e5e-accent);
  font-family: var(--e5e-font-headings);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}
.e5e-footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-bottom: 1rem;
}
.e5e-footer-brand-pitch {
  color: #F5F0E5;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.e5e-footer-brand-cta {
  display: inline-block;
  padding: .55rem 1rem;
  background: var(--e5e-primary);
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-radius: var(--e5e-radius-pill);
  font-weight: 700;
  font-size: .88rem;
}
.e5e-footer-brand-cta:hover { background: var(--e5e-primary-dark); }
.e5e-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.e5e-footer-links a {
  color: #F5F0E5 !important;
  font-size: .92rem;
  text-decoration: none !important;
}
.e5e-footer-links a:hover {
  color: var(--e5e-accent) !important;
  text-decoration: underline !important;
}
.e5e-footer-social {
  display: flex;
  gap: .75rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}
.e5e-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #F5F0E5 !important;
  text-decoration: none !important;
  font-size: .85rem;
  font-weight: 800;
}
.e5e-footer-social a:hover { background: var(--e5e-primary); color: #FFFFFF !important; }
.e5e-footer-bottom {
  width: min(100% - 2rem, var(--e5e-container));
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 229, 0.18);
  font-size: .84rem;
  color: #C9B8D2;
  text-align: center;
}
.e5e-footer-bottom a { color: #F5F0E5 !important; }

/* ---------- Catégorie page (intro-faq) ---------- */
.e5e-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  border-bottom: 3px solid var(--e5e-line);
}
.e5e-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.e5e-cat-hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(31,10,36,0) 30%, rgba(31,10,36,0.78) 100%);
  padding: 1.5rem 0;
}
.e5e-cat-hero-overlay .e5e-container {
  width: 100%;
}
.e5e-cat-hero h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}
.e5e-cat-intro {
  background: var(--e5e-bg);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--e5e-line-soft);
}
.e5e-cat-intro-inner {
  width: min(100% - 2rem, 880px);
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--e5e-text);
}
.e5e-cat-faq {
  background: var(--e5e-bg-alt);
  padding: 3rem 0;
}
.e5e-cat-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.e5e-cat-faq-inner {
  width: min(100% - 2rem, 880px);
  margin-inline: auto;
}
.e5e-cat-faq details {
  background: var(--e5e-surface);
  border: 1px solid var(--e5e-line);
  border-radius: var(--e5e-radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: .8rem;
}
.e5e-cat-faq details[open] { border-color: var(--e5e-primary); }
.e5e-cat-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--e5e-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.e5e-cat-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--e5e-primary);
  transition: transform .25s;
}
.e5e-cat-faq details[open] summary::after { transform: rotate(45deg); }

/* ---------- Outils interactifs ---------- */
.e5e-tool-page {
  padding: 2.5rem 0;
}
.e5e-tool-page h1 { margin-bottom: 1rem; }
.e5e-tool-intro {
  font-size: 1.05rem;
  color: var(--e5e-text-soft);
  max-width: 720px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.e5e-tool-wrap {
  background: var(--e5e-surface);
  border: 2px solid var(--e5e-line);
  border-radius: var(--e5e-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--e5e-shadow-sm);
}

/* ---------- Contact ---------- */
.e5e-contact-form {
  background: var(--e5e-surface);
  border: 2px solid var(--e5e-line);
  border-radius: var(--e5e-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow: hidden;
}
.e5e-contact-form iframe {
  border-radius: var(--e5e-radius-sm);
}

/* ---------- Persona / about ---------- */
.e5e-persona-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--e5e-radius-lg);
  margin: 1.5rem 0;
  border: 5px solid var(--e5e-accent);
  box-shadow: var(--e5e-shadow-md);
}

/* ---------- Animations CTA / CTR / CTO ---------- */

/* CTA - magnetic_button : pulsation + glow rose */
@keyframes e5e-magnetic-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(255, 79, 161, 0.35), 0 0 0 0 rgba(255, 79, 161, 0.55); }
  50%      { box-shadow: 0 8px 22px rgba(255, 79, 161, 0.5),  0 0 0 12px rgba(255, 79, 161, 0); }
}
.e5e-btn--cta { animation: e5e-magnetic-pulse 2.6s ease-in-out infinite; }
.e5e-btn--cta:hover { animation-play-state: paused; }

/* CTR - step_by_step_progress : barre de progression au scroll */
@keyframes e5e-step-progress {
  from { width: 0; }
  to   { width: 100%; }
}
.e5e-progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--e5e-primary), var(--e5e-accent));
  z-index: 10001;
  width: 0;
  transition: width .15s linear;
}

/* CTO - testimonial_popup : popup discrète bas droite */
@keyframes e5e-popup-slide {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.e5e-cto-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 320px;
  background: var(--e5e-surface);
  border: 2px solid var(--e5e-primary);
  border-radius: var(--e5e-radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--e5e-shadow-lg);
  z-index: 9990;
  animation: e5e-popup-slide .45s cubic-bezier(.4,.0,.2,1) forwards;
}
.e5e-cto-popup-title {
  font-family: var(--e5e-font-headings);
  color: var(--e5e-primary-dark);
  font-size: 1rem;
  margin: 0 0 .35rem;
}
.e5e-cto-popup-text {
  color: var(--e5e-text);
  font-size: .9rem;
  line-height: 1.45;
  margin: 0 0 .8rem;
}
.e5e-cto-popup-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--e5e-text-soft);
  cursor: pointer;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .e5e-btn--cta { animation: none; }
  .e5e-cto-popup { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Single article ---------- */
.e5e-article {
  padding: 2.5rem 0;
}
.e5e-article-inner {
  width: min(100% - 2rem, 740px);
  margin-inline: auto;
}
.e5e-article-thumb {
  border-radius: var(--e5e-radius);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--e5e-shadow-sm);
}
.e5e-article-meta {
  color: var(--e5e-text-soft);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.e5e-article-content p { font-size: 1.05rem; line-height: 1.75; }
.e5e-article-content h2 { margin-top: 2rem; color: var(--e5e-primary-dark); }
.e5e-article-content h3 { margin-top: 1.6rem; }
.e5e-article-content blockquote {
  border-left: 4px solid var(--e5e-primary);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--e5e-text-soft);
}

/* ---------- Pages génériques ---------- */
.e5e-page {
  padding: 2.5rem 0 3.5rem;
}
.e5e-page-inner {
  width: min(100% - 2rem, 880px);
  margin-inline: auto;
}
.e5e-page-inner h1 { margin-bottom: 1.5rem; }
.e5e-page-inner h2 { margin-top: 2rem; color: var(--e5e-primary-dark); }
.e5e-page-inner p { font-size: 1.05rem; line-height: 1.75; }
.e5e-page-inner a { color: var(--e5e-primary-dark); text-decoration: underline; }
.e5e-page-inner ul li { margin-bottom: .4rem; }

/* ---------- Comments (basique) ---------- */
.e5e-comments {
  width: min(100% - 2rem, 740px);
  margin: 3rem auto;
  padding: 2rem;
  background: var(--e5e-bg-alt);
  border-radius: var(--e5e-radius);
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .e5e-header-inner { gap: 1rem; }
  .e5e-brand-name { font-size: 1.15rem; }
  .e5e-hero-title { font-size: 2rem; }
  .e5e-hero-subtitle { font-size: 1rem; }
  .e5e-section { padding: 2.5rem 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*="e5e-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
   (.e5e-, .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(--e5e-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(--e5e-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;
}
