/*
 * Charles-Edward : « le site est une timeline » (v3).
 * Un seul geste signature : la tête de lecture ambre balaie titres et images pour les révéler.
 * Une timeline fixe en bas de l'écran : chaque section est un clip, la tête de lecture suit la lecture.
 * Tout ce qui cache du contenu dépend de html.ce-motion (posée seulement si le visiteur accepte les animations).
 * Uniquement transform, opacity et clip-path pendant le défilement.
 */

:root {
	--ce-ease-out: cubic-bezier(.16, 1, .3, 1);
	--ce-ease-cut: cubic-bezier(.76, 0, .24, 1);
	--ce-head: var(--wp--preset--color--playhead);
}

@keyframes ce-rise { from { opacity: 0; transform: translate3d(0, 32px, 0); } to { opacity: 1; transform: none; } }
@keyframes ce-reveal-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ce-head-x { 0% { left: 0; opacity: 1; } 88% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes ce-marks { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes ce-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ce-pulse { 50% { opacity: .3; } }

/* ---------- Le geste signature : balayage par la tête de lecture ---------- */
.ce-sweep { position: relative; display: inline-block; }
.ce-sweep__in { display: inline-block; }
.ce-sweep::after, .ce-frame::before {
	content: ""; position: absolute; top: -4%; bottom: -4%; left: 0; width: 12px; margin-left: -6px; pointer-events: none; opacity: 0; z-index: 3;
	background: linear-gradient(var(--ce-head), var(--ce-head)) center / 2px 100% no-repeat, linear-gradient(var(--ce-head), var(--ce-head)) center top / 12px 8px no-repeat;
}
.ce-frame::before { top: 0; bottom: 0; }
.ce-motion .ce-sweep__in { clip-path: inset(0 100% 0 0); }
.ce-motion .is-in .ce-sweep__in, .ce-motion .ce-sweep.is-in .ce-sweep__in, .ce-motion .ce-hero .ce-sweep__in { animation: ce-reveal-x var(--sd, .9s) var(--ce-ease-cut) both; animation-delay: var(--d, 0s); }
.ce-motion .is-in .ce-sweep::after, .ce-motion .ce-sweep.is-in::after, .ce-motion .ce-hero .ce-sweep::after { animation: ce-head-x var(--sd, .9s) var(--ce-ease-cut) both; animation-delay: var(--d, 0s); }
.ce-motion .ce-frame.ce-sweep-media > img { clip-path: inset(0 100% 0 0); }
.ce-motion .ce-frame.ce-sweep-media.is-in > img { animation: ce-reveal-x 1.1s var(--ce-ease-cut) both; animation-delay: var(--d, 0s); }
.ce-motion .ce-frame.ce-sweep-media.is-in::before { animation: ce-head-x 1.1s var(--ce-ease-cut) both; animation-delay: var(--d, 0s); }
.ce-motion .ce-photo.ce-sweep-media { position: relative; }
.ce-motion .ce-photo.ce-sweep-media > img { clip-path: inset(0 100% 0 0); }
.ce-motion .ce-photo.ce-sweep-media.is-in > img { animation: ce-reveal-x 1.2s var(--ce-ease-cut) both; }

/* ---------- En-tête collant ---------- */
header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.ce-header { background: rgba(18, 13, 28, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 600px) { .ce-header .wp-block-buttons { display: none; } }

/* ---------- Hero ---------- */
.ce-hero h1 .ce-sweep { display: block; }
.ce-hero h1 .ce-sweep::after { top: -2%; bottom: -2%; }
.ce-motion .ce-hero h1 { --d: .25s; --sd: 1.25s; }
.ce-motion .ce-hero .ce-status { animation: ce-rise .8s var(--ce-ease-out) both .1s; }
.ce-motion .ce-hero h1 ~ * { animation: ce-rise 1s var(--ce-ease-out) both; }
.ce-motion .ce-hero h1 + * { animation-delay: 1.05s; }
.ce-motion .ce-hero h1 + * + * { animation-delay: 1.18s; }
.ce-motion .ce-hero h1 + * + * + * { animation-delay: 1.3s; }
.ce-motion .ce-hero .ce-frame--hero > img { animation: ce-reveal-x 1.2s var(--ce-ease-cut) both .75s; }
.ce-motion .ce-hero .ce-frame--hero::before { animation: ce-head-x 1.2s var(--ce-ease-cut) both .75s; }
.ce-motion .ce-hero .wp-block-columns { transform: translate3d(0, calc(var(--hp, 0) * -60px), 0); }
.ce-motion .ce-hero .wp-block-column:first-child { opacity: calc(1 - var(--hp, 0) * .9); }
.ce-motion .ce-hero .wp-block-column:last-child { transform: translate3d(0, calc(var(--hp, 0) * 70px), 0) scale(calc(1 + var(--hp, 0) * .06)); transform-origin: 50% 0; }
.ce-count { font-variant-numeric: tabular-nums; }

/* Cadres vidéo : repères, libellés, timecode REC */
.ce-frame { cursor: pointer; }
.ce-frame::after { content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0; --m: rgba(244, 240, 250, .75); z-index: 2;
	background:
		linear-gradient(var(--m), var(--m)) left top / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) left top / 2px 18px no-repeat,
		linear-gradient(var(--m), var(--m)) right top / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) right top / 2px 18px no-repeat,
		linear-gradient(var(--m), var(--m)) left bottom / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) left bottom / 2px 18px no-repeat,
		linear-gradient(var(--m), var(--m)) right bottom / 18px 2px no-repeat, linear-gradient(var(--m), var(--m)) right bottom / 2px 18px no-repeat; }
.ce-frame--hero::after, .ce-monitor .ce-frame::after { opacity: 1; }
.ce-motion .ce-frame--hero::after { animation: ce-marks .8s var(--ce-ease-out) both 1.7s; }
.ce-frame.is-playing::after, .ce-frame.is-playing::before { display: none; }
.ce-frame .ce-frame__label { top: 20px; left: 36px; z-index: 2; }
.ce-frame .ce-timecode { left: 36px; bottom: 20px; z-index: 2; }
.ce-frame__play { z-index: 2; }
.ce-frame--hero .ce-timecode::before, .ce-monitor .ce-timecode::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 99px; background: var(--wp--preset--color--signal-danger); vertical-align: 1px; }
.ce-motion .ce-frame--hero .ce-timecode::before, .ce-motion .ce-monitor .ce-timecode::before { animation: ce-pulse 1.2s steps(2) infinite; }

/* ---------- Marqueurs de séquence au-dessus des titres ---------- */
.ce-chapter { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--wp--preset--font-family--mono); font-size: 12px; line-height: 16px; letter-spacing: .03em; color: var(--wp--preset--color--ink-faint); }
.ce-chapter b { font-weight: 500; color: var(--ce-head); }
.ce-chapter i { display: block; width: 40px; height: 1px; background: var(--wp--preset--color--line-strong); transform-origin: left; }
.ce-motion .ce-chapter { opacity: 0; }
.ce-motion .ce-chapter.is-in { animation: ce-rise .7s var(--ce-ease-out) both; }
.ce-motion .ce-chapter.is-in i { animation: ce-draw .9s var(--ce-ease-cut) both .1s; }

/* ---------- Apparitions simples (textes, cartes) ---------- */
.ce-motion .ce-reveal { opacity: 0; }
.ce-motion .ce-reveal.is-in { animation: ce-rise 1s var(--ce-ease-out) both; animation-delay: var(--d, 0s); }

/* ---------- Portfolio : banc de montage ---------- */
.ce-reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; margin-top: var(--wp--preset--spacing--70) !important; }
.ce-clip { margin: 0; }
.ce-clip .ce-frame { margin-bottom: 16px; }
.ce-clip__meta > * { margin: 0 0 6px; }
.ce-clip__name { font-size: var(--wp--preset--font-size--titre-4); }
.ce-clip__ctx { color: var(--wp--preset--color--ink-muted); font-size: .9375rem; }

.ce-reel.is-live { display: block; }
.ce-monitor { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px 40px; align-items: end; padding: 12px 16px 16px; border-radius: 24px; background: var(--wp--preset--color--surface-1); border: 1px solid var(--wp--preset--color--line); }
.ce-monitor__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; font-family: var(--wp--preset--font-family--mono); font-size: 11px; line-height: 14px; color: var(--wp--preset--color--ink-faint); padding: 0 4px; }
.ce-monitor__bar b { font-weight: 500; color: var(--wp--preset--color--ink-muted); }
.ce-monitor .ce-frame { margin: 0; }
.ce-monitor__meta { padding: 0 16px 20px 0; }
.ce-monitor__meta > * { margin: 0 0 12px; }
.ce-monitor__name { font-size: var(--wp--preset--font-size--titre-2); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.ce-monitor__ctx { color: var(--wp--preset--color--ink-muted); font-size: var(--wp--preset--font-size--body-lg); max-width: 40ch; }
.ce-monitor__meta .ce-sweep, .ce-monitor__meta .ce-sweep__in { display: block; }

.ce-track { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: stretch; margin-top: 20px; }
.ce-track__lab { display: grid; place-items: center; border-radius: 4px; background: var(--wp--preset--color--surface-2); font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--ink-muted); }
.ce-track__lane { position: relative; display: flex; gap: 4px; padding: 6px; border-radius: 8px; background: var(--wp--preset--color--bg); border: 1px solid var(--wp--preset--color--line); overflow: hidden; }
.ce-reel.is-live .ce-clip { flex: 1 1 0; min-width: 0; position: relative; display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 4px; background: var(--wp--preset--color--violet-soft); border: 1px solid transparent; cursor: pointer; transition: background-color .3s ease, border-color .3s ease; }
.ce-reel.is-live .ce-clip:hover { border-color: var(--wp--preset--color--violet); }
.ce-reel.is-live .ce-clip.is-active { background: var(--wp--preset--color--violet-strong); }
.ce-reel.is-live .ce-clip .ce-frame { flex: none; width: 96px; margin: 0; border-radius: 3px; }
.ce-reel.is-live .ce-clip .ce-frame::after, .ce-reel.is-live .ce-clip .ce-frame__play { display: none; }
.ce-reel.is-live .ce-clip__meta { min-width: 0; }
.ce-reel.is-live .ce-clip__meta > * { margin: 0; }
.ce-reel.is-live .ce-clip__meta .ce-kind { font-size: 12px; line-height: 16px; color: var(--wp--preset--color--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-reel.is-live .ce-clip.is-active .ce-kind { color: #e9e2ff; }
.ce-reel.is-live .ce-clip__name { font-size: 1rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-reel.is-live .ce-clip__ctx, .ce-reel.is-live .ce-clip__link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ce-clip__select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; z-index: 2; border: 0; padding: 0; background: none; }
.ce-track__head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; left: 0; background: var(--ce-head); z-index: 3; pointer-events: none; transition: transform .7s var(--ce-ease-cut); }
.ce-track__head::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 8px; border-radius: 0 0 3px 3px; background: var(--ce-head); }
@media (max-width: 781px) {
	.ce-monitor { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
	.ce-monitor__meta { padding: 0 4px 8px; }
	.ce-track { grid-template-columns: 1fr; }
	.ce-track__lab { display: none; }
	.ce-track__lane { overflow-x: auto; scroll-snap-type: x mandatory; }
	.ce-reel.is-live .ce-clip { flex: 0 0 72%; scroll-snap-align: start; }
	.ce-track__head { display: none; }
}

/* ---------- Déroulé : titre fixe, tête de lecture verticale ---------- */
@media (min-width: 782px) {
	#deroule .wp-block-columns { align-items: flex-start !important; }
	#deroule .wp-block-column:first-child { position: sticky; top: 140px; }
}
ol.ce-steps { position: relative; }
ol.ce-steps > li { overflow: hidden; transition: background-color .5s ease, color .5s ease, transform .6s var(--ce-ease-out); }
ol.ce-steps > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wp--preset--color--violet); transform-origin: left; }
.ce-motion ol.ce-steps > li { background: var(--wp--preset--color--surface-2); }
.ce-motion ol.ce-steps > li::before { color: var(--wp--preset--color--ink-muted); transition: color .4s ease; }
.ce-motion ol.ce-steps > li::after { transform: scaleX(var(--sp, 0)); }
.ce-motion ol.ce-steps > li.is-active { background: var(--wp--preset--color--violet-soft); color: var(--wp--preset--color--ink); transform: translateX(8px); }
.ce-motion ol.ce-steps > li.is-active::before { color: var(--ce-head); }
.ce-motion ol.ce-steps > li.is-active::after { background: var(--ce-head); }
.ce-steps__head { position: absolute; left: -20px; top: 0; width: 2px; height: 100%; background: var(--wp--preset--color--line); }
.ce-steps__head::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--ce-head); transform: scaleY(var(--p, 0)); transform-origin: top; }
.ce-steps__head::after { content: ""; position: absolute; left: -5px; top: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; background: var(--ce-head); transform: translate3d(0, var(--py, 0px), 0); }
@media (max-width: 781px) { .ce-steps__head { left: -12px; } }

/* Règle timeline sous le hero */
.ce-motion .ce-ruler .ce-ruler__ticks { transform: scaleX(0); transform-origin: left; }
.ce-motion .ce-ruler.is-in .ce-ruler__ticks { animation: ce-draw 1.4s var(--ce-ease-cut) both; }
.ce-ruler__readout { position: absolute; top: 0; left: 8px; font-family: var(--wp--preset--font-family--mono); font-size: 11px; line-height: 14px; color: var(--ce-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ce-ruler:has(.ce-ruler__readout) { height: 56px; padding-top: 16px; box-sizing: border-box; }
.ce-ruler:has(.ce-ruler__readout) .ce-ruler__labels { top: 16px; }
.ce-ruler:has(.ce-ruler__readout) .ce-ruler__head { top: 30px; left: 0; }

/* Avis : les mots s'allument au fil de la lecture */
.ce-motion .ce-quote p .ce-hw { opacity: .18; }

/* Grand nom en pied de page, révélé par la tête de lecture */
.ce-wordmark { margin: 0; font-weight: 800; font-size: clamp(48px, 11.8vw, 196px); line-height: .82; letter-spacing: -.055em; color: var(--wp--preset--color--surface-2); white-space: nowrap; overflow: hidden; font-variation-settings: 'opsz' 96; user-select: none; padding-top: .1em; }
.ce-wordmark .ce-sweep::after { top: 4%; bottom: 0; }
.ce-wordmark { --sd: 1.6s; }

/* ---------- Survols, curseur, aimantation (souris uniquement) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.wp-element-button, .ce-contact [type=submit] { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
	.ce-magnet { transition: transform .6s var(--ce-ease-out); }
	.ce-magnet.is-pulled { transition: transform .15s linear; }
	.ce-tier { transition: transform .6s var(--ce-ease-out), border-color .4s ease; }
	.ce-tier:hover { transform: translateY(-6px); border-color: var(--wp--preset--color--violet); }
	.ce-latest li .wp-block-latest-posts__featured-image { overflow: hidden; border-radius: 14px; }
	.ce-latest li img { transition: transform 1.2s var(--ce-ease-out); }
	.ce-latest li:hover img { transform: scale(1.05); }

	html.ce-cursor, html.ce-cursor * { cursor: none !important; }
	html.ce-cursor :is(input, textarea, select, [contenteditable]) { cursor: auto !important; }
	.ce-cursor-dot, .ce-cursor-ring { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; border-radius: 999px; }
	.ce-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--wp--preset--color--ink); }
	.ce-cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(244, 240, 250, .45); display: grid; place-items: center;
		transition: width .45s var(--ce-ease-out), height .45s var(--ce-ease-out), margin .45s var(--ce-ease-out), background-color .3s ease, border-color .3s ease, opacity .3s ease; }
	.ce-cursor-ring span { font-size: 13px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s ease; white-space: nowrap; }
	html.is-cursor-link .ce-cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--wp--preset--color--violet); }
	html.is-cursor-media .ce-cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--wp--preset--color--violet-strong); border-color: transparent; }
	html.is-cursor-media .ce-cursor-ring span { opacity: 1; }
	html.is-cursor-media .ce-cursor-dot, html.is-cursor-link .ce-cursor-dot { opacity: 0; }
	html.is-cursor-native .ce-cursor-dot, html.is-cursor-native .ce-cursor-ring, html.is-cursor-out .ce-cursor-dot, html.is-cursor-out .ce-cursor-ring { opacity: 0; }
}
.ce-scrub { position: absolute; top: 0; bottom: 0; left: var(--x, 0); width: 2px; margin-left: -1px; background: var(--ce-head); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 3; }
.ce-scrub::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 8px; background: var(--ce-head); border-radius: 0 0 3px 3px; }
.ce-frame.is-scrubbing .ce-scrub { opacity: 1; }
.ce-frame.is-playing .ce-scrub { display: none; }

/* ---------- Transitions entre les pages (navigateurs compatibles) ---------- */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: .4s var(--ce-ease-cut) both ce-vt-out; }
	::view-transition-new(root) { animation: .6s var(--ce-ease-cut) both ce-reveal-x; }
}
@keyframes ce-vt-out { to { opacity: 0; } }


/* ---------- v3.1 : plus artiste, moins outil ---------- */
@keyframes ce-kb { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1%, -1%, 0); } }
.ce-frame--hero > img, .ce-monitor .ce-frame > img { transform-origin: 60% 40%; }
.ce-motion .ce-hero .ce-frame--hero > img { animation: ce-reveal-x 1.2s var(--ce-ease-cut) both .75s, ce-kb 16s ease-in-out 2s infinite alternate; }
.ce-motion .ce-monitor .ce-frame.is-in > img { animation: ce-reveal-x 1.1s var(--ce-ease-cut) both, ce-kb 16s ease-in-out 1.2s infinite alternate; }
.ce-frame.is-playing > img { animation: none !important; }
.ce-frame__caption { position: absolute; left: 36px; bottom: 22px; z-index: 2; font-size: .875rem; font-weight: 600; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.ce-frame.is-playing .ce-frame__caption { display: none; }
.ce-reassure { margin-top: 12px !important; color: var(--wp--preset--color--ink-muted); display: flex; align-items: center; gap: 8px; }
.ce-reassure::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--wp--preset--color--signal-ok); flex: none; }
.ce-motion .ce-hero h1 + * + * + * + * { animation-delay: 1.4s; }
.ce-chapter span { color: var(--wp--preset--color--ink-muted); font-family: var(--wp--preset--font-family--text); font-size: 14px; letter-spacing: 0; }
.ce-chapter b { font-family: var(--wp--preset--font-family--mono); }

/* Règle sous le hero : graduations seules, sans chiffres */
.ce-ruler__labels, .ce-ruler__readout { display: none; }
.ce-ruler:has(.ce-ruler__readout) { height: 28px; padding-top: 0; }
.ce-ruler:has(.ce-ruler__readout) .ce-ruler__head { top: 2px; }

/* Portfolio : plus de libellé de piste */
.ce-track { grid-template-columns: 1fr; }

/* ---------- Chapitres « négatif » : thème Jour du design system ---------- */
.ce-light {
	--wp--preset--color--bg: #f8f6fb; --wp--preset--color--surface-1: #ffffff; --wp--preset--color--surface-2: #efeaf7;
	--wp--preset--color--line: #dcd3ea; --wp--preset--color--line-strong: #8d80a6;
	--wp--preset--color--ink: #191224; --wp--preset--color--ink-muted: #5c5170; --wp--preset--color--ink-faint: #6b607f;
	--wp--preset--color--violet: #5b2ee0; --wp--preset--color--violet-strong: #5b2ee0; --wp--preset--color--violet-soft: #e9e2fd;
	--wp--preset--color--signal-ok: #1f7a4a; --ce-focus: 0 0 0 3px #5b2ee0;
	position: relative; isolation: isolate; overflow: hidden;
	background-color: var(--wp--preset--color--bg) !important; color: var(--wp--preset--color--ink);
}
.ce-light.ce-section--rule { border-top: 0; }
.ce-light + .ce-light { padding-top: 0; }
.ce-light .ce-chapter b { color: #9a5a00; }
.ce-light .ce-compare--after { background: var(--wp--preset--color--violet-soft); }

/* Formes flottantes : clips et cadres en violet transparent, nets, en parallaxe */
.ce-shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; max-width: none !important; margin: 0 !important; }
.ce-shape { position: absolute; border-radius: 10px; transform: translate3d(0, calc(var(--sp, .5) * var(--v, 0px)), 0) rotate(var(--r, 0deg)); }
.ce-shape--fill { background: rgba(91, 46, 224, var(--a, .1)); }
.ce-shape--line { border: 1.5px solid rgba(91, 46, 224, .22); }
.ce-shape--frame { border-radius: 16px; }
.ce-shape--clip { border-radius: 6px; }
.ce-shape > i { position: absolute; inset: 0; border-radius: inherit; animation: ce-float var(--t, 14s) ease-in-out infinite alternate; background: inherit; border: inherit; }
@keyframes ce-float { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(var(--fx, 12px), var(--fy, -18px), 0) rotate(var(--fr, 3deg)); } }
.ce-shape { background: none !important; border: 0 !important; }
.ce-shape--fill > i { background: rgba(91, 46, 224, var(--a, .1)); }
.ce-shape--line > i { border: 1.5px solid rgba(91, 46, 224, .24); background: none; }
@media (prefers-reduced-motion: reduce) { .ce-shape > i { animation: none; } }
@media (max-width: 781px) { .ce-shape:nth-child(n+4) { display: none; } }

/* ---------- Changement de chapitre : une seule famille, la planche qui monte ---------- */
main.wp-block-group > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ce-panel { position: relative; z-index: 1; margin-top: -48px !important; border-radius: 48px 48px 0 0; isolation: isolate; }
.ce-panel:not(.ce-light):not(.ce-section--alt) { background: var(--wp--preset--color--bg); }
/* Avec les animations : la section prend la couleur du chapitre précédent, et sa propre couleur devient la planche. */
.ce-motion .ce-panel.is-panel-ready { background: var(--prev) !important; border-radius: 0; box-shadow: none; }
.ce-motion .ce-panel.is-panel-ready::before {
	content: ""; position: absolute; inset: 0 -2px -6px; z-index: -2; pointer-events: none; background: var(--own);
	border-radius: 48px 48px 0 0;
	transform-origin: var(--origin, 50% 0);
	transform: translate3d(0, calc((1 - var(--rise, 1)) * 64px), 0) scale(calc(.93 + var(--rise, 1) * .07)) rotate(calc((1 - var(--rise, 1)) * var(--tilt, 0deg)));
}
.ce-motion .ce-panel.is-panel-ready::after {
	content: ""; position: absolute; left: 48px; right: 48px; top: 0; height: 2px; z-index: 5; pointer-events: none; background: var(--ce-head);
	transform-origin: var(--origin, 50% 0); transform: scaleX(clamp(0, var(--rise, 1) * 2.5 - 1.5, 1)); opacity: calc(1 - clamp(0, var(--rise, 1) * 4 - 3, 1));
}
.ce-motion .ce-panel.is-panel-ready > .ce-shapes { z-index: -1; }
@media (max-width: 781px) {
	.ce-panel { margin-top: -28px !important; border-radius: 28px 28px 0 0; }
	.ce-motion .ce-panel.is-panel-ready::before { border-radius: 28px 28px 0 0; transform: translate3d(0, calc((1 - var(--rise, 1)) * 40px), 0) scale(calc(.97 + var(--rise, 1) * .03)); }
	.ce-motion .ce-panel.is-panel-ready::after { left: 28px; right: 28px; }
}
.ce-motion .ce-panel.is-panel-ready { overflow: clip; overflow-clip-margin: 0; }
