/* === style.css — ÉcoStyle (Accueil) === */

/* --- Palette naturelle --- */
:root {
  --vert-doux: #8cbf75;
  --beige-fond: #f9f7f2;
  --brun-clair: #a67b5b;
  --texte-fonce: #333;
  --blanc: #ffffff;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--beige-fond);
  color: var(--texte-fonce);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--blanc);
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--vert-doux);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--texte-fonce);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--vert-doux);
}

.burger {
  display: none;
  font-size: 1.8rem;
  color: var(--vert-doux);
  cursor: pointer;
}

/* === HERO === */
.hero {
  height: 90vh;
  background: url('images/hero-eco.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--blanc);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 10px;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--beige-fond);
}

.hero p {
  margin-bottom: 2rem;
  color: #f1f1f1;
}

.btn-primary {
  background-color: var(--vert-doux);
  color: var(--blanc);
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--brun-clair);
}

/* === PRODUITS VEDETTE === */
.produits-vedette {
  padding: 4rem 2rem;
  text-align: center;
}

.produits-vedette h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--vert-doux);
  margin-bottom: 2.5rem;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.produit {
  background-color: var(--blanc);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 1rem;
}

.produit:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.produit img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.produit h3 {
  margin: 1rem 0 0.5rem;
  color: var(--texte-fonce);
}

.produit p {
  font-weight: bold;
  color: var(--brun-clair);
}

.btn-secondary {
  background-color: var(--brun-clair);
  color: var(--blanc);
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: var(--vert-doux);
}

/* === PHILOSOPHIE === */
.philosophie {
  padding: 5rem 2rem;
  background-color: var(--vert-doux);
  color: var(--blanc);
}

.philo-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.philo-content img {
  width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.philo-content div {
  max-width: 600px;
}

.philo-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.philo-content p {
  margin-bottom: 1rem;
}

/* === FOOTER === */
footer {
  background-color: var(--brun-clair);
  color: var(--blanc);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--blanc);
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .philo-content {
    flex-direction: column;
  }

  .philo-content img {
    width: 100%;
    max-width: 400px;
  }
}
