/* Écoles CREFM — déclinaison de la charte originale, sans dépendance externe. */
.school-redesign{--blue:#12369a;--blue2:#0b235f;--ink:#13203a;--muted:#65718a;--soft:#f5f7fb;--gold:#ddb22c;font-family:Manrope,system-ui,sans-serif;color:var(--ink)}
.school-redesign h1,.school-redesign h2,.school-redesign h3{font-family:Manrope,system-ui,sans-serif}
.school-redesign button{font:inherit;cursor:pointer}
.school-redesign svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.school-redesign .container{width:min(1180px,calc(100% - 64px))}
.school-redesign .navbar{height:88px;position:relative;backdrop-filter:none;background:#fff}
.school-redesign .topline{font-size:11px}
.school-redesign .brand{min-width:250px;gap:9px}
.school-redesign .brand img{width:64px;height:64px}
.school-redesign .brand-text strong{font-size:14px;text-transform:none;letter-spacing:-.02em}
.school-redesign .brand-text span{font-size:10px}
.school-redesign .nav-inner{gap:18px}
.school-redesign .nav-links{gap:28px;font-size:13px}
.school-redesign .nav-cta .btn{padding:12px 22px;font-size:12px}
.school-redesign .eyebrow{font-size:10px;letter-spacing:.16em}
.school-redesign .eyebrow:before{height:3px;width:25px;border-radius:2px}
.school-redesign .btn{font-size:13px;min-height:48px;padding:13px 25px;gap:16px}
.school-redesign .btn svg{width:18px;height:18px}
.school-redesign .mobile-drawer{top:123px}
.school-redesign a:focus-visible,.school-redesign button:focus-visible,.school-redesign summary:focus-visible{outline:3px solid #ddb22c;outline-offset:4px}
.skip-link{position:fixed;top:8px;left:12px;z-index:1000;background:#fff;padding:12px 20px;border-radius:10px;transform:translateY(-150%);font-weight:800;color:var(--blue)}
.skip-link:focus{transform:translateY(0)}
.school-hero{position:relative;background:#071b44;isolation:isolate;color:#fff;overflow:hidden}
.school-hero-img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:50% 53%;z-index:-2}
.school-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,24,60,.97),rgba(6,28,72,.82) 28%,rgba(6,28,72,.4) 55%,rgba(6,28,72,.03) 82%),linear-gradient(0deg,rgba(7,27,62,.3),transparent 60%)}
.school-hero-inner{padding-top:32px;padding-bottom:80px;min-height:490px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.school-crumbs{display:flex;align-items:center;gap:12px;font-size:11px;color:#c7d4f3;margin-bottom:34px;flex-wrap:wrap}
.school-crumbs a:hover{color:#fff;text-decoration:underline}
.school-hero .eyebrow{color:#fff;margin-bottom:15px}
.school-hero h1{font-size:clamp(42px,5.3vw,72px);line-height:1.04;max-width:590px;margin:0 0 18px;letter-spacing:-.045em;font-weight:800;text-wrap:balance}
.school-hero h1.long-title{font-size:clamp(34px,4.7vw,59px);max-width:700px}
.school-hero-inner>p{font-size:18px;font-weight:600;max-width:590px;line-height:1.6;margin:0 0 26px;color:#f3f6ff}
.school-hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.school-hero .btn-light{color:var(--blue)}
.btn-hero-outline{border:1px solid #d2ddf4;color:#fff;background:rgba(10,28,67,.24)}
.btn-hero-outline:hover{background:rgba(255,255,255,.14)}
.school-switch.container{position:relative;margin-top:-31px;z-index:3;background:#fff;width:min(830px,calc(100% - 64px));padding:12px 22px;border-radius:20px;display:flex;align-items:center;box-shadow:0 10px 28px rgba(18,54,154,.09);border:1px solid #edf1fa;min-height:66px}
.school-switch a{flex:1;text-align:center;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:800;position:relative;transition:background .2s,color .2s}
.school-switch a.selected{background:var(--blue);color:#fff;box-shadow:0 5px 14px rgba(18,54,154,.14)}
.school-switch a:not(.selected):hover{background:#eef2fc;color:var(--blue)}
.school-intro{display:grid;grid-template-columns:1.45fr 1fr;gap:54px;align-items:center;padding:48px 0 50px}
.school-intro h2{font-size:clamp(28px,3vw,39px);line-height:1.14;letter-spacing:-.04em;margin:12px 0 16px;font-weight:800}
.school-intro>div>p{font-size:14px;line-height:1.85;color:#52617c;max-width:680px;margin:0}
.school-audience{padding:27px 25px;border-radius:22px;background:linear-gradient(130deg,#edf3ff,#f5f7fd);display:flex;gap:17px;align-items:flex-start}
.school-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e7eeff;color:var(--blue);flex-shrink:0}
.school-icon svg{width:27px;height:27px}
.school-audience h3{font-size:17px;margin:0 0 7px}
.school-audience p{font-size:12px;line-height:1.8;color:#52617c;margin:0 0 12px}
.school-audience a{font-size:12px;color:var(--blue);font-weight:800;display:inline-flex;gap:10px;align-items:center;text-decoration:underline;text-underline-offset:3px}
.school-audience a svg{width:17px}
.school-curriculum{background:var(--soft);padding:40px 0 44px;scroll-margin-top:24px}
.school-curriculum h2{font-size:27px;line-height:1.2;margin:12px 0 26px}
.school-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:0}
.school-steps li{background:#fff;padding:25px 23px;border-radius:22px;box-shadow:0 5px 24px rgba(18,54,154,.025)}
.step-top{display:flex;gap:22px;align-items:center;margin-bottom:20px}
.step-number{font-size:30px;line-height:1;font-weight:800;letter-spacing:-.05em;color:var(--blue)}
.school-steps h3{font-size:16px;line-height:1.35;margin:0 0 9px;letter-spacing:-.03em}
.school-steps p{font-size:12px;line-height:1.8;margin:0;color:#52617c}
.school-life{padding:45px 0 24px;scroll-margin-top:24px}
.school-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:22px}
.school-section-title h2{font-size:clamp(27px,3vw,37px);line-height:1.15;letter-spacing:-.04em;margin:12px 0 0}
.album-hint{font-size:11px;color:var(--blue);display:flex;gap:12px;align-items:center;padding-bottom:4px}
.album-hint svg{width:18px}
.school-albums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.school-album{padding:0;border:none;border-radius:20px;overflow:hidden;position:relative;aspect-ratio:2/1;background:var(--blue2);color:white;text-align:left;isolation:isolate}
.school-album:only-child{max-width:760px;grid-column:1/-1;width:100%}
.school-album>img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.school-album:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,18,46,.92),transparent 65%);z-index:0}
.school-album:hover>img{transform:scale(1.045)}
.album-caption{position:absolute;z-index:1;left:24px;right:22px;bottom:20px;display:flex;align-items:center;gap:12px}
.album-caption>span:not(.album-open){display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.album-caption strong{font-size:14px}
.album-caption span span{font-size:11px;color:#e0e7f5}
.album-open{margin-left:auto;border-radius:50%;background:#fff;color:var(--blue);height:37px;width:37px;display:grid;place-items:center;flex-shrink:0}
.album-open svg{width:18px}
.school-cta.container{background:linear-gradient(115deg,#12369a,#0b235f);color:#fff;border-radius:24px;padding:31px 39px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:30px;margin:0 auto 34px;isolation:isolate}
.school-cta h2{font-size:29px;line-height:1.2;margin:8px 0 8px;letter-spacing:-.035em}
.school-cta p{font-size:13px;color:#dce6ff;margin:0}
.gold-line{display:block;width:28px;height:3px;background:var(--gold);border-radius:3px}
.school-cta .btn{flex-shrink:0;min-width:185px}
.cta-watermark{position:absolute;width:230px;height:230px;right:35px;top:-30px;opacity:.075;mix-blend-mode:screen;z-index:-1}
.school-footer{background:var(--soft);padding:20px 0 14px;border-top:1px solid #edf1f8}
.sf-main{display:flex;align-items:center;justify-content:space-between;gap:24px}
.sf-main nav{display:flex;gap:20px;font-size:11px;font-weight:600}
.sf-main .socials{margin:0;gap:7px;display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:205px}
.sf-main .socials a{background:none;border:0;width:24px;height:27px;color:var(--blue2);padding:4px;display:grid;place-items:center}
.sf-main .socials svg{width:16px;height:16px;fill:currentColor;stroke:none}
.sf-bottom{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #e3e8f1;padding-top:13px;margin-top:15px;font-size:9px;color:#65718a}
.directory-hero{padding:35px 0 60px;background:radial-gradient(ellipse at 85% 20%,#1d46b3,transparent 55%),var(--blue2);color:#fff}
.directory-hero .eyebrow{color:#d6e2ff}
.directory-hero h1{font-size:clamp(34px,4.6vw,61px);line-height:1.1;margin:16px 0 20px;max-width:900px}
.directory-hero p{font-size:16px;line-height:1.8;max-width:690px;color:#d5dff4;margin-bottom:26px}
.directory-content{padding:50px 0 35px;scroll-margin-top:20px}
.directory-content .school-section-title{margin-bottom:28px}
.directory-content .school-section-title p{color:#65718a;font-size:13px;margin:0}
.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.directory-card{border:1px solid #e6ebf5;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 9px 35px rgba(18,54,154,.045);transition:transform .2s,box-shadow .2s}
.directory-card:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(18,54,154,.1)}
.directory-photo{height:240px;display:block;position:relative;overflow:hidden}
.directory-photo img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.directory-card:hover img{transform:scale(1.03)}
.directory-photo>span{position:absolute;bottom:18px;left:23px;background:#fff;color:var(--blue);border-radius:999px;font-size:11px;font-weight:800;padding:7px 18px;box-shadow:0 4px 20px #0002}
.directory-card-body{padding:27px 30px 29px}
.directory-card-body h3{font-size:25px;line-height:1.25;letter-spacing:-.035em;margin:10px 0 12px}
.directory-card-body p{font-size:13px;color:#65718a;margin:0 0 20px}
.directory-link{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--blue);font-weight:800}
.directory-link svg{width:19px;margin-left:auto}
.directory-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
.directory-card:last-child .directory-photo{height:100%;min-height:265px}
.directory-card:last-child .directory-card-body{align-self:center;padding:30px 38px}
.album-dialog{border:0;border-radius:24px;padding:30px;width:min(1050px,calc(100% - 32px));max-height:90dvh;background:#f5f7fb;color:var(--ink);overscroll-behavior:contain}
.album-dialog::backdrop,.photo-dialog::backdrop{background:rgba(3,12,33,.88);backdrop-filter:blur(5px)}
.album-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:23px}
.album-toolbar h2{font-size:29px;margin:9px 0 4px}
.album-toolbar p{font-size:12px;color:var(--muted);margin:0}
.icon-button{padding:0;width:42px;height:42px;display:grid;place-items:center;border:1px solid #dfe5f1;background:#fff;border-radius:50%;color:var(--blue);flex-shrink:0}
.album-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.album-thumb{padding:0;border:0;border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:#dfe5f1}
.album-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .2s}
.album-thumb:hover img{transform:scale(1.05)}
.load-more{display:flex;margin:25px auto 0}
.load-more[hidden]{display:none}
.photo-dialog{border:0;padding:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;background:transparent;color:#fff;overflow:hidden}
.photo-dialog[open]{display:flex;align-items:center;justify-content:center}
.photo-dialog figure{margin:0;width:calc(100% - 155px);height:calc(100% - 100px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.photo-dialog figure img{max-height:calc(100% - 45px);max-width:100%;object-fit:contain;border-radius:6px;min-height:0}
.photo-dialog figcaption{text-align:center;font-size:12px;max-width:800px;line-height:1.5}
.photo-close{position:absolute;right:24px;top:22px;z-index:2}
.photo-prev,.photo-next{position:absolute;top:calc(50% - 21px);font-size:30px!important}
.photo-prev{left:20px}.photo-next{right:20px}
@media(min-width:1450px){.school-hero-inner{min-height:535px}.school-hero-img{object-position:50% 57%}}
@media(max-width:1000px){.school-redesign .container{width:calc(100% - 48px)}.school-redesign .nav-links{gap:18px}.school-intro{gap:28px;grid-template-columns:1.25fr 1fr}.school-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.school-steps li{padding:25px}.school-audience{padding:24px 20px;gap:12px}.school-audience .school-icon{width:42px;height:42px}.sf-main{flex-wrap:wrap}.sf-main .socials{max-width:none}.school-section-title{align-items:flex-start}.album-hint{max-width:170px}.directory-photo{height:210px}}
@media(max-width:760px){.school-redesign .container{width:calc(100% - 36px)}.school-redesign .topline .container{min-height:29px;font-size:9px}.school-redesign .topline .container>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.school-redesign .topline .container>span:last-child{display:none}.school-redesign .navbar{height:74px}.school-redesign .brand{min-width:0;gap:7px}.school-redesign .brand img{width:48px;height:48px}.school-redesign .brand-text strong{font-size:12px}.school-redesign .brand-text span{font-size:8px}.school-redesign .nav-links,.school-redesign .nav-cta .login-btn{display:none}.school-redesign .menu-btn{display:grid;place-items:center;flex-shrink:0}.school-redesign .nav-inner{gap:10px}.school-redesign .mobile-drawer{top:103px}.school-hero-inner{min-height:470px;padding-top:24px;padding-bottom:65px}.school-hero:after{background:linear-gradient(90deg,rgba(5,24,60,.94),rgba(6,28,72,.72) 60%,rgba(6,28,72,.45))}.school-hero-img{object-position:62% center}.school-crumbs{font-size:10px;gap:9px;margin-bottom:30px}.school-hero h1{font-size:46px;max-width:500px}.school-hero h1.long-title{font-size:36px}.school-hero-inner>p{font-size:15px;max-width:370px}.school-redesign .btn{padding:12px 20px;font-size:12px;gap:10px}.school-switch.container{width:calc(100% - 30px);padding:10px 6px;border-radius:16px;min-height:59px;margin-top:-27px}.school-switch a{font-size:10px;padding:10px 5px}.school-intro{grid-template-columns:1fr;gap:25px;padding:34px 0}.school-intro h2{font-size:31px}.school-intro>div>p{font-size:13px}.school-audience{padding:23px;gap:17px}.school-audience p{font-size:12px}.school-curriculum{padding:32px 0}.school-curriculum h2{font-size:25px}.school-steps{gap:12px}.school-steps li{padding:20px 16px}.school-steps .school-icon{width:43px;height:43px}.school-steps .school-icon svg{width:24px;height:24px}.step-top{gap:14px;margin-bottom:16px}.step-number{font-size:27px}.school-steps h3{font-size:14px}.school-steps p{font-size:11px}.school-life{padding-top:32px}.school-section-title{display:block;margin-bottom:20px}.school-section-title h2{font-size:29px}.desktop-break{display:none}.album-hint{max-width:none;font-size:11px;margin-top:14px}.school-albums{grid-template-columns:1fr;gap:15px}.school-album{aspect-ratio:1.9}.album-caption{left:20px;right:18px;bottom:18px}.school-cta.container{padding:28px 24px;display:block;border-radius:20px;margin-bottom:25px}.school-cta h2{font-size:27px}.school-cta p{font-size:12px}.school-cta .btn{margin-top:20px}.cta-watermark{right:-35px;top:10px;width:250px;height:250px}.sf-main{gap:20px;justify-content:space-between}.sf-main .brand{width:100%}.sf-main nav{gap:16px;font-size:10px;flex-wrap:wrap}.sf-main .socials{gap:3px}.sf-bottom{font-size:9px;flex-wrap:wrap;gap:8px}.sf-bottom span:nth-child(2){display:none}.directory-hero{padding:27px 0 40px}.directory-hero h1{font-size:36px}.directory-hero p{font-size:13px}.directory-content{padding:35px 0 25px}.directory-content .school-section-title p{margin-top:15px;font-size:12px}.directory-grid{grid-template-columns:1fr;gap:20px}.directory-card:last-child{display:block}.directory-card:last-child .directory-photo{min-height:0;height:210px}.directory-card-body,.directory-card:last-child .directory-card-body{padding:23px}.directory-card-body h3{font-size:24px}.album-dialog{padding:20px 15px;border-radius:18px;width:calc(100% - 20px)}.album-toolbar h2{font-size:24px}.album-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-dialog figure{width:calc(100% - 24px);height:calc(100% - 140px)}.photo-prev,.photo-next{top:auto;bottom:22px}.photo-close{top:15px;right:15px}.photo-dialog figcaption{font-size:11px}.photo-prev{left:calc(50% - 65px)}.photo-next{right:calc(50% - 65px)}}
@media(max-width:370px){.school-hero h1{font-size:39px}.school-hero-actions{gap:8px}.school-redesign .btn{padding:11px 16px}.school-steps{grid-template-columns:1fr}.school-steps li{padding:23px}.school-steps h3{font-size:17px}.school-steps p{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media(max-width:1000px){.school-redesign .mobile-drawer{visibility:hidden;pointer-events:none}.school-redesign .mobile-drawer.open{visibility:visible;pointer-events:auto}.school-redesign .menu-btn{display:grid;place-items:center}}
