/* Votre CSS d'origine avec les corrections minimales */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    overflow-x:hidden;
    background:#fff;
}

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:95px;
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(10px);
    display:grid;
    grid-template-columns:180px 1fr 300px;
    align-items:center;
    padding:0 40px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
    z-index:1000;
}

.logo{display:flex;align-items:center;}
.logo img{width:85px;height:auto;object-fit:contain;}

.navbar{display:flex;justify-content:center;align-items:center;}
.navbar a{
    text-decoration:none;
    color:#052F59;
    font-size:16px;
    font-weight:600;
    white-space:nowrap;
    transition:.3s;
    position:relative;
}
.navbar a:hover{color:#F59F27;}
.navbar a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:3px;
    background:#F59F27;
    transition:.3s;
}
.navbar a:hover::after,
.navbar a.active::after{width:100%;}

.buttons{display:flex;justify-content:flex-end;align-items:center;gap:15px;}
.buttons a{display:flex;align-items:center;justify-content:center;gap:10px;}
.buttons i{font-size:16px;}

.login,.register{
    text-decoration:none;
    padding:12px 18px;
    border-radius:10px;
    transition:.3s;
}
.login{border:2px solid #052F59;color:#052F59;background:#fff;}
.login:hover{background:#052F59;color:#fff;}
.register{background:#F59F27;color:#fff;}
.register:hover{background:#d98612;}

.hero{position:relative;width:100%;height:100vh;overflow:hidden;}
.hero video{width:100%;height:100%;object-fit:cover;}

.navbar > ul{
    display:flex;
    list-style:none;
    gap:35px;
    align-items:center;
    margin:0;
    padding:0;
}
.navbar > ul > li{position:relative;}

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:260px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    display:none;
    flex-direction:column;
    padding:10px 0;
    z-index:1000;
}
.dropdown-menu li{list-style:none;width:100%;}
.dropdown-menu a{
    display:block;
    width:100%;
    padding:12px 18px;
    color:#052F59;
    text-decoration:none;
}
.dropdown-menu a::after{display:none;}
.dropdown-menu a:hover{background:#F59F27;color:#fff;}
.dropdown:hover .dropdown-menu{display:flex;}


/*====================================
            FOOTER
====================================*/

.footer{

    background:#052F59;
    color:#fff;
    padding:80px 8% 0;

}

.footer-container{

    max-width:1300px;
    margin:auto;

    display:grid;
    grid-template-columns:2fr 1fr 1fr 1.3fr;

    gap:50px;

}

.footer-logo{

    width:110px;
    margin-bottom:20px;

}

.footer-col p{

    color:#d9d9d9;
    line-height:1.9;
    margin-bottom:25px;

}

.footer-col h3{

    color:#fff;
    margin-bottom:25px;
    font-size:22px;

}

.footer-col ul{

    list-style:none;

}

.footer-col ul li{

    margin-bottom:15px;

}

.footer-col ul li a{

    color:#d9d9d9;
    text-decoration:none;
    transition:.3s;

}

.footer-col ul li a:hover{

    color:#F59F27;
    padding-left:8px;

}

/*==============================
        CONTACT
==============================*/

.footer-contact li{

    display:flex;
    gap:12px;
    color:#d9d9d9;
    line-height:1.8;

}

.footer-contact i{

    color:#F59F27;
    margin-top:5px;

}

/*==============================
        RESEAUX SOCIAUX
==============================*/

.footer-social{

    display:flex;
    gap:15px;

}

.footer-social a{

    width:45px;
    height:45px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(255,255,255,.08);

    color:#fff;

    text-decoration:none;

    transition:.35s;

}

.footer-social a:hover{

    background:#F59F27;

    transform:translateY(-5px);

}

/*==============================
        BAS DU FOOTER
==============================*/

.footer-bottom{

    margin-top:60px;

    border-top:1px solid rgba(255,255,255,.15);

    text-align:center;

    padding:25px 0;

}

.footer-bottom p{

    color:#d9d9d9;

}

/*==============================
        RESPONSIVE
==============================*/

@media(max-width:992px){

    .footer-container{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .footer{

        padding:70px 6% 0;

    }

    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-social{

        justify-content:center;

    }

    .footer-contact li{

        justify-content:center;

    }

}

/* =========================================================
   MENU RESPONSIVE EFEBP
   ========================================================= */

   .menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #052F59;
    font-size: 25px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 1998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    display: none;
}


/* =========================================================
   TABLETTE + MOBILE
   ========================================================= */

@media (max-width:1000px) {

    .header {
        height: 75px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 22px;
        z-index: 2000;
    }

    .logo img {
        width: 72px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 2001;
    }

    /* ==========================
       MENU LATÉRAL
       ========================== */

    .navbar {
        position: fixed;
        top: 0;
        right: 0;

        width: 72%;
        max-width: 390px;
        height: 100vh;

        background: #052F59;

        display: block;

        transform: translateX(100%);
        transition: transform .35s ease;

        overflow-y: auto;

        z-index: 2002;

        box-shadow: -10px 0 30px rgba(0,0,0,.20);
    }

    .navbar.active {
        transform: translateX(0);
    }


    /* ==========================
       BOUTON X
       ========================== */

    .menu-close {
        position: absolute;

        top: 0;
        right: 0;

        width: 45px;
        height: 45px;

        border: 0;

        background: #F59F27;
        color: #052F59;

        font-size: 25px;

        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        z-index: 5;
    }


    /* ==========================
       MENU PRINCIPAL
       ========================== */

    .navbar > ul {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 0;

        margin: 0;

        padding: 75px 25px 120px;

        box-sizing: border-box;
    }

    .navbar > ul > li {
        width: 100%;

        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    .navbar > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        padding: 17px 0;

        color: #fff;

        font-size: 16px;
        font-weight: 600;

        box-sizing: border-box;
    }

    .navbar > ul > li > a:hover {
        color: #F59F27;
    }

    .navbar a::after {
        display: none !important;
    }


    /* ==========================
       SOUS-MENUS
       ========================== */

    .dropdown-menu {
        position: static;

        width: 100%;
        min-width: 0;

        display: none;

        background: rgba(0,0,0,.10);

        box-shadow: none;

        border-radius: 0;

        padding: 0;
        margin: 0;
    }

    .dropdown.active > .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .dropdown:hover > .dropdown-menu {
        display: none;
    }

    .dropdown.active:hover > .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li {
        width: 100%;
        list-style: none;
    }

    .dropdown-menu a {
        display: block;

        width: 100%;

        padding: 13px 15px;

        color: #fff;

        font-size: 14px;

        border-top: 1px solid rgba(255,255,255,.10);

        box-sizing: border-box;
    }

    .dropdown-menu a:hover {
        background: rgba(255,255,255,.08);
        color: #F59F27;
    }


    /* =====================================================
       BROCHURE + CONNEXION
       SIMPLES, EN BAS DU MENU
       ===================================================== */

    .buttons {
        position: fixed;

        right: 0;
        bottom: 0;

        width: 72%;
        max-width: 390px;

        display: none;

        flex-direction: column;

        gap: 0;

        padding: 5px 25px 20px;

        background: #052F59;

        box-sizing: border-box;

        z-index: 2003;
    }

    .navbar.active ~ .buttons {
        display: flex;
    }

    .buttons a {
        width: 100%;

        min-height: 42px;

        display: flex;
        align-items: center;

        justify-content: flex-start;

        padding: 11px 0;

        border: none;
        border-radius: 0;

        background: transparent;

        color: #fff;

        text-decoration: none;

        font-size: 15px;
        font-weight: 600;

        box-sizing: border-box;
    }

    .buttons a:hover {
        color: #F59F27;

        background: transparent;
    }

    .buttons .login {
        border: none;
        background: transparent;
        color: #fff;
    }

    .buttons .register {
        background: transparent;
        color: #fff;
    }

    .buttons i {
        font-size: 15px;
        margin-right: 8px;
    }

}


/* =========================================================
   TÉLÉPHONE
   ========================================================= */

@media (max-width:600px) {

    .header {
        height: 70px;
        padding: 0 16px;
    }

    .logo img {
        width: 67px;
    }

    .navbar {
        width: 78%;
        max-width: none;
    }

    .navbar > ul {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 120px;
    }

    .buttons {
        width: 78%;

        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar > ul > li > a {
        font-size: 15px;
        padding: 16px 0;
    }

}


/* =========================================================
   TRÈS PETIT ÉCRAN
   ========================================================= */

@media (max-width:400px) {

    .navbar {
        width: 84%;
    }

    .buttons {
        width: 84%;
    }

    .navbar > ul {
        padding-left: 18px;
        padding-right: 18px;
    }

    .buttons {
        padding-left: 18px;
        padding-right: 18px;
    }

}
/* =========================================
   BOUTONS RESPONSIVE - TÉLÉPHONE
========================================= */

@media (max-width: 768px) {

    /* Tous les boutons */
    button,
    .btn,
    .about-btn,
    .cta-btn,
    .course-btn,
    .news-btn,
    .login,
    .register,
    .admission-btn,
    .submit-btn,
    .contact-btn {
        padding: 9px 14px;
        font-size: 13px;
        border-radius: 7px;
        width: auto;
        max-width: 100%;
    }

    /* Icônes dans les boutons */
    button i,
    .btn i,
    .about-btn i,
    .cta-btn i,
    .course-btn i,
    .news-btn i,
    .login i,
    .register i {
        font-size: 12px;
    }

    /* Groupe de boutons */
    .cta-buttons,
    .buttons {
        gap: 8px;
        flex-wrap: wrap;
    }
}


/* =========================================
   PETITS ÉCRANS
========================================= */

@media (max-width: 480px) {

    button,
    .btn,
    .about-btn,
    .cta-btn,
    .course-btn,
    .news-btn,
    .login,
    .register,
    .admission-btn,
    .submit-btn,
    .contact-btn {
        padding: 7px 11px;
        font-size: 11px;
        border-radius: 6px;
        width: auto;
        min-width: auto;
    }

    button i,
    .btn i,
    .about-btn i,
    .cta-btn i,
    .course-btn i,
    .news-btn i,
    .login i,
    .register i {
        font-size: 10px;
    }

    .cta-buttons,
    .buttons {
        gap: 6px;
    }
}
/* =========================================
   BOUTON HAMBURGER - MOBILE
========================================= */

@media (max-width: 768px) {

    .menu-toggle {
        width: 48px;
        height: 48px;
        padding: 0;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .menu-toggle i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {

    .menu-toggle {
        width: 46px;
        height: 46px;
        font-size: 21px;
    }

    .menu-toggle i {
        font-size: 21px;
    }
}

/* =====================================================
   GALERIE EFEBP
===================================================== */

:root {
    --blue: #052F59;
    --orange: #F59F27;
    --dark: #17202A;
    --text: #68727D;
    --light: #F6F8FA;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}


/* =====================================================
   HERO
===================================================== */

.gallery-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 25px 70px;

    background:
        linear-gradient(
            rgba(5, 47, 89, .90),
            rgba(5, 47, 89, .90)
        ),
        url("../images/gallery-hero.jpg") center/cover no-repeat;
}

.gallery-hero-content {
    max-width: 850px;
    color: #fff;
}

.gallery-hero-content > span {
    display: inline-block;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.gallery-hero h1 {
    font-size: 58px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 18px;
}

.gallery-hero h1 strong {
    color: var(--orange);
}

.gallery-hero p {
    max-width: 700px;
    margin: auto;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,.85);
}


/* =====================================================
   SECTION GALERIE
===================================================== */

.gallery-section {
    max-width: 1250px;
    margin: auto;
    padding: 80px 30px;
}


/* HEADER */

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 40px;
}

.gallery-label {
    display: block;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.gallery-header h2 {
    color: var(--blue);
    font-size: 40px;
    line-height: 1.2;
}

.gallery-header h2 em {
    color: var(--orange);
    font-style: normal;
}

.gallery-header > p {
    max-width: 400px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
}


/* =====================================================
   FILTRES
===================================================== */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter {
    border: 1px solid #e1e5e8;
    background: #fff;
    color: var(--blue);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
}

.filter:hover,
.filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}


/* =====================================================
   MASONRY
===================================================== */

.gallery-grid {
    columns: 3;
    column-gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    break-inside: avoid;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* =====================================================
   OVERLAY
===================================================== */

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: space-between;
    align-items: end;

    padding: 22px;

    background: linear-gradient(
        transparent 35%,
        rgba(5, 47, 89, .88)
    );

    opacity: 0;
    transition: .4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--orange);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 17px;
    margin-top: 5px;
}

.view-image {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}


/* =====================================================
   CTA
===================================================== */

.gallery-cta {
    background: var(--blue);
    padding: 65px 25px;
    text-align: center;
    color: #fff;
}

.gallery-cta span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.gallery-cta h2 {
    max-width: 700px;
    margin: 12px auto 25px;
    font-size: 38px;
    line-height: 1.2;
}

.gallery-cta a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.gallery-cta a:hover {
    transform: translateY(-3px);
}


/* =====================================================
   LIGHTBOX
===================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;

    opacity: 0;
    visibility: hidden;

    transition: .3s ease;

    z-index: 9999;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: var(--orange);
    color: #fff;

    font-size: 20px;
    cursor: pointer;
}


/* =====================================================
   TABLETTE
===================================================== */

@media (max-width: 900px) {

    .gallery-hero h1 {
        font-size: 45px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gallery-grid {
        columns: 2;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .gallery-hero {
        min-height: 350px;
        padding: 110px 20px 50px;
    }

    .gallery-hero h1 {
        font-size: 35px;
    }

    .gallery-hero p {
        font-size: 14px;
        line-height: 1.6;
    }

    .gallery-section {
        padding: 50px 15px;
    }

    .gallery-header h2 {
        font-size: 29px;
    }

    .gallery-header > p {
        font-size: 13px;
    }

    .gallery-filters {
        gap: 7px;
        margin-bottom: 25px;
    }

    .filter {
        padding: 8px 13px;
        font-size: 11px;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 7px;
    }

    .gallery-item {
        margin-bottom: 7px;
        border-radius: 3px;
    }

    .gallery-item img {
        min-height: 130px;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-overlay h3 {
        font-size: 11px;
    }

    .gallery-overlay span {
        font-size: 8px;
    }

    .view-image {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .gallery-cta {
        padding: 50px 20px;
    }

    .gallery-cta h2 {
        font-size: 28px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox img {
        max-width: 100%;
    }

}