/* --- 1. VARIABLES & FONTES --- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
  --cassiopeia-font-family-body: 'Nunito', sans-serif;
  --cassiopeia-font-family-headings: 'Quicksand', sans-serif;
  --ecole-blue: #004a99;
  --ecole-blue-glass: rgba(0, 74, 153, 0.85);
  --ecole-accent: #f0ad4e;
  --ecole-light-bg: #f4f6f8;
}

/* --- 2. ANIMATIONS (Placées en haut pour être lues en premier) --- */
@-webkit-keyframes pulse-red {
  0% { -webkit-box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7); }
  70% { -webkit-box-shadow: 0 0 0 15px rgba(217, 83, 79, 0); }
  100% { -webkit-box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}
@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(217, 83, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}

/* --- 3. GLOBAL & MENU --- */
body.site {
  font-family: var(--cassiopeia-font-family-body) !important;
  background-color: var(--ecole-light-bg) !important;
}

h1, h2, h3, h4, h5, h6, .navbar-nav, .navbar-brand {
  font-family: var(--cassiopeia-font-family-headings) !important;
}

.header {
  position: sticky !important;
  top: 0;
  z-index: 9999 !important;
  background-color: var(--ecole-blue-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .navbar-nav .nav-link { color: #ffffff !important; font-weight: 600; text-transform: uppercase; }
.header .navbar-nav .nav-link:hover, .header .navbar-nav .active > .nav-link { color: var(--ecole-accent) !important; }
.navbar-brand { color: #ffffff !important; }

/* --- 4. SECTION HERO & ARTICLES --- */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/headers/hero-ecole-princesse-de-liege.png') no-repeat center center;
  background-size: cover;
  color: #ffffff;
  text-align: center;
  z-index: 1; /* On définit une base propre */
}

/* L'overlay noir */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35);  
  z-index: 1; /* Derrière le contenu */
}

/* Le conteneur de texte, logo et bouton */
.hero-content { 
  position: relative; 
  z-index: 10; /* On le propulse AU-DESSUS du voile noir */
  padding: 20px; 
  max-width: 800px; 
}

/* Correction du voile sur le logo & Optimisation de la luminosité */
.hero-logo { 
  max-width: 400px; 
  width: 100%; 
  height: auto; 
  margin-bottom: 1.5rem; 
  /* Combinaison d'une lueur externe claire (drop-shadow) et d'un boost de contraste/luminosité */
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)) contrast(1.15) brightness(1.05) !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0); 
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo:hover {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.7)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) contrast(1.2) brightness(1.1) !important;
  transform: scale(1.02);
}

/* RÉAPPARITION DU BOUTON */
.btn-ecole {
  background-color: var(--ecole-accent) !important;
  color: white !important;
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 50px;
  text-transform: uppercase;
  display: inline-block !important; /* Pour être sûr qu'il s'affiche */
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-top: 1rem;
}

.btn-ecole:hover {
  background-color: #d8963d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.site-grid > .container-component, .com-content-article, .item-page {
  background-color: #ffffff !important;
  padding: 2.5rem !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  margin-top: -60px !important;
  z-index: 20; /* Encore plus haut pour l'effet de chevauchement */
  position: relative;
}

/* Nettoyage Page Accueil */
.view-featured .container-breadcrumb, .view-featured .page-header, .view-featured .breadcrumb {
  display: none !important;
}

/* --- 5. STYLE SPÉCIFIQUE ARTICLE 2 (BREAKING NEWS) --- */
/* Le Titre Pulse */
article.item-2 h2, h2 a[href*="breaking-news"], .blog-items > div:nth-child(2) article h2 {
  background: #d9534f !important;
  color: #ffffff !important;
  display: inline-block !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  -webkit-animation: pulse-red 2s infinite !important;
  animation: pulse-red 2s infinite !important;
  border: none !important;
}

/* La bordure Ocre */
article.item-2, .immersion-block {
  border-left: 12px solid var(--ecole-accent) !important;
  background: #ffffff !important;
  display: block !important;
}

.badge-uk {
  background: #00247d !important;
  color: white !important;
  padding: 4px 12px !important;
  border-radius: 4px !important;
  display: inline-block !important;
}

/* --- 6. FORÇAGE MOBILE (ÉCRANS < 992px) --- */
@media (max-width: 991.98px) {
  .hero-section { min-height: 400px; }
  .hero-logo { max-width: 250px; }
  
  .site-grid > .container-component {
    margin-top: -30px !important;
    padding: 1.5rem !important;
  }

  /* Forçage bordure ocre sur mobile */
  article.item-2, .immersion-block {
    border-left: 10px solid #f0ad4e !important; /* Code hexa en dur pour forcer */
    padding: 20px !important;
  }

  /* Forçage Titre Pulse sur mobile */
  article.item-2 h2 {
    font-size: 0.8rem !important;
    -webkit-animation: pulse-red 2s infinite !important;
    animation: pulse-red 2s infinite !important;
  }
}

/* --- 9. FOOTER PROFESSIONNEL --- */
footer.footer {
    background-color: var(--ecole-blue) !important;
    color: #ffffff !important;
    padding: 60px 0 20px 0 !important;
    border-top: 5px solid var(--ecole-accent);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--ecole-accent) !important;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.footer-column p, .footer-column a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--ecole-accent) !important;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}