
/* ==========================================
   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);
    max-height: 250px;
    overflow: auto;
}

.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%;
}
*/
.sub-menu-horizontal {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    z-index: 1000;
    padding: 15px;
    border-radius: 0px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 530px;
    width: 530px;
    overflow: auto;
    max-height: 400px;
}

.sub-menu-nav:hover > .sub-menu-horizontal,
.dropdown-submenu:hover > .sub-menu-horizontal {
    display: flex !important;
}

.sub-menu-horizontal li {
    list-style: none;
    flex: 0 0 auto;
}

.dropdown-item-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 0px;
    width: 155px;
    text-align: center;
}

.dropdown-item-horizontal:hover {
    background-color: #f8f9fa;
    /*transform: translateY(-3px);*/
}

.secteur-icon-menu {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 3px solid;
    transition: all 0.3s ease;
}

/*.dropdown-item-horizontal:hover .secteur-icon-menu {*/
/*    transform: scale(1.1);*/
/*    box-shadow: 0 4px 8px rgba(0,0,0,0.2);*/
/*}*/

.secteur-icon-menu img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
}

.secteur-name {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    transition: color 0.3s;
}

.dropdown-item-horizontal:hover .secteur-name {
    color: #d18772;
}

/* Version responsive */
@media (max-width: 768px) {
    .sub-menu-nav:hover > .sub-menu-horizontal, .dropdown-submenu:hover > .sub-menu-horizontal {
        display: block !important;
    }
    
    .sub-menu-horizontal {
        flex-direction: row;
        max-width: 100%;
        width: 100%;
        max-height: 300px;
        padding: 10px;
    }
    
    .dropdown-item-horizontal {
        flex-direction: row;
        width: 100%;
        min-width: auto;
        text-align: left;
        justify-content: flex-start;
        padding: 7px 20px;
    }
    
    .secteur-icon-menu {
        margin-bottom: 0;
        margin-right: 12px;
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    .secteur-icon-menu img {
        width: 25px;
        height: 25px;
    }
    
    .secteur-name {
        font-size: 14px;
        text-align: left;
    }
    
    /*.dropdown-item-horizontal:hover {*/
    /*    transform: translateX(5px);*/
    /*}*/
}
/***********************/
.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;
}
