/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    background: #fff;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background: #fff;

    border-top: 3px solid #0D6EFD;

    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);

    position: relative;
    z-index: 1000;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}


/* =========================================================
   MENU
========================================================= */

.menu {
    display: flex;
    align-items: center;

    gap: 55px;

    list-style: none;
}

.menu li {
    list-style: none;
}


/* Liens */

.menu a {
    display: inline-block;

    text-decoration: none;

    color: #111;

    font-size: 18px;
    font-weight: 400;

    position: relative;

    padding: 10px 0;

    transition:
        color .3s ease,
        transform .3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.menu a:hover {
    color: #2454FF;

    transform: translateY(-2px);
}


/* =========================================================
   BARRE SOUS LE MENU
========================================================= */

.menu a::after {

    content: "";

    position: absolute;

    bottom: -5px;

    left: 50%;

    width: 0;
    height: 3px;

    background: #2454FF;

    border-radius: 20px;

    transform: translateX(-50%);

    transition: width .35s ease;
}


/* Barre au survol */

.menu a:hover::after {
    width: 100%;
}


/* =========================================================
   PAGE ACTIVE
========================================================= */

.menu a.active {
    color: #111;
}

.menu a.active::after {
    width: 100%;
}


/* =========================================================
   ICÔNES À DROITE
========================================================= */

.nav-icons {

    display: flex;

    align-items: center;

    gap: 20px;
}


/* Liens des icônes */

.nav-icons a {

    color: #2454FF;

    font-size: 28px;

    text-decoration: none;

    transition:
        transform .3s ease,
        color .3s ease;
}


.nav-icons a:hover {

    transform: translateY(-3px) scale(1.1);

    color: #003dff;
}


/* =========================================================
   LANGUAGE
========================================================= */

.language-selector {
    position: relative;
}

.language-btn {

    border: none;

    background: transparent;

    color: #2454FF;

    font-size: 24px;

    cursor: pointer;

    padding: 5px;

    transition: .3s ease;
}

.language-btn:hover {
    transform: translateY(-2px);
    color: #003dff;
}


/* Menu langue */

.language-menu {

    position: absolute;

    top: 45px;
    right: 0;

    width: 150px;

    background: #fff;

    border-radius: 10px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    padding: 8px;

    display: none;

    z-index: 2000;
}


/* Affichage */

.language-selector:hover .language-menu {
    display: block;
}


/* Options */

.language-item {

    padding: 10px 12px;

    border-radius: 7px;

    font-size: 14px;

    cursor: pointer;

    transition: .25s ease;
}

.language-item:hover {

    background: #f2f5ff;

    color: #2454FF;
}


/* =========================================================
   COMPTE
========================================================= */

.nya-account {
    position: relative;
}


/* Bouton compte */

.nya-account-btn {

    display: flex;

    align-items: center;
    justify-content: center;

    color: #2454FF;

    font-size: 28px;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   MENU COMPTE
========================================================= */

.nya-account-menu {

    position: absolute;

    top: 45px;

    right: 0;

    width: 300px;

    background: #fff;

    border-radius: 14px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    display: none;

    z-index: 2000;
}


/* Affichage au survol */

.nya-account:hover .nya-account-menu {
    display: block;
}


/* =========================================================
   CARTE UTILISATEUR
========================================================= */

.nya-user-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;

    border-bottom: 1px solid #eee;
}


/* Avatar */

.nya-avatar {

    width: 45px;
    height: 45px;

    min-width: 45px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #2454FF;

    color: #fff;

    font-size: 18px;
    font-weight: 600;
}


/* Informations */

.nya-user-details {
    overflow: hidden;
}

.nya-user-details h4 {

    font-size: 15px;

    color: #172033;

    margin-bottom: 4px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.nya-user-details p {

    font-size: 12px;

    color: #7B8494;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   LIENS DU MENU COMPTE
========================================================= */

.nya-menu-links {
    padding: 8px 0;
}

.nya-menu-links a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 18px;

    color: #172033;

    font-size: 14px;

    text-decoration: none;

    transition: .25s ease;
}

.nya-menu-links a i {

    width: 20px;

    color: #2454FF;

    text-align: center;
}


.nya-menu-links a:hover {

    background: #f4f6ff;

    color: #2454FF;
}


/* =========================================================
   FOOTER DU MENU
========================================================= */

.nya-popup-footer {

    padding: 12px 18px;

    border-top: 1px solid #eee;
}


/* Déconnexion */

.logout-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 10px;

    border-radius: 8px;

    background: #fff1f1;

    color: #dc3545 !important;

    text-decoration: none;

    font-size: 14px;

    transition: .25s ease;
}

.logout-btn:hover {
    background: #ffe1e1;
}


/* Connexion */

.login-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    padding: 10px;

    border-radius: 8px;

    background: #2454FF;

    color: #fff !important;

    text-decoration: none;

    font-size: 14px;

    margin-bottom: 8px;

    transition: .25s ease;
}

.login-btn:hover {
    background: #003dff;
}


/* Inscription */

.register-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    padding: 10px;

    border-radius: 8px;

    border: 1px solid #2454FF;

    color: #2454FF !important;

    text-decoration: none;

    font-size: 14px;

    transition: .25s ease;
}

.register-btn:hover {
    background: #f2f5ff;
}