:root {
  --primary: #8B4513;
  --secondary: #DEB887;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

header {
  background-color: var(--primary);
  color: white;
  padding: 1rem;
}

.hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('fondauto.jpeg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.3s;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

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

.product-card .discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.nav-links {
  display: flex;
  gap: 3.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.btn {
  background-color: var(--primary);
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary);
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  height: 100vh;
  width: 400px;
  background: white;
  padding: 20px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.cart-panel.active {
  right: 0;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

.cart-overlay.active {
  display: block;
  opacity: 1;
}

.cart-header {
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  margin-right: 15px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-controls button {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-controls button:hover {
  background: #f5f5f5;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.remove-item:hover {
  opacity: 1;
}

.cart-summary {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-line.total {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  transition: bottom 0.3s ease-in-out;
  z-index: 1002;
}

.notification.show {
  bottom: 20px;
}

.empty-cart {
  text-align: center;
  padding: 40px 0;
}

.empty-cart i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
}

.remove-animation {
  animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.social-icons a {
  color: white;
  font-size: 24px;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.promotions {
  background-color: #f9f9f9;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.promotions h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.promo-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: "PROMO";
  position: absolute;
  top: 20px;
  right: -30px;
  background: #ff4444;
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.8rem;
}

.promo-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}
.promo-price {
  color: #ff4444;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.promo-timer {
  background: #f0f0f0;
  padding: 0.5rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #666;
}

/* New styles */
.top-banner {
  background-color: #ff4444;
  color: white;
  text-align: center;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.top-banner::after {
  content: "🌟";
  position: absolute;
  right: 20px;
  animation: rotate 2s infinite linear;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.newsletter-section {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.newsletter-form {
  max-width: 500px;
  margin: 2rem auto;
}

.newsletter-form input {
  padding: 0.8rem;
  width: 70%;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0.8rem;
  width: 30%;
  border: none;
  background: #ff4444;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #ff2222;
}

.quality-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.badge {
  text-align: center;
  padding: 1rem;
}

.badge i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

body {
  background-color: #f9f9f9;
  color: #333;
  font-family: Arial, sans-serif;
}

header {
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
}

.nav-links a {
  margin: 0 15px;
  text-decoration: none;
  color: #007bff;
}

.hero {
  background-color: #e9ecef;
  padding: 50px 20px;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.importance-permis, .temoignages, .rendez-vous {
  padding: 20px;
  margin: 20px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}

.importance-image, .temoignages-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 10px auto;
}

.rendez-vous-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

.rendez-vous-form input, .rendez-vous-form button {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
}

.card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
}

.card img {
  height: 100%;
  object-fit: cover;
}

.navbar-brand {
  font-weight: bold;
  color: #007bff;
}

.product-card h1 {
  text-align: center;
  color: #2E8B57;
  font-size: 1.8em;
  margin: 15px 0;
  font-weight: bold;
}

/* Animation au survol (optionnel) */
.product-card:hover h1 {
  color: #1a5235;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

        /* Reset et styles de base */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            line-height: 1.6;
        }

        /* Section Hero */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('fondauto.jpeg');
            background-size: cover;
            padding: 100px 20px;
            text-align: center;
            color: white;
        }

        /* Barre de recherche */
        .search-bar {
            max-width: 600px;
            margin: 20px auto;
            padding: 10px;
        }

        .search-bar input {
            width: 80%;
            padding: 12px;
            border: none;
            border-radius: 4px 0 0 4px;
        }

        .search-bar button {
            padding: 12px 20px;
            background: #2E7D32;
            border: none;
            color: white;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }

        /* Grille de services */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Carte de service */
        .service-card {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

        .service-card:hover {
            transform: translateY(-5px);
        }

        /* Section Contact */
        .contact-section {
            background: #f5f5f5;
            padding: 60px 20px;
        }

        .contact-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .contact-form {
            display: grid;
            gap: 20px;
        }

        .form-group {
            display: grid;
            gap: 8px;
        }

        .contact-form input,
        .contact-form textarea {
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 100%;
        }

        /* Footer */
        .footer {
            background: #333;
            color: white;
            padding: 40px 20px;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .footer-section h3 {
            margin-bottom: 20px;
            color: #FF9800;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section li {
            margin-bottom: 10px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            margin-top: 40px;
            border-top: 1px solid #555;
        }

        /* Composants réutilisables */
        .btn {
            background: #FF9800;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            margin-top: 15px;
        }

        .service-icon {
            width: 50px;
            height: 50px;
            background: #2E7D32;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-bottom: 15px;
        }

        .service-title {
            color: #333;
            margin-bottom: 10px;
        }

        .service-description {
            color: #666;
            font-size: 0.9em;
            margin-bottom: 15px;
        }

        /* Media Queries */
        @media (max-width: 768px) {
            .services-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-content {
                grid-template-columns: 1fr;
            }
        }
  
            .travel-section {
                padding: 80px 20px;
                max-width: 1400px;
                margin: 0 auto;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 40px;
                align-items: center;
            }
    
            .travel-content {
                padding-right: 40px;
            }
    
            .travel-content h1 {
                font-size: 48px;
                color: #2c3e50;
                margin-bottom: 30px;
                line-height: 1.2;
            }
    
            .travel-content p {
                font-size: 18px;
                line-height: 1.6;
                color: #555;
                margin-bottom: 25px;
            }
    
            .travel-content a {
                color: #6c5ce7;
                text-decoration: none;
                font-weight: 500;
            }
    
            .travel-content a:hover {
                text-decoration: underline;
            }
    
            .images-container {
                position: relative;
                height: 500px;
            }
    
            .image-large {
                position: absolute;
                width: 70%;
                height: 400px;
                top: 0;
                left: 0;
                border-radius: 15px;
                object-fit: cover;
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            }
    
            .image-small {
                position: absolute;
                width: 50%;
                height: 250px;
                bottom: 0;
                right: 0;
                border-radius: 15px;
                object-fit: cover;
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
                z-index: 2;
            }
    
            @media (max-width: 768px) {
                .travel-section {
                    grid-template-columns: 1fr;
                    padding: 40px 20px;
                }
    
                .travel-content {
                    padding-right: 0;
                }
    
                .images-container {
                    height: 400px;
                    margin-top: 30px;
                }
    
                .image-large {
                    width: 80%;
                }
    
                .image-small {
                    width: 60%;
                }
            }
