/* Style C, "Gymnase de soir" (body.theme-evening). Loaded after style.css and dark.css; everything is scoped
   to .theme-evening so the demo switcher can flip styles live. Same markup as Styles A and B.
   Hybrid: nav, hero band and footer are dark navy (Style B family), content sections stay on warm paper.
   Motion rules (skills emil-design-eng / review-animations): transform + opacity only for movement, strong
   ease-out, 150-300 ms, hover motion gated to real pointers, all movement off under prefers-reduced-motion
   (style.css already kills every transition there). */
html:has(body.theme-evening){background:#0a1120}
body.theme-evening{--navy:#0c1a30;--navy-2:#16233b;--red:#a8102a;--red-2:#8a0c22;--red-hi:#c8173a;--accent-soft:#ff8fa3;
 --ink:#1c2433;--muted:#5f6673;--paper:#faf7f2;--pale:#f3eee5;--line:#e6dfd3;--radius:14px;
 --night:#0a1120;--night-2:#0d1526;--night-line:#ffffff14;--ring:#a8102a;
 --ease-out:cubic-bezier(.23,1,.32,1);
 --rest:0 1px 2px #0a11200a;--lift:0 2px 4px #0a11200a,0 14px 30px #0a112017}
body.theme-evening{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}

/* focus: one clear red ring, keyboard only. Brighter red on the dark surfaces so it keeps 3:1 contrast. */
.theme-evening header,.theme-evening footer,.theme-evening .hero,.theme-evening .page-hero,.theme-evening .mission-band,.theme-evening .cta,.theme-evening .banner,.theme-evening .style-switch,.theme-evening .crumbs:has(+.page-hero){--ring:#ff4d6d}
.theme-evening .quick-finder{--ring:#a8102a}
.theme-evening :focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.theme-evening input:focus,.theme-evening select:focus,.theme-evening textarea:focus{outline:0}
.theme-evening input:focus-visible,.theme-evening select:focus-visible,.theme-evening textarea:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-color:var(--ring)}
.theme-evening .quick-finder input[type=range]:focus-visible{outline:0}
.theme-evening .quick-finder input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--ring);outline-offset:3px}
.theme-evening .quick-finder input[type=range]:focus-visible::-moz-range-thumb{outline:2px solid var(--ring);outline-offset:3px}

/* rhythm: more air, one spacing scale */
.theme-evening .wrap{padding-top:96px;padding-bottom:96px}
.theme-evening .section-title{margin-bottom:48px}
.theme-evening .crumbs{padding-top:22px;padding-bottom:0}
.theme-evening .toc{padding-top:40px;padding-bottom:0}
.theme-evening .finder{padding-top:48px}
.theme-evening .wrap.narrow{padding-top:0}
.theme-evening .page-hero .wrap{padding-top:96px;padding-bottom:56px}
.theme-evening .crumbs+.page-hero .wrap{padding-top:56px}
.theme-evening .crumbs+.post .post-head{padding-top:40px}
.theme-evening .post-head{padding-bottom:40px}
.theme-evening .post-body{padding-top:56px}

/* header: dark navy, underline slides in from the left */
.theme-evening header{background:#0a1120eb;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--night-line)}
.theme-evening .brand strong{color:#fff}
.theme-evening .brand small{color:#8d98ad}
.theme-evening .brand img{filter:drop-shadow(0 0 1px #fff8)}
.theme-evening header nav>a:not(.button){position:relative;color:#c5cede;border-bottom-color:transparent;transition:color .15s ease}
.theme-evening header nav>a:not(.button):hover,.theme-evening header nav>a[aria-current=page]{color:#fff;border-bottom-color:transparent}
.theme-evening header nav>a:not(.button):after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--red-hi);transform:scaleX(0);transform-origin:left center;transition:transform .22s var(--ease-out)}
.theme-evening header nav>a[aria-current=page]:after{transform:scaleX(1)}
.theme-evening .lang{color:#8d98ad}
.theme-evening .lang a{transition:color .15s ease}
.theme-evening .lang a:hover{color:#fff}
.theme-evening .lang a[aria-current=true]{color:#fff;border-bottom-color:var(--red-hi)}
.theme-evening .menu-toggle{color:#fff}

/* buttons: brighten on hover, arrow nudges, press scales */
.theme-evening .button{border-radius:10px;transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .16s var(--ease-out)}
.theme-evening .button span{display:inline-block;transition:transform .2s var(--ease-out)}
.theme-evening .button:active{transform:scale(.97)}
.theme-evening .button.outline{border-color:#0c1a3059}
.theme-evening .text-link{text-underline-offset:3px}
.theme-evening details>summary{transition:color .15s ease}
.theme-evening .chip,.theme-evening .tabs button,.theme-evening .toc a,.theme-evening .slider-controls button{transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .16s var(--ease-out)}
.theme-evening .chip:active,.theme-evening .tabs button:active,.theme-evening .slider-controls button:active{transform:scale(.97)}
.theme-evening .chip,.theme-evening .tabs button{border-color:#d6cec0}
.theme-evening .tabs button{border-radius:10px}

/* hero band: photo fades into the navy, the mission band continues it */
.theme-evening .hero:after{background:linear-gradient(180deg,#0a112066 0%,#0a112026 32%,#0a1120f5 94%)}
.theme-evening .hero-image{filter:contrast(1.06) saturate(.92) brightness(.92)}
.theme-evening .quick-finder{border-radius:16px;box-shadow:0 2px 4px #0003,0 18px 44px #00000047}
.theme-evening .qf-head output{color:var(--red)}
.theme-evening .quick-finder input[type=range]::-webkit-slider-thumb{transition:transform .15s var(--ease-out),box-shadow .2s ease}
.theme-evening .quick-finder input[type=range]::-moz-range-thumb{transition:box-shadow .2s ease}
.theme-evening .quick-finder input[type=range]:active::-webkit-slider-thumb,.theme-evening .quick-finder input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 2px 8px #08204040,0 0 0 7px #c8173a2e,0 0 18px 3px #c8173a66}
.theme-evening .quick-finder input[type=range]:active::-moz-range-thumb,.theme-evening .quick-finder input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 2px 8px #08204040,0 0 0 7px #c8173a2e,0 0 18px 3px #c8173a66}
.theme-evening .banner{background:var(--night-2);border-top:1px solid var(--night-line);border-bottom:1px solid var(--night-line)}
.theme-evening .mission-band{background:linear-gradient(180deg,#0a1120,#0d1526);padding-top:56px;padding-bottom:56px}
.theme-evening .mission-band h2{color:#f4f6fb}
.theme-evening .mcard{background:#ffffff0a;border-color:var(--night-line);transition:transform .2s var(--ease-out),border-color .2s ease,background-color .2s ease}
.theme-evening .mcard-icon{background:var(--red-hi)}

/* inner page hero + breadcrumb: same dark band */
.theme-evening .page-hero{background:linear-gradient(180deg,#0a1120,#0d1526);border-bottom:0;color:#d4dae5}
.theme-evening .page-hero h1{color:#f4f6fb}
.theme-evening .page-hero .eyebrow{color:var(--accent-soft)}
.theme-evening .page-hero .lead{color:#aab4c6}
.theme-evening .page-hero .lead strong{color:#fff}
.theme-evening .page-hero .lead a{text-decoration:underline;text-underline-offset:3px}
.theme-evening .crumbs:has(+.page-hero){background:#0a1120;color:#8d98ad;box-shadow:0 0 0 100vmax #0a1120;clip-path:inset(0 -100vmax)}
.theme-evening .crumbs:has(+.page-hero) a:hover{color:#fff}

/* light surfaces: white cards on warm paper, soft resting shadow */
.theme-evening .event,.theme-evening .finder-card,.theme-evening .person,.theme-evening .testi,.theme-evening .job,.theme-evening .board li,.theme-evening .partner,.theme-evening .nl-form,.theme-evening .finder-bar,.theme-evening .team-grid,.theme-evening .tableau-rows{box-shadow:var(--rest)}
.theme-evening .event,.theme-evening .finder-card,.theme-evening .person,.theme-evening .testi,.theme-evening .job,.theme-evening .board li,.theme-evening .partner,.theme-evening .program{transition:transform .22s var(--ease-out),box-shadow .22s var(--ease-out),border-color .2s ease}
.theme-evening .board li,.theme-evening .job{border:1px solid transparent}
.theme-evening .sticky-card{background:#fff;box-shadow:var(--rest)}
.theme-evening .team-photos img,.theme-evening .gallery img{border-radius:10px}
.theme-evening input,.theme-evening select,.theme-evening textarea{border-color:#d6cec0;border-radius:10px;transition:border-color .15s ease}
.theme-evening .nl-consent input{border-radius:4px}
.theme-evening .tableau-bar input{border-color:#d6cec0;border-radius:10px}
.theme-evening .testi.sample{border-color:#cfc6b6}
.theme-evening .wordmark{border-radius:10px}
.theme-evening .slider-controls button{background:#fff}

/* image frames: the photo zooms inside its own box. No wrapper in the markup, so the image is scaled
   and clipped back by the same amount: inset p with (1 - 2p) * 1.03 = 1 -> p = 1.456%. */
.theme-evening .finder-card>img,.theme-evening a.news-card>img,.theme-evening .approach-row>img,.theme-evening .program>img{transition:transform .3s var(--ease-out),clip-path .3s var(--ease-out)}
.theme-evening .finder-card>img{clip-path:inset(0)}
.theme-evening a.news-card>img,.theme-evening .approach-row>img{clip-path:inset(0 round var(--radius))}
.theme-evening a.news-card:hover img{opacity:1}
.theme-evening .program span{transition:transform .2s var(--ease-out)}
/* the carousel scrolls on x, which also clips y: give the cards room to lift, cast a shadow and show a focus ring */
.theme-evening .program-track{padding:6px 6px 30px;margin:-6px -6px -30px;scroll-padding-inline:6px}

/* dark accents inside the light content */
.theme-evening .program,.theme-evening .stat-card,.theme-evening .chip[aria-pressed=true]{background-color:var(--night)}
.theme-evening .program:after{background:linear-gradient(transparent 32%,#0a1120eb)}
.theme-evening .chip[aria-pressed=true]{border-color:var(--night)}
.theme-evening .stat-card{background:linear-gradient(160deg,#16233b,#0a1120)}
.theme-evening .cta:after{background:linear-gradient(180deg,#0a1120c7,#0a1120eb)}
.theme-evening .cta h2 em{color:var(--accent-soft)}
.theme-evening .avatar{background:linear-gradient(160deg,#16233b,#0a1120)}

/* footer: dark navy, no big wordmark */
.theme-evening footer{background:var(--night);border-top:1px solid var(--night-line);padding-top:26px}
.theme-evening .footer-wordmark{display:none}
.theme-evening .footer-grid{border-top:0;padding:48px 0}
.theme-evening .footer-grid a,.theme-evening .copyright a,.theme-evening .contacts a,.theme-evening .crumbs a{transition:color .15s ease}
.theme-evening .badge{background:#f4f6fb}
.theme-evening .style-switch{background:#0a1120f0;border:1px solid #ffffff24}

/* hover feedback: colours and shadows for real pointers only (touch taps leave :hover stuck) */
@media(hover:hover) and (pointer:fine){
 .theme-evening .button:hover{background:var(--red-hi)}
 .theme-evening .button.outline:hover{background:var(--night);border-color:var(--night);color:#fff}
 .theme-evening .slider-controls button:hover{background:var(--night);border-color:var(--night);color:#fff}
 .theme-evening .chip:not([aria-pressed=true]):hover,.theme-evening .tabs button:not([aria-selected=true]):hover{border-color:var(--navy)}
 .theme-evening .event:hover,.theme-evening .finder-card:hover,.theme-evening .person:hover,.theme-evening .testi:hover,.theme-evening .job:hover,.theme-evening .board li:hover,.theme-evening a.partner:hover,.theme-evening .program:hover{box-shadow:var(--lift)}
 .theme-evening a.partner:hover{border-color:var(--line)}
 .theme-evening .mcard:hover{border-color:#ffffff33;background:#ffffff10}
 .theme-evening .quick-finder input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 2px 8px #08204040,0 0 0 6px #c8173a24,0 0 14px 2px #c8173a47}
 .theme-evening .quick-finder input[type=range]:hover::-moz-range-thumb{box-shadow:0 2px 8px #08204040,0 0 0 6px #c8173a24,0 0 14px 2px #c8173a47}
 .theme-evening .quick-finder input[type=range]:active::-webkit-slider-thumb{box-shadow:0 2px 8px #08204040,0 0 0 7px #c8173a2e,0 0 18px 3px #c8173a66}
 .theme-evening .quick-finder input[type=range]:active::-moz-range-thumb{box-shadow:0 2px 8px #08204040,0 0 0 7px #c8173a2e,0 0 18px 3px #c8173a66}
}
/* hover + scroll movement: real pointers, and only when the visitor has not asked for reduced motion */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .theme-evening header nav>a:not(.button):hover:after{transform:scaleX(1)}
 .theme-evening .button:hover span{transform:translateX(3px)}
 .theme-evening .button[href^="#"]:hover span{transform:translateY(3px)}
 .theme-evening .program:hover,.theme-evening .finder-card:hover,.theme-evening a.partner:hover{transform:translateY(-3px)}
 .theme-evening .event:hover,.theme-evening .person:hover,.theme-evening .testi:hover,.theme-evening .job:hover,.theme-evening .board li:hover,.theme-evening .mcard:hover{transform:translateY(-2px)}
 .theme-evening .program:hover>img{transform:scale(1.03)}
 .theme-evening .finder-card:hover>img{transform:scale(1.03);clip-path:inset(1.456%)}
 .theme-evening a.news-card:hover>img,.theme-evening .approach-row:hover>img{transform:scale(1.03);clip-path:inset(1.456% round var(--radius))}
 .theme-evening .program:hover span{transform:translate(3px,-3px)}
}
/* sections fade and rise in once as they scroll into view. app.js adds .rv to <html> (only when it can
   observe, and never under reduced motion) and .rv-in to each section it has seen. */
@media(prefers-reduced-motion:no-preference){
 .rv .theme-evening main section:not(.hero):not(.page-hero){transition:opacity .3s ease-out,transform .3s var(--ease-out)}
 .rv .theme-evening main section:not(.hero):not(.page-hero):not(.rv-in){opacity:0;transform:translateY(16px)}
}

@media(max-width:860px){
 .theme-evening .wrap{padding-top:60px;padding-bottom:60px}
 .theme-evening .section-title{margin-bottom:30px}
 .theme-evening .crumbs,.theme-evening .toc{padding-bottom:0}
 .theme-evening .crumbs{padding-top:18px}
 .theme-evening .toc{padding-top:30px}
 .theme-evening .finder{padding-top:36px}
 .theme-evening .page-hero .wrap{padding-top:60px;padding-bottom:36px}
 .theme-evening .crumbs+.page-hero .wrap{padding-top:36px}
 .theme-evening .post-head{padding-bottom:28px}
 .theme-evening .post-body{padding-top:36px}
 .theme-evening .mission-band{padding-top:40px;padding-bottom:40px}
 .theme-evening header nav{background:#0a1120;border-bottom:1px solid var(--night-line);box-shadow:0 18px 30px #0006}
 .theme-evening header nav>a:not(.button),.theme-evening header nav>a:not(.button):hover{border-bottom-color:var(--night-line)}
 .theme-evening header nav>a:not(.button):after{display:none}
 .theme-evening header nav>a[aria-current=page]{color:var(--accent-soft);border-bottom-color:var(--night-line)}
 .theme-evening .footer-grid{padding:36px 0}
}
