/* === BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* === NAVBAR === */
.navbar {
  background: #003c6e;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00e5ff;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #0077c2, #005ea2);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 400px;
  text-align: left;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin-right: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #00e5ff;
  color: #003c6e;
}

.btn-primary:hover {
  background: #00bcd4;
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0);
}

/* === PRODUITS === */
.featured-products {
  padding: 4rem 0;
  background: white;
}

.featured-products h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #003c6e;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: #005ea2;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.specs {
  list-style: none;
  margin-bottom: 1.5rem;
}

.specs li {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.price-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00bcd4;
}

.btn-order {
  background: #0077c2;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-order:hover {
  background: #005ea2;
}

/* === FOOTER === */
footer {
  background: #003c6e;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem; /* marge sur les côtés pour le texte */
  }

  .hero-content {
    flex-direction: column-reverse; /* ✅ l’image passe en haut */
    text-align: center;
  }


  .hero-text {
    text-align: center;
  }

  .hero-buttons .btn {
    display: block;
    margin: 0.5rem auto;
  }

  .price-order {
    flex-direction: column;
    gap: 1rem;
  }
}


.hero {
  background: linear-gradient(135deg, #0077c2, #005ea2);
  color: white;
  padding: 0; /* plus de padding vertical inutile ici */
  text-align: center;
  overflow: hidden; /* empêche les débordements */
}

/* Conteneur du slider */
.hero-image {
  position: relative;
  width: 100%;
  height: 70vh; /* adapte la hauteur du slider */
  max-height: 600px;
  overflow: hidden;
}

/* Images du slider */
.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ couvre tout le conteneur sans déformation */
  opacity: 0;
  animation: slideShow 12s infinite;
  transition: opacity 1s ease-in-out;
}

/* Animation du slider */
.hero-image img:nth-child(1) { animation-delay: 0s; }
.hero-image img:nth-child(2) { animation-delay: 4s; }
.hero-image img:nth-child(3) { animation-delay: 8s; }

@keyframes slideShow {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .hero-image {
    height: 40vh; /* réduit un peu la hauteur sur mobile */
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

/* === AJUSTEMENT GRAND ÉCRAN === */
@media (min-width: 1200px) {
  .hero {
    padding: 4rem 0; /* espace vertical équilibré */
  }

  .hero-content {
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 1;
    height: 50vh; /* 🔥 réduit un peu l’image */
    max-height: 500px;
    transform: translateY(-30px); /* remonte légèrement l’image */
  }

  .hero-image img {
    object-fit: contain; /* ✅ évite les coupes sur les côtés */
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

