:root {
    --menu-width: 320px;
    --primary: #6c5ce7;
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.15);
    --navbar-height: 75px;
    --light: #F5F5F5;
    --dark: #353535;
    --text-muted: rgba(255, 255, 255, 0.55);
}


.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* =========================================
           BODY
        ========================================= */
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, #302b63, transparent 40%),
        radial-gradient(circle at bottom right, #6c5ce7, transparent 40%),
        #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* =========================================
           Button
        ========================================= */

.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*  =========================================
           NAV BAR 
    ========================================= */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    z-index: 900;
    /* Retour au calque inférieur */
}

.nav-bar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-icon {
    min-width: 100px;
    max-width: 130px;
    /* height: 42px; */
    /* border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8e7dff, #5b4bdb);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.35); */
}

/*  =========================================
        NAVIGATION PRINCIPALE (Indépendante)
    ========================================= */
.main-navigation {
    position: fixed;

    top: 0;
    right: 0;

    width: var(--menu-width);
    max-width: 88vw;
    height: 100vh;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.05));

    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);

    border-left: 1px solid var(--glass-border);

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.30);

    transform: translateX(105%);

    transition:
        transform 0.55s cubic-bezier(.22, 1, .36, 1);

    z-index: 1050;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;
}

.main-navigation::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: -100px;
    right: -100px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.main-navigation.active {
    transform: translateX(0);
}

.menu-header {
    position: relative;
    padding: 30px 25px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.menu-content {
    padding: 25px 18px;
    flex: 1 0 auto; /* Permet à la section de contenu de prendre tout l'espace disponible */
    display: flex;
    flex-direction: column;
}

.menu-label {
    padding: 0 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    text-transform: uppercase;
}

.menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.10);
    transform: translateX(-3px);
}

.menu-link.active {
    color: white;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.40), rgba(108, 92, 231, 0.15));
}

.menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 24px;
    transform: translateY(-50%);
    border-radius: 0 5px 5px 0;
    background: #a99dff;
}

.menu-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 18px;
}

.menu-link.active .menu-icon {
    background: rgba(108, 92, 231, 0.30);
}

.menu-badge {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 20px;
    background: #6c5ce7;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0; /* Empêche le pied de page de se rétrécir */
    flex: 1 0 auto;
}

.profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00cec9, #0984e3);
    color: white;
    font-weight: 700;
}

.profile-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.profile-status {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

/* =========================================
           BOUTON MOBILE & OVERLAY
        ========================================= */
.menu-toggle {
    position: fixed;
    top: 11px;
    right: 20px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    /* Toujours visible en premier plan */
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.17);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.menu-toggle:active {
    transform: scale(0.94);
}

.hamburger {
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: white;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.2s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    /* Au-dessus de la nav-bar (900) mais sous le menu (1050) */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}



/* =========================================
           HEADER CAROUSEL
========================================= */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/* =========================================
           Section Title
    ========================================= */

.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}






/* =========================================
           CONTENU DE LA PAGE
        ========================================= */
.page-content {
    /* min-height: 100vh; */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 10px;
    /* padding-top: 105px; */
    margin-left: 0;
}

.page-content h1 {
    font-size: clamp(35px, 7vw, 70px);
    font-weight: 800;
}

.page-content p {
    color: rgba(255, 255, 255, 0.60);
}

/* =========================================
           ANIMATION MOBILE
        ========================================= */
@media (max-width: 876px) {

    .main-navigation .menu-link,
    .main-navigation .menu-label,
    .main-navigation .menu-header,
    .main-navigation .menu-footer {
        opacity: 0;
        transform: translateX(30px);
    }

    .main-navigation.active .menu-header,
    .main-navigation.active .menu-label,
    .main-navigation.active .menu-link,
    .main-navigation.active .menu-footer {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.22, 1, .36, 1);
    }

    .main-navigation.active .menu-header {
        transition-delay: 0.08s;
    }

    .main-navigation.active .menu-label {
        transition-delay: 0.15s;
    }

    .main-navigation.active .menu-link:nth-of-type(1) {
        transition-delay: 0.18s;
    }

    .main-navigation.active .menu-link:nth-of-type(2) {
        transition-delay: 0.22s;
    }

    .main-navigation.active .menu-link:nth-of-type(3) {
        transition-delay: 0.26s;
    }

    .main-navigation.active .menu-link:nth-of-type(4) {
        transition-delay: 0.30s;
    }

    .main-navigation.active .menu-link:nth-of-type(5) {
        transition-delay: 0.34s;
    }

    .main-navigation.active .menu-link:nth-of-type(6) {
        transition-delay: 0.38s;
    }

    .main-navigation.active .menu-link:nth-of-type(7) {
        transition-delay: 0.42s;
    }

    .main-navigation.active .menu-footer {
        transition-delay: 0.46s;
    }
}

/* =========================================
           DESKTOP (Adaptation Top Bar autonome)
        ========================================= */
@media (min-width: 877px) {

    .menu-toggle,
    .menu-overlay,
    .hide-on-desktop {
        display: none !important;
    }

    .main-navigation {
        position: fixed;
        /* Il s'aligne de lui-même à droite de l'écran */
        top: 0;
        right: 25px;
        height: var(--navbar-height);
        transform: none;
        width: auto;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        overflow: visible;
        margin-left: 0;
        z-index: 1050;
    }

    .main-navigation::before {
        display: none;
    }

    .menu-content {
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .menu-link {
        height: 44px;
        padding: 0px 13px;
        margin: 0;
        font-size: 12px;
        font-weight: 600;
        gap: 8px;
        white-space: nowrap;
        border-radius: 12px;
    }

    .menu-link:hover {
        transform: translateY(-1px);
    }

    .menu-link.active {
        background: linear-gradient(90deg, rgba(108, 92, 231, 0.40), rgba(108, 92, 231, 0.15));
    }

    .menu-link.active::before {
        display: none;
    }

    .menu-link.active::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 3px;
        height: 2px;
        border-radius: 10px;
        background: #a99dff;
    }

    .menu-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
        border-radius: 13px;
    }

    .menu-link.active .menu-icon {
        background: rgba(255, 255, 255, 0.07);
    }

    .menu-badge {
        margin-left: 2px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .menu-footer {
        padding: 0;
        padding-left: 15px;
        margin-left: 15px;
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .profile {
        padding: 0;
        background: none;
        gap: 10px;
    }

    .profile-avatar {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .profile-name {
        font-size: 12px;
    }

    .profile-status {
        font-size: 10px;
    }
}

/* =========================================
           PETITS ÉCRANS TWEAKS
        ========================================= */
@media (max-width: 576px) {
    :root {
        --menu-width: 100%;
    }

    .main-navigation {
        max-width: 80%;
        border-left: none;
        border-radius: 24px 0 0 24px;
    }

    .menu-toggle {
        top: 11px;
        right: 15px;
    }

    .nav-bar {
        height: 68px;
        padding: 0 15px;
    }

    .nav-bar-logo {
        font-size: 17px;
    }

    .nav-bar-logo .logo-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
}

/* =========================================
           SPINNER
    ========================================= */

/*** Spinner 1 -- SPLASH SCREEN / SPINNER PLEIN ÉCRAN ***/
.page-loader {
    position: fixed;
    inset: 0;
    background: #111827;
    /* Même couleur de fond que ton body */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
    /* Au-dessus de tout le reste */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.neon-spinner {
    width: 55px;
    height: 55px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

.spinner-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*** Spinner 2 ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}



/* =========================================
           FOOTER
    ========================================= */

.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

