/* === BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to right, #fdf6f6, #fff);
  color: #333;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* === NAVIGATION AVEC LOGO À GAUCHE === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: bold;
  color: #7d173b;
  white-space: nowrap;
}

/* === MENU === */
.menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.menu li a:hover {
  background-color: #fce5ec;
  color: #d6336c;
}

/* === BURGER MENU === */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  color: #7d173b;
  cursor: pointer;
}

/* === RESPONSIVE NAVIGATION === */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
  }

  .menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .logo {
    order: 1;
  }

  .menu {
    order: 3;
  }
}

/* === SECTION HERO === */
header#hero {
  background: url('images/vignoble.jpg') no-repeat center center/cover;
  height: 100vh;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header .overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem;
  border-radius: 10px;
}

header h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.7rem;
  color: #ffd6e0;
  margin-bottom: 100px;
}

/* === BOUTON PRINCIPAL === */
.btn {
  margin-top: 2rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(to right, #7d173b, #d6336c);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: linear-gradient(to right, #5e102c, #a91c4f);
  transform: scale(1.05);
}

/* === SECTIONS === */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #7d173b;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #d6336c;
  margin: 1rem auto 0;
  border-radius: 4px;
}

/* === À PROPOS === */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-text, .about-photo {
  flex: 1;
}

.about-photo img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* === VINS & GALERIE === */
.wine-grid, .gallery-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}

.wine {
  background: #fff0f4;
  border-left: 6px solid #d6336c;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* === TÉMOIGNAGES === */
.testimonial {
  background: #ffe6ec;
  padding: 2rem;
  border-radius: 10px;
  font-style: italic;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* === FORMULAIRE DE CONTACT === */
form input, form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

form button {
  background: linear-gradient(to right, #7d173b, #d6336c);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

form button:hover {
  background: linear-gradient(to right, #5e102c, #a91c4f);
}

.pMail {
  padding-bottom: 15px;
}

/* === FOOTER === */
footer {
  background: #f4f4f4;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

footer .socials a {
  color: #d6336c;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.2rem;
}

/* === RESPONSIVE TEXTE === */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  .about-section {
    flex-direction: column;
  }

  section h2 {
    font-size: 2rem;
  }
}
