/* RESET & BASICS */
* { margin: 0; padding: 0; box-sizing: border-box; } /* CORRECTION ICI */
body { font-family: 'Arial', sans-serif; color: #333; line-height: 1.6; background-color: #f9f9f9; }

/* COULEURS UMLP STGI */
:root {
    --dark-blue: #3b485f; /* Le bleu du footer/bandeau */
    --umlp-red: #e63026;
    --light-gray: #f4f4f4;
}

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* Conteneur global pour aligner le contenu du header */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* TOP BAR (Partie Grise) */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    font-size: 11px;
    padding: 5px 0;
    color: #666;
}
.top-links a { color: inherit; text-decoration: none; padding: 0 5px; }
.bold-red { color: #e63026 !important; font-weight: bold; }

/* NAVIGATION PRINCIPALE (Sticky) */
.main-nav {
    background: #fff;
    padding: 10px 0;
    border-bottom: 2px solid #e63026; /* Ligne rouge UMLP */
    position: -webkit-sticky; /* Pour Safari */
    position: sticky;
    top: 0; /* Se bloque à 0px du haut de la fenêtre */
    z-index: 1000; /* Reste au-dessus du contenu */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logos */
.brand-block { display: flex; align-items: center; gap: 15px; }
.logo-rf { height: 45px; }
.logo-umlp { height: 40px; }
.logo-stgi { height: 35px; }
.separator { width: 1px; height: 30px; background: #ccc; }

/* Menu */
.nav-menu { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.nav-menu li {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    text-transform: uppercase;
    padding: 10px 0;
}
.nav-menu li.active { color: #e63026; }
.nav-menu li:hover { color: #e63026; }

/* HERO */
.hero { 
    /* Ton fichier local avec un dégradé légèrement plus léger pour la clarté */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(59, 72, 95, 0.6)), 
                url('media/hero.jpg') center/cover no-repeat;
    height: 800px; 
    position: relative; /* Nécessaire pour positionner le texte par rapport au hero */
    width: 100%;
    color: white;
}

.hero-container {
    position: absolute;
    bottom: 80px; /* Aligné en bas (avec une marge de 80px) */
    left: 80px;   /* Aligné à gauche (avec une marge de 80px) */
    max-width: 800px;
}

.hero-container h1 {
    font-size: 6rem; /* Taille massive pour l'impact */
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    background: none; /* Suppression du fond gris */
    margin: 0;
    /* Un léger text-shadow aide à la lisibilité selon l'image de fond */
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.4);
}

.hero-container p {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}
/* SECTIONS */
.content-block { padding: 40px 0; }
h2 { color: var(--dark-blue); margin-bottom: 25px; border-left: 5px solid var(--umlp-red); padding-left: 15px; }

/* MAGAZINE */
.magazine-flex { display: flex; gap: 40px; align-items: center; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.mag-preview img { width: 200px; box-shadow: 5px 5px 15px rgba(0,0,0,0.2); }
.btn-download { display: inline-block; margin-top: 20px; padding: 12px 25px; background: var(--umlp-red); color: white; text-decoration: none; border-radius: 4px; font-weight: bold; }

/* VIDEO RESPONSIVE */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* RESEAUX SOCIAUX */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.social-post { background: white; padding: 10px; text-align: center; border: 1px solid #eee; }
.social-post img { width: 100%; height: auto; margin-bottom: 10px; }

/* FOOTER */
.site-footer { background: var(--dark-blue); color: white; padding: 40px 20px; margin-top: 60px; }
.footer-container { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-container img { max-width: 200px; height: auto; }
.footer-links ul { list-style: none; display: flex; gap: 20px; font-size: 0.8rem; }

/* Style de la Lightbox */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Doit être au-dessus du header sticky */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir transparent */
    padding-top: 50px;
}

/* Image à l'intérieur */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid white;
}

/* Bouton Fermer */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

/* Curseur sur les images cliquables */
.social-post img {
    cursor: zoom-in;
    transition: 0.3s;
}

.social-post img:hover {
    opacity: 0.8;
}