/* =========================================
   1. VARIABLES & COULEURS
   ========================================= */
:root {
  /* Palette Naturelle */
  --vert-fonce: #213b2e;
  --vert-fonce-diffu-video: #213b2ed0;
  --vert-fonce-diffu-page: #213b2eea;
  --vert-secondaire: #4A6E57;
  
  /* Palette Matériaux */
  --bois: #D8BFAA;
  --oikys-gold: #c5a059;
  --oikys-wood: #8b5e3c;
  
  /* Neutres */
  --blanc: #ffffff;
  --blanc-diffu: #ffffffdc;
  
  /* Fonctionnel */
  --rouge-rupture: #b33939;
}

/* =========================================
   2. BASE & LAYOUT (Fix footer inclus)
   ========================================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* Important pour le scroll */
  font-family: 'Georgia', serif;
  background: var(--blanc);
  color: var(--vert-fonce);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Force le footer en bas */
}

main {
  flex: 1; /* Pousse le footer vers le bas si la page est vide */
  padding-top: 22vh; /* Compensation du header fixe */
  width: 100%;
}

a {
  color: var(--blanc);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

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

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.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;
  inset: 0; /* Raccourci pour top/bottom/left/right: 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%);
}

/* --- Navigation Desktop (Panier à droite) --- */
.nav-desktop {
  display: flex;
  width: 90%;
  max-width: 1400px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.nav-links-group {
  display:flex; 
  gap:50px; 
  flex-grow:1; 
  justify-content:center; 
  margin-left:100px;
}

.nav-links-group a {
  font-size: 1.2rem;
}

/* Bouton Panier Isolé */
.panier-btn-header {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 30px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.panier-btn-header:hover {
  background: var(--bois);
  color: var(--vert-fonce) !important;
  border-color: var(--bois);
}

/* --- Burger Menu (Mobile) --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-top: 0.4rem;
}

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

/* Menu Mobile Caché */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--vert-fonce-diffu-page);
  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 {
  font-size: 1.6rem;
}

/* =========================================
   4. FICHE PRODUIT (Layout 2 colonnes)
   ========================================= */
.fiche-produit {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

/* --- Colonne Gauche : Images --- */
.zone-image {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#image-principale {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

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

.miniatures img {
  height: 70px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

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

.fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--vert-secondaire);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}
.fleche:hover { background: #5f7a48; }
.fleche.gauche { left: 0; }
.fleche.droite { right: 0; }

/* --- Colonne Droite : Détails --- */
.col-details {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espace entre Description et Choix */
  max-width: 500px;
}

/* STYLE COMMUN DES BOITES (Vertes) */
.box-style {
  background: var(--vert-fonce);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  animation: apparition-droite 0.8s ease-out forwards;
}

.box-style h2, 
.box-style h3 {
  margin-top: 0;
  color: var(--bois);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.box-style p, .label-custom {
  color: var(--blanc-diffu);
}

/* =========================================
   5. COMPOSANTS DE FORMULAIRE & BOUTONS
   ========================================= */
/* Cartes de choix (Radio) */
.radio-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.radio-card {
  flex: 1;
  cursor: pointer;
  min-width: 100px;
}

.radio-card input {
  display: none;
}

.card-content {
  display: block;
  padding: 12px;
  background: var(--vert-fonce-diffu-video);
  border: 1px solid var(--bois);
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  color: white;
  transition: 0.3s;
}

/* État sélectionné */
.radio-card input:checked + .card-content {
  background: var(--bois);
  color: var(--vert-fonce);
  font-weight: bold;
  border-color: var(--vert-fonce);
}

/* État désactivé (Grisé) */
.radio-card.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(1);
}

/* Bouton Principal (Ajouter / Valider) */
.btn-ajouter {
  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-ajouter:hover {
  background: var(--bois);
  color: var(--vert-fonce);
}

/* =========================================
   6. PAGE PANIER
   ========================================= */
.panier-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.panier-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-left: 5px solid var(--bois);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
  background-color: var(--vert-fonce);
  color: var(--blanc);
  text-align: center;
  padding: 1.5rem 0.5rem;
  margin-top: auto; /* Sécurité layout */
}

.footer-reseaux .reseaux-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.reseau-logo {
  height: 30px;
  width: 30px;
  filter: invert(100%) brightness(200%);
  transition: transform 0.2s;
}
.reseau-logo:hover { transform: scale(1.1); }

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

/* =========================================
   8. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes apparition-droite {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 900px) {
  /* Navigation */
  .nav-desktop { display: none; }
  .burger { display: flex; }
  
  /* Layout Produit */
  .fiche-produit {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    gap: 2rem;
  }
  
  .zone-image, .col-details {
    max-width: 100%;
    width: 100%;
    flex: auto;
  }
  
  /* Ajustements mobiles */
  .box-style { padding: 1.5rem; }
  #image-principale { max-width: 100%; }
}