/* Lumidrive 2025 */

@charset "utf-8";
/* CSS Document */

:root {
  --card-bg: rgba(44, 44, 44, 0.9);
  --accent: #ff4500;
}

/* Corps et mise en page */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: #f0f0f0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Bannière pleine largeur */
.banner {
  width: 100%;
  aspect-ratio: 16/5;  /* Ajuste le ratio : 16/5 ≈ 1920x600 */
  overflow: hidden;
}
.banner img, 
.banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

/* Onglets rectangulaires avec barre coulissante */
.tabs {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
  border-bottom: 2px solid #333;
}
.tab {
  position: relative;
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: bold;
  color: #aaa;
  transition: all 0.3s ease;
}
.tab:hover {
  color: var(--accent);
}
.tab.active {
  color: var(--accent);
}
.tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 4px;
  background: var(--accent);
  border-radius: 0;
  transition: all 0.3s ease;
}

/* Contenu des onglets avec effet slide */
.tab-contents { position: relative; overflow: hidden; }

.tab-content {
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.tab-content.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

/* pas d’animation au chargement initial */
.tab-content.no-anim {
  transition: none !important;
}

/* Sections produits */
.product-section{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:flex-start;
  background:var(--card-bg);
  border-radius:12px;
  margin:20px 0;
  box-shadow:0 6px 18px rgba(0,0,0,.6);
  padding:20px;
}
/* Conteneur carrousel en colonne (viewport + miniatures) */
.carousel {
  flex: 1 1 45%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Viewport : seul endroit avec overflow hidden + ratio */
.carousel .viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;      /* hauteur stable */
  background: #000;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,.5);
}

/* Slides dans le viewport */
.carousel .slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.carousel .slides img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flèches positionnées sur le viewport */
.carousel .prev,
.carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;                    /* au-dessus des images */
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}
.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* Miniatures, sous le viewport */
.carousel .thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel .thumbnails img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border .25s;
}
.carousel .thumbnails img.active {
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel { flex: 1 1 100%; max-width: 100%; }
  .carousel .viewport { aspect-ratio: 4 / 3; }
  .carousel .thumbnails img { width: 72px; height: 48px; }
}
/* info produits */
.product-info {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f0f0f0;
  min-width: 300px;
}
/* Données techniques */
.tech-specs {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(60, 60, 60, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.tech-specs h2 {
  margin-top: 0;
  color: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  color: #f0f0f0;
}
table td,
table th {
  border: 1px solid #444;
  padding: 8px;
}
table th {
  background: #333;
  text-align: left;
}

/* Boutons principaux et secondaires */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 10px;
}
.btn:hover {
  background: #ff5c1a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.btn:active {
  background: #e03e00;
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-secondary:active {
  background: #e03e00;
  color: #fff;
}

/* Footer collant */
footer {
  background: #111;
  padding: 20px 0;
  text-align: center;
  color: #aaa;
  margin-top: auto;
}
footer a {
  color: var(--accent);
  margin: 0 10px;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .product-section {
    flex-direction: column;
  }
}

/* Isolux */
.isolux {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(60, 60, 60, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.isolux h2 {
  margin-top: 0;
  color: #fff;
}

.isolux img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  margin: 15px 0;
}

.isolux p {
  margin: 0;
  color: #ccc;
  font-size: 14px;
}
/*----------------------------------- Bandeau cookies------------------------------*/
/*---------------------------------------------------------------------------------*/

/* ✅ Animation d'entrée */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ✅ Bandeau cookies positionné en bas à gauche avec animation */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 320px;
  background-color: #2b2b2b;
  color: white;
  padding: 16px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-family: sans-serif;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.4s ease;
}

/* ✅ Apparition animée */
.cookie-banner.show {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  animation: slideInLeft 0.4s ease forwards;
}

.cookie-banner p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.4;
}

.cookie-banner a {
  color: #ffc107;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-banner button {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  font-size: 14px;
}

#accept-cookies {
  background-color: #28a745;
  color: white;
}

#decline-cookies {
  background-color: #dc3545;
  color: white;
}

/* -------------------------------------------------------------------------- */
/* -----------------------------Button scroll ------------------------------- */
/* -------------------------------------------------------------------------- */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #f13a11;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #171819;
}
html {
  scroll-behavior: smooth;
}

/* ---------------------------------------------------------------------------*/
/* ------------------------- image no clickable ------------------------------*/
/* ---------------------------------------------------------------------------*/
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto; /* on garde les clics normaux si besoin */
}

/* ---------------- Lightbox ---------------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}
.lightbox .close:hover {
  color: #ff4500;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ----------------------------------------------------------------------------------------------*/
/* -------------------------------------------------- Q/R button --------------------------------*/
/* ----------------------------------------------------------------------------------------------*/
/* Accordéon : état fermé par défaut + animation */
.containerQR {
  overflow: hidden;
  max-height: 0;                /* fermé */
  transition: max-height .35s ease;
}

/* Bouton plus confortable et avec chevron animable */
.accordion-btn {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  background-color: #ff6600;       /* ton orange principal */
  color: #fff;                     /* texte blanc */
  padding: .8rem 2.5rem .8rem 1rem;
  font-weight: 600;
  border-radius: .25rem;
  margin: .75rem 0;
  transition: background-color .3s ease, color .3s ease;
  position: relative;
}

/* effet au survol */
.accordion-btn:hover {
  background-color: #e65c00;       /* orange un peu plus foncé au hover */
}

/* état ouvert : optionnel, un peu plus foncé */
.accordion-btn.is-open {
  background-color: #cc5200;
}
