/* Code4Lab – style du site
   Direction : un « labo » joyeux pour enfants. Indigo et orange du logo, 6 couleurs d'univers,
   boutons en relief, formes arrondies, et du mouvement là où il raconte quelque chose
   (diaporama, robot qui exécute du code, jauges de places). Contenu centré à 1180px. */
:root {
	--c4l-indigo: #1b0fa8;
	--c4l-indigo-dark: #120a72;
	--c4l-night: #0d0852;
	--c4l-orange: #f47a1f;
	--c4l-orange-dark: #c95a0a;
	--c4l-ink: #1d1b3a;
	--c4l-muted: #57567a;
	--c4l-soft: #f4f3fd;
	--c4l-cream: #fff8ef;
	--c4l-line: #e3e1f5;
	--c4l-white: #ffffff;
	--c4l-pink: #e8487f;
	--c4l-green: #17a673;
	--c4l-yellow: #f5b419;
	--c4l-blue: #2b7ff0;
	--c4l-coral: #ef5a3c;
	--c4l-radius: 18px;
	--c4l-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
	--c4l-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
	--c4l-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
	--c4l-wide: 1180px;
}

/* ============ Base ============ */
html, body { overflow-x: clip; }
body, .entry-content, button, input, textarea, select {
	font-family: var(--c4l-body);
	color: var(--c4l-ink);
}
body { font-size: 17px; line-height: 1.65; background: var(--c4l-white); }
h1, h2, h3, h4, .site-title, .entry-title {
	font-family: var(--c4l-head);
	color: var(--c4l-indigo-dark);
	line-height: 1.1;
	text-wrap: balance;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
a { color: var(--c4l-indigo); }
a:hover { color: var(--c4l-orange-dark); }
:focus-visible { outline: 3px solid var(--c4l-orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: #ffd8b8; color: var(--c4l-ink); }

/* ============ En-tête ============ */
#masthead, .site-header { position: relative; z-index: 50; }
.site-main-header-wrap, .site-main-header-wrap .site-header-row-container-inner { background: rgba(255,255,255,.97) !important; box-shadow: none !important; }
.site-main-header-wrap.item-is-stuck { box-shadow: 0 6px 24px rgba(18,10,114,.1) !important; backdrop-filter: blur(8px); }
.custom-logo { max-height: 62px; width: auto; transition: transform .3s; }
.site-branding a:hover .custom-logo { transform: rotate(-3deg) scale(1.04); }
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-weight: 700;
	color: var(--c4l-ink);
	position: relative;
}
.main-navigation .primary-menu-container > ul > li.menu-item:not(.c4l-menu-don) > a::after {
	content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 3px;
	border-radius: 3px; background: var(--c4l-orange); transition: left .25s, right .25s;
}
.main-navigation .primary-menu-container > ul > li.menu-item:not(.c4l-menu-don) > a:hover::after,
.main-navigation .primary-menu-container > ul > li.current-menu-item:not(.c4l-menu-don) > a::after { left: 1em; right: 1em; }
.main-navigation .primary-menu-container > ul > li.c4l-menu-don > a,
.mobile-navigation ul li.c4l-menu-don > a {
	background: var(--c4l-orange);
	color: #fff !important;
	border-radius: 999px;
	padding: .55em 1.3em;
	margin-left: .6em;
	box-shadow: 0 4px 0 var(--c4l-orange-dark);
	transition: transform .15s, box-shadow .15s;
}
.main-navigation .primary-menu-container > ul > li.c4l-menu-don > a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--c4l-orange-dark); }

/* ============ Boutons en relief ============ */
.wp-block-button__link, .c4l-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--c4l-body); font-weight: 800; letter-spacing: .01em;
	background: var(--c4l-orange); color: #fff !important;
	border: 0; border-radius: 999px;
	padding: .8em 1.7em; text-decoration: none; cursor: pointer;
	box-shadow: 0 5px 0 var(--c4l-orange-dark);
	transition: transform .15s, box-shadow .15s, background .15s;
}
.wp-block-button__link:hover, .c4l-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--c4l-orange-dark); background: #ff8a33; }
.wp-block-button__link:active, .c4l-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--c4l-orange-dark); }
.c4l-btn--big { font-size: 1.08rem; padding: .95em 2em; }
.wp-block-button.is-style-outline .wp-block-button__link,
.c4l-btn--ghost-dark {
	background: #fff; color: var(--c4l-indigo) !important;
	box-shadow: inset 0 0 0 2.5px var(--c4l-indigo), 0 5px 0 var(--c4l-indigo);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.c4l-btn--ghost-dark:hover { background: var(--c4l-soft); box-shadow: inset 0 0 0 2.5px var(--c4l-indigo), 0 7px 0 var(--c4l-indigo); }
.c4l-btn--ghost,
.c4l-pagehead .wp-block-button.is-style-outline .wp-block-button__link,
.c4l-indigo-bg .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255,255,255,.1); color: #fff !important;
	box-shadow: inset 0 0 0 2.5px #fff, 0 5px 0 rgba(0,0,0,.25);
	backdrop-filter: blur(4px);
}
.c4l-btn--ghost:hover { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 2.5px #fff, 0 7px 0 rgba(0,0,0,.25); }

/* ============ Sections ============ */
.entry-content .wp-block-group.c4l-section {
	position: relative;
	padding: clamp(64px, 9vw, 110px) max(20px, env(safe-area-inset-right, 0px)) clamp(64px, 9vw, 110px) max(20px, env(safe-area-inset-left, 0px)) !important;
	margin-top: 0 !important; margin-bottom: 0 !important;
}
.c4l-section > *, .c4l-section > .wp-block-group__inner-container { max-width: var(--c4l-wide); margin-left: auto !important; margin-right: auto !important; position: relative; }
.c4l-section .wp-block-group__inner-container > :first-child { margin-top: 0; }
.c4l-section .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.c4l-soft { background: var(--c4l-soft); }
.c4l-cream { background: var(--c4l-cream); }
.c4l-indigo-bg { background: var(--c4l-indigo); color: #fff; overflow: hidden; }
.c4l-indigo-bg h2, .c4l-indigo-bg h3, .c4l-indigo-bg p, .c4l-indigo-bg li { color: #fff; }
.c4l-center { text-align: center; }
.c4l-center .wp-block-buttons { justify-content: center; }
.c4l-center .c4l-lead { margin-left: auto; margin-right: auto; }

/* Vague décorative en bas d'une section colorée */
.c4l-wave-bottom::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; pointer-events: none;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 360 0 720 70 1080 30 S 1440 20 1440 20 V60 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 360 0 720 70 1080 30 S 1440 20 1440 20 V60 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.c4l-wave-bottom.to-soft::after { background: var(--c4l-soft); }

.c4l-eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--c4l-body); font-weight: 800;
	text-transform: uppercase; letter-spacing: .14em;
	font-size: .78rem !important; color: var(--c4l-orange-dark);
	margin-bottom: .5em !important;
}
.c4l-eyebrow::before { content: "</>"; font-family: var(--c4l-mono); letter-spacing: 0; font-size: .95em; color: var(--c4l-orange); }
.c4l-indigo-bg .c4l-eyebrow, .c4l-pagehead .c4l-eyebrow { color: #ffc999; }
.c4l-lead { font-size: 1.16rem; color: var(--c4l-muted); max-width: 700px; }
.c4l-indigo-bg .c4l-lead, .c4l-pagehead .c4l-lead { color: #dcdaf7; }

/* ============ En-tête des pages intérieures ============ */
.entry-content .wp-block-group.c4l-pagehead {
	position: relative; overflow: hidden; isolation: isolate;
	background: radial-gradient(circle at 85% 20%, #3a2ee0 0, transparent 45%), linear-gradient(135deg, var(--c4l-indigo) 0%, var(--c4l-night) 100%);
	color: #fff;
	padding: clamp(80px, 11vw, 140px) max(20px, env(safe-area-inset-right, 0px)) clamp(100px, 12vw, 160px) max(20px, env(safe-area-inset-left, 0px)) !important;
	margin: 0 !important;
}
.c4l-pagehead h1 { color: #fff; max-width: 820px; }
.c4l-pagehead::before {
	content: "{ }   </>   01   ( )   #   ;"; position: absolute; z-index: -1;
	right: -2%; top: 18%; font-family: var(--c4l-mono); font-size: clamp(3rem, 9vw, 7rem); font-weight: 700;
	color: rgba(255,255,255,.06); white-space: nowrap; letter-spacing: .1em;
	animation: c4l-drift 26s linear infinite alternate;
}
.c4l-pagehead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C 300 0 620 80 960 40 S 1300 10 1440 30 V70 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C 300 0 620 80 960 40 S 1300 10 1440 30 V70 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.c4l-pagehead .wp-block-group__inner-container { position: relative; }
.c4l-pagehead .c4l-bubble {
	position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px);
}

/* ============ Diaporama ============ */
.c4l-slider {
	position: relative; isolation: isolate; overflow: hidden;
	width: 100vw; margin-left: calc(50% - 50vw);
	background: var(--c4l-night); color: #fff;
}
.c4l-slider__track { display: grid; min-height: clamp(580px, 86vh, 840px); }
.c4l-slide {
	grid-area: 1 / 1; position: relative; display: flex; align-items: center;
	opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s;
}
.c4l-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.c4l-slide.is-leaving { visibility: visible; z-index: 1; }
.c4l-slide__media { position: absolute; inset: 0; overflow: hidden; }
.c4l-slide__media img, .c4l-slide__media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); transition: transform 9s ease-out; }
.c4l-slide.is-active .c4l-slide__media img, .c4l-slide.is-active .c4l-slide__media video { transform: scale(1); }
.c4l-slide__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(13,8,82,.94) 0%, rgba(18,10,114,.78) 38%, rgba(18,10,114,.25) 70%, rgba(18,10,114,.05) 100%),
		linear-gradient(0deg, rgba(13,8,82,.65) 0%, transparent 35%);
}
.c4l-slide__content {
	position: relative; z-index: 3; width: 100%; max-width: var(--c4l-wide); margin: 0 auto;
	padding: 90px max(24px, env(safe-area-inset-right, 0px)) 170px max(24px, env(safe-area-inset-left, 0px));
}
.c4l-slide__content > * { max-width: 680px; }
.c4l-slide__eyebrow, .c4l-slide__title, .c4l-slide__text, .c4l-slide__btns {
	opacity: 0; transform: translateY(28px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.c4l-slide.is-active .c4l-slide__eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.c4l-slide.is-active .c4l-slide__title { opacity: 1; transform: none; transition-delay: .4s; }
.c4l-slide.is-active .c4l-slide__text { opacity: 1; transform: none; transition-delay: .55s; }
.c4l-slide.is-active .c4l-slide__btns { opacity: 1; transform: none; transition-delay: .7s; }
.c4l-slide__eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
	border-radius: 999px; padding: .4em 1em; margin: 0 0 1.2em;
	font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #ffd2ad;
}
.c4l-slide__eyebrow span { width: .55em; height: 1.1em; background: var(--c4l-orange); border-radius: 2px; animation: c4l-caret 1s steps(1) infinite; }
.c4l-slide__title { color: #fff !important; font-size: clamp(2.5rem, 6vw, 4.8rem) !important; font-weight: 800; margin: 0 0 .35em; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.c4l-slide__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #e8e6ff; margin: 0 0 1.8em; }
.c4l-slide__btns { display: flex; flex-wrap: wrap; gap: 14px 16px; }

.c4l-slider__glyphs { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.c4l-slider__glyphs span {
	position: absolute; font-family: var(--c4l-mono); font-weight: 700; color: rgba(255,255,255,.16);
	font-size: calc(1.4rem + var(--i) * .35rem);
	animation: c4l-bob calc(6s + var(--i) * 1.1s) ease-in-out infinite alternate;
}
.c4l-slider__glyphs span:nth-child(1) { left: 58%; top: 14%; color: rgba(244,122,31,.5); }
.c4l-slider__glyphs span:nth-child(2) { left: 78%; top: 26%; }
.c4l-slider__glyphs span:nth-child(3) { left: 90%; top: 58%; color: rgba(245,180,25,.45); }
.c4l-slider__glyphs span:nth-child(4) { left: 66%; top: 70%; }
.c4l-slider__glyphs span:nth-child(5) { left: 84%; top: 8%; color: rgba(232,72,127,.45); }
.c4l-slider__glyphs span:nth-child(6) { left: 52%; top: 46%; }
.c4l-slider__glyphs span:nth-child(7) { left: 72%; top: 46%; color: rgba(23,166,115,.5); }
.c4l-slider__glyphs span:nth-child(8) { left: 94%; top: 82%; }

.c4l-slider__nav {
	position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
	bottom: 86px; width: 100%; max-width: var(--c4l-wide);
	padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
	display: flex; align-items: center; gap: 14px;
}
.c4l-slider__arrow, .c4l-slider__pause {
	width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
	display: grid; place-items: center;
	background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff;
	transition: background .2s, transform .2s;
}
.c4l-slider__arrow:hover, .c4l-slider__pause:hover { background: var(--c4l-orange); transform: scale(1.08); }
.c4l-slider__arrow svg, .c4l-slider__pause svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c4l-slider__pause .i-play { display: none; fill: currentColor; stroke: none; }
.c4l-slider.is-paused .c4l-slider__pause .i-play { display: block; }
.c4l-slider.is-paused .c4l-slider__pause .i-pause { display: none; }
.c4l-slider__dots { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.c4l-slider__dot { flex: 1; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.c4l-slider__dot span { display: block; width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.c4l-slider__dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.c4l-slider__dot.is-active span::after { transform: scaleX(1); }
.c4l-slider.is-ticking .c4l-slider__dot.is-active span::after { transform: scaleX(0); animation: c4l-progress var(--c4l-interval, 7000ms) linear forwards; background: var(--c4l-orange); }
.c4l-slider__pause { margin-left: auto; }
.c4l-slider__wave { position: absolute; z-index: 4; left: 0; bottom: -1px; width: 100%; height: 70px; fill: #fff; }

/* ============ Univers ============ */
.c4l-univers { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 40px; }
.c4l-univers__item {
	--uc: var(--c4l-indigo); --ub: #ecebff;
	flex: 1 1 230px; max-width: 270px;
	display: flex; flex-direction: column; gap: 6px;
	padding: 26px 24px 24px; border-radius: 24px; text-decoration: none;
	background: var(--ub); color: var(--c4l-ink);
	transition: transform .25s cubic-bezier(.2,.8,.2,1.4), box-shadow .25s;
}
.c4l-univers__item:hover, .c4l-univers__item:focus-visible { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 18px 36px -12px var(--uc); color: var(--c4l-ink); }
.c4l-univers__item strong { font-family: var(--c4l-head); font-size: 1.28rem; line-height: 1.15; color: var(--c4l-ink); }
.c4l-univers__item > span:last-child { color: var(--c4l-muted); font-size: .96rem; line-height: 1.45; }
.c4l-univers__icon, .c4l-bigicon { display: block; width: 66px; height: 66px; margin-bottom: 8px; }
@media (max-width: 600px) {
	.c4l-univers { gap: 12px; }
	.c4l-univers__item { max-width: none; flex-basis: 100%; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 2px; padding: 18px; align-items: center; }
	.c4l-univers__icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
}
.c4l-bigicon { width: 96px; height: 96px; padding: 14px; border-radius: 26px; background: var(--ub); }
.c4l-univers__icon svg, .c4l-bigicon svg { width: 100%; height: 100%; overflow: visible; }
.c4l-c-orange { --uc: var(--c4l-orange); --ub: #ffeedf; }
.c4l-c-indigo { --uc: #4b3df0; --ub: #ebe9ff; }
.c4l-c-pink { --uc: var(--c4l-pink); --ub: #ffe6ef; }
.c4l-c-green { --uc: var(--c4l-green); --ub: #dff7ec; }
.c4l-c-yellow { --uc: var(--c4l-yellow); --ub: #fff4d6; }
.c4l-c-blue { --uc: var(--c4l-blue); --ub: #e2efff; }
.c4l-c-coral { --uc: var(--c4l-coral); --ub: #ffe7e1; }
.c4l-univers__icon .f1, .c4l-bigicon .f1 { fill: var(--uc); }
.c4l-univers__icon .f2, .c4l-bigicon .f2 { fill: var(--c4l-ink); opacity: .85; }
.c4l-univers__icon .f3, .c4l-bigicon .f3 { fill: var(--c4l-yellow); }
.c4l-univers__icon .f4, .c4l-bigicon .f4 { fill: #fff; }
.c4l-univers__icon .s, .c4l-bigicon .s { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.c4l-univers__icon line.s, .c4l-bigicon line.s { stroke: var(--c4l-ink); }
.c4l-univers__icon .s2, .c4l-bigicon .s2 { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.c4l-c-yellow .s, .c4l-c-yellow .s2 { stroke: var(--c4l-ink); }
/* Les icônes s'animent au survol (et en continu dans les grands formats) */
[class*="anim-"] { transform-box: fill-box; transform-origin: center; animation-play-state: paused; }
.c4l-univers__item:hover [class*="anim-"], .c4l-univers__item:focus-visible [class*="anim-"], .c4l-bigicon [class*="anim-"] { animation-play-state: running; }
.anim-blink { animation: c4l-blink 1.2s ease-in-out infinite; }
.anim-blink2 { animation: c4l-blink 1.2s ease-in-out .6s infinite; }
.anim-eyes { animation: c4l-eyes 2.6s ease-in-out infinite; }
.anim-spin { animation: c4l-spin 2s linear infinite; }
.anim-pulse { animation: c4l-pulse 1.4s ease-in-out infinite; }
.anim-bar { transform-origin: bottom; animation: c4l-bar 1.6s ease-in-out infinite alternate; }
.anim-float { animation: c4l-bob 1.6s ease-in-out infinite alternate; }
.anim-type { transform-origin: left; animation: c4l-type 1.8s steps(6) infinite; }
.anim-check { stroke-dasharray: 40; animation: c4l-draw 1.8s ease-in-out infinite; }
.d2 { animation-delay: .2s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .6s; }

/* ============ Démo code + robot ============ */
.c4l-split { gap: clamp(32px, 5vw, 64px) !important; align-items: center; }
.c4l-demo {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0;
	border-radius: 26px; overflow: hidden; background: #16133d;
	box-shadow: 0 30px 60px -20px rgba(13,8,82,.45);
	transform: rotate(-1deg);
}
@media (min-width: 782px) {
	.c4l-split > .wp-block-column:has(.c4l-demo) { flex: 0 0 56% !important; min-width: 0; }
	.c4l-split > .wp-block-column:not(:has(.c4l-demo)) { flex: 1 1 0 !important; min-width: 0; }
}
.wp-block-column:has(> .wp-block-shortcode .c4l-demo), .wp-block-column:has(.c4l-demo) { container-type: inline-size; }
@container (max-width: 620px) {
	.c4l-demo { grid-template-columns: 1fr; }
	.c4l-demo__stage { width: min(78%, 340px); margin: 6px auto 22px; }
}
.c4l-demo__run { white-space: nowrap; }
.c4l-demo__editor { padding: 0 0 18px; min-width: 0; }
.c4l-demo__bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; background: #0f0c30; }
.c4l-demo__bar > span { width: 12px; height: 12px; border-radius: 50%; background: #ef5a3c; }
.c4l-demo__bar > span:nth-child(2) { background: #f5b419; }
.c4l-demo__bar > span:nth-child(3) { background: #17a673; }
.c4l-demo__bar em { font-style: normal; font-family: var(--c4l-mono); font-size: .8rem; color: #8f8cc9; margin-left: 8px; }
.c4l-demo__run { margin-left: auto; border: 0; border-radius: 999px; padding: .35em .9em; font-weight: 800; font-size: .8rem; background: var(--c4l-green); color: #fff; cursor: pointer; }
.c4l-demo__run:hover { background: #1bc086; }
.c4l-demo__code { margin: 0; padding: 18px 0 6px; background: none; border: 0; font-family: var(--c4l-mono); font-size: clamp(.82rem, 1.4vw, 1rem); line-height: 1.9; color: #e9e7ff; white-space: pre; overflow-x: auto; }
.c4l-demo__code code { display: block; padding: 0 18px 0 0; background: none; color: inherit; font: inherit; min-height: 1.9em; transition: background .2s; }
.c4l-demo__code .ln { display: inline-block; width: 2.6em; text-align: right; padding-right: 1em; color: #5c58a0; user-select: none; }
.c4l-demo__code b { color: #7cc4ff; font-weight: 600; }
.c4l-demo__code i { color: #ff8fb7; font-style: normal; }
.c4l-demo__code u { color: #ffc23c; text-decoration: none; }
.c4l-demo__code s { color: #7be3b1; text-decoration: none; }
.c4l-demo__code code.is-typing .tx::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: -.15em; background: var(--c4l-orange); animation: c4l-caret .8s steps(1) infinite; }
.c4l-demo__code code.is-run { background: rgba(244,122,31,.2); box-shadow: inset 4px 0 0 var(--c4l-orange); }
.c4l-demo__console { margin: 8px 18px 0; padding: 10px 14px; border-radius: 10px; background: #0f0c30; font-family: var(--c4l-mono); font-size: .85rem; color: #7be3b1; }
.c4l-demo__console span { color: var(--c4l-orange); }
.c4l-demo__stage { position: relative; aspect-ratio: 1; max-width: 100%; margin: 22px; border-radius: 18px; background: #fff8ef; }
.c4l-demo__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.c4l-demo__grid i { border: 1px dashed #f1dcc5; }
.c4l-demo__grid i:nth-child(26) { background: radial-gradient(circle, rgba(23,166,115,.25) 0 45%, transparent 46%); }
.c4l-demo__trail i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c4l-orange); opacity: .7; animation: c4l-pop .3s ease-out; }
.c4l-demo__robot { position: absolute; width: 16.666%; height: 16.666%; padding: 4px; transition: left .42s cubic-bezier(.4,0,.2,1), top .42s cubic-bezier(.4,0,.2,1); }
.c4l-demo__robot svg { width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.c4l-demo__robot .led { fill: #c9c6e8; transition: fill .3s; }
.c4l-demo__robot.is-happy svg { animation: c4l-happy .6s ease-in-out 3; }
.c4l-demo__robot.is-happy .led { fill: #17d38e; filter: drop-shadow(0 0 6px #17d38e); }

/* ============ Fonctionnalités / étapes ============ */
.c4l-features { gap: 28px !important; margin-top: 40px; }
.c4l-feature { padding-top: 22px; border-top: 4px solid var(--c4l-orange); }
.c4l-feature h3 { margin: 0 0 .4em; }
.c4l-feature p { color: var(--c4l-muted); }
.c4l-steps { counter-reset: step; gap: 24px !important; margin-top: 44px; position: relative; }
.c4l-step { position: relative; padding-top: 74px; }
.c4l-step::before {
	counter-increment: step; content: counter(step);
	position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 18px;
	display: grid; place-items: center; transform: rotate(-6deg);
	font-family: var(--c4l-head); font-size: 1.7rem; font-weight: 800;
	background: var(--c4l-indigo); color: #fff; box-shadow: 0 5px 0 var(--c4l-night);
	transition: transform .3s cubic-bezier(.2,.8,.2,1.6);
}
.c4l-step:nth-child(2)::before { background: var(--c4l-orange); box-shadow: 0 5px 0 var(--c4l-orange-dark); transform: rotate(5deg); }
.c4l-step:nth-child(3)::before { background: var(--c4l-green); box-shadow: 0 5px 0 #0d7a53; }
.c4l-step:nth-child(4)::before { background: var(--c4l-pink); box-shadow: 0 5px 0 #b02d5c; transform: rotate(4deg); }
.c4l-step:hover::before { transform: rotate(0) scale(1.1); }
.c4l-step h3 { margin: 0 0 .3em; }
.c4l-step p { color: var(--c4l-muted); margin: 0; }

/* ============ Photos ============ */
.c4l-photo img { border-radius: 24px; width: 100%; height: auto; object-fit: cover; }
.c4l-photo.is-tilt img { transform: rotate(1.5deg); box-shadow: 0 24px 50px -20px rgba(13,8,82,.4); }
.c4l-galerie { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; margin-top: 36px; }
.c4l-galerie__item { position: relative; margin: 0; border-radius: 20px; overflow: hidden; }
.c4l-galerie__item.g1 { grid-column: span 2; grid-row: span 2; }
.c4l-galerie__item.g4 { grid-column: span 2; }
.c4l-galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.c4l-galerie__item:hover img { transform: scale(1.07); }
.c4l-galerie__item figcaption {
	position: absolute; left: 12px; bottom: 12px; right: 12px; padding: .45em .9em; border-radius: 999px; width: fit-content; max-width: calc(100% - 24px);
	background: rgba(255,255,255,.92); font-weight: 700; font-size: .85rem; color: var(--c4l-ink);
	transform: translateY(8px); opacity: 0; transition: .3s;
}
.c4l-galerie__item:hover figcaption { transform: none; opacity: 1; }
@media (max-width: 780px) {
	.c4l-galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.c4l-galerie__item figcaption { opacity: 1; transform: none; }
}

/* ============ Cartes (campagnes, actualités) ============ */
.c4l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-top: 36px; }
.c4l-item {
	background: #fff; border: 1px solid var(--c4l-line); border-radius: 24px; overflow: hidden;
	display: flex; flex-direction: column;
	transition: box-shadow .3s, transform .3s cubic-bezier(.2,.8,.2,1.4);
}
.c4l-item:hover { box-shadow: 0 22px 44px -18px rgba(27,15,168,.35); transform: translateY(-6px); }
.c4l-item__media { overflow: hidden; }
.c4l-item__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.c4l-item:hover .c4l-item__media img { transform: scale(1.06); }
.c4l-item__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.c4l-item__body h3 { margin: 0; font-size: 1.28rem; }
.c4l-item__body h3 a { color: var(--c4l-indigo-dark); text-decoration: none; }
.c4l-item__body p { margin: 0; color: var(--c4l-muted); flex: 1; }
.c4l-item__body .c4l-btn { align-self: flex-start; margin-top: 12px; }
.c4l-meta { font-size: .85rem; color: var(--c4l-muted); font-weight: 600; }
.c4l-link { font-weight: 800; text-decoration: none; }
.c4l-link::after { content: " →"; display: inline-block; transition: transform .2s; }
.c4l-link:hover::after { transform: translateX(4px); }
.c4l-tag {
	display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 800;
	background: #fff1e6; color: var(--c4l-orange-dark); padding: .28em .85em; border-radius: 999px;
}
.c4l-tag.is-age { background: #ebe9ff; color: var(--c4l-indigo); }
.c4l-empty { color: var(--c4l-muted); font-style: italic; }

/* ============ Événements ============ */
.c4l-events { display: grid; gap: 18px; margin-top: 36px; }
.c4l-event {
	display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px;
	padding: 14px; border-radius: 24px; background: #fff; border: 1px solid var(--c4l-line);
	transition: border-color .2s, box-shadow .3s, transform .3s;
}
.c4l-event:hover { border-color: #c9c4ff; box-shadow: 0 18px 40px -20px rgba(27,15,168,.35); transform: translateY(-3px); }
.c4l-event__media { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c4l-soft); }
.c4l-event__media img { width: 100%; height: 100%; object-fit: cover; }
.c4l-event__date {
	position: absolute; left: 10px; top: 10px; min-width: 56px; text-align: center; line-height: 1;
	background: var(--c4l-indigo); color: #fff; border-radius: 12px; padding: 8px 6px 7px;
	text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
	box-shadow: 0 4px 0 var(--c4l-night);
}
.c4l-event__date b { display: block; font-family: var(--c4l-head); font-size: 1.7rem; letter-spacing: 0; margin-bottom: 2px; }
.c4l-event__info { min-width: 0; }
.c4l-event__info h3 { margin: 6px 0 4px; font-size: 1.25rem; }
.c4l-event__info h3 a { color: var(--c4l-indigo-dark); text-decoration: none; }
.c4l-event__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.c4l-event__when { margin: 0; color: var(--c4l-muted); font-size: .95rem; }
.c4l-event__cta { display: grid; justify-items: end; gap: 8px; padding-right: 10px; min-width: 190px; }
.c4l-event__cta .c4l-jauge { width: 100%; }
@media (max-width: 820px) {
	.c4l-event { grid-template-columns: 120px 1fr; }
	.c4l-event__cta { grid-column: 1 / -1; justify-items: start; padding: 0 4px 6px; min-width: 0; }
}
@media (max-width: 480px) {
	.c4l-event { grid-template-columns: 1fr; }
	.c4l-event__media { aspect-ratio: 16 / 9; }
}

/* Places restantes */
.c4l-places { display: inline-flex; align-items: center; gap: .45em; font-weight: 800; font-size: .86rem; padding: .3em .85em; border-radius: 999px; }
.c4l-places::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.c4l-places.is-open { background: #dff7ec; color: #0d7a53; }
.c4l-places.is-low { background: #fff1e6; color: var(--c4l-orange-dark); }
.c4l-places.is-low::before { animation: c4l-blink 1s ease-in-out infinite; }
.c4l-places.is-full { background: #ffe7e1; color: #b8331a; }
.c4l-places.is-done { background: #eeedf5; color: #6b6a85; }
.c4l-jauge { display: block; height: 8px; border-radius: 8px; background: var(--c4l-soft); overflow: hidden; min-width: 120px; }
.c4l-jauge span { display: block; height: 100%; width: var(--p); border-radius: 8px; background: linear-gradient(90deg, var(--c4l-green), var(--c4l-yellow), var(--c4l-orange)); background-size: 300px 100%; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.c4l-jauge.c4l-anim:not(.is-in) span { width: 0; }

/* Formulaire d'inscription */
.c4l-inscription {
	margin: 48px 0 24px; padding: clamp(22px, 4vw, 40px); border-radius: 28px;
	background: var(--c4l-soft); border: 2px solid #e1defb; position: relative; overflow: hidden;
}
.c4l-inscription::before { content: "</>"; position: absolute; right: -10px; top: -30px; font-family: var(--c4l-mono); font-size: 9rem; font-weight: 800; color: rgba(27,15,168,.05); }
.c4l-inscription__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; position: relative; }
.c4l-inscription__head h2 { margin: 0; }
.c4l-inscription__count { display: grid; gap: 6px; justify-items: end; min-width: 200px; }
.c4l-inscription__count .c4l-jauge { width: 100%; }
.c4l-form { position: relative; }
.c4l-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .c4l-form__grid { grid-template-columns: 1fr; } }
.c4l-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.c4l-form input[type=text], .c4l-form input[type=email], .c4l-form input[type=tel], .c4l-form select, .c4l-form textarea {
	width: 100%; padding: .8em 1em; border-radius: 14px; border: 2px solid #dcd9f5; background: #fff; font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.c4l-form input:focus, .c4l-form select:focus, .c4l-form textarea:focus { border-color: var(--c4l-indigo); box-shadow: 0 0 0 4px rgba(27,15,168,.12); outline: none; }
.c4l-check label { font-weight: 600; display: flex; gap: .6em; align-items: flex-start; }
.c4l-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c4l-indigo); flex: none; }
.c4l-hp { position: absolute !important; left: -9999px !important; }
.c4l-alert { padding: 14px 18px; border-radius: 14px; font-weight: 700; position: relative; }
.c4l-alert.is-success { background: #dff7ec; color: #0b6545; }
.c4l-alert.is-info { background: #e2efff; color: #164e9e; }
.c4l-alert.is-error { background: #ffe7e1; color: #a12a14; }

/* ============ Encadré don ============ */
.c4l-don-box { margin-top: 32px; padding: 28px; border-radius: 24px; background: var(--c4l-soft); display: grid; gap: 12px; justify-items: start; }
.c4l-small { font-size: .9rem; color: var(--c4l-muted); margin: 0; }
.c4l-campagne-photo { margin: 0 0 28px; }
.c4l-campagne-photo img { aspect-ratio: 16 / 9; }

/* ============ FAQ ============ */
.wp-block-details { border-bottom: 2px solid var(--c4l-line); padding: 20px 0; }
.wp-block-details summary { font-family: var(--c4l-head); font-weight: 700; font-size: 1.18rem; color: var(--c4l-indigo-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c4l-soft); color: var(--c4l-indigo); font-size: 1.3rem; transition: transform .3s, background .3s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--c4l-orange); color: #fff; }
.wp-block-details p { color: var(--c4l-muted); margin-top: .6em; }

/* ============ Contact ============ */
.c4l-contact { gap: 22px !important; margin-top: 32px; }
.c4l-contact .wp-block-column { padding: 26px; border-radius: 24px; background: #fff; box-shadow: 0 14px 34px -18px rgba(13,8,82,.35); }
.c4l-contact h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.c4l-contact p { margin: 0; }

/* ============ Articles ============ */
.single-post .entry-content { font-size: 1.08rem; }
.single-post .entry-content > p:first-child { font-size: 1.25rem; color: var(--c4l-muted); }
.c4l-astuce { padding: 20px 24px; border-radius: 20px; background: #fff4d6; border-left: 6px solid var(--c4l-yellow); }
.c4l-astuce p { margin: 0; }
.entry-content blockquote { border-left: 6px solid var(--c4l-orange); background: var(--c4l-cream); padding: 18px 24px; border-radius: 0 18px 18px 0; font-size: 1.15rem; }
.loop-entry, .entry.loop-entry { border-radius: 24px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.loop-entry:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px rgba(27,15,168,.3); }
.archive .site-main .entry-hero-container-inner, .blog .site-main .entry-hero-container-inner { background: linear-gradient(135deg, var(--c4l-indigo), var(--c4l-night)); }
.archive .entry-hero h1, .blog .entry-hero h1 { color: #fff; }

/* ============ Partenaires ============ */
.c4l-partners { text-align: center; }
.c4l-partners__title { margin: 0 0 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--c4l-muted); }
.c4l-partners__viewport { display: flex; justify-content: center; overflow: hidden; }
.c4l-partners__track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 22px; }
.c4l-partner a, .c4l-partner > span {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	min-width: 220px; height: 120px; padding: 20px 30px; border-radius: 22px;
	background: #fff; border: 1px solid var(--c4l-line); text-decoration: none;
	transition: transform .3s cubic-bezier(.2,.8,.2,1.4), box-shadow .3s, border-color .3s;
}
.c4l-partner a:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -18px rgba(27,15,168,.35); border-color: #cfcaff; }
.c4l-partner img { max-height: 54px; max-width: 180px; width: auto; height: auto; object-fit: contain; filter: grayscale(.15); transition: filter .3s, transform .3s; }
.c4l-partner a:hover img { filter: none; transform: scale(1.05); }
.c4l-partner__role { font-size: .78rem; font-weight: 700; color: var(--c4l-muted); }
/* Défilement continu quand il y a beaucoup de logos */
.c4l-partners.is-marquee .c4l-partners__viewport { justify-content: flex-start; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.c4l-partners.is-marquee .c4l-partners__track { flex-wrap: nowrap; padding-right: 22px; animation: c4l-marquee 40s linear infinite; }
.c4l-partners.is-marquee:hover .c4l-partners__track { animation-play-state: paused; }
@keyframes c4l-marquee { to { transform: translateX(-100%); } }
.c4l-band { padding: 46px 20px; background: var(--c4l-soft); }
.c4l-platform { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; padding: 26px 30px; border-radius: 24px; background: #fff; border: 2px solid var(--c4l-line); }
.c4l-platform img { height: 52px; width: auto; }
.c4l-platform > div { flex: 1 1 300px; }
.c4l-platform p { margin: 0; color: var(--c4l-muted); }
.c4l-platform strong { color: var(--c4l-ink); font-family: var(--c4l-head); font-size: 1.15rem; }

/* ============ Pages légales ============ */
.c4l-legal { max-width: 820px; margin: 0 auto; }
.c4l-legal h2 { font-size: 1.55rem; margin-top: 2.2em; padding-top: .2em; display: flex; align-items: center; gap: .5em; }
.c4l-legal h2::before { content: ""; flex: none; width: 10px; height: 28px; border-radius: 5px; background: var(--c4l-orange); }
.c4l-legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.c4l-legal p, .c4l-legal li { color: #3b3a5c; }
.c4l-legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.c4l-legal th, .c4l-legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--c4l-line); }
.c4l-legal thead th { background: var(--c4l-soft); color: var(--c4l-indigo-dark); font-family: var(--c4l-head); font-size: 1rem; }
.c4l-legal .wp-block-table { overflow-x: auto; }
.c4l-toc { padding: 22px 26px; border-radius: 20px; background: var(--c4l-soft); }
.c4l-toc p { margin: 0 0 8px; font-weight: 800; color: var(--c4l-indigo-dark); }
.c4l-toc ol { margin: 0; padding-left: 1.3em; columns: 2 240px; column-gap: 30px; }
.c4l-toc a { text-decoration: none; font-weight: 600; }
.c4l-toc a:hover { text-decoration: underline; }
.c4l-card-id { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 1em 0; }
.c4l-card-id > div { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--c4l-line); }
.c4l-card-id span { display: block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--c4l-orange-dark); margin-bottom: 4px; }
.c4l-card-id p { margin: 0; color: var(--c4l-ink); font-weight: 600; }
.c4l-updated { font-size: .9rem; color: var(--c4l-muted); }

/* ============ Pied de page ============ */
.c4l-footer {
	position: relative; margin-top: 0; color: #cfccf3;
	background: radial-gradient(circle at 10% 0%, #241aa8 0, transparent 40%), var(--c4l-night);
	padding: 0 max(20px, env(safe-area-inset-right, 0px)) max(26px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.c4l-footer a { color: #fff; text-decoration: none; }
.c4l-footer a:hover { color: #ffb37a; }
.c4l-footer__wave { position: absolute; left: 0; right: 0; top: -89px; width: 100%; height: 90px; fill: var(--c4l-night); pointer-events: none; }
.c4l-footer__robot { position: absolute; top: -58px; left: 0; width: 50px; height: 50px; animation: c4l-walk 26s linear infinite; z-index: 2; pointer-events: none; }
/* Place libre sous le contenu pour la vague et le bandeau orange qui débordent vers le haut */
.entry-content > .wp-block-group.c4l-section:last-child { padding-bottom: calc(clamp(64px, 9vw, 110px) + 120px) !important; }
body:not(.content-vertical-padding-hide) .content-area { margin-bottom: 150px; }
.c4l-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--c4l-night); }
.c4l-footer__robot svg { width: 100%; height: 100%; animation: c4l-hop .5s ease-in-out infinite alternate; }
.c4l-footer__robot .led { fill: var(--c4l-orange); animation: c4l-blink 1s ease-in-out infinite; }
.c4l-footer__robot .w { transform-box: fill-box; transform-origin: center; }
.c4l-footer > :not(.c4l-footer__wave):not(.c4l-footer__robot) { max-width: var(--c4l-wide); margin-left: auto; margin-right: auto; position: relative; }
.c4l-footer__cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
	padding: 34px clamp(22px, 4vw, 44px); border-radius: 28px; transform: translateY(-36px);
	background: linear-gradient(120deg, var(--c4l-orange) 0%, #ff9a3c 55%, var(--c4l-yellow) 100%);
	box-shadow: 0 24px 50px -20px rgba(244,122,31,.6);
}
.c4l-footer__kicker { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--c4l-night); }
.c4l-footer__big { margin: 0; font-family: var(--c4l-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; color: var(--c4l-night); }
.c4l-footer__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.c4l-footer__cta .c4l-btn { background: var(--c4l-indigo); box-shadow: 0 5px 0 var(--c4l-night); }
.c4l-footer__cta .c4l-btn:hover { background: #2a1cc9; box-shadow: 0 7px 0 var(--c4l-night); color: #fff !important; }
.c4l-footer__cta .c4l-btn--ghost { background: rgba(255,255,255,.25); color: var(--c4l-night) !important; box-shadow: inset 0 0 0 2.5px var(--c4l-night), 0 5px 0 rgba(13,8,82,.4); }
.c4l-footer__cta .c4l-btn--ghost:hover { background: rgba(255,255,255,.45); color: var(--c4l-night) !important; }
.c4l-footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 18px 0 44px; }
.c4l-footer__logo { display: inline-block; background: #fff; border-radius: 20px; padding: 12px 18px; margin-bottom: 18px; transition: transform .3s; }
.c4l-footer__logo:hover { transform: rotate(-2deg) scale(1.03); }
.c4l-footer__logo img { display: block; height: 56px; width: auto; }
.c4l-footer__brand p { margin: 0; line-height: 1.6; max-width: 340px; }
.c4l-footer__title { margin: 4px 0 16px; font-family: var(--c4l-head); font-size: 1.2rem; font-weight: 700; color: #fff; }
.c4l-footer__title::after { content: ""; display: block; width: 32px; height: 4px; border-radius: 4px; margin-top: 6px; background: var(--c4l-orange); }
.c4l-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.c4l-footer__col ul a { color: #cfccf3; display: inline-block; transition: color .2s, transform .2s; }
.c4l-footer__col ul a:hover { color: #fff; transform: translateX(4px); }
.c4l-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.c4l-footer__contact svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255,255,255,.08); fill: none; stroke: #ffb37a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c4l-footer__contact li > span, .c4l-footer__contact li > a { padding-top: 5px; }
.c4l-footer__contactbtn { display: inline-block; margin-top: 18px; font-weight: 800; padding: .55em 1.1em; border-radius: 999px; background: rgba(255,255,255,.1); }
.c4l-footer__contactbtn:hover { background: var(--c4l-orange); color: #fff !important; }
.c4l-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.c4l-footer__legal p { margin: 0; }
.c4l-footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.c4l-footer__legal a { color: #cfccf3; }
.c4l-footer__top { font-weight: 800; color: #ffb37a !important; }
@media (max-width: 960px) { .c4l-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.c4l-footer__cols { grid-template-columns: 1fr; gap: 30px; }
	.c4l-footer__cta { transform: translateY(-28px); }
}

/* ============ The Events Calendar ============ */
.tribe-common .tribe-common-c-btn, .tribe-common a.tribe-common-c-btn { background-color: var(--c4l-orange) !important; border-radius: 999px !important; }
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime { color: var(--c4l-indigo); }
.tribe-events-single-event-title { font-family: var(--c4l-head); color: var(--c4l-indigo-dark); }
.tribe-events .tribe-events-c-top-bar__datepicker-button, .tribe-common--breakpoint-medium.tribe-events .tribe-events-header__events-bar { border-radius: 16px; }

/* ============ Apparition au défilement (seulement si JS actif) ============ */
.c4l-js .c4l-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.c4l-js .c4l-reveal.c4l-demo { transform: translateY(26px) rotate(-1deg); }
.c4l-js .c4l-reveal.is-in { opacity: 1; transform: none; }
.c4l-js .c4l-reveal.c4l-demo.is-in { transform: rotate(-1deg); }

/* ============ Animations ============ */
@keyframes c4l-caret { 50% { opacity: 0; } }
@keyframes c4l-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes c4l-bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes c4l-drift { from { transform: translateX(0); } to { transform: translateX(-8%); } }
@keyframes c4l-blink { 50% { opacity: .25; } }
@keyframes c4l-eyes { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes c4l-spin { to { transform: rotate(360deg); } }
@keyframes c4l-pulse { 50% { transform: scale(1.5); } }
@keyframes c4l-bar { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
@keyframes c4l-type { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes c4l-draw { 0% { stroke-dashoffset: 40; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes c4l-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes c4l-happy { 0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); } 50% { transform: rotate(var(--rot, 0deg)) translateY(-14%); } }
@keyframes c4l-walk { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }
@keyframes c4l-hop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-5px) rotate(3deg); } }

@media (max-width: 781px) {
	.c4l-demo { grid-template-columns: 1fr; transform: none; }
	.c4l-js .c4l-reveal.c4l-demo, .c4l-js .c4l-reveal.c4l-demo.is-in { transform: none; }
	.c4l-demo__stage { margin: 0 18px 18px; }
	.c4l-slide__content { padding-top: 70px; padding-bottom: 160px; }
	.c4l-slider__nav { bottom: 70px; }
	.c4l-slider__glyphs span:nth-child(n+5) { display: none; }
	.c4l-slide__shade { background: linear-gradient(0deg, rgba(13,8,82,.95) 0%, rgba(18,10,114,.75) 55%, rgba(18,10,114,.35) 100%); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.c4l-footer__robot { display: none; }
	.c4l-slide__media img, .c4l-slide__media video { transform: none; }
}
