.hero { position: relative; background: var(--lapis); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { /* motif : quatre quartiers de médaillon, évocation des mains entrelacées */
  content: ""; position: absolute; z-index: -1; right: -14rem; top: -10rem; width: 46rem; aspect-ratio: 1; border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 24%, var(--blanc-16) 24% 25%, transparent 25% 49%, var(--blanc-16) 49% 50%, transparent 50% 74%, var(--blanc-16) 74% 75%, transparent 75% 99%, var(--blanc-16) 99% 100%);
  box-shadow: inset 0 0 0 2px var(--blanc-16), inset 0 0 0 5rem rgb(255 255 255 / 0.03), inset 0 0 0 5.15rem var(--blanc-16);
}
.hero::after { content: ""; position: absolute; z-index: -1; right: 6rem; top: 3rem; width: 1.1rem; aspect-ratio: 1; border-radius: 50%; background: var(--or); }
.hero .wrap { padding-block: clamp(3rem, 7vw, 6rem) clamp(7rem, 11vw, 9.5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; align-items: end; }
.hero h1 em { font-style: normal; color: var(--or); }
.hero .lead { margin-top: 1.5rem; max-width: 34ch; color: var(--blanc-72); }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-hours { margin-top: 1.1rem; font-size: 1rem; color: var(--blanc-72); }

.hero-video { margin: 0 auto; width: min(100%, 340px); background: var(--nuit); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.hero-video video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 9 / 16; background: #000; }

/* ---------- Compteurs en direct ---------- */
.live { position: relative; margin-top: -5.2rem; z-index: 2; background: linear-gradient(to bottom, transparent 5.2rem, var(--brume) 5.2rem); }
.live-card { background: #fff; color: var(--nuit); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem) 1.5rem; }
.live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; margin-bottom: 1.1rem; }
.live-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: 0; display: flex; align-items: center; gap: .7rem; }
.pulse { width: .7rem; height: .7rem; border-radius: 50%; background: #1f9d6a; box-shadow: 0 0 0 0 rgb(31 157 106 / .55); animation: pulse 2.2s infinite; }
.live[data-state="degraded"] .pulse { background: var(--or); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .6rem rgb(31 157 106 / 0); } 100% { box-shadow: 0 0 0 0 rgb(31 157 106 / 0); } }
.live-meta { font-size: .95rem; color: var(--nuit-70); font-weight: 600; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.figures > div { padding: .3rem 1.4rem; border-left: 1px solid var(--nuit-12); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures dt { font-size: 1rem; font-weight: 700; color: var(--nuit-70); order: 2; }
.figures dd { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figures > div { display: flex; flex-direction: column; gap: .45rem; }
.figures small { display: block; font-weight: 500; font-size: .9rem; color: var(--nuit-70); }

/* Parcours : une ligne du temps, pas des cartes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 1.15rem; right: 1.15rem; top: 1.15rem; height: 3px; background: var(--nuit); opacity: .14; }
.steps li { position: relative; padding-top: 3.6rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--or); color: var(--nuit); font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--brume); }
.steps h3 { margin-bottom: .6rem; }
.steps p { max-width: 30ch; }

/* Entrée « Je suis en difficulté » */
.door { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.door h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-align: center; }
.door ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.door li { padding-left: 1.7rem; position: relative; }
.door li::before { content: ""; position: absolute; left: 0; top: .6em; width: .9rem; height: 3px; background: var(--or); border-radius: 2px; }
.door-a { background: var(--brume); }
.door .btn { margin-top: auto; }

/* Réseau : une phrase, pas un mur de métriques */
.statement { font-weight: 700; font-size: clamp(1.5rem, 3.3vw, 2.5rem); line-height: 1.3; max-width: 30em; text-wrap: pretty; }
.statement mark { background: none; color: var(--or); font-weight: 800; }
.statement-foot { margin-top: 2rem; color: var(--blanc-72); max-width: 52ch; }

/* Bilan budgétaire : barres appariées */
.bilan { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pairs { display: grid; gap: 1.5rem; margin: 0; }
.pair dt { font-weight: 800; margin-bottom: .45rem; display: flex; justify-content: space-between; gap: 1rem; }
.pair dd { margin: 0; display: grid; gap: .35rem; }
.bar { display: flex; align-items: center; gap: .7rem; font-size: .95rem; font-weight: 700; }
.bar i { display: block; height: 1.05rem; border-radius: 0 6px 6px 0; width: var(--w); clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.bar.avant i { background: var(--ciel); }
.bar.apres i { background: var(--lapis); }
.bar.apres.plus i { background: var(--or); }
.pairs.in .bar i { clip-path: inset(0); }
.bar span { font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend { display: flex; gap: 1.4rem; font-size: .95rem; font-weight: 700; margin-top: 1.4rem; }
.legend i { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; margin-right: .45rem; vertical-align: -1px; }
.gain { display: inline-block; margin-top: 1.5rem; background: var(--or); color: var(--nuit); font-weight: 800; padding: .5rem 1.1rem; border-radius: 999px; }
.source { margin-top: 1rem; font-size: .9rem; color: var(--nuit-70); }

.results-summary { margin-top: 1rem; }
.legend .legend-before { background: var(--ciel); }
.legend .legend-after { background: var(--lapis); }
.bar i.bar-resources-before { --w: 92.6%; }
.bar i.bar-resources-after { --w: 98.0%; }
.bar i.bar-expenses-before { --w: 44.8%; }
.bar i.bar-expenses-after { --w: 43.6%; }
.bar i.bar-credits-before { --w: 37.1%; }
.bar i.bar-credits-after { --w: 28.5%; }
.bar i.bar-leftover-before { --w: 8.2%; }
.bar i.bar-leftover-after { --w: 23.2%; }

@media (max-width: 62rem) {
  .hero::after { display: none; }
  .hero::before { right: -22rem; top: auto; bottom: -18rem; width: 36rem; opacity: .7; }
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 8.5rem; }
  .live { margin-top: -6.5rem; background: linear-gradient(to bottom, transparent 6.5rem, var(--brume) 6.5rem); }
  .bilan { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { left: 1.15rem; right: auto; top: 1.15rem; bottom: 1.15rem; width: 3px; height: auto; }
  .steps li { padding: 0 0 0 3.6rem; min-height: 2.3rem; }
}
@media (max-width: 34rem) {
  .figures > div { padding-inline: .6rem; }
  .figures dt { font-size: .8rem; }
  .figures dd { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pairs .bar i { clip-path: inset(0); }
}
