/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2b7a78;
    --primary-dark: #204e4c;
    --secondary: #fe7f2d;
    --light: #f9f9f9;
    --dark: #222;
    --text-gray: #555;
    --radius: 8px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 15px;
}

/* ===== Header ===== */
header {
    background: white;
    color: black;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 6px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

header nav a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

header nav a:hover {
    color: var(--secondary);
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 150px 100px;
    background-image: url("../images/vue-arriere-femmes-au-shopping_23-2148312190.jpg");
    background-size: cover;           
    background-position: center;      
    background-repeat: no-repeat;     
    color: white;
    border-radius: var(--radius);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

/* Optionnel : Ajouter un voile sombre pour mieux lire le texte */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);  
    z-index: 0;
}

.hero h2{
  font-size: 2em;
}

.hero h2,
.hero p,
.hero .btn {
    position: relative;
    z-index: 1;
}


.btn {
    display: inline-block;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    margin-top: 20px;

}

.hero .btn{
  border: 1px solid ;
  padding: 10px ;
  background-color: #fe7f2d;
  border: none;
}


/* ===== Products ===== */
.featured-products {
    margin: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: black;
    text-decoration: underline ;
    text-underline-position: under;
    
}

.products-container {
    position: relative;
    overflow: hidden;
}

.products-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
   
    flex: 0 0 270px;
    padding: 15px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    overflow: hidden;

}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: var(--radius);
}

.product-description {
    font-size: 0.9rem;
    color: gray;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: black;
    font-style: italic;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.product-actions {
    display: flex;
    flex-direction: column;
   
}

.whatsapp-btn {
    background: #25d366;
    padding: 10px 35px;
    text-align: center;
}

.whatsapp-btn:hover {
    background: #1ea955;
}

.details-btn {
    background: rgb(22, 22, 22);
    padding: 10px 35px;   
    text-align: center;
}

.details-btn:hover {
    opacity: 0.8;
}

/* ===== Scroll arrows ===== */
.scroll-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: white;
    color: black;
    border: 2px solid;
    border-radius: 10%;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.scroll-arrow:hover {
    opacity: 0.8;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 15px;
    background: black;
    color: white;
    margin-top: 40px;

}

/* ===== Responsive ===== */
/* ===== Version grand écran ===== */
@media (min-width: 769px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        margin-bottom: 0;
    }
}

/* Affichage du menu en mobile sous le titre */
@media (max-width: 768px) {
    header nav ul {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        background: transparent;
        position: static;
        padding: 0;
    }

    header nav li {
        margin: 0;
    }

    header nav a {
        font-size: 1rem;
    }
}


@media (max-width: 480px) {
    .product-card {
        flex: 0 0 85%;
    }

    .hero {
        padding: 40px 15px;
    }
}


