/* ==========================================================================
   Developers.Institute Cameroun — v3 : en-têtes de page, cursus, médias, promo
   ========================================================================== */

/* ---------- En-têtes de page « riches » ---------- */
.page-hero--rich { background: var(--ink); color: rgba(255, 255, 255, .74); border-bottom: 0; padding: clamp(44px, 6vw, 84px) 0 clamp(60px, 7vw, 108px); }
.page-hero--rich .page-hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 25% 10%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 25% 10%, #000 10%, transparent 70%); }
.page-hero--rich::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 60%; background-image: linear-gradient(rgba(229, 40, 33, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(229, 40, 33, .28) 1px, transparent 1px); background-size: 52px 52px; transform: perspective(500px) rotateX(70deg); transform-origin: 50% 100%; mask-image: linear-gradient(to top, #000, transparent 70%); -webkit-mask-image: linear-gradient(to top, #000, transparent 70%); animation: gridMove 3.2s linear infinite; pointer-events: none; }
.page-hero__glow { position: absolute; width: 760px; height: 760px; right: -180px; top: -360px; background: radial-gradient(circle, rgba(229, 40, 33, .38), transparent 62%); pointer-events: none; }
.page-hero--rich .page-hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero--rich.is-compact .page-hero__inner { grid-template-columns: 1fr; }
.page-hero--rich .page-hero__title { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .35em; }
.page-hero--rich .page-hero__lead { color: rgba(255, 255, 255, .72); max-width: 600px; }
.page-hero--rich .eyebrow { color: #fff; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-hero__proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.page-hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__proof .icon { color: var(--red); width: 1.1em; }
/* Composition photo en grille : grande photo à gauche, petite photo + encart à droite, sans superposition. */
.page-hero__media { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; height: clamp(380px, 34vw, 480px); }
.page-hero__media.is-single { grid-template-columns: 1fr; }
.ph-tile { position: relative; margin: 0; min-height: 0; border-radius: 20px; overflow: hidden; background: #1a1a1c; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.ph-tile:hover img { transform: scale(1.04); }
.ph-tile--main { grid-row: 1 / -1; }
.ph-tile--main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 60%, rgba(229, 40, 33, .25)); pointer-events: none; }
.page-hero__media.is-single .ph-tile--main { grid-row: 1; }
.ph-info { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.ph-badge { display: flex; align-items: center; gap: 12px; color: #fff; }
.ph-badge strong { font-size: .95rem; line-height: 1.3; }
.ph-badge__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; }
.ph-code { display: flex; flex-direction: column; gap: 7px; background: #121214; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 9px 10px; color: #eaeaea; }
.ph-code code { font-family: var(--mono); font-size: .7rem; white-space: normal; overflow-wrap: break-word; }
@media (max-width: 960px) {
	.page-hero--rich .page-hero__inner { grid-template-columns: 1fr; }
	.page-hero__media { height: auto; grid-template-rows: auto; }
	.ph-tile--main { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
	.ph-tile--side { aspect-ratio: 4 / 3; }
	/* Recadrage paysage de photos portrait : on garde le haut de l'image (les visages). */
	.ph-tile img { object-position: 50% 18%; }
}
@media (max-width: 560px) {
	.page-hero__media { grid-template-columns: 1fr; }
	.ph-tile--side { display: none; }
}
@media (prefers-reduced-motion: reduce) { .page-hero--rich::after { animation: none; } .ph-tile img { transition: none; } }

/* ---------- Performance du défilement ---------- */
/* Pas de flou d'arrière-plan (très coûteux pendant le scroll) : fonds presque opaques à la place. */
.site-header, .subnav, .mobile-cta { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.site-header { background: rgba(255, 255, 255, .98); }
.subnav { background: rgba(255, 255, 255, .99); }
.ph-code { backdrop-filter: none; background: rgba(18, 18, 20, .97); }
/* Grilles en perspective : statiques (l'animation repeignait de grandes zones à chaque image). */
.page-hero--rich::after, .cta-band::after { animation: none; }
/* Couches GPU uniquement quand c'est utile. */
.has-tilt { will-change: auto; transform-style: flat; }
.has-tilt:hover { will-change: transform; }
.marquee__track, .stack-marquee__row ul, .orbit__item, .float-card, .ph-badge { will-change: transform; }
.fx-particles { contain: strict; }
/* Pendant le défilement : animations décoratives en pause. */
.is-scrolling .float-card, .is-scrolling .ph-badge, .is-scrolling .ph-code, .is-scrolling .hero-visual__ring, .is-scrolling .ph-ring, .is-scrolling .media-card__ring, .is-scrolling .marquee__track, .is-scrolling .stack-marquee__row ul { animation-play-state: paused; }
.is-scrolling .has-tilt, .is-scrolling .pcard, .is-scrolling .goal { pointer-events: none; }
/* Images des programmes (portraits des syllabus) : cadrage sur le visage. */
.pcard__media img { object-position: 50% 18%; }
.p-hero__img img { object-position: 50% 16%; }

/* ---------- Galerie « La vie au campus » : mosaïque + visionneuse ---------- */
.gallery--masonry { display: block; column-count: 3; column-gap: 18px; }
.gallery--masonry .gallery__item { display: block; break-inside: avoid; margin: 0 0 18px; grid-column: auto !important; grid-row: auto !important; border-radius: 18px; box-shadow: var(--shadow); }
.gallery--masonry .gallery__item img { width: 100%; height: auto; object-fit: initial; display: block; }
.gallery__link { display: block; position: relative; cursor: zoom-in; color: inherit; }
.gallery__zoom { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .3s var(--ease); box-shadow: var(--shadow); }
.gallery__item:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery--masonry .gallery__item figcaption { pointer-events: none; }
@media (max-width: 1000px) { .gallery--masonry { column-count: 2; } }
@media (max-width: 560px) { .gallery--masonry { column-count: 1; } }
.di-campus .di-wrap { max-width: 1400px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 56px 72px 24px; background: rgba(8, 8, 9, .94); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; gap: 16px; margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: .92rem; text-align: center; max-width: 900px; }
.lightbox__count { font-family: var(--mono); font-size: .8rem; color: var(--red); flex: none; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev .icon { transform: rotate(180deg); }
.lightbox__btn--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-open { overflow: hidden; }
@media (max-width: 640px) { .lightbox { padding: 60px 12px 16px; } .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 14px; transform: none; } .lightbox__btn--prev { left: 12px; } .lightbox__btn--next { right: 12px; } }

/* ---------- Fenêtres de formulaire (Postuler, Rendez-vous) ---------- */
/* Hidden until opened, even in browsers without <dialog> support (Opera Mini, old Android). */
.form-modal:not([open]) { display: none !important; }
.form-modal { width: min(680px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: transparent; overflow: visible; }
.form-modal::backdrop { background: rgba(11, 11, 12, .72); }
.form-modal:focus, .form-modal:focus-visible { outline: none; }
.form-modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.form-modal__box { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.form-modal__head { padding: 30px 32px 4px; background: radial-gradient(circle at 100% 0, rgba(229, 40, 33, .12), transparent 50%); }
.form-modal__head h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 6px 0; }
.form-modal__head p:not(.eyebrow) { color: var(--muted); margin: 0; font-size: .95rem; }
.form-modal .lead-form-wrap { border: 0; box-shadow: none; padding: 20px 32px 30px; border-radius: 0; }
.form-modal__close { position: sticky; top: 12px; float: right; z-index: 2; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.form-modal__close:hover { border-color: var(--ink); }
.modal-open { overflow: hidden; }
@media (max-width: 600px) {
	.form-modal { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.form-modal__box { height: 100%; max-height: 100dvh; border-radius: 0; }
	.form-modal__head { padding: 22px 20px 4px; }
	.form-modal .lead-form-wrap { padding: 16px 20px 28px; }
}
@media (prefers-reduced-motion: reduce) { .form-modal[open] { animation: none; } }

/* Statut, envoi, confirmation */
.form-status { padding: 12px 14px; border-radius: 10px; background: var(--red-l); color: #8C1B16; border: 1px solid #F8CFCC; font-size: .9rem; }
.form-note { display: flex; gap: 6px; align-items: center; justify-content: center; }
.form-note .icon { width: 14px; height: 14px; color: var(--green); flex: none; }
.btn.is-loading { opacity: .8; pointer-events: none; }
.btn.is-loading .btn__icon { display: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.form-success { text-align: center; padding: 26px 8px; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; background: #ECFDF3; color: var(--green); display: inline-grid; place-items: center; margin-bottom: 16px; box-shadow: 0 0 0 10px rgba(22, 163, 74, .08); }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success strong { display: block; font-size: 1.25rem; color: var(--ink); margin-bottom: 8px; }
.form-success p { color: var(--muted); margin: 0 auto 18px; max-width: 460px; }

/* Prise de rendez-vous */
.booking .lead-form { gap: 26px; }
.booking__step { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.booking__step legend { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 12px; padding: 0; }
.booking__num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.booking__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking__mode { position: relative; }
.booking__mode input { position: absolute; opacity: 0; pointer-events: none; }
.booking__mode-card { display: grid; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.booking__mode-card strong { font-size: 1rem; color: var(--ink); }
.booking__mode-card small { color: var(--muted); font-size: .8rem; }
.booking__mode-icon { width: 38px; height: 38px; margin-bottom: 6px; border-radius: 10px; background: var(--soft); color: var(--ink); display: grid; place-items: center; }
.booking__mode input:checked + .booking__mode-card { border-color: var(--red); background: #FFF7F6; box-shadow: 0 0 0 4px rgba(229, 40, 33, .1); }
.booking__mode input:checked + .booking__mode-card .booking__mode-icon { background: var(--red); color: #fff; }
.booking__mode input:focus-visible + .booking__mode-card { outline: 2px solid var(--ink); outline-offset: 2px; }
.booking__days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.booking__day { flex: none; width: 64px; padding: 10px 0; display: grid; gap: 2px; text-align: center; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.booking__day small { font-size: .7rem; color: var(--muted); text-transform: capitalize; }
.booking__day strong { font-size: 1.2rem; }
.booking__day.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.booking__day.is-active small { color: rgba(255, 255, 255, .72); }
.booking__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.booking__time { padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; }
.booking__time:hover, .booking__day:hover { border-color: var(--ink); }
.booking__time.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.booking__tz { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; color: var(--muted); }
.booking__tz .icon { width: 14px; height: 14px; }
.booking__loading, .booking__empty { color: var(--muted); font-size: .9rem; padding: 10px 0; margin: 0; }
@media (max-width: 480px) { .booking__modes { grid-template-columns: 1fr; } }

/* ---------- Scène 3D « Réouverture de DI Cameroun » ---------- */
.reo3d { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1.22; perspective: 1400px; perspective-origin: 50% 40%; container-type: inline-size; }
.reo3d__stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg)); transition: transform .7s var(--ease); }
.reo3d__float { position: absolute; inset: 0; transform-style: preserve-3d; animation: reoFloat 9s ease-in-out infinite; }
@keyframes reoFloat { 0%, 100% { transform: translateY(0) rotateY(0deg); } 50% { transform: translateY(-12px) rotateY(7deg); } }
.reo3d__floor { position: absolute; left: 10%; right: 10%; bottom: -3%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 11, 12, .3), transparent); transform: translateZ(-80px); }
.reo3d__ring { position: absolute; left: 4%; right: 4%; top: 22%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(229, 40, 33, .45); transform: translateZ(-140px) rotateX(72deg); animation: reoSpin 40s linear infinite; }
@keyframes reoSpin { to { transform: translateZ(-140px) rotateX(72deg) rotateZ(360deg); } }
.reo3d__main { position: absolute; left: 6%; right: 6%; top: 1%; height: 48%; transform: translateZ(50px); display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 5cqi, 26px); border-radius: 24px; color: #fff; background: radial-gradient(circle at 88% 0%, rgba(229, 40, 33, .5), transparent 55%), linear-gradient(160deg, #1c1c1f, #0b0b0c); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 50px 80px -40px rgba(11, 11, 12, .75); overflow: hidden; }
.reo3d__main::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); pointer-events: none; }
.reo3d__main > * { position: relative; z-index: 1; }
.reo3d__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: clamp(.85rem, 3.4cqi, 1.05rem); color: #fff; --brand-glyph: var(--ink); --brand-ring: #0b0b0c; }
.reo3d__brand svg { color: #fff; width: clamp(30px, 8cqi, 40px); height: auto; overflow: visible; }
.reo3d__brand i { font-style: normal; font-weight: 700; color: var(--red); }
.reo3d__brand b { font-weight: 400; color: rgba(255, 255, 255, .6); }
.reo3d__kicker { margin: 2px 0 0; font-weight: 700; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.reo3d__title { margin: 0; display: grid; justify-items: start; gap: 6px; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.reo3d__title span { display: inline-block; padding: .3em .55em; transform: skewX(-8deg); }
.reo3d__title span:first-child { background: var(--red); color: #fff; font-size: clamp(1.2rem, 7cqi, 2.1rem); }
.reo3d__title span:last-child { background: #fff; color: var(--ink); font-size: clamp(.9rem, 4.6cqi, 1.45rem); }
.reo3d__place { margin: auto 0 0; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 600; }
.reo3d__place .icon { color: var(--red); width: 1.1em; height: 1.1em; }
.reo3d__badge { position: absolute; top: 14px; right: 14px; z-index: 2; width: clamp(40px, 11cqi, 60px); height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.reo3d__prog { position: absolute; width: 47%; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 8px; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid var(--line); box-shadow: 0 30px 50px -28px rgba(11, 11, 12, .45); transform: translateZ(var(--z)) rotateY(var(--ty, 0deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.reo3d__prog:hover { color: var(--ink); transform: translateZ(calc(var(--z) + 40px)) rotateY(var(--ty, 0deg)); box-shadow: 0 40px 60px -28px rgba(229, 40, 33, .45); }
.reo3d__prog--1 { left: 0; top: 52%; --z: 110px; --ty: 8deg; }
.reo3d__prog--2 { right: 0; top: 52%; --z: 150px; --ty: -6deg; }
.reo3d__prog--3 { left: 26.5%; top: 77%; --z: 80px; }
.reo3d__prog-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; }
.reo3d__prog-icon .icon { width: 20px; height: 20px; }
.reo3d__prog--2 .reo3d__prog-icon { background: var(--ink); }
.reo3d__prog strong { font-size: clamp(.82rem, 3.2cqi, .98rem); line-height: 1.2; }
.reo3d__prog-desc, .reo3d__logos { grid-column: 1 / -1; }
.reo3d__prog-desc { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.reo3d__logos { display: flex; gap: 6px; }
.reo3d__logos .stack-logo { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--soft); }
.reo3d__logos .stack-logo svg { width: 100%; height: 100%; display: block; }
@container (max-width: 460px) { .reo3d__prog-desc, .reo3d__kicker { display: none; } .reo3d__prog { padding: 12px; } }
@media (max-width: 560px) {
	.reo3d { aspect-ratio: auto; perspective: none; }
	.reo3d__stage, .reo3d__float { position: relative; transform: none; animation: none; }
	.reo3d__floor, .reo3d__ring { display: none; }
	.reo3d__main, .reo3d__prog { position: relative; left: auto; right: auto; top: auto; width: auto; height: auto; transform: none; }
	.reo3d__main { min-height: 250px; margin-bottom: 12px; }
	.reo3d__prog { margin-bottom: 10px; }
	.reo3d__prog:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reo3d__float, .reo3d__ring { animation: none; } }
.is-scrolling .reo3d__float, .is-scrolling .reo3d__ring { animation-play-state: paused; }

/* ---------- Diaporama « La vie au campus » ---------- */
.cslider { position: relative; }
.cslider__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 22px; outline: 0; }
.cslider__track::-webkit-scrollbar { display: none; }
.cslider__track::before, .cslider__track::after { content: ""; flex: 0 0 max(0px, calc(50% - 390px)); }
.cslider__slide { position: relative; flex: 0 0 auto; margin: 0; height: clamp(300px, 44vw, 580px); scroll-snap-align: center; border-radius: 22px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); opacity: .5; transform: scale(.93); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cslider__slide.is-active { opacity: 1; transform: none; }
.cslider__slide .gallery__link { height: 100%; }
.cslider__slide img { height: 100%; width: auto; max-width: 86vw; object-fit: cover; display: block; }
.cslider__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 18px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(180deg, transparent, rgba(11, 11, 12, .85)); pointer-events: none; }
.cslider__slide .gallery__zoom { opacity: .9; transform: none; }
.cslider__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.cslider__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.cslider__dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 2px; border: 0; background: transparent; cursor: pointer; }
.cslider__dots button::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 999px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.cslider__dots button.is-active::before { width: 30px; background: var(--red); }
@media (prefers-reduced-motion: reduce) { .cslider__slide { transition: none; } }

/* ---------- Notes (site mère) ---------- */
.ratings-wrap { text-align: center; }
.ratings__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.ratings__title .icon { color: var(--red); }
.ratings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.rating { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.rating__logo { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.rating__logo img, .rating__logo .stack-logo { width: 30px; height: 30px; object-fit: contain; }
.rating__body { display: grid; gap: 4px; }
.rating strong { font-size: 1.55rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.rating strong small { font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.stars { display: block; width: 90px; height: 16px; background: linear-gradient(90deg, #F5B301 calc(var(--v) / 5 * 100%), #d9d9de 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 .8l2.3 4.9 5.3.6-3.9 3.6 1.1 5.3L9 12.6l-4.8 2.6 1.1-5.3L1.4 6.3l5.3-.6Z'/%3E%3C/svg%3E") 0 0 / 18px 16px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 .8l2.3 4.9 5.3.6-3.9 3.6 1.1 5.3L9 12.6l-4.8 2.6 1.1-5.3L1.4 6.3l5.3-.6Z'/%3E%3C/svg%3E") 0 0 / 18px 16px repeat-x; }
.rating__name { font-size: .8rem; font-weight: 600; color: var(--muted); }
@media (max-width: 960px) { .ratings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ratings { grid-template-columns: 1fr; } }

/* ---------- Vidéos ---------- */
.video-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.video-filters button { font: inherit; font-size: .86rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: .2s; }
.video-filters button:hover { border-color: var(--ink); }
.video-filters button.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
.video-card:hover { box-shadow: var(--shadow-lg); }
.video-card[hidden] { display: none; }
.video-card__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--ink); cursor: pointer; overflow: hidden; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card__thumb:hover img { transform: scale(1.06); }
.video-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 12, .45)); }
.video-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .25); background: radial-gradient(circle at 70% 30%, rgba(229, 40, 33, .35), transparent 60%), var(--ink); }
.video-card__placeholder .icon { width: 70px; height: 70px; }
.video-card__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(229, 40, 33, .25); transition: transform .3s var(--ease); }
.video-card__play .icon { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-card__thumb:hover .video-card__play { transform: scale(1.1); }
.video-card__source { position: absolute; z-index: 1; left: 12px; bottom: 12px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(11, 11, 12, .7); padding: 4px 9px; border-radius: 6px; }
.video-card__body { padding: 18px 20px 20px; }
.video-card__body .chip { margin-bottom: 10px; }
.video-card__body h3 { font-size: 1.05rem; margin: 0 0 6px; }
.video-card__body p { color: var(--muted); font-size: .9rem; margin: 0; }
.video-empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: 22px; background: #fff; }
.video-empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; margin-bottom: 18px; box-shadow: 0 0 0 12px var(--red-l); }
.video-empty__icon .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-empty p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }
.video-empty .socials { justify-content: center; }
.video-modal { grid-template-rows: 1fr; }
.video-frame { width: min(1100px, 92vw); aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.video-frame--vertical { width: min(380px, 90vw); aspect-ratio: 9 / 16; max-height: 86vh; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.di-video-home:not(:has(.video-grid)) { display: none; }
@media (max-width: 960px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Grilles robustes (s'adaptent à la largeur disponible) ---------- */
.pillars { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Photo avec badge ---------- */
.media-card { position: relative; margin: 0; }
.media-card img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); display: block; }
.media-card::before { content: ""; position: absolute; z-index: -1; width: 110px; height: 110px; right: -18px; bottom: -18px; border-radius: 22px; background: var(--red); }
.media-card__ring { position: absolute; z-index: -1; width: 130px; height: 130px; left: -26px; top: -26px; border-radius: 50%; border: 1.5px dashed rgba(229, 40, 33, .55); animation: spin 40s linear infinite; }
.media-card__badge { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; padding: 10px 16px 10px 10px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.media-card__badge span { width: 36px; height: 36px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; }
.is-dark .media-card::before { opacity: .8; }
.media-card--wide img { aspect-ratio: 16 / 9; }
.wp-block-column .media-card + .wp-block-group, .wp-block-column .media-card + .di-card { margin-top: 32px; }
.di-split .media-card { margin-inline: 18px; }
.di-promo .wp-block-column:last-child .di-head, .di-promo .di-head { margin-bottom: 24px; }
.di-promo .di-check { margin-bottom: 28px; }

/* ---------- Visuel d'annonce (affiche) ---------- */
.promo-visual { margin: 0; position: relative; }
.promo-visual img { width: 100%; border-radius: calc(var(--radius) + 6px); box-shadow: 0 40px 80px -30px rgba(11, 11, 12, .45); transform: perspective(1200px) rotateY(6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.promo-visual:hover img { transform: perspective(1200px) rotateY(0) rotateX(0); }
.promo-visual::before { content: ""; position: absolute; inset: 8% -4% -4% 8%; border-radius: 28px; background: repeating-linear-gradient(135deg, rgba(229, 40, 33, .16) 0 2px, transparent 2px 14px); z-index: -1; }
.di-promo .di-lead { margin-bottom: 20px; }

/* ---------- Cursus moderne ---------- */
.di-curriculum { position: relative; }
.di-curriculum::before { content: ""; position: absolute; left: 44px; top: 60px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--red), rgba(229, 40, 33, .08)); }
.di-module { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; margin: 0 0 14px; overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.di-module:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.di-module[open] { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--red), #ff9a93 35%, var(--line) 70%) border-box; box-shadow: var(--shadow-lg); }
.di-module summary { padding: 18px 20px; gap: 18px; }
.di-module summary::before { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 6px #fff; font-size: .95rem; }
.is-soft .di-module summary::before { box-shadow: 0 0 0 6px var(--soft); }
.di-module[open] summary::before { background: var(--red); box-shadow: 0 0 0 6px #fff, 0 10px 24px -8px rgba(229, 40, 33, .6); }
.mod-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mod-title { font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.mod-sub { font-size: .78rem; font-weight: 500; color: var(--muted); }
.mod-tag { flex: none; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--red); padding: 6px 10px; border-radius: 999px; }
.mod-logos { flex: none; display: flex; gap: 6px; }
.mod-logos .stack-logo { width: 34px; height: 34px; padding: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; box-sizing: border-box; transition: transform .3s var(--ease); }
.di-module:hover .mod-logos .stack-logo { transform: translateY(-2px); }
.mod-logos .stack-logo--mono { font-size: .6rem; background: var(--ink); color: #fff; border-color: var(--ink); }
.di-module .mod-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; padding: 4px 24px 24px 88px; animation: modIn .45s var(--ease); }
@keyframes modIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mod-topics { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 11px; align-content: start; }
.mod-topics li { position: relative; padding-left: 30px; color: var(--ink-2) !important; font-size: .95rem; margin: 0 !important; }
.mod-topics li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E52821' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mod-topics li::marker { content: none; }
.mod-stack { align-self: start; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mod-stack__title { font-size: .72rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted) !important; margin: 0 0 12px !important; }
.mod-stack ul { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.mod-stack li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: .84rem !important; font-weight: 600; color: var(--ink) !important; margin: 0 !important; }
.mod-stack li::marker { content: none; }
.mod-stack .stack-logo { width: 24px; height: 24px; }
.mod-stack .stack-logo--mono { font-size: .55rem; border-radius: 6px; }
@media (max-width: 860px) {
	.di-module .mod-body { grid-template-columns: 1fr; padding-left: 22px; }
	.mod-logos { display: none; }
	.di-curriculum::before { display: none; }
}
