/* ============================================
   DIKKENUC - CSS Overrides & Custom Components
   Loaded AFTER garys-wondrous-site webflow.css
   ============================================
   BRANDBOOK PALETTE — Atomic Gold :
   #1a1147  — indigo profond (primary, CTAs)
   #f5a623  — or/ambre (accent, highlights)
   #1d1d1b  — noir (headings, dark sections)
   Dérivées :
   #faf5eb  — crème (background)
   #fff8e8  — or ultra-pale (alt background)
   #3d2a7a  — indigo clair (hover, secondary)
   #ffd166  — or clair (light accents)
   ============================================ */

/* ---- GLOBAL: reserve scrollbar space so content never shifts ---- */
html { scrollbar-gutter: stable; }

/* ---- BRAND NAME: DikkeNuc styling ---- */
b.dn { font-weight: 700; color: #f5a623; }
b.dn span { color: var(--violet); }
.section-dark b.dn,
.section-dark b.dn span,
.section-hero b.dn,
.section-hero b.dn span,
.section-footer b.dn,
.section-footer b.dn span { color: inherit; }

/* ---- PERF: GPU layers for animated elements ---- */
.brolz-border,
.progress-bar-fill,
.hero-image,
.hero-image-glow,
.badge-citoyen .badge-dot,
.blurred-red---hero,
.blurred-red---grid,
.blurred-red---banner,
.blurred-blue---hero,
.blurred-blue---grid,
.blurred-blue---banner {
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
/* Blobs: NO will-change/translateZ — they must honour z-index:-1 within isolation:isolate */

/* ---- SCROLL-ANIMATED BACKGROUND BLOBS ---- */
/* Container: isolation creates a local stacking context so blobs stay behind content */
.section-hero,
.section,
.section-footer {
  position: relative;
  isolation: isolate;
}

/* Footer — uniform background across all pages */
.section-footer {
  background-color: var(--background);
}

/* Clip blob / blurred-image overflow (prevents bleed into adjacent sections).
   NOTE: Not applied to #faq — its .faq-left needs position:sticky which breaks with overflow:hidden. */
.section-hero,
#vision,
#actualites,
#soutiens,
#partenaires,
#contact {
  overflow: hidden;
}

/* CSS-only gradient blobs — injected by JS into sections */
.scroll-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  -webkit-filter: blur(60px);
  filter: blur(60px);
  transition: none; /* JS drives transforms for perf */
}

/* Blob enters viewport → fade in + start breathing */
.scroll-blob.blob-visible {
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle ambient breathing — each blob gets a different speed via JS animation-duration */
@keyframes blob-breathe {
  0%   { scale: 1;    translate: 0 0; }
  25%  { scale: 1.06; translate: 12px -8px; }
  50%  { scale: 0.97; translate: -6px 10px; }
  75%  { scale: 1.04; translate: -10px -5px; }
  100% { scale: 1;    translate: 0 0; }
}

/* Blob color variants — Atomic Gold */
.scroll-blob.blob-violet {
  background: radial-gradient(circle, rgba(26, 17, 71, 0.35) 0%, rgba(26, 17, 71, 0.08) 60%, transparent 80%);
}
.scroll-blob.blob-green {
  background: radial-gradient(circle, rgba(245, 166, 35, 0.30) 0%, rgba(245, 166, 35, 0.06) 60%, transparent 80%);
}
.scroll-blob.blob-mixed {
  background: radial-gradient(circle, rgba(26, 17, 71, 0.20) 0%, rgba(245, 166, 35, 0.15) 40%, transparent 75%);
}

/* Blurred PNGs fully hidden — lights now via CSS on parent containers */
.blurred {
  z-index: -1;
  pointer-events: none;
  background: none !important;
}
.blurred img {
  display: none !important;
}

/* Atomic Gold ambient lights on grid/banner containers */
.blurred-grid {
  background: none;
}
.banner .grid-banner {
  background:
    radial-gradient(ellipse at 15% 40%, rgba(245, 166, 35, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 60%, rgba(26, 17, 71, 0.10) 0%, transparent 45%),
    var(--white) !important;
}

/* Content sits above blobs: z-index 2 > blobs at -1 */
.section .content,
.section-hero .content {
  position: relative;
  z-index: 2;
}
/* Form cards and brolz containers must also sit above blobs */
.form-bg,
.brolz-border,
.faq-item,
.grid-banner {
  position: relative;
  z-index: 3;
}

/* ---- 1. CSS VARIABLE OVERRIDES ---- */
:root {
  /* Remap template palette */
  --background: #faf5eb;
  --paragraphs: #1d1d1bc4;
  --heading: #1d1d1b;
  --sky-blue: #1a1147;             /* INDIGO → primary (was #2cc1ff) */
  --transparent-bg: #1a114710;     /* indigo très transparent (was #e6f1fa80) */
  --white: white;
  --shadow: #1a114712;
  --salmon: #f5a623;               /* OR/AMBRE → accent (was #fe6c66) */
  --border: #1d1d1b18;

  /* DikkeNuc custom tokens — Atomic Gold */
  --violet: #1a1147;
  --violet-light: #3d2a7a;
  --violet-pale: #faf5eb;
  --green-vif: #f5a623;
  --error: #c0392b;
  --error-light: rgba(192, 57, 43, 0.12);
  --green-light: #ffd166;
  --green-pale: #fff8e8;
  --noir: #1d1d1b;
  --gradient-brolz: linear-gradient(135deg, #f5a623, #1a1147, #ffd166, #3d2a7a);
}

/* ---- 2. HARDCODED COLOR OVERRIDES ---- */
.check-plan {
  background-color: #1a114712 !important;
}
.check-plan.accent-check {
  background-color: #f5a62318 !important;
}
.text-field::placeholder,
.textarea::placeholder {
  color: #1d1d1b50;
}
/* Link footer base color overridden in section 17 for better contrast */
.link-footer:hover {
  color: var(--violet);
}

/* Override body background */
body {
  background-color: var(--violet-pale) !important;
}

/* ---- 3. NAVBAR OVERRIDES ---- */
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--noir);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-text .accent {
  color: var(--violet);
}
.brand {
  display: flex;
  align-items: center;
}

/* Navbar background — frosted glass */
.navbar-bg {
  background-color: rgba(245, 240, 255, 0.7) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---- 4. LANGUAGE SWITCHER ---- */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 15px;
  align-items: center;
}
.lang-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--paragraphs);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  font-family: Manrope, sans-serif;
  line-height: 1;
}
.lang-btn.active,
.lang-btn:hover {
  background-color: var(--violet);
  border-color: var(--violet);
  color: var(--white);
}

/* ---- 5. BADGE CITOYEN ---- */
.badge-citoyen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f5a62314;
  border: 1.5px solid #f5a62350;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--noir);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.badge-citoyen .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-vif);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: translateZ(0) scale(1); }
  50% { opacity: 0.5; transform: translateZ(0) scale(1.3); }
}

/* ---- 6. STATS GRID (Hero counters) ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 700px;
  margin-top: 40px;
}
.stat-item {
  text-align: center;
  padding: 12px;
}
.stat-number {
  color: var(--violet);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--paragraphs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- 7. BROLZ ANIMATED GRADIENT BORDERS ---- */
@keyframes brolz-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.brolz-border {
  position: relative;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, var(--green-vif), var(--violet), var(--green-light), var(--violet-light));
  background-size: 300% 300%;
  animation: brolz-gradient 6s ease infinite;
}
.brolz-border .brolz-inner {
  background: var(--white);
  border-radius: 21px;
  height: 100%;
}
/* For feature cards with brolz */
.brolz-border .feature {
  box-shadow: none;
  border-radius: 21px;
}

/* ---- 8. VISION SECTION ---- */
/* Uniform heading-feature size across the site */
.heading-feature {
  font-size: 17px !important;
}

/* Spacing between icon and heading */
.block-heading-feature {
  gap: 16px;
}

.icon-vision {
  width: 48px;
  height: 48px;
  padding: 10px;
  background: #f5a62318;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  line-height: 1;
}

/* ---- 8b. POURQUOI — Compact layout ---- */
#pourquoi .paragraph-large {
  font-size: 16px !important;
  line-height: 160% !important;
  margin-bottom: 14px !important;
}
#pourquoi .grid-2-columns {
  grid-row-gap: 14px !important;
  grid-column-gap: 14px !important;
}
#pourquoi .feature {
  padding: 22px 26px 18px !important;
}
#pourquoi .icon-vision {
  width: 38px;
  height: 38px;
  padding: 8px;
  font-size: 20px;
  border-radius: 11px;
}
#pourquoi .block-heading-feature {
  gap: 12px;
  margin-bottom: 14px;
}
#pourquoi .feature p {
  font-size: 14px;
  line-height: 160%;
}
#pourquoi .heading-feature {
  font-size: 17px;
}

/* ---- 8c. PARTICIPER — Horizontal 4-col layout ---- */
#participer .grid-2-columns {
  grid-template-columns: repeat(4, 1fr) !important;
  grid-row-gap: 14px !important;
  grid-column-gap: 14px !important;
}
#participer .block-blog {
  padding: 22px !important;
}
#participer .news-card-img {
  font-size: 28px;
  margin-bottom: 8px;
}
#participer .heading-blog {
  font-size: 16px;
}
#participer .paragraph-summary {
  font-size: 13px;
  line-height: 155%;
}
#participer .link-heading-blog {
  margin-bottom: 10px;
}
@media screen and (max-width: 991px) {
  #participer .grid-2-columns {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media screen and (max-width: 479px) {
  #participer .grid-2-columns {
    grid-template-columns: 1fr !important;
  }
}

/* ---- 9. NEWS TAGS ---- */
.tag-news {
  display: inline-block;
  align-self: flex-start;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--white);
}
.tag-news.green { background-color: var(--green-vif); color: var(--noir); }
.tag-news.mauve { background-color: var(--violet); }
.tag-news.dark { background-color: var(--noir); color: var(--white); }

/* News cards — equal height */
.grid-3-columns {
  align-items: stretch !important;
}
.block-blog {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.block-blog .paragraph-summary {
  flex: 1;
}

/* News card with image placeholder */
.news-card-img {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #f5a62330, #1a114730);
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}

/* ---- 10. PROGRESS BAR ---- */
.progress-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 50px;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--noir);
}
.progress-text .progress-count {
  color: var(--violet);
}
.progress-bar-bg {
  background-color: #1a114714;
  border-radius: 14px;
  height: 28px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-vif), var(--violet), var(--violet-light));
  background-size: 300% 300%;
  animation: brolz-gradient 6s ease infinite;
  width: 0%;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- 11. SUPPORT FORMS ---- */
/* Homepage form cards — inherit compact styles, just minor tweaks */
#soutiens .form-bg {
  padding: 28px 28px 32px !important;
}
#soutiens .brolz-inner.form-bg {
  padding: 28px 28px 32px !important;
}
.form-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--noir);
}
.form-card-subtitle {
  font-size: 13px;
  color: var(--paragraphs);
  margin-bottom: 10px;
}

/* Character counter */
.char-count {
  font-size: 12px;
  color: var(--paragraphs);
  text-align: right;
  margin-top: 4px;
}

/* Custom checkboxes — clean, no box border */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  margin: 4px 0;
}
.checkbox-group-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  color: var(--noir);
  margin-bottom: 2px;
  margin-top: 4px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--noir);
  cursor: pointer;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: color 0.15s;
}
.checkbox-label:hover {
  color: var(--violet);
}
.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--violet);
  cursor: pointer;
  flex-shrink: 0;
}
/* Safari <15.4 accent-color fallback — ensure checkboxes are styled */
@supports not (accent-color: auto) {
  .checkbox-label input[type="checkbox"],
  .checkbox-label input[type="radio"] {
    -webkit-appearance: checkbox;
  }
}

/* RGPD consent — block layout so text + link flow naturally inline */
.checkbox-rgpd {
  grid-column: 1 / -1;
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paragraphs);
  padding-top: 8px;
}
.checkbox-rgpd input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  top: -1px;
}
.checkbox-rgpd a {
  color: var(--violet);
  text-decoration: underline;
}

/* Full-width checkboxes when text is long — block layout for natural text flow */
.checkbox-group--stack {
  grid-template-columns: 1fr;
}
.checkbox-group--stack .checkbox-label {
  display: block;
}
.checkbox-group--stack .checkbox-label input[type="checkbox"],
.checkbox-group--stack .checkbox-label input[type="radio"] {
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

@media (max-width: 479px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

/* Accent badge for volunteer form */
.form-accent-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--green-vif);
  color: var(--noir);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px -3px rgba(245, 166, 35, 0.5);
}

/* Contact page — left column stretches to match form height */
.contact-left {
  display: flex;
  flex-direction: column;
}

/* Contact page — reasons list */
.contact-reasons {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-reasons li {
  font-size: 15px;
  font-weight: 500;
  color: var(--noir);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-reasons li::before {
  content: '\2192\00a0';
  color: var(--violet);
  font-weight: 700;
}
.contact-reasons li:last-child {
  border-bottom: none;
}

/* Contact direct card — fills remaining space */
.contact-direct {
  margin-top: auto;
  background: var(--violet);
  border-radius: 16px;
  padding: 28px 32px;
}
.contact-direct-title {
  color: var(--green-vif);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-direct-email {
  margin-bottom: 4px;
}
.contact-direct-email a {
  color: var(--green-vif);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.contact-direct-email a:hover {
  color: var(--green-vif);
  text-decoration: underline;
}
.contact-direct-location {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin: 0;
}

/* Text field focus with violet */
.text-field:focus,
.textarea:focus {
  border-color: var(--violet) !important;
}

/* ---- 12. PARTNER LOGOS ---- */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  padding: 30px 0 50px;
}
.partner-logo {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}
/* SVG placeholder partner logos */
.partner-placeholder {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  background: #1a114710;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--noir);
  opacity: 0.6;
  transition: opacity 0.3s, background-color 0.3s, color 0.3s;
}
.partner-placeholder:hover {
  opacity: 1;
  background: #f5a62320;
  color: var(--violet);
}

/* ---- 13. TOAST NOTIFICATION ---- */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--violet);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  z-index: 10000;
  box-shadow: 0 15px 40px -10px rgba(26, 17, 71, 0.5);
  transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 90vw;
  text-align: center;
  font-family: Manrope, sans-serif;
}
.toast.show {
  bottom: 30px;
}
.toast.error {
  background-color: var(--error);
  box-shadow: 0 15px 40px -10px var(--error-light);
}

/* ---- 14. FAQ (native <details>/<summary>) ---- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.faq-left {
  position: sticky;
  top: 100px;
}
.faq-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Individual FAQ item */
.faq-item {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.faq-item:hover {
  border-color: #1a114740;
}
.faq-item[open] {
  border-color: var(--violet);
  box-shadow: 0 4px 20px -4px rgba(26, 17, 71, 0.12);
}

/* Question row (the clickable summary) */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--violet);
  list-style: none; /* remove default marker */
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.2s ease;
}
/* Remove default <summary> arrow in all browsers */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ""; }

.faq-question:hover {
  color: var(--violet);
}

/* Chevron icon */
.faq-chevron {
  flex-shrink: 0;
  stroke: var(--noir);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.2s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--violet);
}

/* Answer content */
.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paragraphs);
  animation: faq-slide-down 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media screen and (max-width: 767px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .faq-left {
    position: static;
  }
  .faq-question {
    padding: 16px 20px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
  }
}

/* ---- 15. i18n LANGUAGE SYSTEM ---- */
[data-lang] { display: none; }
html[lang="fr"] [data-lang="fr"] { display: block; }
html[lang="nl"] [data-lang="nl"] { display: block; }
html[lang="en"] [data-lang="en"] { display: block; }

/* Inline variants for spans inside headings/buttons */
span[data-lang] { display: none; }
html[lang="fr"] span[data-lang="fr"] { display: inline; }
html[lang="nl"] span[data-lang="nl"] { display: inline; }
html[lang="en"] span[data-lang="en"] { display: inline; }

/* ---- 16. SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 17. MISC OVERRIDES ---- */

/* Keyboard-visible focus rings (a11y: WCAG 2.4.7) */
/* :focus fallback for older Safari (<15.4) that doesn't support :focus-visible */
:focus {
  outline: 3px solid var(--green-vif);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--green-vif);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Buttons/inputs get adapted focus ring shape */
.button:focus-visible,
.button-small:focus-visible,
.nav-button:focus-visible,
.text-field:focus-visible,
.textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green-vif);
  outline-offset: 2px;
}
.faq-question:focus-visible {
  outline: 3px solid var(--green-vif);
  outline-offset: -2px;
  border-radius: 16px;
}
.checkbox-label:focus-visible,
.partner-logo:focus-visible,
.partner-placeholder:focus-visible,
.sidebar-article:focus-visible,
.article-breadcrumb a:focus-visible {
  outline: 3px solid var(--green-vif);
  outline-offset: 2px;
  border-radius: 4px;
}

/* cursor: pointer + iOS tap delay fix on all interactive elements */
.button, .button-small, .nav-button, .nav-link,
.feature a, .share-btn, .share-btn-link,
.lang-btn, .checkbox-label, .tag-news,
.partner-logo, .partner-placeholder, .sidebar-article,
summary.faq-question {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Ensure no blue/salmon leaks - secondary hovers */
a:hover {
  color: var(--violet);
}
blockquote {
  border-left-color: var(--violet);
}

/* Improve footer link contrast — WCAG AA 4.5:1 minimum */
.link-footer {
  color: #1d1d1ba6;
}
.text-footer-down {
  color: #1d1d1b99;
}
.link-footer--disabled {
  opacity: 0.5;
  cursor: default;
}

/* Footer animated logo — centered above first grid column */
.footer-logo-top {
  width: 25%;
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-logo-video {
  width: 128px;
  height: 128px;
  object-fit: contain;
}
@media screen and (max-width: 767px) {
  .footer-logo-top {
    width: 50%;
  }
}
@media screen and (max-width: 479px) {
  .footer-logo-top {
    width: 100%;
  }
}

/* Footer grid layout + responsive */
.grid-footer {
  grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 767px) {
  .grid-footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    padding: 36px 0 0;
  }
}
@media screen and (max-width: 479px) {
  .grid-footer {
    grid-template-columns: 1fr;
  }
}

/* Skip-to-content link (a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--violet);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  font-size: 14px;
  z-index: 100000;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---- FORM OVERHAUL — compact, clean, no field removed ---- */

/* Tighter form container */
.form-bg {
  padding: 36px 40px 40px;
}
@media (max-width: 767px) {
  .form-bg { padding: 24px 20px 28px; }
}

/* Tighter form grid gap */
.form { grid-row-gap: 8px; }

/* Compact text fields — smaller, modern radius */
.text-field {
  height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 12px;
}
.textarea {
  min-height: 110px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 14px;
  max-width: 100%;
}

/* Select dropdown — match text-field */
select {
  height: 44px;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--heading);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231d1d1b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
select:focus { border-color: var(--violet); outline: none; }

/* Form groups and labels */
.form-group { display: flex; flex-direction: column; margin-bottom: 4px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--noir); margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 767px) { .form-row { grid-template-columns: 1fr; } }

/* Separator — subtle visual break */
.separator {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Form: required field asterisk */
.form-required::after {
  content: ' *';
  color: var(--error);
  font-weight: 700;
}

/* Screen-reader only */
.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;
}

/* Form: submit button loading state */
.button--loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}
.button--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Form: inline validation error state */
.text-field.field-error,
.textarea.field-error,
select.field-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px var(--error-light);
}
.field-error-msg {
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* (img-banner styled in section 18 below) */

/* ---- HERO SPLIT LAYOUT ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}
.hero-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.hero-text .badge-citoyen {
  margin-bottom: 0;
  align-self: flex-start;
}
.hero-text .heading-hero {
  text-align: left;
  margin-bottom: 0;
}
.hero-text .paragraph-large {
  text-align: left;
  max-width: 540px;
  font-size: 17px !important;
  line-height: 1.8 !important;
  margin: 0 auto 0 0;
}
.hero-text .grid-button {
  justify-content: flex-start;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 28px;
  position: relative;
  z-index: 2;
  animation: hero-float 6s ease-in-out infinite;
  -webkit-filter: drop-shadow(0 20px 40px rgba(26, 17, 71, 0.18));
  filter: drop-shadow(0 20px 40px rgba(26, 17, 71, 0.18));
}
.hero-image-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.3) 0%, rgba(26, 17, 71, 0.15) 40%, transparent 70%);
  -webkit-filter: blur(40px);
  filter: blur(40px);
  z-index: 1;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes hero-float {
  0%, 100% { transform: translateZ(0) translateY(0); }
  50% { transform: translateZ(0) translateY(-12px); }
}
@keyframes glow-pulse {
  0% { opacity: 0.6; transform: translateZ(0) scale(0.95); }
  100% { opacity: 1; transform: translateZ(0) scale(1.05); }
}

/* Hero full viewport height — use dvh for iOS Safari toolbar, fallback to vh */
.section-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero special styling — compact */
.heading-hero {
  font-size: 48px;
  line-height: 1.08;
  margin-bottom: 0;
}

/* Accent text color */
.text-green { color: var(--green-vif); }
.text-violet { color: var(--violet); }

/* Section backgrounds + compact spacing */
.section {
  background-color: var(--violet-pale);
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}
.section-hero {
  padding: 110px 25px 30px !important;
}
.block-heading {
  margin-bottom: 10px;
}
.paragraph-large {
  margin-bottom: 20px !important;
  font-size: 18px !important;
}

/* Feature cards — equal height + compact */
.grid-2-columns {
  align-items: stretch !important;
  grid-row-gap: 20px !important;
  grid-column-gap: 20px !important;
}

/* Global rule: 3-col grids stay 3 columns on desktop */
.grid-3-columns,
.grid-3-equal,
.grid-steps {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media screen and (max-width: 767px) {
  .grid-3-columns,
  .grid-3-equal,
  .grid-steps {
    grid-template-columns: 1fr !important;
  }
}
.feature {
  background: var(--white) !important;
  border: 1px solid #1a114712;
  height: 100%;
  box-sizing: border-box;
  padding: 30px 35px 25px !important;
  display: flex;
  flex-direction: column;
}
.feature.text-center {
  align-items: center;
}
.feature .paragraph-summary {
  flex: 1;
}
.feature .button {
  margin-top: auto;
}
.brolz-border {
  height: 100%;
}
.brolz-border .brolz-inner {
  height: 100%;
}
.brolz-border .feature {
  height: 100%;
}

/* Testimonial client row — ensure gap between avatar and info */
.client {
  gap: 14px;
}

/* Testimonials — opaque white, no backdrop-filter (perf) */
.testimonial {
  background-color: rgba(255, 255, 255, 0.82) !important;
}

/* Sequence cards */
.sequence {
  background-color: #1a114708 !important;
}

/* ---- BLURRED LIGHTS: Hide PNGs, use CSS gradient on container (Atomic Gold) ---- */
.blurred-red---hero,
.blurred-red---grid,
.blurred-red---banner,
.blurred-blue---hero,
.blurred-blue---grid,
.blurred-blue---banner {
  display: none !important;
}

/* Banner section — white left, animated map right */
.banner {
  background-color: transparent !important;
  overflow: hidden;              /* clip blurred PNGs within the banner box */
}
/* Banner blurred light sizing */
.banner .blurred {
  top: 15%;
  bottom: 15%;
  height: 70%;
}
.grid-banner {
  background-color: var(--white) !important;
  overflow: hidden;
}

/* ---- REJOIGNEZ LE MOUVEMENT — gold border card ---- */
#rejoignez .grid-2-columns.single {
  border: 2px solid #f5a623;
  border-radius: 24px;
  overflow: hidden;
  grid-column-gap: 0 !important;
  grid-row-gap: 0 !important;
  gap: 0 !important;
  background: #fff8e8;
}
#rejoignez .block-left {
  padding: 40px 36px;
  background: transparent;
}
#rejoignez .block-left .heading {
  color: var(--violet);
}
#rejoignez .block-left p,
#rejoignez .block-left .paragraph-large {
  color: var(--paragraphs);
}
#rejoignez .block-left .text-bold-600 {
  color: var(--violet);
}

/* ---- BELGIUM MAP ANIMATION ---- */
.belgium-map-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 30px 20px;
  background: transparent;
  overflow: hidden;
}

.belgium-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Province shapes */
.belgium-svg .province {
  fill: rgba(26, 17, 71, 0.08);
  stroke: rgba(26, 17, 71, 0.25);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 0.4s ease;
}
.belgium-svg .province:hover {
  fill: rgba(26, 17, 71, 0.15);
}
/* Brussels highlight */
.belgium-svg .province-bxl {
  fill: rgba(26, 17, 71, 0.18);
  stroke: rgba(26, 17, 71, 0.5);
  stroke-width: 2.5;
}

/* Animated dots — spawned by JS */
.map-dot {
  fill: var(--violet);
  opacity: 0;
  animation: map-dot-appear 3s ease-out forwards;
}
.map-dot-ring {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.5;
  opacity: 0;
  animation: map-dot-ring 3s ease-out forwards;
}

/* Green variant dots */
.map-dot.green {
  fill: var(--green-vif);
}
.map-dot-ring.green {
  stroke: var(--green-vif);
}

@keyframes map-dot-appear {
  0% { opacity: 0; r: 0; }
  15% { opacity: 1; r: 5; }
  30% { opacity: 1; r: 3.5; }
  100% { opacity: 0.7; r: 3.5; }
}
@keyframes map-dot-ring {
  0% { opacity: 0; r: 0; stroke-width: 2; }
  15% { opacity: 0.6; r: 5; stroke-width: 2; }
  60% { opacity: 0.15; r: 16; stroke-width: 0.5; }
  100% { opacity: 0; r: 22; stroke-width: 0; }
}

/* Live counter overlay */
.map-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 20px -4px rgba(26, 17, 71, 0.15);
  white-space: nowrap;
}
.map-counter-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.map-counter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--paragraphs);
}

/* Section dark variant — uses violet */
.section-dark {
  background-color: var(--violet);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
  color: var(--white);
}
.section-dark .heading,
.section-dark .heading-feature {
  color: var(--white);
}
.section-dark p, .section-dark .paragraph-large {
  color: rgba(255,255,255,0.7);
}
.section-dark strong {
  color: var(--green-vif);
}
/* Buttons in dark sections — swap to gold primary */
.section-dark .button:not(.white) {
  background-color: var(--green-vif) !important;
  color: var(--noir) !important;
}
.section-dark .button:not(.white):hover {
  background-color: #ffd166 !important;
  color: var(--noir) !important;
  box-shadow: 0 15px 50px -10px rgba(245, 166, 35, 0.4) !important;
}
.section-dark .button.white {
  background-color: rgba(255,255,255,0.15) !important;
  color: var(--white) !important;
}
.section-dark .button.white:hover {
  background-color: rgba(255,255,255,0.25) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}
.section-dark .text-field::placeholder {
  color: rgba(255,255,255,0.4);
}
/* Reset colors inside white-background cards within dark sections */
.section-dark .feature h1, .section-dark .feature h2, .section-dark .feature h3,
.section-dark .feature h4, .section-dark .feature h5, .section-dark .feature h6,
.section-dark .feature .heading-feature {
  color: var(--noir);
}
.section-dark .feature p,
.section-dark .feature .paragraph-summary,
.section-dark .feature .paragraph-large {
  color: var(--paragraphs);
}

/* Button: violet primary */
.button,
.button-small,
.nav-button {
  background-color: var(--violet) !important;
}
.nav-button:hover {
  background-color: var(--violet-light) !important;
  box-shadow: 0 10px 30px -10px rgba(26, 17, 71, 0.4) !important;
}

/* Secondary button — green (same structure as primary, different color) */
.button.white {
  background-color: var(--green-vif) !important;
  color: var(--noir) !important;
  box-shadow: none;
  border: none !important;
  transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              color 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s !important;
}

/* ---- CTA HOVER — subtle glow, no reflow ---- */
.button,
.button-small,
.nav-button {
  white-space: nowrap;
  min-width: 220px;
  box-sizing: border-box;
  transform: translateY(0);
  transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              color 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}
/* Primary violet hover */
.button:not(.white):hover,
.button-small:hover {
  background-color: var(--violet-light) !important;
  box-shadow: 0 15px 50px -10px rgba(26, 17, 71, 0.4) !important;
  transform: translateY(-2px);
}
/* Secondary green hover */
.button.white:hover {
  background-color: #ffd166 !important;
  color: var(--noir) !important;
  box-shadow: 0 15px 50px -10px rgba(245, 166, 35, 0.4) !important;
  transform: translateY(-2px);
}

/* ===== UTILITY CLASSES ===== */

.section--compact {
  padding: 40px 0 !important;
}
.content--narrow {
  max-width: 780px;
}
.plan-step p + p {
  margin-top: 10px;
  font-weight: 500;
}
.text-bold-600 {
  font-weight: 600;
}
.text-bold-500 {
  font-weight: 500;
}
.mt-24 {
  margin-top: 24px;
}

.section-white {
  background-color: var(--white);
}

.text-center {
  text-align: center;
}

.icon-emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto;
}

.section-hero--subpage {
  min-height: auto;
  padding: 160px 25px 60px;
  background-color: var(--violet);
}
.section-hero--subpage h1,
.section-hero--subpage h2,
.section-hero--subpage h3 {
  color: var(--white);
}
.section-hero--subpage p,
.section-hero--subpage .paragraph-large {
  color: rgba(255, 255, 255, 0.75);
}
.section-hero--subpage strong {
  color: var(--green-vif);
}
.section-hero--subpage .badge-citoyen {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green-vif);
}
.section-hero--subpage .stat-number {
  color: var(--green-vif);
}

/* ---- 19. RESPONSIVE OVERRIDES ---- */
@media screen and (max-width: 991px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .hero-image { max-width: 360px; }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-number { font-size: 30px; }
  .lang-switcher { margin-left: 8px; }
  .heading-hero { font-size: 38px; }
}

@media screen and (max-width: 767px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-text {
    text-align: center;
    align-items: center;
    order: 1;
  }
  .hero-text .heading-hero,
  .hero-text .paragraph-large {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text .grid-button {
    justify-content: center;
  }
  .hero-image-wrapper {
    order: 2;
  }
  .hero-image {
    max-width: 340px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  .stat-number { font-size: 36px; }
  .stat-item { padding: 12px; }
  .heading-hero { font-size: 42px; }
  .partner-logos { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .partner-placeholder { height: 42px; }
  .progress-container { margin-bottom: 30px; }
  .belgium-map-container {
    min-height: 280px;
    padding: 20px 15px;
    border-radius: 16px;
  }
  .belgium-svg { max-width: 320px; }
  .map-counter { padding: 6px 14px; }
  .map-counter-number { font-size: 18px; }
  .map-counter-label { font-size: 12px; }
}

@media screen and (max-width: 479px) {
  .hero-image { max-width: 260px; border-radius: 20px; }
  .stat-number { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .heading-hero { font-size: 34px; }
  .lang-switcher { display: none; }
  .badge-citoyen { font-size: 12px; padding: 6px 14px; }
  .form-card-title { font-size: 20px; }
  .toast { font-size: 14px; padding: 12px 20px; }
  .news-card-img { height: 140px; }
  .partner-logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-placeholder { height: 38px; font-size: 11px; }
}

/* ============================================
   PALETTE SWITCHER — Vert/Mauve ↔ Atomic Gold
   ============================================ */

/* ---- BLOG CARDS ---- */
.blog-card {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card .heading-blog {
  font-size: 18px;
  line-height: 130%;
}
.blog-card .link-heading-blog {
  margin-bottom: 12px;
}
.blog-card-image {
  flex-shrink: 0;
  overflow: hidden;
}
.blog-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--paragraphs);
  opacity: 0.6;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}
.blog-read-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--paragraphs);
  opacity: 0.5;
}

/* Blog article page */
.article-hero {
  position: relative;
  background: linear-gradient(135deg, #fff8e8, #f5a62315);
  padding: 60px 0 40px;
  text-align: center;
}
.article-breadcrumb {
  font-size: 14px;
  color: var(--paragraphs);
  opacity: 0.6;
  margin-bottom: 24px;
}
.article-breadcrumb a {
  color: var(--violet);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 14px;
  color: var(--paragraphs);
  opacity: 0.7;
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 50px 20px 60px;
}
.article-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  margin: 40px 0 16px;
  line-height: 1.25;
}
.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin: 32px 0 12px;
  line-height: 1.3;
}
.article-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--paragraphs);
  margin-bottom: 18px;
}
.article-content ul {
  margin: 16px 0 24px 24px;
  padding: 0;
}
.article-content ul li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--paragraphs);
  margin-bottom: 8px;
  position: relative;
  padding-left: 8px;
}
.article-content ul li::marker {
  color: var(--green-vif);
}
.article-content strong {
  color: var(--heading);
  font-weight: 700;
}
.article-highlight {
  background: linear-gradient(135deg, #f5a62312, #1a114708);
  border-left: 4px solid var(--green-vif);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}
.article-highlight p {
  margin-bottom: 0;
  font-weight: 500;
}
.article-cta-box {
  background: var(--violet);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin: 50px 0 20px;
}
.article-cta-box h3 {
  color: var(--white);
  margin-top: 0;
}
.article-cta-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.article-cta-box .button {
  background: var(--green-vif) !important;
  color: var(--noir) !important;
  border-color: var(--green-vif) !important;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.article-share span {
  font-size: 14px;
  font-weight: 600;
  color: var(--paragraphs);
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s, border-color 0.2s;
}
.share-btn:hover {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--white);
}
.article-sidebar {
  position: sticky;
  top: 100px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--heading);
}
.sidebar-article {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}
.sidebar-article:last-child {
  border-bottom: none;
}
.sidebar-article:hover {
  color: var(--violet);
}
.sidebar-article .sidebar-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-vif);
  display: block;
  margin-bottom: 4px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 60px;
}
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

/* ---- SAFARI COMPAT: flex gap fallback for Safari <14.1 ---- */
@supports not (gap: 1px) {
  .lang-switcher > * + *,
  .breadcrumb > * + *,
  .article-meta > * + *,
  .article-share > * + * {
    margin-left: 8px;
  }
  .contact-reasons > * + * {
    margin-top: 0;
  }
  .faq-right > * + * {
    margin-top: 12px;
  }
  .blog-card-meta > * + * {
    margin-left: 12px;
  }
}

/* ---- PERF: reduce motion for users who prefer it ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- BREADCRUMBS ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(26, 17, 71, 0.5);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(26, 17, 71, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--violet);
}
.breadcrumb-sep {
  font-size: 12px;
}
.breadcrumb-current {
  color: var(--violet);
  font-weight: 500;
}
.section-dark .breadcrumb,
.section-dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}
.section-dark .breadcrumb a:hover {
  color: var(--white);
}
.section-dark .breadcrumb-current {
  color: var(--white);
}

/* ---- HOMEPAGE: Hero subheading ---- */
.hero-subheading {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-vif);
  margin-bottom: 12px;
}
.hero-body-text {
  margin-top: 16px;
}
.hero-body-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraphs);
  margin-bottom: 12px;
}
.hero-body-text p:last-child {
  margin-bottom: 0;
}

/* ---- HOMEPAGE: Prose block ---- */
.prose-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--paragraphs);
  margin-bottom: 16px;
}
.section-dark .prose-block p {
  color: rgba(255,255,255,0.7);
}

/* Typewriter animation — characters revealed one by one */
.prose-typewriter .char {
  opacity: 0;
  display: inline;
  transition: opacity 0.08s ease;
}
.prose-typewriter .char.visible {
  opacity: 1;
}

/* ---- HOMEPAGE: Impact callout ---- */
.impact-callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 32px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(26, 17, 71, 0.04), rgba(245, 166, 35, 0.06));
  border-left: 4px solid var(--violet);
  border-radius: 0 16px 16px 0;
}
.impact-line {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.4;
}

/* ---- HOMEPAGE: Citizen counter ---- */
.citizen-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 32px;
  background: var(--violet);
  border-radius: 16px;
  color: var(--white);
}
.citizen-counter-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--green-vif);
  font-variant-numeric: tabular-nums;
}
.citizen-counter-label {
  font-size: 18px;
  font-weight: 500;
}

/* ---- HOMEPAGE: Styled list ---- */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.styled-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--paragraphs);
  margin-bottom: 10px;
}
.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--green-vif);
  border-radius: 50%;
}

#pourquoi-maintenant .block-heading,
#participer .block-heading,
#plan .block-heading,
#blog .block-heading {
  text-align: center;
  width: 100%;
}
#blog .block-heading .styled-list {
  display: inline-block;
  text-align: left;
}
#pourquoi-maintenant .heading,
#participer .heading,
#plan .heading,
#blog .heading {
  margin-left: auto;
  margin-right: auto;
}
#participer .block-heading .paragraph-large,
#plan .block-heading .paragraph-large,
#blog .block-heading .paragraph-large {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* ---- HOMEPAGE: Why now cards ---- */
.why-now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.why-now-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(26, 17, 71, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.why-now-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 17, 71, 0.10);
}
.why-now-icon {
  display: block;
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1;
}
.why-now-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paragraphs);
  margin: 0;
}
@media screen and (max-width: 767px) {
  .why-now-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* ---- HOMEPAGE: Levier section (dark narrative) ---- */
.levier-accent-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.levier-accent-line::before,
.levier-accent-line::after {
  content: '';
  height: 2px;
  width: 40px;
  background: var(--green-vif);
  border-radius: 2px;
}
.levier-accent-line .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-vif);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.levier-heading {
  text-align: center;
  margin-bottom: 40px;
}
.levier-heading .heading {
  margin-bottom: 0;
}

.levier-callout {
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--green-vif);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.levier-callout p {
  font-size: 19px !important;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white) !important;
  margin: 0;
}

.levier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0;
}
.levier-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.levier-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 166, 35, 0.3);
}
.levier-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.levier-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--green-vif);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.levier-card p {
  font-size: 16px !important;
  font-weight: 600;
  color: var(--white) !important;
  margin: 0;
}

/* Citizen counter — gold variant inside dark section */
.section-dark .citizen-counter {
  background: var(--green-vif);
  color: var(--noir);
}
.section-dark .citizen-counter-number {
  color: var(--violet);
}
.section-dark .citizen-counter-label {
  color: var(--noir);
}

@media screen and (max-width: 767px) {
  .levier-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .levier-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .levier-card-icon {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ---- HOMEPAGE: Participate cards ---- */
.participate-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.participate-card:hover {
  box-shadow: 0 20px 60px -15px rgba(26, 17, 71, 0.15);
  border-color: var(--violet);
}
.participate-card .heading-feature {
  font-size: 22px;
  margin-bottom: 4px;
}
.participate-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--paragraphs);
}
.participate-card .button {
  margin-top: auto;
}

/* ---- RESPONSIVE: New homepage elements ---- */
@media screen and (max-width: 767px) {
  .hero-subheading { font-size: 14px; }
  .hero-body-text p { font-size: 15px; }
  .impact-callout { padding: 20px 24px; }
  .impact-line { font-size: 18px; }
  .citizen-counter { flex-direction: column; gap: 4px; padding: 16px 24px; }
  .citizen-counter-number { font-size: 36px; }
  .citizen-counter-label { font-size: 16px; text-align: center; }
  .hero-text .hero-subheading,
  .hero-text .hero-body-text,
  .hero-text .hero-body-text p { text-align: center; }
}
@media screen and (max-width: 479px) {
  .impact-line { font-size: 16px; }
  .citizen-counter-number { font-size: 30px; }
  .citizen-counter-label { font-size: 14px; }
}
