
/* ==========================================
   HEADER.CSS - Styles du Header (RESPONSIVE FIXED)
   ========================================== */

:root {
    --primary-color: #D18772;
    --dark-color: #2c2c2c;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-right a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.top-bar-right a:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Header Navbar */
.navbar-custom {
    background: linear-gradient(to bottom, rgb(0 0 0 / 93%), rgb(0 0 0 / 0%));
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: white !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    text-transform: capitalize;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
    font-weight: 400;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
}

/* Navbar Icons */
.navbar-icons {
    display: flex;
    gap: 1.5rem !important;
    align-items: center;
}

.navbar-icons a,
.navbar-icons span {
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
}

.navbar-icons a:hover,
.navbar-icons span:hover {
    color: var(--primary-color);
    background-color: rgba(217, 117, 53, 0.2);
}

/* Navbar Toggler (Mobile) */
.navbar-toggler {
    border-color: var(--primary-color) !important;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(217, 117, 53, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D18772' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*******sub-menu-nav********/
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}

.custom-dropdown {
    min-width: 200px;
}

.custom-submenu {
    min-width: 180px;
    background-color: #2C3E50;
}

.custom-submenu .dropdown-item {
    color: white;
}

.custom-submenu .dropdown-item:hover {
    background-color: #1ABC9C;
    color: #fff;
}

/******************/
.sub-menu-alt {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    z-index: 1000;
    padding: 0;
    border-radius: 0px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sub-menu-nav:hover > .sub-menu-alt,
.dropdown-submenu:hover > .sub-menu-alt {
    display: block;
}

.sub-menu-alt .dropdown-item {
    color: #d18772;
    padding: 10px 16px;
    transition: all 0.3s;
}

.sub-menu-alt .dropdown-item:hover {
    background-color: #d18772;
    color: #fff;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .sub-menu-alt {
    top: 0;
    left: 100%;
}

.modal-dialog-slideout-top {
    transform: translateY(-100%);
    transition: transform .3s ease-out;
    z-index: 999;
}

.modal.fade.show .modal-dialog-slideout-top {
    transform: translateY(0);
}

.modal-backdrop {
    --bs-backdrop-zindex: 0 !important;
}
