/* =========================
   products.css Manaplast – Pages produits transparentes
   Palette : #22344a, #454e5b, #8d6f57, #f7e7b5, #aab1bc, #344d67
   ========================= */

/* Variables de ta palette */
:root {
  --bleu-fonce: #22344a;
  --gris-bleu: #454e5b;
  --marron-chaud: #8d6f57;
  --beige-dore: #f7e7b5;
  --gris-clair: #aab1bc;
  --bleu-moyen: #344d67;
}

/* Header pour les pages produits (harmonisé avec l'index) */
header {
  background: rgba(247, 231, 181, 0.9);
  color: var(--bleu-fonce);
  border-bottom: 1.5px solid rgba(170, 177, 188, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 18px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bleu-fonce);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li a {
  color: var(--bleu-fonce);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 6px 0;
}

nav ul li a:hover {
  color: var(--marron-chaud);
}

/* Section principale transparente */
.product-detail {
  max-width: 1100px;
  margin: 50px auto;
  padding: 40px 30px;
  background: rgba(247, 231, 181, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 25px rgba(34, 52, 74, 0.1);
}

.product-detail h1 {
  font-size: 2.4rem;
  color: var(--bleu-fonce);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}

.product-detail > p {
  font-size: 1.1rem;
  color: var(--gris-bleu);
  text-align: center;
  margin-bottom: 38px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

/* Liste des produits */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Cards produits transparentes */
.product-item {
  background: rgba(247, 231, 181, 0.6);
  border-radius: 16px;
  border: 2px solid rgba(170, 177, 188, 0.4);
  box-shadow: 0 4px 20px rgba(34, 52, 74, 0.15);
  backdrop-filter: blur(8px);
  width: 260px;
  padding: 22px 16px 18px 16px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-item:hover {
  background: rgba(247, 231, 181, 0.8);
  border-color: rgba(141, 111, 87, 0.8);
  box-shadow: 0 8px 32px rgba(141, 111, 87, 0.25);
  transform: translateY(-8px) scale(1.04);
}

.product-item img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 14px;
  background: rgba(247, 231, 181, 0.3);
}

.product-item h3 {
  font-size: 1.1rem;
  color: var(--bleu-fonce);
  margin-bottom: 8px;
}

.product-item ul {
  list-style: disc;
  padding-left: 18px;
  text-align: left;
  margin: 0 0 10px 0;
  font-size: 0.99rem;
  color: var(--gris-bleu);
}

.product-item ul li {
  margin-bottom: 2px;
}

.product-item p {
  font-size: 0.97rem;
  color: var(--gris-bleu);
  margin-bottom: 7px;
}

.product-item strong {
  color: var(--bleu-fonce);
}

/* Titre du tableau */
.product-detail h2 {
  font-size: 1.5rem;
  color: var(--bleu-fonce);
  margin: 40px 0 20px 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}

/* Tableau transparent */
.product-detail table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(247, 231, 181, 0.6);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 0.99rem;
  box-shadow: 0 4px 20px rgba(34, 52, 74, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(170, 177, 188, 0.4);
}

.product-detail th,
.product-detail td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(170, 177, 188, 0.3);
  text-align: center;
}

.product-detail th {
  background: rgba(52, 77, 103, 0.15);
  color: var(--bleu-fonce);
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(255,255,255,0.2);
}

.product-detail td {
  color: var(--gris-bleu);
}

.product-detail tr:last-child td {
  border-bottom: none;
}

.product-detail tr:hover {
  background: rgba(141, 111, 87, 0.1);
}

/* Footer harmonisé */
footer {
  background: var(--bleu-fonce);
  color: var(--beige-dore);
  text-align: center;
  padding: 28px 0 12px 0;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 5vw;
  }
  
  nav ul {
    flex-direction: column;
    gap: 12px;
  }
  
  .product-list {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  
  .product-item {
    width: 95%;
    max-width: 400px;
  }
  
  .product-detail {
    padding: 20px 4vw;
    margin: 20px 5vw;
    border-radius: 0;
  }
  
  .product-detail h1 {
    font-size: 2rem;
  }
  
  .product-detail table {
    font-size: 0.9rem;
  }
  
  .product-detail th,
  .product-detail td {
    padding: 8px 6px;
  }
}
/* Tableaux professionnels avec contours et style moderne */
.benefits-table,
.variants-table,
.guide-table,
.machine-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(34, 52, 74, 0.12);
  border: 2px solid rgba(141, 111, 87, 0.2);
}

/* En-têtes de tableaux avec gradient premium - AJOUT DE .benefits-table th */
.variants-table th,
.guide-table th,
.benefits-table th {
  background: linear-gradient(135deg, #8d6f57 0%, #7a5f49 50%, #22344a 100%);
  color: #f7e7b5;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 3px solid rgba(247, 231, 181, 0.3);
  position: relative;
}

.variants-table th:first-child,
.guide-table th:first-child,
.benefits-table th:first-child {
  border-left: none;
}

.variants-table th:not(:last-child),
.guide-table th:not(:last-child),
.benefits-table th:not(:last-child) {
  border-right: 1px solid rgba(247, 231, 181, 0.2);
}

/* Cellules du corps avec alternance et bordures - AJOUT DE .benefits-table */
.variants-table tbody tr:nth-child(odd),
.guide-table tbody tr:nth-child(odd),
.benefits-table tbody tr:nth-child(odd) {
  background: rgba(247, 231, 181, 0.08);
}

.variants-table tbody tr:nth-child(even),
.guide-table tbody tr:nth-child(even),
.benefits-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.variants-table tbody tr:hover,
.guide-table tbody tr:hover,
.benefits-table tbody tr:hover {
  background: rgba(141, 111, 87, 0.1);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.variants-table td,
.guide-table td,
.benefits-table td {
  padding: 16px 20px;
  border-right: 1px solid rgba(170, 177, 188, 0.2);
  border-bottom: 1px solid rgba(170, 177, 188, 0.15);
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.5;
}

.variants-table td:last-child,
.guide-table td:last-child,
.benefits-table td:last-child {
  border-right: none;
}

.variants-table tbody tr:last-child td,
.guide-table tbody tr:last-child td,
.benefits-table tbody tr:last-child td {
  border-bottom: none;
}

/* Tableaux simples (avantages et spécifications) */
.benefits-table,
.machine-specs-table {
  background: linear-gradient(145deg, rgba(247, 231, 181, 0.15), rgba(247, 231, 181, 0.05));
  border: 2px solid rgba(141, 111, 87, 0.25);
}

.benefits-table td,
.machine-specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(141, 111, 87, 0.15);
  font-size: 0.9rem;
}

.benefits-table td:first-child,
.machine-specs-table td:first-child {
  background: rgba(141, 111, 87, 0.08);
  font-weight: 600;
  color: #22344a;
  width: 35%;
  border-right: 2px solid rgba(141, 111, 87, 0.2);
}

.benefits-table tr:last-child td,
.machine-specs-table tr:last-child td {
  border-bottom: none;
}

/* Responsive design pour tableaux - CORRECTIONS DES VIRGULES */
@media (max-width: 1024px) {
  .variants-table,
  .guide-table,
  .benefits-table,
  .machine-specs-table {
    font-size: 0.85rem;
  }
  
  .variants-table th,
  .guide-table th, 
  .benefits-table th {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .variants-table td,
  .guide-table td, 
  .benefits-table td,
  .machine-specs-table td {
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .variants-table,
  .guide-table,
  .benefits-table,
  .machine-specs-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 111, 87, 0.3) transparent;
  }
  
  .variants-table::-webkit-scrollbar,
  .guide-table::-webkit-scrollbar, 
  .benefits-table::-webkit-scrollbar,
  .machine-specs-table::-webkit-scrollbar {
    height: 8px;
  }
  
  .variants-table::-webkit-scrollbar-track,
  .guide-table::-webkit-scrollbar-track,
  .benefits-table::-webkit-scrollbar-track,
  .machine-specs-table::-webkit-scrollbar-track {
    background: rgba(247, 231, 181, 0.2);
    border-radius: 4px;
  }
  
  .variants-table::-webkit-scrollbar-thumb,
  .guide-table::-webkit-scrollbar-thumb, 
  .benefits-table::-webkit-scrollbar-thumb,
  .machine-specs-table::-webkit-scrollbar-thumb {
    background: rgba(141, 111, 87, 0.4);
    border-radius: 4px;
  }
  
  .variants-table th,
  .variants-table td,
  .guide-table th,
  .guide-table td, 
  .benefits-table th,
  .benefits-table td,
  .machine-specs-table th,
  .machine-specs-table td {
    min-width: 120px;
    white-space: normal;
  }
  
  .application-item {
    white-space: normal;
    word-wrap: break-word;
  }
}
/* Boutons de formats pour les longueurs */
.format-button {
  display: inline-block;
  background: rgba(247, 231, 181, 0.8);
  color: #22344a;
  border: 2px solid rgba(141, 111, 87, 0.4);
  border-radius: 8px;
  padding: 6px 12px;
  margin: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.format-button:hover {
  background: rgba(141, 111, 87, 0.2);
  border-color: rgba(141, 111, 87, 0.7);
  transform: translateY(-1px);
}

.format-button.special {
  background: linear-gradient(135deg, rgba(34, 52, 74, 0.1), rgba(141, 111, 87, 0.1));
  border-color: rgba(34, 52, 74, 0.5);
  font-style: italic;
}

.format-button.xl {
  background: linear-gradient(135deg, rgba(141, 111, 87, 0.3), rgba(34, 52, 74, 0.2));
  border: 2px solid rgba(34, 52, 74, 0.6);
  font-weight: 700;
  color: #22344a;
}

.format-button.xl:hover {
  background: linear-gradient(135deg, rgba(34, 52, 74, 0.2), rgba(141, 111, 87, 0.3));
  box-shadow: 0 2px 8px rgba(34, 52, 74, 0.2);
}
/* CARROUSEL D'IMAGES RUBANS */
.carousel-container {
  position: relative;
  width: 80%;
  max-width: 900px;
  height: 500px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(141, 111, 87, 0.3);
  background: linear-gradient(135deg, #f7e7b5 0%, #e8d5a3 100%);
}

.carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(141, 111, 87, 0.8);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(141, 111, 87, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Indicateurs de position */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(141, 111, 87, 0.8);
}

.indicator.active,
.indicator:hover {
  background: rgba(141, 111, 87, 1);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-container {
    width: 95%;
    height: 300px;
    margin: 2rem auto;
  }
  
  .carousel-btn {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 250px;
    border-radius: 15px;
  }
  
  .carousel-item {
    border-radius: 15px;
  }
}

