/* ========================================================================== 
   EPERM — Shell persistant : barre du bas (mobile) + mini-lecteur (Spotify-like)
   Chargé une seule fois ; survit à la navigation client (PJAX).
   ========================================================================== */

:root {
  --site-ink: #1F2A2E;
  --site-cream: #FAF8F4;
  --site-line: #E9DDD4;
  --site-teal: #1599A7;
  --site-teal-deep: #0D6F78;
  --site-peach: #F2C8B6;
}

.skip-link {
  position: fixed; top: 10px; left: 12px; z-index: 400;
  padding: 10px 14px; border-radius: 8px; background: var(--site-ink); color: #fff;
  font-size: 12px; font-weight: 700; transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(-160%); }
.skip-link:focus-visible { transform: translateY(0); }
.site-progress { position: fixed; inset: 0 0 auto; z-index: 180; height: 3px; pointer-events: none; }
.site-progress span {
  display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--site-teal-deep), var(--site-teal), var(--site-peach));
  transition: transform .08s linear;
}
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; padding: 15px 0;
  background: rgba(250,248,244,.9); border-bottom: 1px solid rgba(233,221,212,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: padding .24s ease, box-shadow .24s ease, background .24s ease;
}
.site-header.is-compact { padding: 8px 0; background: rgba(250,248,244,.96); box-shadow: 0 9px 26px rgba(31,42,46,.08); }
.site-header .brand-logo { transition: height .24s ease; }
.partner-logo-tile {
  height: 150px;
  min-height: 150px;
  padding: 20px 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 12px;
}
.partner-logo-tile.is-dark { background: #1F2A2E; border-color: #1F2A2E; }
.partner-logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partner-logo-tile.partner-logo-cnef { padding-inline: 14px; }
.partner-logo-tile.partner-logo-fef { padding-inline: 8px; }
.partner-logo-tile.partner-logo-cnef img { width: 100%; max-height: 116px; }
.partner-logo-tile.partner-logo-aeei img { width: 76%; max-height: 116px; }
.partner-logo-tile.partner-logo-fef img { width: 100%; max-height: 84px; }
.partner-card { align-content: start; }
.partner-card .partner-logo-tile { width: 100%; }
@media (max-width: 900px) {
  .partner-logo-tile { height: 132px; min-height: 132px; padding: 18px 20px; }
  .partner-logo-tile.partner-logo-cnef img { max-height: 100px; }
  .partner-logo-tile.partner-logo-aeei img { width: 72%; max-height: 100px; }
}
.site-header.is-compact .brand-logo { height: 48px; }
.desktop-nav a { position: relative; padding: 8px 0; }
.desktop-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--site-teal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--site-teal-deep); }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }

.marquee-track:hover { animation-play-state: paused; }
.marquee-dot { width: 7px; height: 7px; align-self: center; background: var(--site-peach); transform: rotate(45deg); flex: 0 0 auto; }
.page-hero { isolation: isolate; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(13,111,120,.18), transparent 58%); }

html[data-theme="dark"] .site-header { background: rgba(18,28,28,.9) !important; border-bottom-color: rgba(255,255,255,.08) !important; }
html[data-theme="dark"] .site-header.is-compact { background: rgba(18,28,28,.97) !important; box-shadow: 0 9px 28px rgba(0,0,0,.26); }
html[data-theme="dark"] .desktop-nav a { color: #ECEAE3; }
html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .desktop-nav a.is-active { color: #48C5D0; }

@media (max-width: 900px) {
  .site-header { padding: 10px 0; }
  .site-header.is-compact { padding: 6px 0; }
  #hero > a[href="#decouvrir"] { display: none !important; }
}
@media (max-width: 600px) {
  .site-header .theme-chip { display: inline-flex; width: 40px; height: 40px; }
  .site-header > .container > div:last-child { gap: 6px !important; }
  .site-header .brand-logo, .site-header.is-compact .brand-logo { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-progress span { transition: none; }
  .marquee-track { animation-play-state: paused !important; }
  .hero-bg,
  .floaty { animation: none !important; }
  #pjax-main { transition: none !important; }
}

.site-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#pjax-main:focus { outline: none; }

/* Mini-lecteur audio */
.eperm-player {
  position: fixed; left: 12px; right: 12px; z-index: 240;
  bottom: 12px;
  max-width: 680px; margin: 0 auto;
  background: #0D6F78; color: #FAF8F4;
  border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.28);
  display: none; align-items: center; gap: 12px;
  padding: 9px 12px;
}
.eperm-player.on { display: flex; }
.eperm-player .ep-thumb {
  width: 40px; height: 40px; border-radius: 8px; background: #085041;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background-position:center; background-size:cover; overflow:hidden;
}
.eperm-player .ep-thumb.is-generated { padding:5px; align-items:flex-start; justify-content:space-between; flex-direction:column; background:linear-gradient(145deg,#0D6F78,#1599A7 62%,#8FAFAA); }
.eperm-player .ep-thumb small { display:none; font-size:5px; line-height:1; letter-spacing:.12em; text-transform:uppercase; color:#F2C8B6; }
.eperm-player .ep-thumb b { display:none; max-width:100%; font:700 8px/1.05 'Bricolage Grotesque', sans-serif; }
.eperm-player .ep-thumb.is-generated small,.eperm-player .ep-thumb.is-generated b { display:block; }
.eperm-player .ep-thumb.has-cover i,.eperm-player .ep-thumb.is-generated i { display:none; }
.eperm-player .ep-thumb i { font-size: 21px; color: #F2C8B6; }
.eperm-player .ep-meta { flex: 1; min-width: 0; cursor:pointer; }
.eperm-player .ep-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eperm-player .ep-sub { font-size: 11px; color: #9FE1CB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eperm-player .ep-verse { min-height:0; font-size:9px; color:#F2C8B6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.eperm-player .ep-verse:empty { display:none; }
.eperm-player .ep-btn { background: transparent; border: 0; color: #FAF8F4; cursor: pointer; padding: 4px; display: flex; }
.eperm-player .ep-btn i { font-size: 21px; }
.eperm-player .ep-play { background: #FAF8F4; color: #0D6F78; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; flex: 0 0 auto; }
.eperm-player .ep-play i { font-size: 19px; }
.eperm-player .ep-progress { position: absolute; left: 14px; right: 14px; top: -3px; height: 3px; background: rgba(159,225,203,.4); border-radius: 3px; cursor: pointer; }
.eperm-player .ep-fill { height: 100%; width: 0; background: #F2C8B6; border-radius: 3px; }
.eperm-player .ep-time { font-size: 10px; color: #9FE1CB; white-space: nowrap; }
.eperm-player .ep-close { color: rgba(250,248,244,.6); }
.eperm-player .ep-speed { display:inline-flex; align-items:center; flex:0 0 auto; }
.eperm-player .ep-speed > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.eperm-player .ep-speed select,.ep-full-speed select { appearance:none; -webkit-appearance:none; border:1px solid rgba(159,225,203,.45); border-radius:999px; background:rgba(159,225,203,.08); color:#9FE1CB; font:800 10px/1 Manrope,sans-serif; cursor:pointer; }
.eperm-player .ep-speed select { width:auto; min-width:0; padding:7px 4px; field-sizing:content; }
.eperm-player .ep-speed select:focus-visible,.ep-full-speed select:focus-visible { outline:2px solid #F2C8B6; outline-offset:2px; }
.eperm-player .ep-analysis { display:inline-flex; align-items:center; gap:5px; padding:6px 8px; border:1px solid rgba(159,225,203,.42); border-radius:999px; background:transparent; color:#9FE1CB; font:800 9px/1 Manrope,sans-serif; letter-spacing:.06em; text-transform:uppercase; cursor:pointer; white-space:nowrap; }
.eperm-player .ep-analysis i { font-size:15px; }

.eperm-player-full { display:none; }

@media (min-width: 901px) {
  .eperm-player { left:0; right:0; bottom:0; max-width:none; margin:0; padding:10px max(28px,calc((100vw - 1280px)/2)); border-radius:0; background:#0D1B1F; }
  .eperm-player .ep-progress { left:0; right:0; top:0; }
  .eperm-player .ep-meta { max-width:520px; }
}

/* Barre de navigation du bas (mobile uniquement) */
.eperm-bottomnav { display: none; }
.eperm-bottomnav a, .eperm-bottomnav button {
  flex: 1; background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 9px; color: #5F6B6E; font-family: inherit; text-decoration: none;
  transition: transform .22s cubic-bezier(.22,1,.36,1), opacity .22s ease, color .2s ease, background .2s ease;
}
.eperm-bottomnav i { font-size: 21px; }
.eperm-bottomnav span { font-size: 10px; font-weight: 600; letter-spacing: .01em; }
.eperm-bottomnav .is-active { color: #1599A7; }
.eperm-bottomnav a:active, .eperm-bottomnav button:active { transform: translateY(1px) scale(.98); }

@media (max-width: 900px) {
  .nav-toggle { display: none !important; } /* la barre du bas remplace le burger */
  .eperm-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 230;
    display: flex; background: #FAF8F4;
    border-top: 1px solid #E9DDD4;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .eperm-player { bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
  .eperm-player .ep-time,.eperm-player .ep-back,.eperm-player .ep-forward { display:none; }
  .eperm-player .ep-speed { display:none; }
  .eperm-player .ep-analysis { width:30px; height:30px; justify-content:center; padding:0; border-radius:50%; }
  .eperm-player .ep-analysis span { display:none; }
  body { padding-bottom: 64px; }
  body.has-player { padding-bottom: 132px; }
  #cookie-notice { bottom: calc(76px + env(safe-area-inset-bottom, 0)) !important; }
  body.menu-open .eperm-bottomnav {
    z-index: 280;
    background: transparent;
    border-top-color: transparent;
    pointer-events: none;
  }
  body.menu-open .eperm-bottomnav a {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
  }
  body.menu-open .eperm-bottomnav button[data-menu-open] {
    pointer-events: auto;
    flex: 0 0 74px;
    width: 74px;
    height: 54px;
    margin: 0 12px 10px auto;
    padding: 8px 0;
    border-radius: 999px;
    background: #1F2A2E;
    color: #FAF8F4;
    box-shadow: 0 14px 38px rgba(0,0,0,.26);
  }
  body.menu-open .eperm-bottomnav button[data-menu-open] span { font-size: 9px; }

  .eperm-player-full {
    position:fixed; inset:0; z-index:320; display:flex; flex-direction:column; height:100dvh; padding:18px 22px calc(24px + env(safe-area-inset-bottom,0)); overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y;
    background:#0D1B1F; color:#FAF8F4; transform:translateY(100%); opacity:0; pointer-events:none;
    transition:transform .42s cubic-bezier(.16,1,.3,1),opacity .28s ease;
  }
  .eperm-player-full.open { transform:translateY(0); opacity:1; pointer-events:auto; }
  .eperm-player-full header { display:grid; grid-template-columns:40px 1fr 40px; align-items:center; text-align:center; color:#F2C8B6; font-size:10px; font-weight:800; letter-spacing:.24em; text-transform:uppercase; }
  .eperm-player-full header button { width:40px; height:40px; border:0; background:transparent; color:#FAF8F4; font-size:23px; }
  .ep-full-cover { width:min(100%,430px); aspect-ratio:1.22; max-height:280px; margin:14px auto 0; padding:22px; display:flex; flex-direction:column; justify-content:space-between; border-radius:12px; background-position:center; background-size:cover; }
  .ep-full-cover.is-generated { background:linear-gradient(145deg,#0D6F78,#1599A7 62%,#8FAFAA); }
  .ep-full-cover small { color:#F2C8B6; font-size:10px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; }
  .ep-full-cover strong { max-width:88%; overflow-wrap:anywhere; font:700 34px/1.05 'Bricolage Grotesque',sans-serif; }
  .ep-full-cover span { font-size:9px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; }
  .ep-full-copy { width:min(100%,430px); margin:16px auto 0; }
  .ep-full-copy h2 { font-size:28px; line-height:1.1; }
  .ep-full-copy p { margin-top:6px; color:#8FAFAA; font:600 13px/1.4 'Bricolage Grotesque',sans-serif; }
  .ep-full-progress { width:min(100%,430px); height:5px; margin:16px auto 0; border-radius:5px; background:rgba(250,248,244,.2); overflow:hidden; cursor:pointer; }
  .ep-full-progress span { display:block; width:0; height:100%; background:linear-gradient(90deg,#1599A7,#F2C8B6); }
  .ep-full-time { width:min(100%,430px); margin:7px auto 0; display:flex; justify-content:space-between; color:#8FAFAA; font-size:10px; }
  .ep-full-controls { display:flex; justify-content:center; align-items:center; gap:14px; margin:16px 0 20px; }
  .ep-full-controls button { position:relative; width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(250,248,244,.2); border-radius:50%; background:transparent; color:#FAF8F4; font-size:20px; }
  .ep-full-controls button.is-primary { width:70px; height:70px; border:0; background:#FAF8F4; color:#0D1B1F; font-size:27px; }
  .ep-full-controls button small { position:absolute; font-size:7px; font-weight:900; }
  .ep-full-speed { width:min(100%,430px); margin:0 auto 16px; display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border:1px solid rgba(250,248,244,.14); border-radius:10px; color:#8FAFAA; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
  .ep-full-speed select { padding:8px 12px; }
  .ep-full-analysis { width:min(100%,430px); margin:0 auto 16px; min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(159,225,203,.5); border-radius:999px; background:transparent; color:#9FE1CB; font:800 10px/1 Manrope,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
  .ep-full-verse { margin:0 -22px -24px; padding:18px 22px calc(24px + env(safe-area-inset-bottom,0)); border-top:1px solid rgba(250,248,244,.1); background:#132326; }
  .ep-full-verse > div { display:flex; justify-content:space-between; gap:12px; color:#8FAFAA; font-size:9px; letter-spacing:.18em; text-transform:uppercase; }
  .ep-full-verse > div small { letter-spacing:0; text-transform:none; }
  .ep-full-verse article { margin-top:12px; padding:16px; display:grid; gap:7px; border-radius:8px; background:#E6F4F2; color:#1F2A2E; }
  .ep-full-verse article strong { color:#0D6F78; font-size:11px; }
  .ep-full-verse article em { font:600 15px/1.5 'Bricolage Grotesque',sans-serif; }
}

.eperm-analysis-drawer { position:fixed; right:24px; bottom:92px; z-index:340; width:min(560px,calc(100vw - 48px)); max-height:min(720px,calc(100dvh - 132px)); display:flex; flex-direction:column; overflow:hidden; border:1px solid #E9DDD4; border-radius:22px; background:#FAF8F4; color:#1F2A2E; box-shadow:0 24px 64px rgba(13,27,31,.24); transform:translateY(20px) scale(.98); opacity:0; visibility:hidden; pointer-events:none; transition:transform .35s cubic-bezier(.16,1,.3,1),opacity .24s ease,visibility 0s linear .35s; }
.eperm-analysis-drawer.open { transform:translateY(0) scale(1); opacity:1; visibility:visible; pointer-events:auto; transition-delay:0s; }
.eperm-analysis-drawer header { flex:0 0 auto; display:grid; grid-template-columns:40px 1fr 40px; align-items:center; padding:14px 16px; text-align:center; color:#0D6F78; font-size:10px; font-weight:800; letter-spacing:.2em; text-transform:uppercase; }
.eperm-analysis-drawer header button { width:40px; height:40px; border:0; border-radius:50%; background:#E6F4F2; color:#0D6F78; font-size:21px; cursor:pointer; }
.ep-analysis-copy,.ep-analysis-content { width:auto; margin-inline:0; }
.ep-analysis-copy { padding:2px 22px 0; }
.ep-analysis-copy .kicker { font-size:9px; }
.ep-analysis-copy h2 { margin-top:8px; font-size:clamp(26px,3.4vw,34px); }
.ep-analysis-copy p { margin-top:8px; color:#5F6B6E; font:600 13px/1.45 'Bricolage Grotesque',sans-serif; }
.ep-analysis-content { display:grid; gap:16px; margin-top:18px; padding:0 22px 22px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.ep-analysis-summary { color:#1F2A2E; font:500 14px/1.68 Manrope,sans-serif; }
.ep-analysis-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ep-analysis-block { padding:16px; border:1px solid #E9DDD4; border-radius:10px; background:#fff; }
.ep-analysis-block strong { display:block; color:#0D6F78; font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.ep-analysis-block p { margin-top:8px; color:#5F6B6E; font:500 12px/1.65 Manrope,sans-serif; white-space:pre-line; }
.ep-analysis-cues { display:flex; flex-wrap:wrap; gap:7px; }
.ep-analysis-cues button { padding:7px 9px; border:1px solid #8FAFAA; border-radius:999px; background:#E6F4F2; color:#0D6F78; font:800 10px/1.2 Manrope,sans-serif; cursor:pointer; }
.ep-analysis-transcript { border-top:1px solid #E9DDD4; padding-top:16px; }
.ep-analysis-transcript summary { color:#0D6F78; font-size:11px; font-weight:800; cursor:pointer; }
.ep-analysis-transcript p { max-height:52vh; margin-top:12px; overflow:auto; color:#5F6B6E; font:500 12px/1.75 Manrope,sans-serif; white-space:pre-wrap; }
.ep-analysis-empty { padding:18px; border:1px solid #E9DDD4; border-radius:10px; color:#5F6B6E; font-size:13px; line-height:1.6; }
@media (max-width:600px) { .ep-analysis-grid { grid-template-columns:1fr; } .eperm-analysis-drawer { right:10px; bottom:calc(78px + env(safe-area-inset-bottom,0)); width:calc(100vw - 20px); max-height:min(68dvh,620px); border-radius:18px; } .eperm-analysis-drawer header { padding:11px 12px; } .ep-analysis-copy { padding:0 16px; } .ep-analysis-content { margin-top:14px; padding:0 16px 16px; } .ep-analysis-summary { font-size:14px; } }

@media (max-width:380px) {
  .ep-full-cover strong { font-size:30px; }
}

/* Menu plein écran (persistant) — slide fluide + typo sans-serif */
#mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: #FAF8F4; padding: 24px;
  display: flex; flex-direction: column;
  transform: translateX(100%); opacity: 0; pointer-events: none;
  transition: transform .42s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  will-change: transform;
}
#mobile-menu.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
#mobile-menu nav { margin-top: 8px; }
#mobile-menu nav a {
  font-family: 'Manrope', system-ui, sans-serif; font-size: 22px; font-weight: 600;
  letter-spacing: -.01em; padding: 16px 0; border-bottom: 1px solid #E9DDD4; color: #1F2A2E;
}
#mobile-menu .pwa-install-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:max-content; margin-top:24px; padding:11px 15px; border:1px solid #1599A7; border-radius:999px; background:#E6F4F2; color:#0D6F78; font:800 11px/1 Manrope,sans-serif; cursor:pointer; }
#mobile-menu .pwa-install-action i { font-size:16px; }
#mobile-menu .pwa-install-status { max-width:310px; margin-top:10px; color:#5F6B6E; font-size:12px; line-height:1.45; }
#mobile-menu .menu-head { display: flex; align-items: center; justify-content: space-between; }
#mobile-menu .menu-foot { margin-top: auto; padding-top: 16px; }

/* ==========================================================================
   FLUIDITÉ — apparition au scroll + transition de page douce
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.reveal-in { opacity: 1; transform: none; }
  #pjax-main { transition: opacity .22s ease; }
  #pjax-main.pjax-leaving { opacity: 0; }
  .card, .btn, .eperm-bottomnav a { transition: transform .2s var(--ease, ease), box-shadow .2s ease, background .2s ease, color .2s ease; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

[data-theme-toggle] { background: none; border: 0; cursor: pointer; color: inherit; padding: 8px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; }
[data-theme-toggle] i { font-size: 22px; }
/* Visible chip variant for the desktop header */
.theme-chip { width: 44px; height: 44px; padding: 0 !important; justify-content: center; border-radius: 999px !important; background: rgba(21,153,167,.08) !important; border: 1px solid rgba(21,153,167,.25) !important; color: #0D6F78 !important; box-shadow: 0 2px 8px rgba(13,111,120,.06); transition: all .25s cubic-bezier(.22,1,.36,1); flex-shrink: 0; }
.theme-chip:hover { background: #1599A7 !important; border-color: #1599A7 !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(21,153,167,.3); }
.theme-chip i { font-size: 20px !important; }
html[data-theme="dark"] .theme-chip { background: rgba(242,200,182,.12) !important; border-color: rgba(242,200,182,.35) !important; color: #F2C8B6 !important; box-shadow: none; }
html[data-theme="dark"] .theme-chip:hover { background: #F2C8B6 !important; border-color: #F2C8B6 !important; color: #1F2A2E !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(242,200,182,.25); }

/* ==========================================================================
   MODE SOMBRE — html[data-theme="dark"] (surcharge des surfaces inline)
   ========================================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #121C1C;
  color: #ECEAE3;
}
html[data-theme="dark"] #pjax-main {
  background: #121C1C;
  color: #ECEAE3;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] {
  background: #121C1C !important;
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] {
  background: #16201F !important;
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="dark"] {
  background: #101A1C !important;
  color: #FAF8F4 !important;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="hero"] {
  color: #FAF8F4 !important;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] p,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] p,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] label,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] label,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] .content-body,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] .content-body,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] .event-meta,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] .event-meta {
  color: #AFC0BE !important;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] .serif,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] .serif,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] h1,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] h1,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] h2,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] h2,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] h3,
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] h3 {
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main em,
html[data-theme="dark"] #pjax-main .kicker,
html[data-theme="dark"] #pjax-main .link-arrow,
html[data-theme="dark"] #pjax-main .event-meta .ph,
html[data-theme="dark"] #pjax-main .contact-line .ph {
  color: #48C5D0 !important;
}
html[data-theme="dark"] #pjax-main .card,
html[data-theme="dark"] #pjax-main form,
html[data-theme="dark"] #pjax-main .event-body,
html[data-theme="dark"] #pjax-main .schedule-card,
html[data-theme="dark"] #pjax-main #partenaires .three-col > div,
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] [style*="background: rgb(250, 248, 244)"],
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] [style*="background: rgb(250, 248, 244)"],
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] [style*="background: rgb(255, 255, 255)"] {
  background: #1B2828 !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main #don .card[style*="linear-gradient"] {
  background: linear-gradient(155deg, #0D6F78, #1599A7) !important;
  color: #FAF8F4 !important;
}
html[data-theme="dark"] #pjax-main .schedule-card [style*="color"] {
  color: inherit !important;
}
html[data-theme="dark"] #pjax-main .schedule-card .kicker,
html[data-theme="dark"] #pjax-main [data-theme-surface="dark"] .kicker,
html[data-theme="dark"] #pjax-main [data-theme-surface="dark"] .link-arrow,
html[data-theme="dark"] #pjax-main [data-theme-surface="dark"] em {
  color: #F2C8B6 !important;
}
html[data-theme="dark"] #pjax-main .icon-badge {
  background: rgba(242,200,182,.14) !important;
  color: #F2C8B6 !important;
}
html[data-theme="dark"] #pjax-main .copy-card {
  background:#1B2828 !important;
  border-color:rgba(255,255,255,.1) !important;
  color:#ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main .copy-card strong { color:#ECEAE3 !important; }
html[data-theme="dark"] #pjax-main .copy-card p { color:#AFC0BE !important; }
html[data-theme="dark"] #pjax-main .copy-action,
html[data-theme="dark"] #pjax-main .copy-note,
html[data-theme="dark"] #pjax-main .copy-quote {
  background:#192A2B !important;
  border-color:#48C5D0 !important;
  color:#AFC0BE !important;
}
html[data-theme="dark"] #pjax-main .ev-date {
  background: rgba(18,28,28,.94) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #AFC0BE !important;
}
html[data-theme="dark"] #pjax-main .ev-date .serif {
  color: #48C5D0 !important;
}
html[data-theme="dark"] #pjax-main input,
html[data-theme="dark"] #pjax-main textarea,
html[data-theme="dark"] #pjax-main select {
  background: #16201F !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main .btn-ghost {
  color: #ECEAE3 !important;
  border-color: rgba(255,255,255,.28) !important;
}
html[data-theme="dark"] #pjax-main .btn-dark {
  background: #26403E !important;
  border-color: #26403E !important;
  color: #FAF8F4 !important;
}
html[data-theme="dark"] #pjax-main .btn-primary {
  background: #1599A7 !important;
  color: #fff !important;
}
html[data-theme="dark"] #pjax-main .btn-light {
  background: #FAF8F4 !important;
  color: #0D6F78 !important;
}
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] [style*="background:#FAF8F4"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] [style*="background:#FAF8F4"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] [style*="background: #FAF8F4"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] [style*="background: #FAF8F4"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] [style*="background:#fff"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] [style*="background:#fff"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="light"] [style*="background: #fff"]:not(.btn):not(.btn-light),
html[data-theme="dark"] #pjax-main [data-theme-surface="warm"] [style*="background: #fff"]:not(.btn):not(.btn-light) {
  background: #1B2828 !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main .since-card {
  background: #19282B !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #ECEAE3 !important;
}
html[data-theme="dark"] #pjax-main .since-card .kicker,
html[data-theme="dark"] #pjax-main .since-card .serif {
  color: #48C5D0 !important;
}
html[data-theme="dark"] #pjax-main .since-card div:last-child {
  color: #AFC0BE !important;
}
html[data-theme="dark"] #pjax-main [data-cms-block="hero"] .kicker {
  color: rgba(250,248,244,.84) !important;
}
html[data-theme="dark"] #pjax-main [data-cms-block="verse"] .kicker {
  color: #F2C8B6 !important;
}
html[data-theme="dark"] [style*="#E9DDD4"],
html[data-theme="dark"] [style*="#DDD7D0"],
html[data-theme="dark"] [style*="rgb(233, 221, 212)"],
html[data-theme="dark"] [style*="rgb(221, 215, 208)"] {
  border-color: rgba(255,255,255,.10) !important;
}
html[data-theme="dark"] header[style*="rgba(250,248,244"],
html[data-theme="dark"] header[style*="rgba(250, 248, 244"] {
  background: rgba(18,28,28,.88) !important;
  border-bottom-color: rgba(255,255,255,.07) !important;
}
html[data-theme="dark"] .eperm-bottomnav {
  background: #16201F;
  border-top-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] #mobile-menu {
  background: #121C1C;
}
html[data-theme="dark"] #mobile-menu nav a {
  color: #ECEAE3 !important;
  border-bottom-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] [data-theme-toggle] {
  color: #ECEAE3;
}
html[data-theme="dark"] body.menu-open .eperm-bottomnav {
  background: transparent;
  border-top-color: transparent;
}
html[data-theme="dark"] body.menu-open .eperm-bottomnav button[data-menu-open] {
  background: #F2C8B6;
  color: #1F2A2E;
}

/* Bouton thème dans le header (desktop) */
.theme-toggle-head { background: none; border: 0; cursor: pointer; padding: 6px; display: inline-flex; align-items: center; color: #1F2A2E; }
.theme-toggle-head i { font-size: 21px; }
html[data-theme="dark"] .theme-toggle-head { color: #ECEAE3; }
@media (max-width: 900px) { .theme-toggle-head { display: none !important; } }

.field-control { min-width: 0; }
.field-control > input { width: 100%; }
.field-error {
  margin: -8px 0 2px;
  color: #A63D3D;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #B54747 !important;
  box-shadow: 0 0 0 3px rgba(181,71,71,.12) !important;
}
html[data-theme="dark"] .field-error { color: #FFAAA2; }
