/*==================================================*
* RESET
*==================================================*/

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

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

/*==================================================*
* HEADER
*==================================================*/

.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 > ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar > ul > li {
    position: relative;
}

.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%;
}

/* MENU DÉROULANT */

.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;
}

/* BOUTONS HEADER */

.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
*==================================================*/

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*==================================================*
* PROGRAMMES
*==================================================*/

.programmes {
    width: 100%;
    background: #f8f9fa;
    padding: 50px 7%;
}

.programmes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 70px;
    gap: 80px;
}

.subtitle {
    color: #d48c07;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 15px;
    font-weight: 700;
}

.programmes-header h2 {
    color: #052F59;
    font-size: 36px;
    line-height: 1.15;
    margin-top: 15px;
    font-family: Georgia, serif;
    font-weight: 700;
}

.programmes-header .right {
    max-width: 550px;
}

.programmes-header p {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
}

/*==================================================*
* CARDS
*==================================================*/

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    transition: .4s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
}

/* IMAGE */

.image {
    position: relative;
}

.image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image span {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

/* CONTENT */

.content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content h3 {
    font-size: 22px;
    margin-bottom: 18px;
    font-family: Georgia, serif;
    color: #222;
}

.infos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.infos p {
    color: #777;
    font-size: 15px;
}

.description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 35px;
    flex: 1;
    min-height: 130px;
    padding-right: 20px;
}

/* BUTTON */

.content a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #222;
    border: 3px solid #222;
    padding: 15px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    margin-top: auto;
    transition: .3s;
}

.content a:hover {
    background: #e59f1e;
    color: #fff;
    border-color: #e79909;
}

/*==================================================*
* 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
*==================================================*/

/* TABLETTE */

@media (max-width: 1200px) {

    .header {
        grid-template-columns: 140px 1fr 220px;
        padding: 0 25px;
    }

    .navbar > ul {
        gap: 20px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .programmes-header {
        flex-direction: column;
        gap: 30px;
    }

    .programmes-header .right {
        max-width: 100%;
    }
}

@media (max-width: 992px) {

    .header {
        grid-template-columns: 120px 1fr;
    }

    .buttons {
        display: none;
    }

    .navbar {
        justify-content: flex-end;
    }

    .navbar a {
        font-size: 14px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .programmes {
        padding: 50px 5%;
    }

    .programmes-header h2 {
        font-size: 45px;
    }
}

/* MOBILE */

@media (max-width: 768px) {

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

    .logo img {
        width: 65px;
    }

    .navbar {
        width: auto;
    }

    .navbar > ul {
        gap: 8px;
    }

    .navbar a {
        font-size: 11px;
    }

    .hero {
        height: calc(100vh - 75px);
        margin-top: 75px;
    }

    .dropdown-menu {
        min-width: 200px;
    }

    .programmes {
        padding: 45px 5%;
    }

    .programmes-header {
        margin-bottom: 45px;
        gap: 25px;
    }

    .subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .programmes-header h2 {
        font-size: 34px;
    }

    .programmes-header p {
        font-size: 15px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .image img {
        height: 260px;
    }

    .content {
        padding: 25px 20px;
    }

    .content h3 {
        font-size: 25px;
    }

    .infos {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .description {
        min-height: auto;
        padding-right: 0;
        margin-bottom: 25px;
    }

    .content a {
        padding: 13px;
    }

    .footer {
        padding: 60px 6% 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* PETIT MOBILE */

@media (max-width: 480px) {

    .header {
        padding: 0 10px;
    }

    .logo img {
        width: 55px;
    }

    .navbar > ul {
        gap: 5px;
    }

    .navbar a {
        font-size: 9px;
    }

    .hero {
        height: calc(100vh - 75px);
    }

    .programmes {
        padding: 40px 15px;
    }

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

    .programmes-header p {
        font-size: 14px;
        line-height: 1.6;
    }

    .image img {
        height: 220px;
    }

    .image span {
        top: 12px;
        left: 12px;
        padding: 8px 15px;
        font-size: 11px;
    }

    .content {
        padding: 22px 17px;
    }

    .content h3 {
        font-size: 21px;
    }

    .infos p {
        font-size: 14px;
    }

    .description {
        font-size: 14px;
        line-height: 1.6;
    }

    .content a {
        font-size: 14px;
        padding: 12px;
        border-radius: 14px;
    }

    .footer {
        padding: 45px 5% 0;
    }

    .footer-col h3 {
        font-size: 20px;
    }

    .footer-col p,
    .footer-col ul li,
    .footer-contact li {
        font-size: 14px;
    }
}

/* =========================================================
   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;
    }
}
/* =========================================
   SOUS-MENUS RESPONSIVE
   ========================================= */

   @media (max-width: 768px) {

    /* Le menu principal */
    .navbar > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .navbar > ul > li {
        width: 100%;
        position: relative;
    }

    .navbar > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,.15);
        color: #fff;
    }

    /* Sous-menu */
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }

    /* Sous-menu lorsqu'il est ouvert */
    .dropdown.open .dropdown-menu {
        display: flex;
    }

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

    .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 15px 15px 15px 25px;
        color: #fff;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    .dropdown-menu a:hover {
        background: rgba(245,159,39,.15);
        color: #F59F27;
    }

    /* Désactive le hover desktop sur téléphone */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open:hover .dropdown-menu {
        display: flex;
    }
}
@media (max-width: 768px) {
    .btn-programme {
        width: fit-content;
        padding: 9px 15px;
        font-size: 13px;
     
    }
}