/* Global Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #e3f3ec;
    color: #1b1b1b;
    overflow-x: hidden;
    position: relative;
}

/* Background Image Fullscreen + Parallax */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../img/bodybkgd-removebg2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: -1;
    transform: translateY(0);
    will-change: transform;
}

/* Petit script pour faire le parallax */
html {
    scroll-behavior: smooth;
}


/* Content Styles */
.content {
    max-width: 65%;
    margin: 0 auto;
    padding: 2rem;
    padding-top:0; 
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* plus d'image ici, elle est dans body::before */
}

.content.visible {
    opacity: 1;
    transform: translateY(0);
}

.content h1 {
    font-size: 5rem;
    color: #1a5132;
    font-family: 'Brush Script MT', cursive;
    animation: fadeInUp 1s ease-out;
    margin-top:0.5rem;
}

.content h1 span {
    color: #5cc487;
}

.content h2 {
    margin-top: 2rem;
    font-size: 1.3rem;
}

.intro {
    max-width: 700px;
    margin: 0 auto;
}

.intro p {
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

/* Grid 2x2 for Nos produits and Nos plus */
.table-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-top: 3rem;
}

.table-container .header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a5132;
}

.table-container .content-cell {
    /* background-color: #f9f9f9; */
    padding: 1.5rem;
    /* border: 1px solid #ddd; */
    /* border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); */
    text-align: left;
}

.table-container .content-cell ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-container .content-cell ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.table-container .content-cell ul li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    font-style: italic;
    color: #4a4a4a;
    padding: 2rem 1rem;
}

/* Animation FadeIn */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Mobile */
/* @media (max-width: 768px) {
    nav {
      position: absolute;
      top: 100%;
      left: 0;
      transform: translateX(-100%);
      flex-direction: column;
      background-color: #ffffff;
      width: 100%;
      padding: 1rem;
      border: none;
      height: auto;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
    }
  
    nav.show {
      transform: translateX(0);
      opacity: 1;
      pointer-events: auto;
    }
  
    .hamburger {
      display: flex;
    }
  
    header {
      height: auto;
      padding: 1rem;
      flex-wrap: wrap;
    }
  
    header img {
      height: 120px;
      margin-bottom: 0.5rem;
    }
  } */
  @media (max-width: 768px) {
    /* Contenu général */
    .content {
      max-width: 90%;
      padding: 1.5rem 1rem;
      padding-top:0;
      text-align: center;
    }
  
    .content h1 {
      font-size: 3rem;
      line-height: 1.2;
      margin-top:10px; 
    }
  
    .content h2 {
      font-size: 1.1rem;
    }
  
    .intro p {
      font-size: 0.95rem;
      line-height: 1.5;
    }
  
    /* Grille 2x2 devient grille 1x4 verticale */
    .table-container {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      gap: 1.5rem;
      margin-top: 2rem;
    }
  
    .table-container .header {
      font-size: 1.4rem;
      text-align: center;
    }
  
    .table-container .content-cell {
      text-align: left;
      padding: 1rem 1.2rem;
    }
  
    .table-container .content-cell ul li {
      padding-left: 1.2rem;
      font-size: 0.95rem;
    }
  
    /* Footer */
    footer {
      font-size: 0.9rem;
      padding: 1.5rem 1rem;
    }
  
    /* Background image: éviter surcharge visuelle ou lenteur */
    body::before {
      background-size: cover;
      background-position: center;
      opacity: 0.5; /* Légèrement atténuée sur mobile */
    }
  }
  
  .ribbon-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    justify-content: center; /* centre le ruban tant que son contenu ne déborde pas */
  }
  
  .ribbon-track {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    justify-content: center; /* centre les images dans le ruban */
    min-width: max-content; /* assure le scroll si besoin */
  }
  
  .ribbon-track img {
    height: 120px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 8px;
  }
  
  @media screen and (min-width: 768px) {
    .ribbon-track img {
      height: 200px;
    }
  }



  /* Formulaire de contact */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
  background-color: #ffffffd8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #1a5132;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5fdf8;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5cc487;
  outline: none;
}

.contact-form button {
  background-color: #5cc487;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #4da973;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem 1rem;
  }

  .contact-form label,
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.95rem;
  }
}
