/* Ajout ECODIM à la version personnalisée du site. */
.school-cards .school-card:nth-child(n){grid-column:span 2}.school-cards .school-card:nth-child(n) .school-photo{height:260px}
@media(max-width:900px){.school-cards .school-card:nth-child(n){grid-column:span 1}}
@media(max-width:480px){.school-cards .school-card:nth-child(n){grid-column:1}}
.ecodim-page .e-hdr,.ecodim-page .e-footer{--blue:#0b2670}@media(max-width:760px){.ecodim-page .school-switch{overflow-x:auto}}
/* Les six cartes d'écoles ont la même taille de texte : la 2e rangée (cartes 4 à 6) reprend celle de la 1re. */
@media(min-width:1151px){
.school-cards .school-card:nth-child(n+4) h3{font-size:25px}
.school-cards .school-card:nth-child(n+4) h4{font-size:16px;font-weight:500;color:var(--blue);margin-top:2px}
.school-cards .school-card:nth-child(n+4) p{font-size:16px}
.school-cards .school-card:nth-child(n+4)>div:not(.photo-crop){padding:12px 17px 15px}
}
@media(min-width:801px) and (max-width:1150px){
.school-cards .school-card:nth-child(n+4) h3{font-size:27px}
.school-cards .school-card:nth-child(n+4) h4{font-size:15px;font-weight:500;color:var(--blue);margin-top:2px}
.school-cards .school-card:nth-child(n+4) p{font-size:16px}
.school-cards .school-card:nth-child(n+4)>div:not(.photo-crop){padding:12px 17px 15px}
}
/* Page « Les écoles » : six cartes = trois rangées de deux ; la dernière (IBTC) n'est plus pleine largeur. */
.directory-grid .directory-card:last-child{grid-column:auto;display:block}
.directory-grid .directory-card:last-child .directory-photo{height:240px;min-height:0}
.directory-grid .directory-card:last-child .directory-card-body{align-self:auto;padding:27px 30px 29px}
@media(max-width:760px){.directory-grid .directory-card:last-child .directory-photo{height:210px}.directory-grid .directory-card:last-child .directory-card-body{padding:23px}}
/* Albums de toutes les écoles : même présentation que ceux de l'ECODIM (carte blanche, photo en haut, titre et « N photos · Ouvrir l'album → » dessous). */
.school-albums{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:24px 0}
.school-albums .school-album{display:block;aspect-ratio:auto;isolation:auto;border:1px solid #dce6f6;border-radius:18px;background:#fff;color:#06176b;box-shadow:0 5px 20px #092d8310;text-align:left;transition:box-shadow .2s}
.school-albums .school-album:only-child{grid-column:auto;max-width:440px;width:100%}
.school-albums .school-album:after{display:none}
.school-albums .school-album>img{display:block;width:100%;height:220px;object-fit:cover}
.school-albums .school-album:hover>img{transform:none}
.school-albums .school-album:hover{box-shadow:0 8px 24px #092d8324}
.school-albums .album-caption{position:static;display:block;padding:18px}
.school-albums .album-caption>svg,.school-albums .album-open{display:none}
.school-albums .album-caption>span:not(.album-open){display:block}
.school-albums .album-caption strong{display:block;font-size:16px;line-height:1.45;color:#06176b}
.school-albums .album-caption span span{display:block;font-size:12px;color:#385aa0;margin-top:9px}
.school-albums .album-caption span span::after{content:" · Ouvrir l’album →"}
@media(max-width:900px){.school-albums{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.school-albums{grid-template-columns:1fr}.school-albums .school-album>img{height:230px}}
.ecodim-page .school-hero .btn-light{color:#12369a}
/* « Vos questions, nos réponses » : deux colonnes indépendantes, fermer une question ne laisse plus de vide en dessous. */
.faq-list{align-items:start;column-gap:16px;row-gap:7px}
.faq-col{display:grid;gap:7px;align-content:start;min-width:0}
.faq-col>details:first-child{grid-row:auto}
/* Bannière des écoles : trois boutons (Se renseigner, parcours, Se connecter) -> passage à la ligne sur petit écran. */
@media(max-width:520px){body .school-hero-actions{flex-wrap:wrap}}
