/*  Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f8f8;
    color: #333;
}

/*  Barre de navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ff7e5f;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li:hover {
    transform: scale(1.1);
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff7e5f;
}

/*  Menu Burger pour Mobile */
.burger-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        width: 200px;
        padding: 10px;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .burger-menu {
        display: block;
    }
}

/*  Section Hero */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: white;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cta {
    padding: 15px 25px;
    background: white;
    color: #ff7e5f;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta:hover {
    transform: scale(1.1);
}

/*  Section Produits */
.products {
    text-align: center;
    padding: 50px 20px;
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: scale(1.05);
}
/*  Section Panier */
.cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    max-width: 600px;
    margin: 100px auto;
}

.cart h2 {
    font-size: 28px;
    color: #333;
}

#cart-items {
    margin-top: 20px;
    text-align: left;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cart-item span {
    font-size: 18px;
}

.cart-item button {
    background: red;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-item button:hover {
    background: darkred;
}

/*  Bouton Vider le Panier */
.clear-cart {
    background: #ff3b3b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.clear-cart:hover {
    background: #c30000;
}

/*  Responsive */
@media (max-width: 768px) {
    .cart {
        width: 90%;
        padding: 50px 15px;
    }
}
/*  Grille des produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

/*  Carte produit */
.product-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 300px; /* Ajuste la largeur max */
    margin: auto;
}

.product-card:hover {
    transform: scale(1.05);
}

/*  Image Produit */
.product-card img {
    width: 100%; /* Remplit la largeur de la carte */
    height: 200px; /* Fixe une hauteur uniforme */
    object-fit: cover; /* Évite la déformation */
    border-radius: 8px;
}

/*  Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-card img {
        height: 180px; /* Ajuste pour mobile */
    }
}
#cart-count {
    font-weight: bold;
    color: red;
    background: white;
    padding: 3px 8px;
    border-radius: 50%;
}
.checkout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.checkout-btn:hover {
    background: #218838;
}
/*  Section Paiement */
.checkout {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
}

.checkout h2 {
    font-size: 28px;
    color: #333;
}

.checkout p {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/*  Formulaire Paiement */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.payment-form input:focus {
    border-color: #ff7e5f;
    outline: none;
}

/*  Bouton Payer */
.pay-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    width: 100%;
}

.pay-btn:hover {
    background: #218838;
}

/*  Responsive */
@media (max-width: 768px) {
    .checkout {
        width: 90%;
        padding: 30px;
    }
}
