
/* VARIABLES GLOBALES */
:root {
  --dark-green: #22301A;
  --medium-green: #41672B;
  --light-green: #74A852;
  --gray: #919191;
  --dark-gray: #626261;
  --white: #ffffff;
}

/* RESET BASIQUE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* STYLES GLOBAUX */
body {
  font-family: Arial, sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.95), 
      rgba(255, 255, 255, 0.95)
    ),
    url("images/Canne a sucre.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: normal;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--dark-green);
  padding: 10px 5%;
}
header .logo img {
  height: 60px;
  width: auto;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
header nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  transition: background-color 0.3s;
}
header nav ul li a:hover,
header nav ul li a.active {
  background-color: var(--medium-green);
  border-radius: 4px;
}

/* SECTION HERO (Accueil) */
.hero {
  background-color: var(--light-green);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  /*opacity: 0.8;*/
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.btn-principal {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s, transform 0.3s;
}
.btn-principal:hover {
  background-color: var(--medium-green);
  transform: translateY(-2px);
}

/* SECTIONS DE CONTENU */
main h1 { font-size: 2rem; }
main h2 { font-size: 1.5rem; }
main {
  flex: 1;
  padding: 40px 5%;
}
main h1, main h2 {
  margin-bottom: 20px;
  color: var(--dark-green);
}
main p, main li {
  margin-bottom: 10px;
}

/* LISTES À PUCES */
ul {
  list-style: disc inside;
  margin-left: 20px;
}

/* PAGE PRODUITS & SERVICES */
.produits,
.services {
  margin-bottom: 40px;
}
.produit-item {
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.produit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.produit-item img {
  max-width: 200px;
  margin-bottom: 15px;
}
.produit-item h3 {
  color: var(--medium-green);
  margin-bottom: 10px;
}
.avantages li {
  text-align: left;
}

/* GALERIE */
.galerie-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-items: center;
  padding: 20px 0;
}
.galerie-container figure {
  border: 1px solid var(--gray);
  padding: 10px;
  text-align: center;
  overflow: hidden;
  background-color: white;
  max-width: 100%;
  width: 100%;
}
.galerie-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 250px;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
  border-radius: 8px;
}
.galerie-container img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* FORMULAIRE DE CONTACT */
.form-contact {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin-top: 20px;
}
.form-contact label {
  margin: 10px 0 5px;
  font-weight: bold;
}
.form-contact input,
.form-contact textarea {
  padding: 8px;
  border: 1px solid var(--gray);
  border-radius: 4px;
}
.form-contact input:focus,
.form-contact textarea:focus {
  border-color: var(--medium-green);
  outline: none;
  box-shadow: 0 0 5px rgba(65,103,43,0.3);
}
.form-contact button {
  background-color: var(--medium-green);
  color: var(--white);
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: bold;
}
.form-contact button:hover {
  background-color: var(--dark-green);
}
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.form-contact {
  flex: 1 1 300px;
}
.coordonnees {
  flex: 1 1 200px;
  max-width: 300px;
}
.contact-wrapper {
  display: block; /* ou flex-direction: column si flex est nécessaire */
}

/* SECTION COORDONNÉES */
.coordonnees {
  margin-top: 30px;
}
.apropos-valeurs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* pour mobile */
}
.apropos-valeurs img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 400px; /* limite maximale sans forcer les proportions */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* .apropos-valeurs ul { */
  /* columns: 2; */
  /* column-gap: 40px; */
/* } */
.apropos-valeurs li {
  margin-bottom: 8px;
}

/* PIED DE PAGE */
footer {
  background-color: var(--dark-green);
  color: var(--white);
  text-align: center;
  padding: 20px 5%;
}
footer p {
  margin: 5px 0;
}
footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}
footer a:hover {
  text-decoration: underline;
}
.social-icons img {
  width: 35px;
  height: 35px;
  margin: 0 8px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.social-icons img:hover {
  filter: none;
}

/* ---- Calendrier ---- */
.rendez-vous {
  margin-top: 50px;
}
.rendez-vous iframe {
  border: 1px solid var(--gray);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ---- Modal + Transition ---- */
#modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
#modal.show {
  display: flex;
  opacity: 1;
}
#modal-img {
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out; 
  max-width: 90%; 
  max-height: 90%;
  object-fit: contain;
}
#modal.show #modal-img {
  transform: scale(1);
  opacity: 1;
}


/* Spécifique à la vidéo principale */
.video-principale {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 80vh;
}
.video-principale iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Bouton Bookings personnalisé */
.btn-bookings {
  display: inline-block;
  background-color: var(--medium-green);
  color: var(--white);
  padding: 15px 35px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.btn-bookings:hover {
  background-color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}
