/* 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;
}

/* Sections avec fond blanc */
.fond-blanc {
  padding: 20px 20px;
  margin-bottom: 40px;
}

.lien-produit {
  color: inherit;
  text-decoration: none;
  display: block;
}

.lien-produit:hover {
  text-decoration: underline;
}


.section-produits {
  max-width: 900px;
  margin: auto;
}

.section-produits h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  font-weight: 600;
  text-align: center;
}

.section-description {
  font-size: 1rem;
  color: var(--vert-fonce);
  margin-bottom: 30px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Grille produits - 3 articles par ligne */
.grille-produits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .grille-produits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grille-produits {
    grid-template-columns: 1fr;
  }
}

.carte-produit {
  text-align: center;
  position: relative;
  font-family: Arial, sans-serif;
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.img-principale,
.img-hover {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease-in-out;
  border-radius: 8px;
}

.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.image-container:hover .img-principale {
  opacity: 0;
}

.image-container:hover .img-hover {
  opacity: 1;
}

/* Badge rupture de stock */
.badge-rupture {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--rouge-rupture);
  color: var(--blanc);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Texte produit */
.carte-produit h3 {
  font-size: 1.1rem;
  margin-top: 8px;
  margin-bottom: 0px;
  color: var(--vert-fonce);
}

.prix {
  font-weight: 700;
  color: var(--vert-fonce);
}

.desc-fixe {
  font-size: 0.85rem;
  color: var(--vert-fonce);
  margin-top: 6px;
}

/* 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;
}


/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .fiche-produit {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .description {
    width: 100%;
    margin-top: 1rem;
  }

  .miniatures {
    justify-content: center;
  }
}

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


