/* =========================
   CHARTE SAHEL EQUIPEMENTS
========================= */

:root{
    --primary:#F2BE1A;
    --secondary:#4A4A4A;
    --light:#F5F5F5;
    --white:#FFFFFF;
    --dark:#2E2E2E;
}

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:var(--light);
    color:var(--secondary);
    line-height:1.6;
}

/* =========================
   NAVIGATION
========================= */

.navbar{
    background:var(--white) !important;
    border-bottom:4px solid var(--primary);
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.navbar-brand img{
    max-height:60px;
}

.nav-link{
    color:var(--secondary) !important;
    font-weight:600;
    padding:12px 15px !important;
    transition:0.3s;
}

.nav-link:hover{
    color:var(--primary) !important;
}

.nav-link.active{
    color:var(--primary) !important;
}

/* =========================
   BANNIERE
========================= */

.hero{
    background:
    linear-gradient(
    rgba(74,74,74,0.85),
    rgba(74,74,74,0.85)),
    url('../../images/banner.jpg');

    background-size:cover;
    background-position:center;

    min-height:500px;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    color:white;
}

.hero h1{
    font-size:3.2rem;
    font-weight:700;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    max-width:700px;
    margin:auto;
}

.btn-sahel{
    background:var(--primary);
    color:white;
    border:none;
    padding:12px 30px;
    border-radius:5px;
    margin-top:20px;
    font-weight:bold;
    text-decoration:none;
    display:inline-block;
    transition:0.3s;
}

.btn-sahel:hover{
    background:#d9a500;
    color:white;
}

/* =========================
   TITRES
========================= */

.section-title{
    text-align:center;
    margin-bottom:50px;
    position:relative;
    font-weight:700;
    color:var(--secondary);
}

.section-title::after{
    content:"";
    width:100px;
    height:4px;
    background:var(--primary);
    display:block;
    margin:15px auto;
}

/* =========================
   PRODUITS
========================= */

.products{
    padding:80px 0;
}

.product-card{
    border:none;
    border-radius:12px;
    overflow:hidden;
    background:white;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    transition:all 0.3s ease;
    height:100%;
}

.product-card:hover{
    transform:translateY(-8px);
}

.product-card img{
    height:250px;
    object-fit:cover;
}

.product-card .card-body{
    padding:20px;
}

.product-card h5{
    color:var(--secondary);
    font-weight:700;
}

.product-card p{
    color:#666;
}

.product-card .btn{
    background:var(--primary);
    border:none;
}

.product-card .btn:hover{
    background:#d9a500;
}

/* =========================
   A PROPOS
========================= */

.about{
    background:white;
    padding:80px 0;
}

.about-box{
    background:var(--light);
    padding:30px;
    border-left:5px solid var(--primary);
}

/* =========================
   FOOTER
========================= */

footer{
    background:var(--secondary);
    color:white;
    padding:50px 0 20px;
}

footer h5{
    color:var(--primary);
    margin-bottom:20px;
    font-weight:700;
}

footer a{
    color:white;
    text-decoration:none;
}

footer a:hover{
    color:var(--primary);
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.2);
    margin-top:25px;
    padding-top:20px;
    text-align:center;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .hero{
        min-height:350px;
        padding:20px;
    }

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .navbar-brand img{
        max-height:45px;
    }

}

/* PAGE PRODUITS */

.page-header{
    background:linear-gradient(
        rgba(74,74,74,.85),
        rgba(74,74,74,.85)
    ),
    url('../../assets/images/banner.jpg');

    background-size:cover;
    background-position:center;

    color:white;
    text-align:center;
    padding:90px 20px;
}

.page-header h1{
    font-size:3rem;
    font-weight:700;
}

.category-box{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.category-box h4{
    color:#4A4A4A;
    margin-bottom:20px;
    border-bottom:3px solid #F2BE1A;
    padding-bottom:10px;
}

.category-box ul{
    list-style:none;
    padding:0;
}

.category-box li{
    margin-bottom:10px;
}

.category-box a{
    color:#4A4A4A;
    text-decoration:none;
}

.category-box a:hover{
    color:#F2BE1A;
}

.badge-category{
    display:inline-block;
    background:#F2BE1A;
    color:white;
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    margin-bottom:10px;
}

.product-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    height:100%;
}

.product-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.product-card .card-body{
    padding:20px;
}

.product-card h5{
    color:#4A4A4A;
    font-weight:700;
    margin-bottom:15px;
}

.product-card p{
    color:#666;
    min-height:80px;
}

/* PAGE PRODUITS ameliorer */
.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:30px;
}

.product-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.4s;
    position:relative;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.product-image{
    height:260px;
    overflow:hidden;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.product-card:hover img{
    transform:scale(1.08);
}
/*-------*/

/*--bandde categories--*/
.product-category{
    position:absolute;
    top:15px;
    left:15px;

    background:#F2BE1A;
    color:#fff;

    padding:6px 14px;

    border-radius:30px;

    font-size:12px;
    font-weight:600;
}
/*-------*/

/*Corps de carte*/
.product-content{
    padding:25px;
}

.product-content h3{
    font-size:1.3rem;
    color:#4A4A4A;
    margin-bottom:12px;
    font-weight:700;
}

.product-content p{
    color:#777;
    font-size:.95rem;
    min-height:75px;
}

/*Bouton moderne*/
.btn-details{
    display:inline-block;

    background:#4A4A4A;
    color:white;

    padding:12px 22px;

    border-radius:8px;

    text-decoration:none;

    transition:.3s;
}

.btn-details:hover{
    background:#F2BE1A;
    color:white;
}

/*Barre de recherche*/
.search-box{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    margin-bottom:30px;
}

.search-box input{
    border:1px solid #ddd;
    padding:12px;
}

/*Sidebar catégories*/
.category-box{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.category-box h4{
    background:#4A4A4A;
    color:white;
    padding:15px;
    margin:0;
}

.category-box ul{
    list-style:none;
    padding:0;
    margin:0;
}

.category-box li{
    border-bottom:1px solid #eee;
}

.category-box li a{
    display:block;
    padding:14px 20px;
    color:#4A4A4A;
    text-decoration:none;
}

.category-box li a:hover{
    background:#F2BE1A;
    color:white;
}

/* chiffre increment*/
.stats-section{
    background:#4A4A4A;
    color:white;
    padding:80px 0;
}

.stats-section h2{
    color:#F2BE1A;
    font-size:3.5rem;
    font-weight:700;
    margin-bottom:10px;
}

.stats-section p{
    font-size:1.1rem;
    margin:0;
}