
.video-hero{position:relative;isolation:isolate;overflow:hidden;min-height:760px;height:calc(100svh - var(--header-height));max-height:1080px;background:#292c64;color:white}.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .9s ease;z-index:-3;background:url('/assets/school/ambiance-classe-800.webp') center/cover}.hero-video.is-current{opacity:1}.video-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgb(20 30 44 / .76),rgb(20 30 44 / .2));pointer-events:none}.video-copy{position:relative;padding:70px 5.6% 280px;max-width:1050px}.video-copy h1{font-size:clamp(45px,5.3vw,78px);line-height:1.06;font-weight:900;letter-spacing:-.03em;margin:0 0 26px}.video-copy p{font-size:23px;margin:0 0 22px;line-height:1.5}.video-copy>a{display:inline-flex;align-items:center;gap:16px;font-size:17px;font-weight:800;text-underline-offset:6px}.video-copy svg,.course-link svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.video-courses{position:absolute;bottom:44px;left:5.6%;right:5.6%;display:grid;grid-template-columns:1fr 1fr;gap:24px}.video-course{position:relative;background:white;color:#292c64;border-radius:22px;padding:28px 32px;min-height:188px;--accent:#008076}.video-course.violet{--accent:#464998}.video-course h2{font-size:43px;font-weight:900;color:var(--accent);margin:0 0 9px;line-height:1.1}.video-course p{font-size:18px;margin:0 0 22px}.course-link{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;border-top:1px solid #cbcde0;color:var(--accent);font-weight:800;text-decoration:none;font-size:17px}.course-link:hover{text-decoration:underline}.scene-choice{position:absolute;top:25px;right:28px;border:0;background:none;width:52px;height:52px;padding:0;color:var(--accent)}.scene-choice>span{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:16px}.timer-ring{width:52px;height:52px;transform:rotate(-90deg);fill:none;stroke-width:3}.ring-track{stroke:#dfe7e5}.ring-progress{stroke:var(--accent);stroke-dasharray:144.514;stroke-dashoffset:calc(144.514 * (1 - var(--progress,0)));stroke-linecap:round;opacity:0}.scene-choice[aria-pressed=true] .ring-progress{opacity:1}.scene-choice[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 8%,white);border-radius:50%}.video-pause{position:absolute;right:5.6%;bottom:265px;background:rgb(20 30 44 / .45);color:white;border:1px solid rgb(255 255 255 / .55);border-radius:24px;padding:10px 18px;font-size:14px;min-height:44px}.video-status{position:absolute;right:5.6%;bottom:312px;font-size:14px;max-width:45ch;text-align:right}.video-status:empty{display:none}.video-source-note{padding:20px 5.6%;font-size:13px;max-width:none;color:#292c64;margin:0;background:#edf7f3}.video-hero a:focus-visible,.video-hero button:focus-visible{outline-color:#3fb6aa}.video-course a:focus-visible,.scene-choice:focus-visible{outline-color:#464998}
@media(max-width:760px){.video-hero{height:auto;min-height:850px}.video-copy{padding:42px 5% 340px}.video-copy h1{font-size:clamp(37px,7.2vw,56px)}.video-copy p{font-size:19px}.video-courses{left:5%;right:5%;bottom:28px;gap:14px}.video-course{padding:22px 20px;min-height:213px}.video-course h2{font-size:32px}.video-course p{font-size:16px;max-width:16ch;min-height:48px}.course-link{font-size:15px}.scene-choice{right:16px;top:18px;width:40px;height:40px}.timer-ring{width:40px;height:40px}.scene-choice>span{font-size:13px}.video-pause{bottom:263px;right:5%}.video-status{bottom:310px}}
@media(max-width:480px){.video-hero{min-height:770px}.video-copy h1{font-size:36px}.video-copy p{font-size:17px}.video-course{padding:18px 14px;min-height:213px}.video-course h2{font-size:27px;padding-top:42px}.video-course p{font-size:14px;min-height:42px;margin-bottom:14px}.course-link{font-size:13px;gap:8px}.course-link svg{width:20px}.scene-choice{left:14px;right:auto;top:14px}.video-pause{bottom:266px}.video-copy{padding-top:36px}}
@media(prefers-reduced-motion:reduce){.hero-video{transition:none}}

/* Brighter school atmosphere; local shade retains white-title contrast. */
.video-shade{background:linear-gradient(90deg,rgb(20 30 44 / .46) 0%,rgb(20 30 44 / .18) 50%,rgb(20 30 44 / .02) 100%)}
.video-copy h1,.video-copy p,.video-copy>a{text-shadow:0 2px 10px rgb(20 30 44 / .25)}
.hero-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s ease;z-index:-2;pointer-events:none}.hero-still.is-current{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-still{transition:none}}

/* Scene-specific brand veil, concentrated in the upper-right corner. */
.video-hero[data-scene="0"] .video-shade{background:linear-gradient(225deg,rgb(0 128 118 / .6) 0%,rgb(0 128 118 / .18) 48%,rgb(0 128 118 / .03) 85%),linear-gradient(90deg,rgb(20 30 44 / .34),transparent 65%)}
.video-hero[data-scene="1"] .video-shade{background:linear-gradient(225deg,rgb(70 73 152 / .65) 0%,rgb(70 73 152 / .2) 48%,rgb(70 73 152 / .03) 85%),linear-gradient(90deg,rgb(20 30 44 / .34),transparent 65%)}
.video-shade{transition:background .7s ease}
@media(prefers-reduced-motion:reduce){.video-shade{transition:none}}

/* Keep the outgoing frame opaque beneath the incoming fade: no dark dip. */
.hero-video{transition:opacity 1.1s cubic-bezier(.2,.65,.25,1)}.hero-video.is-current{z-index:-2}.hero-video.is-leaving{opacity:1;z-index:-3}
.video-shade{background:none!important}.video-shade::before,.video-shade::after{content:'';position:absolute;inset:0;transition:opacity 1.1s cubic-bezier(.2,.65,.25,1)}
.video-shade::before{background:linear-gradient(225deg,rgb(0 128 118 / .6),rgb(0 128 118 / .18) 48%,rgb(0 128 118 / .03) 85%),linear-gradient(90deg,rgb(20 30 44 / .34),transparent 65%);opacity:1}
.video-shade::after{background:linear-gradient(225deg,rgb(70 73 152 / .65),rgb(70 73 152 / .2) 48%,rgb(70 73 152 / .03) 85%),linear-gradient(90deg,rgb(20 30 44 / .34),transparent 65%);opacity:0}
.video-hero[data-scene="1"] .video-shade::before{opacity:0}.video-hero[data-scene="1"] .video-shade::after{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-video,.video-shade::before,.video-shade::after{transition:none}}
/* Framed-video trial: generous outer air and soft silhouette. */
.video-hero{margin:0 24px 24px;border-radius:46px;min-height:720px;height:calc(100svh - var(--header-height) - 24px)}
.video-copy{padding-left:4.6%;padding-right:4.6%}
.video-courses{left:4.6%;right:4.6%;bottom:36px}
@media(max-width:1100px){.video-hero{margin:0 18px 18px;border-radius:36px}}
@media(max-width:760px){.video-hero{margin:0 14px 18px;border-radius:28px;height:auto;min-height:830px}.video-copy{padding-left:6%;padding-right:6%}.video-courses{left:6%;right:6%;bottom:28px;gap:12px}}
@media(max-width:480px){.video-hero{margin:0 10px 16px;border-radius:24px;min-height:780px}.video-copy h1{font-size:34px}.video-copy{padding-top:34px}.video-courses{left:5%;right:5%;gap:10px}.video-course{padding-left:12px;padding-right:12px}.video-course h2{font-size:25px}}
/* The incoming hover scene fades over a fully visible outgoing frame. */
.hero-video,.hero-still,.video-shade::before,.video-shade::after{transition-duration:1.6s}
@media(prefers-reduced-motion:reduce){.hero-video,.hero-still,.video-shade::before,.video-shade::after{transition:none}}
/* Mobile: the age cards follow the hero copy and stay within the first screen. */
@media(max-width:760px){.video-hero{display:flex;flex-direction:column;height:auto;min-height:calc(100svh - var(--header-height) - 16px)}.video-copy{padding-bottom:28px}.video-courses{position:relative;left:auto;right:auto;bottom:auto;margin:auto 6% 22px}.video-course{min-height:0}}
@media(max-width:480px){.video-hero{min-height:calc(100svh - var(--header-height) - 16px)}.video-courses{margin-left:5%;margin-right:5%;margin-bottom:18px}}
.hero-video{transition:object-position .8s cubic-bezier(.4,0,.2,1)}
