/* --- RESET ET DESIGN DE BASE ÉDUCATIF --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-blue: #0d2c54;        /* Bleu marine royal officiel */
    --color-gold: #df9f00;        /* Jaune Or/Orange de l'affiche */
    --color-light-bg: #f8fafc;    
    --text-dark: #334155;        
    --font-main: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: var(--font-main);
    padding-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- BARRE DE NAVIGATION (NAVBAR) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Légèrement réduit pour gagner de la place sur les côtés */
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(13, 44, 84, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 85px; /* Hauteur standardisée plus fine et élégante */
}


.logo-container { 
    display: flex;
    align-items: center;
    gap: 15px;   
}

.site-logo { 
    height: 65px;
    width: auto; 
    object-fit: contain; 
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name { 
    color: var(--color-blue);
    font-size: 1.4rem; 
    font-weight: 800; 
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex; 
    list-style: none; 
    gap: 30px; 
}

.nav-links a { 
    color: var(--color-blue); 
    text-decoration: none; 
    font-size: 0.95rem; 
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--color-gold); 
}

/* --- HERO SECTION --- */
.hero {
    height: calc(80vh - 10px);
    position: relative;
    background: url('img_lumea/les_profs.jpg') no-repeat center center/cover; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 0 20px;
}

.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(13, 44, 84, 0.85), rgba(13, 44, 84, 0.6)); 
    z-index: 1; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 900px; 
}

.hero-tagline {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background-color: var(--color-gold);
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-content h1 { 
    font-size: 2.8rem; 
    color: #ffffff;
    margin-bottom: 20px; 
}

.text-highlight { 
    color: var(--color-gold); 
}

.hero-content p { 
    font-size: 1.15rem; 
    color: #f1f5f9; 
    max-width: 750px; 
    margin: 0 auto 40px auto; 
    line-height: 1.6;
}

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.btn-primary, .btn-secondary { 
    padding: 14px 32px; 
    text-decoration: none; 
    font-weight: 600; 
    border-radius: 4px; 
    font-size: 0.95rem;
    transition: all 0.3s ease; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary { 
    background-color: #25d366; 
    color: #ffffff; 
}

.btn-primary:hover { background-color: #128c7e; }

.btn-secondary { 
    border: 2px solid #ffffff; 
    color: #ffffff; 
}

.btn-secondary:hover { background-color: #ffffff; color: var(--color-blue); }

/* --- SECTION STORIES (ACCÈS RAPIDE) --- */
.stories-section {
    padding: 25px 6% 5px 6%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.stories-section h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--color-blue);
    font-weight: 700;
}

.stories-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.stories-container::-webkit-scrollbar { display: none; }

.story-card {
    flex-shrink: 0; 
    width: 220px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.story-card:hover { transform: translateY(-4px); }

.story-card img { width: 100%; height: 100%; object-fit: cover; }

.story-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(13, 44, 84, 0.9) 25%, rgba(13, 44, 84, 0.2) 70%);
}

.story-title {
    position: absolute;
    bottom: 15px; left: 15px; right: 15px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- TITRES DE SECTIONS --- */
.section-subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title-container { text-align: center; margin-bottom: 50px; }
.section-title-container h2 { font-size: 2.1rem; color: var(--color-blue); margin-bottom: 10px; }
.section-title-container p { color: #64748b; }

/* --- SECTION RYTHMES / DURÉES --- */
.durations-section { padding: 80px 6%; background-color: var(--color-light-bg); }
.durations-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.duration-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 6px;
    flex: 1;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.duration-badge {
    background: var(--color-blue);
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.duration-badge.accel { background-color: var(--color-gold); }
.duration-badge.cible { background-color: #475569; }
.duration-card h3 { font-size: 1.3rem; color: var(--color-blue); margin-bottom: 12px; }
.duration-card p { font-size: 0.95rem; color: #64748b; line-height: 1.5; }

/* --- SECTION FILIÈRES PROGRAMMES --- */
.formations-detailed-section { padding: 90px 6%; background-color: #ffffff; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.program-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--color-blue);
    padding: 35px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}
.program-card.yellow-theme { border-top-color: var(--color-gold); }
.program-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.program-icon { font-size: 1.8rem; color: var(--color-blue); }
.program-card.yellow-theme .program-icon { color: var(--color-gold); }
.program-header h3 { font-size: 1.3rem; color: var(--color-blue); }
.program-desc { font-size: 0.95rem; color: #64748b; margin-bottom: 20px; line-height: 1.5; }
.program-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.program-list li { font-size: 0.95rem; padding: 6px 0; border-bottom: 1px dashed #f1f5f9; display: flex; align-items: center; gap: 10px; }
.program-list li::before { content: '•'; color: var(--color-gold); font-weight: bold; }
.btn-card-link { text-decoration: none; color: var(--color-blue); font-weight: 700; font-size: 0.95rem; transition: color 0.3s; }
.btn-card-link:hover { color: var(--color-gold); }

/* --- SECTION ATOUTS (ADVANTAGES) --- */
.advantages-section { padding: 90px 6%; background-color: var(--color-light-bg); }
.flex-adv { display: flex; align-items: center; gap: 60px; }
.adv-text { flex: 1; }
.adv-text h2 { font-size: 2.2rem; color: var(--color-blue); margin-bottom: 30px; }
.adv-item { display: flex; gap: 20px; margin-bottom: 25px; }
.adv-item i { font-size: 1.8rem; color: var(--color-gold); margin-top: 3px; }
.adv-item h4 { font-size: 1.15rem; color: var(--color-blue); margin-bottom: 5px; }
.adv-item p { font-size: 0.95rem; color: #64748b; }
.adv-image { flex: 1; }.adv-image img { width: 100%; height: 380px; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }/* --- FOOTER INSTITUTIONNEL --- */.site-footer { background-color: var(--color-blue); color: #ffffff; padding: 70px 6% 30px 6%; }.footer-container { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }.footer-column { flex: 1; min-width: 260px; }.footer-column h3 { font-size: 1.4rem; margin-bottom: 20px; }.yellow-accent { color: var(--color-gold); }.footer-column h4 { font-size: 1.1rem; margin-bottom: 20px; color: #ffffff; }.footer-column p { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }.footer-links-list a { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; }.footer-links-list a:hover { color: #ffffff; }.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); color: #94a3b8; font-size: 0.85rem; }/* --- BOUTON FLOTTANT WHATSAPP --- */.whatsapp-float {position: fixed; bottom: 40px; right: 40px; background-color: #25d366; color: #ffffff;padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px;text-decoration: none; font-weight: 600; z-index: 9999; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); transition: all 0.3s;}.whatsapp-float:hover { transform: translateY(-4px); background-color: #128c7e; }/* --- RESPONSIVE MOBILE --- */@media (max-width: 768px) {.navbar { padding: 15px 5%; height: auto; flex-direction: column; gap: 15px; }.nav-links { gap: 15px; }body { padding-top: 140px; }.hero-content h1 { font-size: 1.9rem; }.hero-buttons { flex-direction: column; gap: 10px; }.durations-grid, .flex-adv { flex-direction: column; }.adv-image img { height: 260px; }.whatsapp-float span { display: none; }.whatsapp-float { padding: 15px; border-radius: 50%; }}


/* --- DESIGN DU FOOTER INSTITUTIONNEL (Ajouté) --- */
.site-footer { 
    background-color: var(--color-blue); 
    color: #ffffff; 
    padding: 70px 6% 30px 6%; 
    border-top: 4px solid var(--color-gold);
}
.footer-container { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-column { flex: 1; min-width: 260px; }
.footer-column h3 { font-size: 1.4rem; margin-bottom: 20px; font-weight: 800; }
.yellow-accent { color: var(--color-gold); }
.footer-column h4 { font-size: 1.1rem; margin-bottom: 20px; color: #ffffff; font-weight: 700; }
.footer-column p { color: #cbd5e1; font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-list a { color: #cbd5e1; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }.footer-links-list a:hover { color: #ffffff; }.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); color: #94a3b8; font-size: 0.85rem; }/* --- DESIGN DU BOUTON FLOTTANT WHATSAPP (Ajouté) --- */.whatsapp-float {position: fixed; bottom: 40px; right: 40px; background-color: #25d366; color: #ffffff;padding: 12px 24px; border-radius: 50px; display: flex; align-items: center; gap: 10px;text-decoration: none; font-weight: 600; z-index: 9999; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); transition: all 0.3s;}.whatsapp-float:hover { transform: translateY(-4px); background-color: #128c7e; }/* --- RESPONSIVE MOBILE --- */@media (max-width: 768px) {.navbar { padding: 15px 5%; height: auto; flex-direction: column; gap: 15px; }.nav-links { gap: 15px; }body { padding-top: 140px; }.hero-content h1 { font-size: 1.9rem; }.hero-buttons { flex-direction: column; gap: 10px; }.durations-grid, .flex-adv { flex-direction: column; }.adv-image img { height: 260px; }.whatsapp-float span { display: none; }.whatsapp-float { padding: 15px; border-radius: 50%; }}

/* Hero spécifique aux pages filières */
.hero-filiere {
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}
.hero-filiere.htl-bg {
    background: url('images/hero_hotellerie_page.jpg') no-repeat center center/cover;
}

/* Grille de mise en page des matières */
.subjects-section {
    padding: 90px 6%;
    background-color: #ffffff;
}
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.subject-card {
    background: var(--color-light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}
.subject-card:hover {
    transform: translateY(-5px);
}
.subject-img-box {
    width: 100%;
    height: 200px;
}
.subject-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.subject-info {
    padding: 25px;
    flex-grow: 1;
}
.subject-info h3 {
    font-size: 1.25rem;
    color: var(--color-blue);
    margin-bottom: 12px;
    font-weight: 700;
}
.subject-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Bannière d'inscription en bas de filière */
.cta-filiere {
    background: var(--color-blue);
    color: #ffffff;
    padding: 70px 6%;
    text-align: center;
}
.cta-filiere h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.cta-filiere p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.btn-primary-filiere {
    background-color: #25d366;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

/* Fond spécifique pour le haut de la page Bureautique */
.hero-filiere.burt-bg {
    background: url('images/hero_bureautique_page.jpg') no-repeat center center/cover;
}

/* Fond spécifique pour le haut de la page Secrétariat de Direction */
.hero-filiere.dir-bg {
    background: url('images/hero_direction_page.jpg') no-repeat center center/cover;
}


/* --- NOUVEAU BOUTON FLOTTANT WHATSAPP TEXTUEL --- */
.whatsapp-text-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Vert WhatsApp officiel */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px; /* Donne une forme de pilule élégante */
    display: flex;
    align-items: center;
    gap: 10px; /* Écart parfait entre l'icône et le texte */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-text-float i {
    font-size: 1.3rem; /* Taille de l'icône */
}

.whatsapp-text-float:hover {
    transform: translateY(-4px); /* Petit effet de survol dynamique */
    background-color: #128c7e; /* Vert plus foncé au survol */
}

/* ==========================================================================
   NETTOYAGE ET RECONSTRUCTION MOBILE POUR IFP LUMEA (SMARTPHONES)
   ========================================================================== */

/* Par défaut sur grand écran (ordinateur), on masque le bouton burger */
.burger-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    /* 1. Ajustement de la barre blanche principale */
    .navbar {
        height: 80px; 
        padding: 0 4%;
        display: flex;
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        background: #ffffff;
    }

    body {
        padding-top: 80px; /* Évite que le texte du hero passe sous la navbar */
    }

    /* 2. Redimensionnement du logo et du texte de marque */
    .site-logo {
        height: 45px; 
        width: auto;
    }
    .brand-name {
        font-size: 1.1rem;
        font-weight: 800;
        color: #0a2240;
    }
    /* On masque le très long sous-titre sur mobile pour aérer un maximum */
    .brand-sub {
        display: none !important;
    }

    /* 3. Activation visuelle des 3 barres du bouton burger à droite */
    .burger-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
    }
    .burger-menu-btn .bar {
        width: 100%;
        height: 3px;
        background-color: #0a2240; /* Bleu marine officiel */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Animation de la croix lors du clic */
    .burger-menu-btn.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: #df9f00; }
    .burger-menu-btn.open .bar:nth-child(2) { opacity: 0; }
    .burger-menu-btn.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: #df9f00; }

    /* 4. LE SECRET DU PRODUIT : On masque entièrement la liste de liens étouffés */
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%; /* Totalement éjecté à droite de l'écran par défaut */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
        z-index: 1050;
    }

    /* Quand JavaScript s'active au clic, le menu complet glisse proprement sur l'écran */
    .nav-container.open {
        right: 0;
    }

    /* Alignement vertical et aéré des 4 rubriques dans le menu plein écran */
    .nav-container .nav-links {
        flex-direction: column;
        gap: 35px; /* Grand espace pour le confort du pouce */
        align-items: center;
        width: auto;
        display: flex;
        list-style: none;
    }
    .nav-links a {
        font-size: 1.3rem; 
        color: #0a2240;
        font-weight: 700;
        text-decoration: none;
    }
}


