/* Couleurs naturelles */
:root {
  --vert-fonce: #213b2e;
  --vert-fonce-diffu-video: #213b2ed0;
  --vert-fonce-diffu-page: #213b2eea;
  --vert-secondaire: #40614c;
  --blanc: rgb(255, 255, 255);
  --blanc-diffu: #ffffffdc;
  --bois: #D8BFAA;
  --rouge-rupture: #b33939;
}

/* Base */
html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100%;
  overflow-y: scroll;
  font-family: 'Georgia', serif;
  background: var(--blanc);
  color: var(--vert-fonce);
  line-height: 1.6;
}

/* Liens */
a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: bold;
}
a:hover {
  color: var(--bois);
}

/* Header fixé */
.header-video {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22vh;
  overflow: hidden;
  z-index: 1000;
}
.header-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-video .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--vert-fonce-diffu-video);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.logo-site {
  height: 80px;
  margin-bottom: 0.5rem;
  filter: invert(100%) brightness(200%);
}
nav {
  display: flex;
  gap: 2rem;
}
nav a {
  color: var(--blanc);
  font-size: 1.2rem;
}

/* BURGER MENU - style des 3 barres */
.burger {
  display: none; /* caché sur desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.4rem;
  z-index: 1100;
}

.burger span {
  width: 100%;
  height: 2.5px;
  background: var(--blanc);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menu desktop */
.nav-desktop {
  display: flex;
  gap: 6rem;
}

/* Menu mobile - caché par défaut */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--vert-fonce-diffu-page); /* vert foncé semi transparent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1050;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  color: var(--blanc);
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a:focus {
  color: var(--bois);
  outline: none;
}

/* Correction décalage contenu dû au header fixe */
main {
  padding-top: 22vh;
}


body {
  background: var(--blanc);
  margin: 0;
}

.section-produit {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2rem 0;
}

.bloc-produit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  background: var(--blanc);
  padding: 1rem;
}

/* Colonne gauche : grande image avec titre */
.image-gauche {
  position: relative;
  max-width: 420px;
}

.image-gauche img {
  width: 100%;
  display: block;
}

.image-gauche h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--blanc);
  text-align: center;
  background: none;
  padding: 0; 
  margin: 0;
}


/* Colonne droite : image détourée et texte */
.contenu-droite {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  animation: apparition-droite 0.8s ease-out forwards;
  text-align: center;
}

.image-detouree {
  max-width: 280px;
}

.texte h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.6rem;
  color: var(--vert-fonce);
}

.texte p {
  font-size: 1rem;
  color: var(--vert-fonce);
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--vert-fonce);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--bois);
  color: var(--vert-fonce);
}

/* Responsive */
@media (max-width: 768px) {
  .bloc-produit {
    flex-direction: column;
    text-align: center;
  }
  .image-gauche, .contenu-droite {
    max-width: 90%;
  }
}


/* Avis */

.avis {
  background-color: var(--vert-fonce);
  padding: 2rem;
  text-align: center;
  color: var(--blanc);
}

/* Conteneur : fond identique à la section pour éviter "case blanche" */
.avis-liste {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  padding: 1rem 0;
  background: transparent; /* on garde le fond de .avis */
  min-height: 120px;
}

/* Carte d'avis : blanc sur foncé (meilleure lisibilité) */
.avis-item {
  width: 90%;
  max-width: 700px;
  background-color: var(--blanc);      /* carte blanche */
  color: var(--vert-fonce);            /* texte sombre sur blanc */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  text-align: left;
  padding: 18px;
  position: relative;                  /* PAS absolute */
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Message "aucun avis" — visible et intégré */
.aucun-avis {
  color: var(--blanc);
  font-style: italic;
  background: transparent;
  padding: 1rem;
  margin: 0 auto;
  max-width: 700px;
}


/* Animation entrée gauche/droite */
.avis-item.entree-gauche {
  animation: slideInLeft 1s forwards;
}
.avis-item.entree-droite {
  animation: slideInRight 1s forwards;
}
/* Animation sortie */
.avis-item.sortie-gauche {
  animation: slideOutLeft 1s forwards;
}
.avis-item.sortie-droite {
  animation: slideOutRight 1s forwards;
}

@keyframes slideInLeft {
  from {opacity:0; transform:translateX(-100%);}
  to   {opacity:1; transform:translateX(0);}
}
@keyframes slideInRight {
  from {opacity:0; transform:translateX(100%);}
  to   {opacity:1; transform:translateX(0);}
}
@keyframes slideOutLeft {
  from {opacity:1; transform:translateX(0);}
  to   {opacity:0; transform:translateX(-100%);}
}
@keyframes slideOutRight {
  from {opacity:1; transform:translateX(0);}
  to   {opacity:0; transform:translateX(100%);}
}

.avis form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.avis input,
.avis textarea {
  width: 90%;
  max-width: 500px;
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
}

/* Bouton mat, pas brillant */
.avis button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-family: 'Georgia', serif;
  background-color: var(--vert-fonce); /* couleur pleine */
  color: var(--blanc);
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  box-shadow: none; /* pas de relief */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.avis button:hover {
  background-color: var(--bois);
  color: var(--vert-fonce);
}


/* Footer */
footer {
  background-color: var(--vert-fonce);
  color: var(--blanc);
  text-align: center;
  padding: 0.8rem 0.5rem;
}

footer a {
  color: var(--bois);
}

.footer-reseaux .reseaux-icons {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin: 0.1rem 0;
}

footer p {
  margin: 0.3rem 0;
}

.reseau-logo {
  height: 30px;
  width: 30px;
  filter: invert(100%) brightness(200%);
}

.logo-site-end {
  height: 60px;
  margin-bottom: 0.2rem;
  filter: invert(100%) brightness(200%);
}

.footer-bottom {
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

/* ======== ANIMATIONS D’APPARITION ======== */

/* Afficher burger sur petits écrans, cacher menu desktop */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@keyframes apparition-droite {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
