/* ===== GLOBAL (pour pleine largeur sur toutes les pages) ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  position: relative;
  background-color: #e20025;
  display: flex;
  justify-content: flex-end; /* aligne le menu à droite */
  align-items: center;
  height: 80px;
  padding: 0 60px;
  overflow: visible;
  width: 100%;
  left: 0;
  right: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* LOGO */
.logo {
  position: absolute;
  left: 60px;
  top: 120%;
  transform: translateY(-50%);
  z-index: 2;
}

.logo img {
  height: 200px;
  width: auto;
}

/* MENU - CORRECTION POUR ALIGNEMENT À DROITE */
.nav-menu {
  display: flex;
  align-items: center;
  margin-left: auto; /* Pousse le menu vers la droite */
}

.nav-menu a,
.nav-menu a:link,
.nav-menu a:visited {
  margin-left: 30px;
  text-decoration: none;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #000000 !important;
}

.nav-menu a.active {
  color: #000000 !important;
  border-bottom: 2px solid #000;
}

/* Menu hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Animation du hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ======================= SECTION FORMULAIRE ======================= */
.contact-form-section {
  background-color: #8cc740;
  padding: 80px 20px;
  width: 100%;
}

.contact-form-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%; /* full width */
  margin: 0;
  gap: 50px;
  flex-wrap: wrap;
}

/* Texte à gauche */
.contact-text {
  flex: 1;
  min-width: 300px;
}

.contact-text h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #2b2b2b;
}

.contact-text p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* Formulaire à droite */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.contact-form input {
  flex: 1;
}

.contact-form .full-width {
  width: 100%;
  margin-bottom: 20px;
}

/* Bouton envoyer */
.contact-form .btn-submit {
  background-color: #fff;
  color: #76ce04;
  border: 2px solid #76ce04;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form .btn-submit:hover {
  background-color: #2b2b2b;
  color: #fff;
}

/* ===== SECTION 2 ===== */
.contact-info-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 80px 50px;
  background-color: #fff;
  gap: 40px;
  width: 100%;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: #e20025;
  margin-bottom: 10px;
}

.contact-info h4 {
  margin-top: 20px;
  color: #8cc740;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #222;
  color: white;
  padding: 30px 50px;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 10px;
  width: 100%;
}

.footer-block {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-block h3 {
  color: #e20025;
  margin-bottom: 10px;
}

.footer-block p,
.footer-block a {
  color: white;
  margin-bottom: 5px;
  font-size: 0.95em;
  text-decoration: none;
}

.footer-block a:hover {
  color: #e20025;
}

.footer-copy {
  text-align: center;
  opacity: 0.7;
  font-size: 0.85em;
  margin-top: 20px;
}


/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .contact-form-container {
    flex-direction: column;
    gap: 40px;
  }
  .contact-text, 
  .contact-form {
    min-width: 100%;
  }
  .contact-text {
    margin-bottom: 40px;
  }
  .contact-form .form-row {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .contact-hero-content,
  .contact-info-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 30px;
    height: 70px;
  }
  
  .logo {
    left: 30px;
    top: 100%;
  }
  
  .logo img {
    height: 150px;
  }
  
  /* Menu hamburger pour mobile */
  .hamburger {
    display: flex;
    position: absolute;
    top: 25px;
    right: 30px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(226, 0, 37, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease;
    z-index: 5;
    margin-left: 0; /* Reset de la marge en mode mobile */
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    margin: 15px 0;
    font-size: 1.2em;
    margin-left: 0;
  }
  
  .contact-text h2 {
    font-size: 2em;
  }
  .contact-text p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 20px;
    height: 60px;
  }
  
  .logo {
    left: 20px;
  }
  
  .logo img {
    height: 120px;
  }
  
  .hamburger {
    top: 20px;
    right: 20px;
  }
  
  .contact-form-section {
    padding: 60px 20px;
  }
  
  .contact-info-section {
    padding: 60px 20px;
  }
  
  .footer {
    padding: 20px;
  }
}
/* ===== LIVRAISON DROPDOWN ===== */
.nav-delivery {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dropdown */
.delivery-dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #e20025;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: none;
  min-width: 160px;
  z-index: 9999;
}

.delivery-dropdown a {
  display: block;
  padding: 12px 18px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.delivery-dropdown a:hover {
  background-color: #e20025;
  color: #000000;
}

/* Desktop : hover pour afficher dropdown */
@media (min-width: 769px) {
  .nav-delivery:hover .delivery-dropdown {
    display: block;
  }
}
