/* Composants animés des pages intérieures : bleu nuit, crème, pêche, Hanken Grotesk et DM Sans. */
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/hanken-grotesk-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-sans-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --cx-ink: #1f2152; --cx-soft: #8d8fc4; --cx-peach: #f3b58d; --cx-cream: #f6efe6; --cx-night: #0f1b30; --cx-blue: #192c44;
  --cx-title: 'Hanken Grotesk', 'DM Sans', system-ui, sans-serif; --cx-label: 'DM Sans', system-ui, sans-serif;
  --cx-pad: clamp(1.4rem, 6vw, 7rem); --cx-ease: cubic-bezier(.22, 1, .36, 1);
}
.cx-kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; font: 650 .82rem/1.3 var(--cx-label); letter-spacing: .16em; text-transform: uppercase; color: currentColor; }
.cx-kicker::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cx-peach); flex: none; }
:is(.cx-steps-head, .cx-fromto, .cx-wheel-copy, .cx-chat-copy, .cx-reviews, .cx-agenda-head) h2 { margin: 0; font: 300 clamp(2.4rem, 4.6vw, 4.8rem)/1.02 var(--cx-title); letter-spacing: -.035em; }
:is(.cx-steps-head, .cx-fromto, .cx-wheel-copy, .cx-chat-copy, .cx-reviews, .cx-agenda-head) h2 span { color: var(--cx-soft); }
.cx-lead { max-width: 46ch; margin: 1.3rem 0 0; font: 400 clamp(1.05rem, 1.25vw, 1.22rem)/1.6 var(--cx-title); opacity: .85; }
.cx-pill { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none; font: 650 .72rem/1 var(--cx-label); letter-spacing: .15em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, #3c4fa6, #5869c7); border: 1px solid #ffffff22; transition: transform .5s var(--cx-ease), box-shadow .5s; }
.cx-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8fe0f0; }
.cx-pill:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 16px 40px -18px #0f1b30; }
.cx-link { display: inline-flex; gap: .5rem; margin-top: 1.2rem; font: 650 .74rem/1.3 var(--cx-label); letter-spacing: .14em; text-transform: uppercase; color: currentColor; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .2rem; }

/* ---------- Étapes empilées ---------- */
.cx-steps { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--cx-pad) clamp(3rem, 8vh, 6rem); color: var(--cx-ink); background: linear-gradient(180deg, #f6efe6, #eef0f7 60%, #f6efe6); }
.cx-steps.cx-dark { color: #f1f2ff; background: linear-gradient(180deg, #0f1b30, #192c44 50%, #13203a); }
.cx-steps-head { max-width: 60rem; margin: 0 auto clamp(2.5rem, 6vh, 4rem); text-align: center; }
.cx-steps-head .cx-kicker { justify-content: center; }
.cx-steps-head .cx-lead { margin-inline: auto; }
.cx-step-list { list-style: none; margin: 0 auto; padding: 0; max-width: 78rem; }
.cx-step {
  position: sticky; top: calc(var(--header, 76px) + 1rem + var(--n) * 3.1rem);
  margin-bottom: 2.4rem; padding: 1.3rem clamp(1.2rem, 3vw, 2.6rem) clamp(1.6rem, 4vw, 3rem);
  border-radius: 34px; border: 1px solid #1f21521a; background: #fbf8f3f2;
  box-shadow: 0 -18px 50px -30px #1f215240; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * .04)); transition: transform .2s linear;
}
.cx-dark .cx-step { border-color: #ffffff1a; background: #16243ef2; box-shadow: 0 -18px 50px -30px #000; }
.cx-step-tag { margin: 0 0 1.2rem; font: 650 .78rem/1.3 var(--cx-label); letter-spacing: .16em; text-transform: uppercase; color: #c07a52; }
.cx-dark .cx-step-tag { color: var(--cx-peach); }
.cx-step-tag span { color: inherit; }
.cx-step-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.cx-step-copy h3 { margin: 0 0 .9rem; font: 300 clamp(2rem, 3.4vw, 3.4rem)/1.04 var(--cx-title); letter-spacing: -.03em; }
.cx-step-copy > p { margin: 0; max-width: 42ch; font: 400 clamp(1.02rem, 1.15vw, 1.15rem)/1.6 var(--cx-title); opacity: .88; }
.cx-step-copy ul { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .55rem; }
.cx-step-copy li { display: flex; gap: .7rem; align-items: baseline; font: 400 .98rem/1.45 var(--cx-title); }
.cx-step-copy li::before { content: ''; flex: none; width: .9rem; height: .9rem; border-radius: 50%; border: 1px solid #c07a52; background: radial-gradient(circle, #c07a52 0 2px, transparent 3px); transform: translateY(.12rem); }
.cx-dark .cx-step-copy li::before { border-color: var(--cx-peach); background: radial-gradient(circle, var(--cx-peach) 0 2px, transparent 3px); }
.cx-step-visual {
  position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 26px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, #f3b58d66, transparent 70%),
    repeating-linear-gradient(118deg, #ffffff0c 0 3px, transparent 3px 22px),
    linear-gradient(135deg, #1f2152 0%, #2b4670 45%, #6f5b8c 78%, #c98d7a 100%);
}
.cx-step-visual::after { content: ''; position: absolute; inset: -30%; background: radial-gradient(circle at 30% 70%, #ffffff22, transparent 40%); animation: cx-drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes cx-drift { to { transform: translate(18%, -12%); } }
.cx-glass { position: relative; z-index: 1; min-width: min(78%, 22rem); padding: 1.4rem 1.6rem; border-radius: 22px; color: #fff; background: linear-gradient(140deg, #ffffff2e, #ffffff0d); border: 1px solid #ffffff40; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px #0008; }
.cx-v-number { display: grid; justify-items: center; text-align: center; }
.cx-v-number strong { font: 250 clamp(3.4rem, 6vw, 5.4rem)/1 var(--cx-title); letter-spacing: -.04em; }
.cx-v-number span { font: 400 1rem/1.3 var(--cx-title); opacity: .85; }
.cx-v-number em { margin-top: .6rem; font: 650 .66rem/1 var(--cx-label); letter-spacing: .16em; text-transform: uppercase; font-style: normal; padding: .5rem .8rem; border-radius: 999px; border: 1px solid #ffffff55; }
.cx-v-number svg { position: absolute; inset: auto -12% 8% auto; width: 74%; overflow: visible; fill: none; stroke: #ffffffb0; stroke-width: 1.3; }
.cx-v-number .cx-dot { fill: #fff; stroke: none; filter: drop-shadow(0 0 6px #fff); }
.cx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--cx-ease) .3s; }
[data-cx-in].is-in .cx-draw { stroke-dashoffset: 0; }
.cx-v-list { display: grid; gap: .2rem; padding: 1rem 1.2rem; }
.cx-v-list p { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .8rem; margin: 0; padding: .6rem .2rem; border-bottom: 1px solid #ffffff22; font: 400 .98rem/1.3 var(--cx-title); opacity: .25; transform: translateX(12px); transition: opacity .6s calc(var(--i) * .12s), transform .8s var(--cx-ease) calc(var(--i) * .12s); }
.cx-v-list p:last-child { border-bottom: 0; }
.cx-v-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--cx-peach); box-shadow: 0 0 10px var(--cx-peach); }
.cx-v-list b { grid-column: 2; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #8fe0f0, #f3b58d); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--cx-ease) calc(.4s + var(--i) * .15s); width: calc(50% + var(--i) * 7%); max-width: 100%; }
.is-in .cx-v-list p { opacity: 1; transform: none; }
.is-in .cx-v-list b { transform: scaleX(1); }
.cx-v-rings { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.4rem; width: 84%; color: #fff; }
.cx-v-rings svg { width: 100%; fill: none; }
.cx-v-rings circle { stroke: #ffffff55; stroke-width: 1; transform-origin: 150px 150px; animation: cx-ring 5s ease-in-out infinite calc(var(--i) * -.6s); }
.cx-v-rings .cx-core { fill: var(--cx-peach); stroke: none; filter: drop-shadow(0 0 8px var(--cx-peach)); animation: none; }
@keyframes cx-ring { 50% { stroke: #ffffffdd; transform: scale(1.04); } }
.cx-v-rings ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font: 650 .7rem/1.2 var(--cx-label); letter-spacing: .14em; text-transform: uppercase; }
.cx-v-rings li { opacity: .5; animation: cx-glow-text 5s ease-in-out infinite calc(var(--i) * 1s); }
@keyframes cx-glow-text { 0%, 30%, 100% { opacity: .45; } 15% { opacity: 1; } }
.cx-v-dots { display: grid; gap: 1rem; justify-items: center; }
.cx-v-dots div { display: grid; grid-template-columns: repeat(10, 1fr); gap: .6rem; }
.cx-v-dots i { width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid #ffffff66; transition: background .4s calc(var(--i) * .06s), box-shadow .4s calc(var(--i) * .06s); }
.is-in .cx-v-dots i { background: var(--cx-peach); box-shadow: 0 0 10px #f3b58daa; }
.cx-v-dots span { font: 650 .7rem/1.3 var(--cx-label); letter-spacing: .15em; text-transform: uppercase; }
.cx-v-breath { position: relative; z-index: 1; width: 58%; aspect-ratio: 1; display: grid; place-items: center; }
.cx-breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #ffffff66; animation: cx-breathe 8s ease-in-out infinite; }
.cx-breath-core { width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffffffcc, #f3b58d55 60%, transparent 72%); animation: cx-breathe 8s ease-in-out infinite; }
.cx-v-breath em { position: absolute; font: 650 .72rem/1 var(--cx-label); letter-spacing: .2em; text-transform: uppercase; color: #fff; font-style: normal; }
.cx-v-breath em::before { content: attr(data-a); animation: cx-word 8s steps(1) infinite; }
@keyframes cx-breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1); } }
@keyframes cx-word { 0% { content: attr(data-a); } 50% { content: attr(data-b); } }
.cx-v-week div { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.cx-v-week span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff44; font: 650 .74rem/1 var(--cx-label); animation: cx-day 7s infinite calc(var(--i) * 1s); }
@keyframes cx-day { 0%, 14%, 100% { background: transparent; } 4%, 10% { background: #f3b58d; color: #1f2152; box-shadow: 0 0 14px #f3b58d; } }
.cx-v-week p { margin: 1rem 0 0; text-align: center; font: 400 1rem/1.4 var(--cx-title); }
.cx-v-badge { position: relative; z-index: 1; width: 52%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; color: #fff; }
.cx-v-badge svg { position: absolute; inset: 0; fill: none; transform: rotate(-90deg); }
.cx-v-badge circle { stroke: #ffffff30; stroke-width: 1.5; }
.cx-v-badge .cx-draw { stroke: var(--cx-peach); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--cx-peach)); }
.cx-v-badge strong { font: 300 1.5rem/1.1 var(--cx-title); max-width: 9ch; }
.cx-v-badge span { position: absolute; bottom: 24%; font: 650 .62rem/1 var(--cx-label); letter-spacing: .15em; text-transform: uppercase; opacity: .8; }
.cx-v-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Du passé au futur ---------- */
.cx-fromto { position: relative; isolation: isolate; overflow: hidden; padding: clamp(6rem, 14vh, 10rem) var(--cx-pad); text-align: center; color: #f6efe6; background: linear-gradient(180deg, #192c44, #2a2350 55%, #4a2f4f); }
.cx-fromto .cx-kicker { justify-content: center; }
.cx-fromto .cx-lead { margin-inline: auto; }
.cx-fromto-glow { position: absolute; inset: 30% 25% -20%; z-index: -1; background: radial-gradient(ellipse at 50% 60%, #f3b58d66, transparent 62%); filter: blur(30px); opacity: 0; transition: opacity 2s; }
.cx-fromto.is-in .cx-fromto-glow { opacity: 1; animation: cx-pulse-glow 6s ease-in-out infinite; }
@keyframes cx-pulse-glow { 50% { transform: scale(1.08); opacity: .75; } }
.cx-fromto-grid { display: grid; grid-template-columns: 1fr 2px 1fr; gap: clamp(1.5rem, 5vw, 5rem); max-width: 54rem; margin: clamp(3rem, 7vh, 5rem) auto 0; }
.cx-fromto-grid > div:not(.cx-beam) { display: grid; gap: .8rem; justify-items: center; align-content: start; }
.cx-col-title { margin: 0 0 1rem; font: 300 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--cx-title); }
.cx-from .cx-col-title { color: #b8a9c9; }
.cx-to .cx-col-title { color: var(--cx-peach); }
.cx-from span, .cx-to span { padding: .6rem 1.1rem; border-radius: 999px; font: 650 .7rem/1.2 var(--cx-label); letter-spacing: .14em; text-transform: uppercase; transition: all .8s var(--cx-ease) calc(.3s + var(--i) * .18s); }
.cx-from span { border: 1px dashed #b8a9c977; color: #d6cbe2; opacity: .15; }
.cx-to span { color: #1f2152; background: #f3b58d; box-shadow: 0 0 22px #f3b58d88; opacity: 0; transform: translateX(-30px) scale(.9); filter: blur(6px); transition-delay: calc(1s + var(--i) * .22s); }
.cx-fromto.is-in .cx-from span { opacity: .8; }
.cx-fromto.is-in .cx-to span { opacity: 1; transform: none; filter: none; }
.cx-beam { position: relative; background: linear-gradient(#ffffff00, #ffffff66, #ffffff00); }
.cx-beam::after { content: ''; position: absolute; left: 50%; top: 0; width: 70px; height: 70px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff, #f3b58d88 35%, transparent 70%); filter: blur(4px); animation: cx-beam 4.5s ease-in-out infinite; }
@keyframes cx-beam { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ---------- Phrase qui change ---------- */
.cx-ticker { position: relative; display: grid; margin: 0; }
.cx-ticker span { grid-area: 1 / 1; opacity: 0; filter: blur(8px); transform: translateY(.4em); transition: opacity .9s, filter .9s, transform .9s var(--cx-ease); }
.cx-ticker span.is-on { opacity: 1; filter: none; transform: none; }

/* ---------- Roue ---------- */
.cx-wheel-section { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(5rem, 12vh, 8rem) var(--cx-pad); }
.cx-wheel-section.cx-dark { color: #f1f2ff; background: linear-gradient(160deg, #0f1b30, #192c44 50%, #2a2350); }
.cx-wheel-section.cx-light { color: var(--cx-ink); background: linear-gradient(160deg, #f6efe6, #e8e9f5); }
.cx-wheel-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cx-wheel-glow i { position: absolute; border-radius: 50%; filter: blur(60px); }
.cx-wheel-glow i:nth-child(1) { width: 40vw; height: 40vw; left: 30%; top: 10%; background: radial-gradient(closest-side, #5869c766, transparent); animation: closing-a 20s ease-in-out infinite alternate; }
.cx-wheel-glow i:nth-child(2) { width: 30vw; height: 30vw; right: -5%; bottom: -10%; background: radial-gradient(closest-side, #f3b58d44, transparent); animation: closing-b 24s ease-in-out infinite alternate; }
.cx-wheel { position: relative; aspect-ratio: 1; width: 100%; max-width: 34rem; justify-self: center; }
.cx-wheel-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.cx-wheel-outer { stroke: currentColor; stroke-opacity: .12; stroke-dasharray: 2 6; }
.cx-wheel-inner { stroke: currentColor; stroke-opacity: .1; }
.cx-wheel-turn { transform-origin: 250px 250px; animation: cx-spin 60s linear infinite; }
.cx-wheel:hover .cx-wheel-turn { animation-play-state: paused; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-arc { stroke: currentColor; stroke-opacity: .35; stroke-width: 2; stroke-linecap: round; transition: stroke .4s, stroke-opacity .4s, stroke-width .4s; }
.cx-arc.is-on { stroke: var(--cx-peach); stroke-opacity: 1; stroke-width: 3.5; filter: drop-shadow(0 0 8px #f3b58d); }
.cx-arrow { stroke: currentColor; stroke-opacity: .55; stroke-width: 2; stroke-linecap: round; }
.cx-wheel-center { position: absolute; inset: 31%; display: grid; place-items: center; text-align: center; border-radius: 50%; background: radial-gradient(circle, #ffffff14, transparent 70%); }
.cx-ticker--center { font: 300 clamp(1rem, 1.5vw, 1.35rem)/1.3 var(--cx-title); max-width: 13ch; }
.cx-wheel-item { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; padding: .6rem 1rem; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; font: 650 .68rem/1.2 var(--cx-label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, color .3s, transform .4s var(--cx-ease); white-space: nowrap; }
.cx-wheel-item[aria-pressed="true"], .cx-wheel-item:hover { background: var(--cx-peach); color: #1f2152; border-color: var(--cx-peach); transform: scale(1.06); }
.cx-wheel-panel { position: relative; min-height: 24rem; }
.cx-wheel-panel article { animation: cx-panel-in .7s var(--cx-ease); }
@keyframes cx-panel-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.cx-wheel-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; margin-bottom: 1.2rem; }
.cx-wheel-panel h3 { margin: 0 0 .7rem; font: 300 clamp(1.8rem, 2.6vw, 2.6rem)/1.05 var(--cx-title); letter-spacing: -.03em; }
.cx-wheel-panel p:not(.cx-kicker) { margin: 0 0 1.4rem; font: 400 1.05rem/1.6 var(--cx-title); opacity: .85; }

/* ---------- Conversation ---------- */
.cx-chat-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: clamp(5rem, 12vh, 8rem) var(--cx-pad); color: var(--cx-ink); background: radial-gradient(ellipse at 80% 30%, #f3b58d33, transparent 55%), linear-gradient(180deg, #f6efe6, #efe9f3); }

/* ---------- Avis qui défilent ---------- */
.cx-reviews { padding: clamp(5rem, 12vh, 8rem) 0; text-align: center; color: var(--cx-ink); background: linear-gradient(180deg, #efe9f3, #f6efe6); overflow: hidden; }
.cx-reviews .cx-kicker { justify-content: center; }
.cx-marquee { margin-top: 2.2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cx-marquee + .cx-marquee { margin-top: 1.2rem; }
.cx-track { display: flex; gap: 1.2rem; width: max-content; animation: cx-scroll 70s linear infinite; }
.cx-marquee--reverse .cx-track { animation-direction: reverse; animation-duration: 80s; }
.cx-marquee:hover .cx-track { animation-play-state: paused; }
@keyframes cx-scroll { to { transform: translateX(-50%); } }
.cx-review { width: min(24rem, 78vw); margin: 0; padding: 1.5rem 1.6rem; text-align: left; border-radius: 26px; background: #fffaf4; border: 1px solid #1f215214; box-shadow: 0 24px 50px -36px #1f215255; }
.cx-review blockquote { margin: 0 0 1.1rem; font: 400 1rem/1.55 var(--cx-title); }
.cx-review figcaption { display: grid; gap: .15rem; }
.cx-review strong { font: 650 .82rem/1.2 var(--cx-label); letter-spacing: .06em; }
.cx-review span { font: 400 .8rem/1.3 var(--cx-title); opacity: .65; }
.cx-review-source { margin: 1.8rem 0 0; font: 400 .82rem/1.4 var(--cx-title); opacity: .6; }

/* ---------- Agenda ---------- */
.cx-agenda { position: relative; isolation: isolate; overflow: hidden; padding: clamp(5rem, 12vh, 8rem) var(--cx-pad); color: #f1f2ff; background: linear-gradient(170deg, #0f1b30, #192c44 55%, #1d2f55); }
.cx-agenda-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cx-agenda-glow i { position: absolute; border-radius: 50%; filter: blur(70px); }
.cx-agenda-glow i:nth-child(1) { width: 50vw; height: 40vw; right: -15vw; top: -10vw; background: radial-gradient(closest-side, #5fa3c766, transparent); animation: closing-a 22s ease-in-out infinite alternate; }
.cx-agenda-glow i:nth-child(2) { width: 36vw; height: 30vw; left: -10vw; bottom: -10vw; background: radial-gradient(closest-side, #f3b58d33, transparent); animation: closing-c 28s ease-in-out infinite alternate; }
.cx-agenda-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 5rem; align-items: end; }
.cx-agenda-head > :not(.cx-agenda-next) { grid-column: 1; }
.cx-agenda-next { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 1rem; justify-items: start; padding: 1.5rem; border-radius: 26px; background: #ffffff0d; border: 1px solid #ffffff1f; }
.cx-agenda-next p { margin: 0; font: 400 1rem/1.5 var(--cx-title); color: #cfd4ee; }
.cx-agenda-next strong { display: block; font: 300 1.5rem/1.2 var(--cx-title); color: #fff; margin-bottom: .3rem; }
.cx-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--cx-peach); box-shadow: 0 0 0 0 #f3b58d88; animation: cx-ping 2.2s infinite; }
@keyframes cx-ping { to { box-shadow: 0 0 0 16px #f3b58d00; } }
.cx-agenda-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: clamp(2.5rem, 6vh, 4rem) 0 1.6rem; }
.cx-years, .cx-kinds { display: flex; flex-wrap: wrap; gap: .4rem; }
.cx-years button, .cx-kinds button { padding: .55rem .9rem; border-radius: 999px; border: 1px solid #ffffff26; background: transparent; color: #dfe3f7; font: 650 .7rem/1 var(--cx-label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.cx-years button small { margin-left: .4rem; opacity: .55; }
.cx-years button[aria-selected="true"], .cx-kinds button[aria-pressed="true"] { background: #f6efe6; color: #1f2152; }
.cx-agenda-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cx-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; animation: cx-panel-in .6s var(--cx-ease); }
.cx-month { min-height: 8.5rem; padding: .9rem; border-radius: 20px; background: #ffffff0a; border: 1px solid #ffffff14; }
.cx-month.is-empty { opacity: .35; }
.cx-month > p { margin: 0 0 .6rem; font: 650 .66rem/1 var(--cx-label); letter-spacing: .16em; text-transform: uppercase; color: #aab3db; }
.cx-month > div { display: grid; gap: .35rem; }
.cx-date { display: grid; grid-template-columns: 2.1rem 1fr; grid-template-rows: auto auto; column-gap: .5rem; align-items: center; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 12px; background: #ffffff10; color: #fff; text-align: left; cursor: pointer; transition: background .3s, transform .3s var(--cx-ease); }
.cx-date b { grid-row: span 2; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: #f3b58d; color: #1f2152; font: 700 .8rem/1 var(--cx-label); }
.cx-date[data-kind="Danse et mouvement"] b { background: #8fe0f0; }
.cx-date[data-kind="Festival et retraite"] b { background: #c9b6ff; }
.cx-date span { font: 500 .8rem/1.2 var(--cx-title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-date em { font: 400 .68rem/1.2 var(--cx-title); font-style: normal; opacity: .6; }
.cx-date:is(:hover, :focus-visible, [aria-pressed="true"]) { background: #ffffff26; transform: translateX(3px); }
.cx-date[hidden] { display: none; }
.cx-event-card { position: sticky; top: calc(var(--header, 76px) + 1.5rem); padding: 1.6rem; border-radius: 28px; color: var(--cx-ink); background: #f6efe6; min-height: 16rem; }
.cx-event-card h3 { margin: 0 0 .3rem; font: 300 2rem/1.05 var(--cx-title); letter-spacing: -.03em; }
.cx-event-card .cx-kicker { color: #8a5a3c; }
.cx-event-date { margin: 0 0 1.2rem; font: 400 1rem/1.3 var(--cx-title); color: #6a6d9e; }
.cx-event-card dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font: 400 .92rem/1.4 var(--cx-title); }
.cx-event-card dt { font: 650 .64rem/1.6 var(--cx-label); letter-spacing: .14em; text-transform: uppercase; color: #8d8fc4; }
.cx-event-card dd { margin: 0; }
.cx-event-card article { animation: cx-panel-in .5s var(--cx-ease); }
.cx-event-empty { margin: 0; font: 300 1.4rem/1.3 var(--cx-title); color: #6a6d9e; }

@media (max-width: 900px) {
  .cx-step { position: relative; top: auto; transform: none; }
  .cx-step-body, .cx-chat-section, .cx-agenda-head, .cx-agenda-body { grid-template-columns: 1fr; }
  .cx-agenda-next { grid-column: auto; grid-row: auto; }
  .cx-wheel-section { grid-template-columns: 1fr; }
  .cx-wheel-item { font-size: .58rem; padding: .45rem .7rem; }
  .cx-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-event-card { position: relative; top: auto; }
  .cx-fromto-grid { grid-template-columns: 1fr; } .cx-beam { height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-track, .cx-wheel-turn, .cx-breath-ring, .cx-breath-core, .cx-beam::after { animation: none; }
}

/* Roues 10 % plus petites (cercle et panneau) */
.cx-wheel { max-width: 30.5rem; }
.cx-wheel-panel { max-width: 90%; }
.cx-wheel-panel h3 { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
.cx-wheel-panel p:not(.cx-kicker) { font-size: .95rem; }
.cx-wheel-panel img { aspect-ratio: 16 / 10; }
/* La carte « 2 h 30 » : plus de trait qui la traverse */
.cx-v-number svg { display: none; }
/* « Prochaines dates » plus haut */
.cx-agenda-next { align-self: start; margin-top: .4rem; }

/* Conversation : des bulles posées dans l'espace, qui s'écrivent */
.cx-messages { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; align-content: start; min-height: 26rem; }
.cx-msg { display: flex; align-items: flex-end; gap: .6rem; max-width: 30rem; opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .6s, transform .7s var(--cx-ease), filter .6s; }
.cx-msg.is-shown { opacity: 1; transform: none; filter: none; }
.cx-msg--them { justify-self: start; }
.cx-msg--me { justify-self: end; flex-direction: row-reverse; }
.cx-msg img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.cx-bubble { display: block; padding: .8rem 1.15rem; border-radius: 22px; font: 400 1.02rem/1.45 var(--cx-title); }
.cx-msg--them .cx-bubble { background: #ffffffcc; border: 1px solid #1f21521a; border-bottom-left-radius: 6px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cx-msg--me .cx-bubble { color: #fff; background: linear-gradient(120deg, #3c4fa6, #5869c7); border-bottom-right-radius: 6px; }
.cx-msg.is-shown:not(.is-done) .cx-typed::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: cx-caret .8s steps(1) infinite; }
@keyframes cx-caret { 50% { opacity: 0; } }
.cx-chat-section { grid-template-columns: 1fr 1.1fr; }

/* Programme détaillé */
.cx-syllabus .cx-step { top: calc(var(--header, 76px) + .6rem + var(--n) * 2.6rem); }
.cx-syllabus .cx-step-body { align-items: start; }
.cx-weeks { list-style: none; margin: 1.3rem 0 0 !important; padding: 0; display: grid !important; gap: .35rem !important; }
.cx-weeks li::before { display: none !important; }
.cx-weeks button { display: grid; gap: .15rem; width: 100%; text-align: left; padding: .65rem .9rem; border-radius: 14px; border: 1px solid #ffffff1c; background: transparent; color: inherit; font: 400 1rem/1.3 var(--cx-title); cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--cx-ease); }
.cx-weeks button small { font: 650 .6rem/1.2 var(--cx-label); letter-spacing: .16em; text-transform: uppercase; color: var(--cx-peach); }
.cx-weeks button[aria-pressed="true"], .cx-weeks button:hover { background: #ffffff14; border-color: #f3b58d66; transform: translateX(4px); }
.cx-week-visual { aspect-ratio: auto; min-height: 26rem; padding: 1.4rem; place-items: stretch; }
.cx-week-panel { min-width: 0; width: 100%; padding: 1.3rem 1.4rem; animation: cx-panel-in .5s var(--cx-ease); }
.cx-week-head { margin: 0 0 1rem; display: grid; gap: .2rem; font: 300 1.5rem/1.15 var(--cx-title); }
.cx-week-head small { font: 650 .62rem/1.2 var(--cx-label); letter-spacing: .16em; text-transform: uppercase; color: var(--cx-peach); }
.cx-week-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: d; }
.cx-week-panel li { counter-increment: d; display: grid; gap: .2rem; padding-left: 2rem; position: relative; }
.cx-week-panel li::before { content: counter(d); position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font: 700 .62rem/1 var(--cx-label); color: #1f2152; background: #f3d3bd; }
.cx-week-panel strong { font: 500 .98rem/1.3 var(--cx-title); }
.cx-week-panel em { font: 650 .62rem/1 var(--cx-label); letter-spacing: .1em; font-style: normal; color: #cfd4ee; opacity: .8; }
.cx-week-panel span { font: 400 .84rem/1.45 var(--cx-title); color: #d6dbf3; }
.cx-week-note { margin: 0; font: 400 1rem/1.6 var(--cx-title); color: #d6dbf3; }

/* De l'apprenti au praticien, dessiné au défilement */
.cx-draw-section { position: relative; height: calc(100svh + var(--n) * 38svh); color: #f6efe6; background: linear-gradient(180deg, #192c44, #2a2350 55%, #4a2f4f); }
.cx-draw-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-content: center; justify-items: center; text-align: center; padding: var(--header, 76px) var(--cx-pad) 2rem; isolation: isolate; }
.cx-draw-sticky .cx-kicker { justify-content: center; }
.cx-draw-sticky .cx-lead { margin-inline: auto; }
.cx-draw-sticky h2 { margin: 0; font: 300 clamp(2.4rem, 4.4vw, 4.6rem)/1.02 var(--cx-title); letter-spacing: -.035em; }
.cx-draw-sticky h2 span { color: var(--cx-soft); }
.cx-draw-section .cx-fromto-glow { opacity: calc(.4 + var(--p, 0) * .6); }
.cx-draw-grid { position: relative; display: grid; grid-template-columns: 1fr 3rem 1fr; gap: .9rem 0; width: min(100%, 64rem); margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.cx-col-from { color: #b8a9c9; text-align: right; } .cx-col-to { color: var(--cx-peach); text-align: left; }
.cx-draw-beam { position: absolute; left: 50%; top: 3.2rem; width: 2px; height: calc(var(--p, 0) * (100% - 3.2rem)); translate: -50% 0; background: linear-gradient(#ffffff00, #fffffff0 70%, #f3b58d); }
.cx-draw-beam i { position: absolute; left: 50%; bottom: -40px; width: 110px; height: 110px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, #fff, #f3b58daa 30%, transparent 70%); filter: blur(5px); }
.cx-pair { --k: clamp(0, calc(var(--p, 0) * var(--n) * 1.1 - var(--i)), 1); grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 3rem 1fr; align-items: center; }
.cx-pair-from, .cx-pair-to { display: grid; gap: .25rem; padding: .7rem 1.1rem; border-radius: 18px; opacity: var(--k); filter: blur(calc((1 - var(--k)) * 8px)); }
.cx-pair-from { text-align: right; transform: translateX(calc((1 - var(--k)) * 45%)); border: 1px dashed #b8a9c955; }
.cx-pair-to { text-align: left; transform: translateX(calc((1 - var(--k)) * -45%)); color: #1f2152; background: #f3b58d; box-shadow: 0 0 calc(var(--k) * 30px) #f3b58d88; }
.cx-pair-from strong, .cx-pair-to strong { font: 650 .74rem/1.25 var(--cx-label); letter-spacing: .13em; text-transform: uppercase; }
.cx-pair-from span { font: 400 .9rem/1.45 var(--cx-title); color: #d6cbe2; }
.cx-pair-to span { font: 400 .9rem/1.45 var(--cx-title); color: #3a2a3c; }
.cx-pair-dot { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #fff, 0 0 30px #f3b58d; opacity: var(--k); transform: scale(calc(.4 + var(--k) * .6)); }
@media (max-width: 760px) { .cx-draw-grid, .cx-pair { grid-template-columns: 1fr 1.4rem 1fr; } .cx-pair-from span, .cx-pair-to span { display: none; } }

/* Programme détaillé : les cartes se suivent sans s'empiler, pour pouvoir tout lire même sur un petit écran */
.cx-syllabus .cx-step { position: relative; top: auto; margin-bottom: 1.4rem; }
@media (max-height: 780px) {
  .cx-draw-sticky { padding-top: calc(var(--header, 76px) + .4rem); padding-bottom: 1rem; }
  .cx-draw-sticky .cx-kicker, .cx-draw-sticky .cx-lead { display: none; }
  .cx-draw-sticky h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
  .cx-draw-grid { margin-top: .9rem; gap: .45rem 0; }
  .cx-pair-from, .cx-pair-to { padding: .45rem .9rem; }
}

/* De l'apprenti au praticien : la section descend jusqu'au bas de l'écran, avec de l'air sous la dernière paire */
.cx-draw-section { height: calc(100svh + var(--n) * 38svh + 8svh); }
.cx-draw-sticky { align-content: center; padding-bottom: clamp(3.5rem, 9svh, 6rem); }

/* La lumière du fil commence petite et grandit en descendant */
.cx-draw-beam i { width: calc(30px + var(--p, 0) * 90px); height: calc(30px + var(--p, 0) * 90px); }
/* Plus d'air sous la dernière paire : le violet descend plus bas avant de laisser place au clair */
.cx-draw-section { height: calc(100svh + var(--n) * 38svh + 34svh); }
.cx-draw-sticky { padding-bottom: clamp(5rem, 14svh, 9rem); }
