@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-chubby/css/uicons-solid-chubby.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-chubby/css/uicons-regular-chubby.css');

:root {
    /* === Brand Palette === */
    --royal-orchid:  #9200ac;
    --indigo-bloom:  #6f2da8;
    --cherry-rose:   #ad0054;
    --gunmetal:      #3f3f3f;
    --white:         #fbfbfb;

    /* === Semantic Aliases === */
    --primary-color:  var(--royal-orchid);
    --primary-dark:   var(--indigo-bloom);
    --accent:         var(--cherry-rose);
    --text-color:     var(--gunmetal);
    --bg-color:       var(--white);
    --second-color:   #f5f0ff;

    --box-shadow: 0 0 10px 0 rgba(146, 0, 172, 0.2);
    --border-r: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Blur Effect */
header.blurred,
main.blurred {
    filter: blur(5px);
    pointer-events: none;
    --webkit-user-select: none;
}

.content-wrapper.left-blurred {
    filter: blur(5px);
    pointer-events: none;
    --webkit-user-select: none;
}

/* Ensure Logo Stays Unblurred */
.logo-container.no-blur {
    filter: none !important;
}

/* Header */
header {
    padding: 0;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.8);
    --webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease, filter 0.3s ease;
}

header.hide-header {
    transform: translateY(-100%);
}

/* Logo */
.logo-container {
    position: absolute;
    z-index: 1003;
}

.logo {
    height: 40px;
    width: auto;
}

/* Toggle Button */
.toggle-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-nav .nav-item {
    position: relative;
}

.desktop-nav .nav-item>span {
    background-color: transparent;
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.desktop-nav .nav-item>span:hover {
    color: var(--primary-color);
}

.desktop-nav .navigation>span {
    background-color: rgba(34, 139, 34, 0.09);
    color: #228B22;
}

.desktop-nav .forfait>span {
    background-color: rgba(30, 144, 255, 0.09);
    color: #1E90FF;
}
.desktop-nav .services>span {
    background-color: rgba(146, 0, 172, 0.09);
    color: #0300ac;
}

.desktop-nav .support>span {
    background-color: rgba(255, 140, 0, 0.09);
    color: #693a00;
}

.desktop-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    min-width: 300px;
    display: none;
}

.desktop-nav .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav .dropdown li {
    border-bottom: 1px solid #e5e7eb;
}

.desktop-nav .dropdown li:last-child {
    border-bottom: none;
}

.desktop-nav .dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Navigation Hover Effects */
.desktop-nav .navigation li:nth-of-type(1):hover {
    background-color: rgba(34, 139, 34, 0.3);
}

.desktop-nav .navigation li:nth-of-type(2):hover {
    background-color: rgba(30, 144, 255, 0.3);
}

.desktop-nav .navigation li:nth-of-type(3):hover {
    background-color: rgba(75, 0, 130, 0.3);
}
.desktop-nav .navigation li:nth-of-type(4):hover {
    background-color: rgba(255, 140, 0, 0.3);
}

.desktop-nav .services li:nth-of-type(1):hover {
    background-color: rgba(0, 120, 215, 0.3);
}

.desktop-nav .services li:nth-of-type(2):hover {
    background-color: rgba(255, 69, 0, 0.3);
}

.desktop-nav .services li:nth-of-type(3):hover {
    background-color: rgba(0, 3, 158, 0.3);
}

.desktop-nav .services li:nth-of-type(4):hover {
    background-color: rgba(29, 185, 84, 0.3);
}

.desktop-nav .services li:nth-of-type(5):hover {
    background-color: rgba(244, 117, 33, 0.3);
}

.desktop-nav .services li:nth-of-type(6):hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.desktop-nav .services li:nth-of-type(7):hover {
    background-color: rgba(220, 20, 60, 0.3);
}

.desktop-nav .support li:nth-of-type(1):hover {
    background-color: rgba(255, 215, 0, 0.3);
}

.desktop-nav .support li:nth-of-type(2):hover {
    background-color: rgba(220, 20, 60, 0.3);
}

.desktop-nav .support li:nth-of-type(3):hover {
    background-color: rgba(70, 130, 180, 0.3);
}

.desktop-nav .support li:nth-of-type(4):hover {
    background-color: rgba(50, 205, 50, 0.3);
}

.desktop-nav .support li:nth-of-type(5):hover {
    background-color: rgba(138, 43, 226, 0.3);
}

/* Mobile Sidebar */
.sidebar {
    width: 16rem;
    max-width: 80%;
    background-color: #fff;
    overflow-y: auto;
    --webkit---scrollbar-width: none;
    -ms-overflow-style: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu-mobile-content .nav-item-content {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
}

.nav-menu-mobile-content .nav-item-content:hover {
    background-color: #f1f1f1;
}

.nav-menu-mobile-content .dropdown {
    background-color: #fefefe;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.nav-menu-mobile-content .dropdown.active {
    max-height: 1000px;
}

.nav-menu-mobile-content .dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-mobile-content .dropdown li {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
}

.nav-menu-mobile-content .dropdown li:last-child {
    border-bottom: none;
}

.nav-menu-mobile-content .dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Nav item style*/
.nav-item-content.flex {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: 600;
}
.sidebar .nav-item-content .dropdown {
    margin-top: 5px;
}

.nav-menu-mobile-content .dropdown li a {
    padding: 8px 12px;
    border-radius: 15px;
}

/* Mobile Navigation Hover Effects */
.nav-menu-mobile-content .navigation li:nth-of-type(1):hover {
    background-color: rgba(34, 139, 34, 0.3);
}

.nav-menu-mobile-content .navigation li:nth-of-type(2):hover {
    background-color: rgba(30, 144, 255, 0.3);
}

.nav-menu-mobile-content .navigation li:nth-of-type(3):hover {
    background-color: rgba(75, 0, 130, 0.3);
}

.nav-menu-mobile-content .navigation li:nth-of-type(4):hover {
    background-color: rgba(255, 140, 0, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(1):hover {
    background-color: rgba(0, 120, 215, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(2):hover {
    background-color: rgba(255, 69, 0, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(3):hover {
    background-color: rgba(0, 3, 158, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(4):hover {
    background-color: rgba(29, 185, 84, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(5):hover {
    background-color: rgba(244, 117, 33, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(6):hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.nav-menu-mobile-content .services li:nth-of-type(7):hover {
    background-color: rgba(220, 20, 60, 0.3);
}

.nav-menu-mobile-content .support li:nth-of-type(1):hover {
    background-color: rgba(255, 215, 0, 0.3);
}

.nav-menu-mobile-content .support li:nth-of-type(2):hover {
    background-color: rgba(220, 20, 60, 0.3);
}

.nav-menu-mobile-content .support li:nth-of-type(3):hover {
    background-color: rgba(70, 130, 180, 0.3);
}

.nav-menu-mobile-content .support li:nth-of-type(4):hover {
    background-color: rgba(50, 205, 50, 0.3);
}

.nav-menu-mobile-content .support li:nth-of-type(5):hover {
    background-color: rgba(138, 43, 226, 0.3);
}


/* Responsive Styles */
@media (max-width: 768px) {

    .desktop-nav,
    .nav-action {
        display: none;
    }

    .nav-menu-mobile {
        display: block;
    }
}

@media (min-width: 769px) {

    .sidebar,
    .overlay {
        display: none;
    }

    /* Only show dropdown on hover/focus for desktop */
    .desktop-nav .dropdown {
        display: none;
    }

    .desktop-nav .nav-item:hover .dropdown,
    .desktop-nav .nav-item:focus .dropdown {
        display: block;
    }
}