/* IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* ================= NAVBAR ================= */

.navbar {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, #1F4E79, #2D7FF9);
    color: white;
}

/* ================= LOGO ================= */

.logo{
    display:flex;
    flex-direction:column;
    justify-content:center;
    margin-left:15px;
}

.logo-top{
    display:flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
    line-height:1;
}

.logo .projet{
    color:white;
    font-size:16px;
    font-weight:600;
}

.logo .elite{
    background:linear-gradient(90deg,#D4AF37,#F4D03F);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    font-weight:700;
    font-size:16px;
}

.logo .academy{
    font-size:10px;
    letter-spacing:3px;
    color:white;
    margin-top:3px;
    white-space:nowrap;
}

/* ================= MENU DESKTOP ================= */

.menu-desktop {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
}

.menu-desktop li {
    list-style: none;
}

.menu-desktop a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
    font-size: 13px;

    white-space: nowrap;
}

/* HOVER */

.menu-desktop a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #D4AF37;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.menu-desktop a:hover::after {
    width: 100%;
}

/* ACTIVE */

.menu-desktop a.active {
    font-weight: bold;
}

/* LOGIN */

.login-link {
    opacity: 0.9;
}

.login-link:hover {
    opacity: 1;
}

/* CTA INSCRIPTION */

.cta {
    background: linear-gradient(90deg, #D4AF37, #F4D03F);
    color: #1F4E79 !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
}

/* ================= DROPDOWN ================= */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    margin-top: 5px;

    background: white;

    min-width: 190px;

    border-radius: 10px;

    display: none;
    flex-direction: column;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    overflow: hidden;

    z-index: 1000;

    opacity: 0;

    transform: translateY(10px);

    transition: 0.3s;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px;
    color: #333;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: #f0f4ff;
    color: #1F4E79;
}

/* SHOW DROPDOWN */

.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* ================= MOBILE ================= */

.menu-toggle {
    font-size: 26px;
    cursor: pointer;
    display: none;
}

/* ================= SIDEBAR ================= */

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    transition: 0.3s ease;
    z-index: 2000;
    padding: 15px;
}

.sidebar.active {
    left: 0;
}

/* HEADER */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(90deg, #1F4E79, #2D7FF9);

    color: white;

    padding: 15px;

    border-radius: 10px;
}

/* MENU */

.menu {
    list-style: none;
    margin-top: 20px;
}

.menu li {
    margin-bottom: 10px;
}

.menu a {
    display: block;

    padding: 12px;

    border-radius: 10px;

    background: #f5f7fb;

    text-decoration: none;

    color: #333;

    transition: 0.3s;

    white-space: nowrap;
}

.menu a:hover {
    background: #e6efff;
    color: #1F4E79;
}

/* CTA MOBILE */

.menu a.highlight {
    background: linear-gradient(90deg, #D4AF37, #F4D03F);
    color: #1F4E79 !important;
    font-weight: bold;
}

/* ================= OVERLAY ================= */

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    display: none;
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* ================= MODAL ================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    touch-action: none;
}

/* BOX */

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: popup 0.3s ease;
}

/* CLOSE */

.close-modal,
.close-login {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

/* FORM */

.register-form,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.register-form input,
.login-form input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* BUTTON */

.btn-submit {
    background: #ff7a00;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: #e56700;
}

/* REMEMBER */

.remember {
    font-size: 13px;
    text-align: left;
}

/* BODY LOCK MODAL */

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* ANIMATION */

@keyframes popup {

    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }

}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .menu-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .navbar{
        padding:15px;
    }

}

/* ================= MODAL PREMIUM ================= */

.modal{

    display:none;

    position:fixed;

    z-index:9999;

    width:100%;
    height:100%;

    top:0;
    left:0;

    justify-content:center;
    align-items:center;

    background:rgba(15,23,42,.65);

    backdrop-filter:blur(8px);

    padding:20px;

    animation:fadeModal .3s ease;
}

/* ================= BOX ================= */

.modal-content{

    position:relative;

    width:100%;
    max-width:430px;

    background:rgba(255,255,255,.96);

    backdrop-filter:blur(18px);

    border-radius:28px;

    padding:35px;

    overflow:hidden;

    box-shadow:
    0 25px 60px rgba(0,0,0,.18);

    animation:popup .35s ease;
}

/* LIGHT EFFECT */

.modal-content::before{

    content:'';

    position:absolute;

    width:240px;
    height:240px;

    border-radius:50%;

    background:rgba(37,99,235,.08);

    top:-120px;
    right:-120px;
}

/* ================= TITLES ================= */

.modal-content h2{

    position:relative;

    z-index:2;

    font-size:28px;

    font-weight:700;

    color:#0f172a;

    margin-bottom:10px;
}

.modal-content p{

    position:relative;

    z-index:2;

    color:#64748b;

    font-size:14px;

    line-height:1.7;

    margin-bottom:25px;
}

/* ================= CLOSE ================= */

.close-modal,
.close-login{

    position:absolute;

    top:18px;
    right:18px;

    width:38px;
    height:38px;

    border-radius:12px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#f1f5f9;

    color:#334155;

    font-size:18px;

    cursor:pointer;

    transition:.3s ease;

    z-index:10;
}

.close-modal:hover,
.close-login:hover{

    background:#e2e8f0;

    transform:rotate(90deg);
}

/* ================= FORM ================= */

.register-form,
.login-form{

    position:relative;

    z-index:2;

    display:flex;
    flex-direction:column;

    gap:16px;
}

/* ================= INPUT GROUP ================= */

.input-group{

    position:relative;
}

/* ICON */

.input-group i{

    position:absolute;

    left:16px;
    top:50%;

    transform:translateY(-50%);

    color:#64748b;

    font-size:14px;
}

/* INPUT */

.register-form input,
.login-form input{

    width:100%;

    height:56px;

    border:none;

    border-radius:18px;

    background:#f8fafc;

    border:1px solid #dbe4ee;

    padding-left:48px;
    padding-right:15px;

    font-size:14px;

    font-family:'Poppins',sans-serif;

    transition:.3s ease;
}

.register-form input:focus,
.login-form input:focus{

    outline:none;

    background:white;

    border-color:#2563eb;

    box-shadow:
    0 0 0 5px rgba(37,99,235,.10);

    transform:translateY(-2px);
}

/* ================= BUTTON ================= */

.btn-submit{

    width:100%;

    height:56px;

    border:none;

    border-radius:18px;

    background:linear-gradient(
        135deg,
        #1F4E79,
        #2563eb
    );

    color:white;

    font-size:15px;
    font-weight:700;

    cursor:pointer;

    margin-top:5px;

    transition:.35s ease;

    box-shadow:
    0 12px 30px rgba(37,99,235,.22);
}

.btn-submit:hover{

    transform:translateY(-3px);

    box-shadow:
    0 18px 40px rgba(37,99,235,.30);
}

/* ================= REMEMBER ================= */

.remember{

    display:flex;
    align-items:center;

    gap:10px;

    font-size:13px;

    color:#475569;

    margin-top:-5px;
}

.remember input{

    width:auto !important;

    height:auto !important;
}

/* ================= ERROR ================= */

#errorMsg{

    color:#ef4444;

    font-size:13px;

    font-weight:500;

    margin-top:-5px;
}

/* ================= LINKS ================= */

.modal-link{

    text-align:center;

    margin-top:20px;

    font-size:14px;

    color:#64748b;
}

.modal-link a{

    color:#2563eb;

    font-weight:600;

    text-decoration:none;
}

/* ================= ANIMATIONS ================= */

@keyframes popup{

    from{

        opacity:0;

        transform:
        translateY(30px)
        scale(.92);
    }

    to{

        opacity:1;

        transform:
        translateY(0)
        scale(1);
    }

}

@keyframes fadeModal{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .modal-content{

        padding:28px 22px;

        border-radius:24px;
    }

    .modal-content h2{

        font-size:24px;
    }

}