/*
Theme Name: Sll Light
Theme URI: https://www.saint-luc.be
Author: ESA Saint-Luc Liège
Description: Thème classique piloté par theme.json. Sans Bootstrap, sans jQuery propre, sans Owl.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sll-light
*/

/* ===== Base ===== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
img{max-width:100%;height:auto}
a{text-decoration:none}
.container{width:100%;max-width:1140px;margin:0 auto;padding:0 15px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.page-header{margin-bottom:2em}
.skip-link{position:absolute;left:-999px}.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px;z-index:100000}

/* ===== Mini-grille compatible avec le HTML de l'intranet (row / col-xs|sm|md|lg|xl-N) ===== */
.row{display:flex;flex-wrap:wrap;margin:0 -15px}
.row>[class*="col-"]{padding:0 15px;width:100%}

.col-xs-1{flex:0 0 8.3333%;max-width:8.3333%}.col-xs-2{flex:0 0 16.6667%;max-width:16.6667%}.col-xs-3{flex:0 0 25.0000%;max-width:25.0000%}.col-xs-4{flex:0 0 33.3333%;max-width:33.3333%}.col-xs-5{flex:0 0 41.6667%;max-width:41.6667%}.col-xs-6{flex:0 0 50.0000%;max-width:50.0000%}.col-xs-7{flex:0 0 58.3333%;max-width:58.3333%}.col-xs-8{flex:0 0 66.6667%;max-width:66.6667%}.col-xs-9{flex:0 0 75.0000%;max-width:75.0000%}.col-xs-10{flex:0 0 83.3333%;max-width:83.3333%}.col-xs-11{flex:0 0 91.6667%;max-width:91.6667%}.col-xs-12{flex:0 0 100.0000%;max-width:100.0000%}
@media(min-width:576px){.col-sm-1{flex:0 0 8.3333%;max-width:8.3333%}.col-sm-2{flex:0 0 16.6667%;max-width:16.6667%}.col-sm-3{flex:0 0 25.0000%;max-width:25.0000%}.col-sm-4{flex:0 0 33.3333%;max-width:33.3333%}.col-sm-5{flex:0 0 41.6667%;max-width:41.6667%}.col-sm-6{flex:0 0 50.0000%;max-width:50.0000%}.col-sm-7{flex:0 0 58.3333%;max-width:58.3333%}.col-sm-8{flex:0 0 66.6667%;max-width:66.6667%}.col-sm-9{flex:0 0 75.0000%;max-width:75.0000%}.col-sm-10{flex:0 0 83.3333%;max-width:83.3333%}.col-sm-11{flex:0 0 91.6667%;max-width:91.6667%}.col-sm-12{flex:0 0 100.0000%;max-width:100.0000%}}
@media(min-width:768px){.col-md-1{flex:0 0 8.3333%;max-width:8.3333%}.col-md-2{flex:0 0 16.6667%;max-width:16.6667%}.col-md-3{flex:0 0 25.0000%;max-width:25.0000%}.col-md-4{flex:0 0 33.3333%;max-width:33.3333%}.col-md-5{flex:0 0 41.6667%;max-width:41.6667%}.col-md-6{flex:0 0 50.0000%;max-width:50.0000%}.col-md-7{flex:0 0 58.3333%;max-width:58.3333%}.col-md-8{flex:0 0 66.6667%;max-width:66.6667%}.col-md-9{flex:0 0 75.0000%;max-width:75.0000%}.col-md-10{flex:0 0 83.3333%;max-width:83.3333%}.col-md-11{flex:0 0 91.6667%;max-width:91.6667%}.col-md-12{flex:0 0 100.0000%;max-width:100.0000%}}
@media(min-width:992px){.col-lg-1{flex:0 0 8.3333%;max-width:8.3333%}.col-lg-2{flex:0 0 16.6667%;max-width:16.6667%}.col-lg-3{flex:0 0 25.0000%;max-width:25.0000%}.col-lg-4{flex:0 0 33.3333%;max-width:33.3333%}.col-lg-5{flex:0 0 41.6667%;max-width:41.6667%}.col-lg-6{flex:0 0 50.0000%;max-width:50.0000%}.col-lg-7{flex:0 0 58.3333%;max-width:58.3333%}.col-lg-8{flex:0 0 66.6667%;max-width:66.6667%}.col-lg-9{flex:0 0 75.0000%;max-width:75.0000%}.col-lg-10{flex:0 0 83.3333%;max-width:83.3333%}.col-lg-11{flex:0 0 91.6667%;max-width:91.6667%}.col-lg-12{flex:0 0 100.0000%;max-width:100.0000%}}
@media(min-width:1200px){.col-xl-1{flex:0 0 8.3333%;max-width:8.3333%}.col-xl-2{flex:0 0 16.6667%;max-width:16.6667%}.col-xl-3{flex:0 0 25.0000%;max-width:25.0000%}.col-xl-4{flex:0 0 33.3333%;max-width:33.3333%}.col-xl-5{flex:0 0 41.6667%;max-width:41.6667%}.col-xl-6{flex:0 0 50.0000%;max-width:50.0000%}.col-xl-7{flex:0 0 58.3333%;max-width:58.3333%}.col-xl-8{flex:0 0 66.6667%;max-width:66.6667%}.col-xl-9{flex:0 0 75.0000%;max-width:75.0000%}.col-xl-10{flex:0 0 83.3333%;max-width:83.3333%}.col-xl-11{flex:0 0 91.6667%;max-width:91.6667%}.col-xl-12{flex:0 0 100.0000%;max-width:100.0000%}}

/* ===== En-tête et menu ===== */
#mainnav{position:sticky;top:0;z-index:1000;background:#fff;padding-top:1.2em;transition:padding .3s}
#mainnav .bar{display:flex;align-items:center;gap:1rem;padding-bottom:.4em}
#mainnav .logo{height:170px;width:auto;transition:height .3s;display:block}
#mainnav.shrink{padding-top:.3em;box-shadow:0 2px 8px rgba(0,0,0,.12)}
#mainnav.shrink .logo{height:60px}
.brand-right{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem}
.social{display:flex;gap:1rem;list-style:none;margin:0;padding:0}.social a{display:block;color:#666;line-height:0}.social a:hover{color:var(--wp--preset--color--accent)}
#nav-toggle{display:none;margin-left:auto;background:#fff;border:1px solid #444;padding:.5em .8em;font:inherit;cursor:pointer}
#site-nav{border-top:1px solid var(--wp--preset--color--txt)}
#site-nav ul{list-style:none;margin:0;padding:0}
#site-nav>ul>li{display:inline-block;position:relative}
#site-nav a{display:block;padding:.6em .5em;font-size:.8rem;text-transform:uppercase;color:#666}
#site-nav a:hover,#site-nav a:focus{color:#000}
#site-nav .sub-menu{display:none;position:absolute;left:0;top:100%;min-width:230px;background:#fff;border:1px solid #ddd;z-index:1001}
#site-nav li:hover>.sub-menu,#site-nav li:focus-within>.sub-menu{display:block}
#site-nav .sub-menu a{padding:.5em .8em}
@media(max-width:991px){
  #mainnav{position:static;padding-top:.3em}
  #mainnav .logo{height:50px}
  .brand-right{display:none}
  #nav-toggle{display:block}
  #site-nav{display:none}
  #site-nav.open{display:block}
  #site-nav>ul>li{display:block}
  #site-nav .sub-menu{display:block;position:static;border:0;padding-left:1em}
}

/* ===== Pied de page ===== */
.site-footer{margin-top:4rem;padding:2rem 15px;text-align:center;font-size:.8rem;border-top:1px solid #ddd}
.site-footer p{margin:.3em 0}.site-footer img{vertical-align:middle;max-height:50px}

/* ===== Contenu ===== */
.layout{display:grid;grid-template-columns:1fr;gap:2rem}
@media(min-width:768px){.layout{grid-template-columns:minmax(0,1fr) minmax(0,3fr)}}
.layout aside img{width:100%;height:auto}
.entry-title{margin:0 0 .5em}
.entry-content>*:first-child{margin-top:0}
.meta{font-size:.85rem;color:#777}
.tags{display:flex;flex-wrap:wrap;gap:.4em;margin:.8em 0}.tags div{font-size:.75rem;text-transform:uppercase;font-weight:700}

/* Menu latéral des pages cursus */
.sidebar-cursus{list-style:none;margin:1em 0;padding:0}
.sidebar-cursus a{display:block;padding:.5em 0;border-bottom:1px solid #e5e5e5;font-size:.9rem}
.sidebar-cursus a.is-active{font-weight:700;color:var(--wp--preset--color--accent)}

/* Onglets des pages cursus : sans JavaScript, tout reste visible */
.tabs-on [data-tabs]>.mfcursus{display:none}
.tabs-on [data-tabs]>.mfcursus.is-active{display:block}
.mfcursus h2{margin-top:1.5em}
.cursus-images{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:1.5em}

/* Cartes d'actualités */
.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1.5rem;margin:1rem 0 2rem}
.news-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.news-card h3,.news-card h5{margin:.6em 0 .2em;font-size:1rem;line-height:1.3;overflow-wrap:anywhere}
.news-card .meta{margin:0}
.news-card .excerpt{font-size:.9rem}
.front-news{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.front-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-top:2rem}
@media(min-width:768px){.front-grid{grid-template-columns:1fr 1fr}}
.video-container{position:relative;padding-bottom:56.25%;height:0}
.video-container iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.section-banner img{display:block}

/* Galeries */
.sll-album h3{margin:1.2em 0 .5em}

/* Pagination */
.pagination{display:flex;gap:.5rem;margin:2rem 0}.pagination .current{font-weight:700}

/* Intranet : tuiles des programmes (compatibles avec le HTML existant) */
.coursegrids{width:100%}
.coursegrids .orientation-detail-title{display:none}
a.ue-link{display:block;position:relative;font-size:.8em;line-height:1em;border:.2em solid #000;color:#000;margin-bottom:6px}
a.ue-link cursus{display:block;padding:5%;min-height:4em;font-weight:700;text-transform:uppercase}
a.ue-link .ue-footer{padding:5%;font-style:italic;font-size:.8em}
a.ue-link .requisBloc{position:absolute;top:0;right:0;width:10px;height:10px;margin:5px;background:#fff}
a.ue-link.annual{background:#a6a9ab}
a.ue-link.firstSemester{background:#e6e7e7}
a.ue-link.secondSemester{background:#c6c8c9}
.surbrillance{font-weight:700}
.teacher-list-link{cursor:pointer;display:inline-block;width:1.4em;height:1.4em;line-height:1.35em;text-align:center;border:1px solid currentColor;border-radius:50%;font:700 1rem/1.35em sans-serif;font-style:normal;color:var(--wp--preset--color--accent);user-select:none}
.fa-plus::before{content:"+"}.fa-minus::before{content:"\2212"}
.activeMenu{color:var(--wp--preset--color--accent)}
.coursegrid-error{padding:1em;background:#f6f6f6}

/* ===== Couleurs par cursus (anciennes classes .txt-x / .border-x / .x conservées) ===== */

.txt-sc{color:var(--wp--preset--color--sc)}.border-sc{border-color:var(--wp--preset--color--sc) !important}.ue-footer.sc{background:var(--wp--preset--color--sc);color:#fff}
.txt-pub{color:var(--wp--preset--color--pub)}.border-pub{border-color:var(--wp--preset--color--pub) !important}.ue-footer.pub{background:var(--wp--preset--color--pub);color:#fff}
.txt-bd{color:var(--wp--preset--color--bd)}.border-bd{border-color:var(--wp--preset--color--bd) !important}.ue-footer.bd{background:var(--wp--preset--color--bd);color:#fff}
.txt-illu{color:var(--wp--preset--color--illu)}.border-illu{border-color:var(--wp--preset--color--illu) !important}.ue-footer.illu{background:var(--wp--preset--color--illu);color:#fff}
.txt-pe{color:var(--wp--preset--color--pe)}.border-pe{border-color:var(--wp--preset--color--pe) !important}.ue-footer.pe{background:var(--wp--preset--color--pe);color:#fff}
.txt-ph{color:var(--wp--preset--color--ph)}.border-ph{border-color:var(--wp--preset--color--ph) !important}.ue-footer.ph{background:var(--wp--preset--color--ph);color:#fff}
.txt-ai{color:var(--wp--preset--color--ai)}.border-ai{border-color:var(--wp--preset--color--ai) !important}.ue-footer.ai{background:var(--wp--preset--color--ai);color:#fff}
.txt-cvg{color:var(--wp--preset--color--cvg)}.border-cvg{border-color:var(--wp--preset--color--cvg) !important}.ue-footer.cvg{background:var(--wp--preset--color--cvg);color:#fff}
.txt-di{color:var(--wp--preset--color--di)}.border-di{border-color:var(--wp--preset--color--di) !important}.ue-footer.di{background:var(--wp--preset--color--di);color:#fff}
.txt-croa{color:var(--wp--preset--color--croa)}.border-croa{border-color:var(--wp--preset--color--croa) !important}.ue-footer.croa{background:var(--wp--preset--color--croa);color:#fff}
.txt-agr{color:var(--wp--preset--color--agr)}.border-agr{border-color:var(--wp--preset--color--agr) !important}.ue-footer.agr{background:var(--wp--preset--color--agr);color:#fff}
.txt-doc{color:var(--wp--preset--color--doc)}.border-doc{border-color:var(--wp--preset--color--doc) !important}.ue-footer.doc{background:var(--wp--preset--color--doc);color:#fff}
.txt-pub-txt{color:var(--wp--preset--color--pub-txt)}.border-pub-txt{border-color:var(--wp--preset--color--pub-txt) !important}.ue-footer.pub-txt{background:var(--wp--preset--color--pub-txt);color:#fff}
.txt-ph-txt{color:var(--wp--preset--color--ph-txt)}.border-ph-txt{border-color:var(--wp--preset--color--ph-txt) !important}.ue-footer.ph-txt{background:var(--wp--preset--color--ph-txt);color:#fff}
.txt-croa-txt{color:var(--wp--preset--color--croa-txt)}.border-croa-txt{border-color:var(--wp--preset--color--croa-txt) !important}.ue-footer.croa-txt{background:var(--wp--preset--color--croa-txt);color:#fff}
.footer-menu{display:flex;justify-content:center;gap:1rem;list-style:none;margin:0;padding:0}

main{padding-top:2.5rem}
@media(max-width:991px){main{padding-top:1.5rem}}

/* Icônes du plugin (classes Font Awesome conservées, dessinées sans la police) */
i.fa-file-pdf-o,i.fa-file-pdf,i.fa-download,span.fa-file-pdf-o,span.fa-download,a.fa-file-pdf-o,a.fa-file-pdf,a.fa-download{display:inline-block;width:1.3em;height:1.3em;vertical-align:middle;background:currentColor;-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
.fa-file-pdf-o,.fa-file-pdf{color:var(--wp--preset--color--accent);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11v6M9.5 14.5L12 17l2.5-2.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11v6M9.5 14.5L12 17l2.5-2.5'/%3E%3C/svg%3E")}
.fa-download{color:var(--wp--preset--color--accent);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E")}
.fa-file-pdf-o::before,.fa-file-pdf::before,.fa-download::before{content:none}
