/* Base styles */ body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f5f5ed; /* Beige ton naturel */ color: #333; } /* Header */ header { background-color: #4b8f59; /* Vert profond naturel */ color: white; padding: 10px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; } header .logo h1 { margin: 0; font-size: 24px; font-weight: bold; } nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; } nav ul li { margin-left: 15px; } nav ul li a { color: white; text-decoration: none; font-weight: bold; padding: 5px 10px; border-radius: 4px; } nav ul li a:hover { background-color: #397645; } /* Hero section */ .hero { background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/c8/Miswak.jpg'); background-size: cover; background-position: center; color: white; text-align: center; padding: 80px 20px; } .hero h2 { font-size: 36px; margin-bottom: 10px; } .hero p { font-size: 18px; } /* Sections */ .section { padding: 40px 20px; max-width: 1000px; margin: 0 auto; } .section h2 { color: #4b8f59; margin-bottom: 20px; } /* Products */ .product-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; } .product { flex: 1 1 280px; background-color: white; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 20px; text-align: center; max-width: 300px; } .product img { max-width: 100%; height: auto; border-radius: 8px; } .product h3 { margin-top: 10px; } .product .price { color: #4b8f59; font-size: 20px; font-weight: bold; } .product button { background-color: #4b8f59; color: white; border: none; padding: 10px 20px; margin-top: 10px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; } .product button:hover { background-color: #397645; } /* Testimonials */ .testimonial { background-color: #edf7ee; border-left: 5px solid #4b8f59; margin-bottom: 15px; padding: 10px 15px; border-radius: 5px; font-style: italic; } /* Modal (Cart) */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); } .modal-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 5px; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } button { font-size: 16px; }