@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* CSS VariaTION Des COULEURS */
:root {
  --primary-color: #2936f3; 
  --secondary-color: #2936f3; 
  --light-color: #e9d883; 
  --dark-color: #333; 
  --accent-color: #D4AF37; 
}

/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--light-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: bold;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 5px;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  background: url('images/accueil-hero.jpg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: 3rem;
  color: white;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.button:hover {
  background-color: var(--accent-color);
}

.button-primary {
  background-color: var(--primary-color);
}

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

/* Sections */
.section {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-name, .product-price {
  padding: 0 15px;
  margin: 10px 0;
}

.product-button {
  width: calc(100% - 30px);
  margin: 15px;
}

/* Notre Histoire - 3 blocs */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

.about-block {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.about-block:hover {
  transform: translateY(-8px);
}

.about-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Contact Form */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.contact-form label, .contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}

.contact-form input, .contact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.feedback-message {
  margin-top: 15px;
  color: green;
  display: none;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: var(--light-color);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}
