
:root {
    --biir-burgundy: #6B2942;
    --biir-dark: #4A1F30;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white !important;
}

/*header nav bar css*/

/* Navigation principale */
.navbar-biir {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--biir-burgundy) !important;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--biir-burgundy), var(--biir-dark));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--biir-burgundy) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--biir-burgundy);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Icônes d'action - toujours visibles */
.action-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--biir-burgundy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--biir-burgundy);
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-icon:hover {
    background: var(--biir-burgundy);
    color: white;
    transform: translateY(-2px);
}

/* Menu burger personnalisé */
.navbar-toggler {
    border: 2px solid var(--biir-burgundy);
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(107, 41, 66, 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='%236B2942' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid #dee2e6;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-brand span {
        font-size: 1.2rem;
    }

    .action-icon {
        width: 36px;
        height: 36px;
    }
}

/* Animation du menu */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

/* Container pour mobile */
.navbar-content-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .navbar-content-wrapper {
        justify-content: space-between;
    }

    /* Le menu collapse prend toute la largeur */
    .navbar-content-wrapper .navbar-collapse {
        flex-basis: 100%;
        order: 4;
    }

    /* Assurer que le menu s'affiche correctement */
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: block !important;
    }
}
/*end header nav bar css*/

/*banniere css*/
/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 500px;
    background: linear-gradient(135deg, var(--biir-red) 0%, var(--biir-burgundy) 100%);
    position: relative;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
}

/* Overlay pour améliorer la lisibilité du texte */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu du carousel */
.carousel-caption {
    z-index: 2;
    bottom: 50%;
    transform: translateY(50%);
    left: 50%;
    right: auto;
    width: 90%;
    max-width: 1200px;
    transform: translate(-50%, 50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Bouton CTA */
.hero-btn {
    background: white;
    color: var(--biir-burgundy);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
    color: var(--biir-burgundy);
}

@media (max-width: 768px) {
    .hero-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Indicateurs du carousel */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: white;
}

/* Contrôles du carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 10px;
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/*end banniere css */

/*categorie css */

/* Section catégories */

/* Section catégories */
.categories-section {
    padding: 3rem 0;
    background: #fff;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--biir-burgundy);
}

/* Carrousel personnalisé */
.category-carousel {
    position: relative;
}

.category-carousel-track {
    overflow: hidden;
    padding: 10px 0;
}

.category-carousel-inner {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
}

.category-carousel-item {
    flex: 0 0 calc(25% - 0.75rem);
    min-width: calc(25% - 0.75rem);
}

/* Carte catégorie */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* .category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
} */

.category-content {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.category-arrow {
    width: 35px;
    height: 35px;
    background: var(--biir-burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* Boutons de navigation */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid var(--biir-burgundy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--biir-burgundy);
}

.carousel-nav-btn:hover {
    background: var(--biir-burgundy);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
    left: -20px;
}

.carousel-nav-btn.next {
    right: -20px;
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Indicateurs */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--biir-burgundy);
    width: 30px;
    border-radius: 5px;
}

/* Placeholder pour image manquante */
.category-placeholder {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .category-carousel-item {
        flex: 0 0 calc(33.333% - 0.67rem);
        min-width: calc(33.333% - 0.67rem);
    }

    /* .category-image,
    .category-placeholder {
        height: 180px;
    } */
}

@media (max-width: 767px) {
    .category-carousel-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* .category-image,
    .category-placeholder {
        height: 160px;
    } */

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-nav-btn.prev {
        left: -15px;
    }

    .carousel-nav-btn.next {
        right: -15px;
    }

    .categories-section {
        padding: 2rem 0;
    }
}

@media (max-width: 575px) {
    .category-content {
        padding: 1rem;
    }

    .category-title {
        font-size: 0.9rem;
    }

    .category-arrow {
        width: 30px;
        height: 30px;
    }
}

/*end categorie css */


/* Section produits */
/* .products-section {
    padding: 3rem 0;
} */

/* Carte produit */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Ratio 1:1 */
    background: #e9ecef;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.product-action-btn:hover {
    color: var(--biir-burgundy);
    background: #f8f9fa;
}

.product-action-btn.active {
    color: var(--biir-burgundy);
}

/* Grid responsive */
@media (max-width: 575px) {
    /* Mobile: 1 colonne */
    /* .products-section {
        padding: 2rem 0;
    } */
}

@media (min-width: 576px) and (max-width: 991px) {
    /* Tablette: 2 colonnes */
}

@media (min-width: 992px) {
    /* Desktop: 4 colonnes */
}

/* end Section produits */


/* end Section comment ça marche */  
.services-section {
    padding: 4rem 0;
    
}

.section-title {
    text-align: start;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Carte service */
.service-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #333;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 575px) {
    .services-section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
}
/* end Section comment ça marche */   


/* Footer */
.footer {
    background: #f0f0f0;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Menu footer */
.footer-menu {
    display: flex;
    gap: 3rem;
}

.footer-link {
    color: var(--biir-burgundy);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
    color: var(--biir-burgundy);
}

/* Réseaux sociaux */
.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--biir-burgundy);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--biir-burgundy);
}

/* Méthodes de paiement */
.footer-payment {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.payment-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    color: var(--biir-burgundy);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Version Desktop */
@media (min-width: 992px) {
    .footer-content {
        flex-direction: row;
    }

    .footer-menu {
        order: 1;
        flex: 1;
    }

    .footer-social {
        order: 2;
        flex: 0;
    }

    .footer-payment {
        order: 3;
        flex: 0;
    }
}

/* Version Mobile - Meilleur arrangement */
@media (max-width: 991px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-menu {
        order: 1;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    .footer-link {
        display: block;
        padding: 0.5rem 0;
    }

    .footer-social {
        order: 2;
        justify-content: center;
        gap: 1.5rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.7rem;
    }

    .footer-payment {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .payment-icon {
        height: 35px;
    }

    .footer-copyright {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* Version Tablette */
@media (min-width: 576px) and (max-width: 991px) {
    .footer-menu {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
}

/* Placeholder pour les icônes de paiement */
.payment-placeholder {
    height: 40px;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #ddd;
}

@media (max-width: 991px) {
    .payment-placeholder {
        height: 35px;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Footer */