/* Couleurs du Burkina Faso */
:root {
    --burkina-green: #009E49;
    --burkina-red: #EF2B2D;
    --burkina-yellow: #FCD116;
    --header-bg: #009E49;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bgf-dark: #333333;
}

/* Header principal */
.navbar {
    background-color: var(--header-bg) !important;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-size: 0.9rem;
}

/* Logo et titre */
.brand-container {
    display: flex;
    align-items: center;
}

.brand-container img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.brand-container h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

/* Header mobile flex container */
.header-mobile-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

/* Boutons du header */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.header-buttons .btn-burkina {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}

.header-buttons .btn-burkina i {
    font-size: 1rem;
}

/* Barre de recherche */
.search-bar {
    background-color: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar .form-control {
    border: none;
    height: 45px;
    padding-left: 20px;
}

.search-bar .btn-search {
    background-color: var(--burkina-green);
    color: white;
    border: none;
    padding: 0 25px;
}

/* Carrousel principal */
.burkina-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: -150px;
    z-index: 1;
}

.burkina-carousel .carousel-inner {
    height: 400px;
}

.burkina-carousel .carousel-item {
    height: 100%;
}

.burkina-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.burkina-carousel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #fff);
    z-index: 2;
}


.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--burkina-green);
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--burkina-green);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carrousel de catégories */
.categories-carousel {
    padding: 20px 0;
    background: transparent;
    position: relative;
    margin-top: -100px;
    z-index: 3;
}

.categories-carousel .owl-stage-outer {
    padding: 20px 0;
}

.categories-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.categories-carousel .owl-prev,
.categories-carousel .owl-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--burkina-green) !important;
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.categories-carousel .owl-prev:hover,
.categories-carousel .owl-next:hover {
    opacity: 1;
}

.categories-carousel .owl-prev {
    left: 10px;
}

.categories-carousel .owl-next {
    right: 10px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 10px;
    transition: all 0.3s ease;
    height: 180px;
    position: relative;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 15px;
    color: white;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0,158,73,0.9) 0%, rgba(0,158,73,0.6) 50%, transparent 100%);
}

.category-overlay h4 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.category-overlay a {
    color: var(--burkina-yellow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.category-overlay a:hover {
    color: white;
    opacity: 1;
}

/* Boutons */
.btn-burkina {
    background-color: var(--burkina-green);
    border: none;
    color: white;
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-burkina:hover {
    background-color: var(--burkina-red);
    color: white;
}

.icon-badge-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: red;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 6px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 576px) {
    .notification-badge {
        font-size: 9px;
        min-width: 14px;
        height: 14px;
        top: -4px;
        right: -4px;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .row.align-items-center {
        padding: 10px 15px;
    }

    .brand-container {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .brand-container img {
        width: 30px;
        height: 30px;
    }

    .brand-container h1 {
        font-size: 1.2rem;
    }

    .header-mobile-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .header-buttons {
        margin: 0;
        justify-content: flex-end;
    }

    .btn-burkina {
        padding: 6px 12px;
    }

    .search-bar {
        margin: 10px 0;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 10px;
    }

    .burkina-carousel {
        margin-bottom: -100px;
    }

    .burkina-carousel .carousel-inner {
        height: 300px;
    }

    .categories-carousel {
        padding: 10px 0;
        margin-top: -50px;
    }

    .category-card {
        height: 140px;
        margin: 5px;
    }

    .category-overlay {
        padding: 10px;
    }

    .category-overlay h4 {
        font-size: 1rem;
    }

    .categories-carousel .owl-nav {
        display: none;
    }
}
