/* Couleurs naturelles */
:root {
  --vert-fonce: #213b2e;
  --vert-fonce-diffu-video: #213b2ed0;
  --vert-fonce-diffu-page: #213b2eea;
  --vert-secondaire: #4A6E57;
  --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-diffu-video);
  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;
}

/* ======== FICHE PRODUIT ======== */
.fiche-produit {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  max-width: 1100px;
  margin: auto;
}

/* ======== ZONE IMAGE ======== */
.zone-image {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* IMAGE PRINCIPALE */
#image-principale {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

/* ======== MINIATURES + FLECHES ======== */
.miniatures-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.miniatures {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
  will-change: transform;
}

.miniatures img {
  height: 80px;
  width: auto;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.miniatures img:hover,
.miniatures img:focus {
  transform: scale(1.05);
  border-color: var(--vert-secondaire);
  outline: none;
}

/* FLECHES */
.fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--vert-secondaire);
  border: none;
  color: white;
  font-size: 1.8rem;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.fleche:hover {
  background: #5f7a48;
}

.fleche.gauche {
  left: 0;
}

.fleche.droite {
  right: 0;
}

/* ======== DESCRIPTION PRODUIT (fond vert secondaire, texte blanc) ======== */
.description-produit {
  flex: 1 1 400px;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  animation: apparition-droite 0.8s ease-out forwards;
  background: var(--vert-secondaire);
  color: white;
  max-width: 600px;
}

.description-produit h2,
.description-produit h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

.description-produit h2 {
  font-size: 1.6rem;
}

.description-produit h3 {
  font-size: 1.3rem;
}

.description-produit p {
  color: white;
  line-height: 1.5;
  font-size: 1rem;
  margin: 0.5rem 0;
}


/* 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 ======== */

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


/* ======== RESPONSIVE MOBILE ======== */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .burger {
    display: flex;
  }

  .fiche-produit {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem; /* moins d'espace sur mobile */
    gap: 1.5rem;
  }

  .zone-image {
    max-width: 100%;
    align-items: center;
  }

  #image-principale {
    max-width: 95%;
  }

  .miniatures-wrapper {
    max-width: 90%;
    margin-top: 0.5rem;
  }

  .miniatures img {
    height: 60px; /* miniatures plus petites */
  }

  .description-produit {
    max-width: 95%;
    text-align: center; /* centré sur mobile */
    padding: 1.5rem 1rem;
  }

  .description-produit h2 {
    font-size: 1.4rem;
  }

  .description-produit h3 {
    font-size: 1.1rem;
  }

  .description-produit p {
    font-size: 0.95rem;
  }
}

