/* =================== RESET DE BASE =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  line-height: 1.5;
}

/* =================== HEADER / BANNIERE =================== */
header.banner {
  width: 100%;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

header.banner img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* =================== LAYOUT GLOBAL =================== */
.layout {
  display: flex;
  min-height: calc(100vh - 70px);
  gap: 1rem;
}

/* =================== SIDEBAR GAUCHE =================== */
.sidebar {
  width: 260px;
  padding: 1rem;
  background: #f8f8f8;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: max-content;
}

.sidebar input[type="text"],
.sidebar select {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar input[type="text"]:focus,
.sidebar select:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 4px rgba(0,119,204,0.3);
}

.sidebar label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
  color: #333;
}

.sidebar h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

/* =================== CONTENU PRINCIPAL =================== */
main {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
  background-color: #fff;
}

/* GRILLE PRODUITS */
#productList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* CARTE PRODUIT */
.product {
  background: #fffefc;
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.6s, transform 0.6s;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

.product.show { opacity: 1; transform: translateY(0); }

.product:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 12px rgba(0,0,0,0.12); }

.product img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 0.8rem; }

.product .type { font-weight: bold; color: #555; margin-bottom: 0.4rem; font-size: 0.9rem; }
.product .game { font-size: 1rem; margin-bottom: 0.3rem; color: #222; }
.product .console { font-size: 0.85rem; color: #777; }

/* BADGE NOUVEAUTÉ */
.new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ff4757;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* =================== FOOTER ACCORDÉON =================== */
.footer-accordion {
  background: #111;
  color: #eee;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #333;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  color: #0ff;
  font-size: 1.1rem;
  text-align: left;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.accordion-header::after {
  content: "+";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header {
  color: #ff4de1;
}

.accordion-item.active .accordion-header::after {
  content: "-";
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  padding: 0 1rem;
}

.accordion-item.active .accordion-content {
  max-height: none;
  opacity: 1;
  padding: 1rem;
}

/* Logos boutiques */
.boutiques-logos .logo-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.boutiques-logos .logo-container img {
  max-width: 100px;
  height: auto;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.boutiques-logos .logo-container img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,255,255,0.5);
}

/* =================== AJOUTS CHATGPT LOGOS ACHATS=================== */

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.marketplace-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.marketplace-links img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: 0.2s ease;
}

.marketplace-links img:hover {
  opacity: 1;
  transform: scale(1.1);
}



/* =================== VIDÉOS TUTOS =================== */
.videos-tutos .videos-wrapper {
  width: 100%;
  overflow: hidden; /* supprime tous les ascenseurs */
  padding-right: 0.5rem;
}

.videos-tutos .video-thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.videos-tutos .video-thumbnails img {
  flex: 1 1 120px;
  max-width: 120px;
  height: auto;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.videos-tutos .video-thumbnails img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,255,255,0.5);
}

/* =================== LIGHTBOX =================== */
#lightbox {
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
}

#lightbox.hidden { display: none; }
#lightbox img, #lightbox video { max-width: 90%; max-height: 80%; border-radius: 6px; }

#lbControls { margin-top: 1rem; }
#lbControls button { padding: 0.5rem 1rem; margin: 0 1rem; font-size: 1.2rem; cursor: pointer; }
#lbClose { position: absolute; top: 10px; right: 20px; font-size: 2rem; color: white; cursor: pointer; }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; position: relative; top: auto; align-self: stretch; height: auto; margin-bottom: 1rem; }
  main { padding: 1rem; }
  #productList { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
  header.banner img { max-height: 120px; }
}

@media (max-width: 768px) {
  .videos-tutos .video-thumbnails img { flex: 1 1 45%; max-width: none; }
}

@media (max-width: 480px) {
  .videos-tutos .video-thumbnails img { flex: 1 1 90%; max-width: none; }
}
/* Style pour les icônes réseaux sociaux identique aux boutiques */
.social-logos .logo-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.social-logos .logo-container img {
  max-width: 100px; /* même taille que les logos boutiques */
  height: auto;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.social-logos .logo-container img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,255,255,0.5);
}
/* Container général des avis */
.reviews-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px; /* hauteur max pour ne pas étirer l'accordéon */
  overflow-y: auto; /* scroll vertical si beaucoup d'avis */
  padding-right: 0.5rem; /* pour éviter que le texte touche le bord */
}

/* Style individuel d’un avis */
.review {
  background-color: #222; /* sombre pour le contraste avec le texte */
  color: #eee;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,255,255,0.3); /* effet léger néon comme boutiques */
}

.review-text {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.review-author {
  font-size: 0.85rem;
  font-weight: bold;
  text-align: right;
  color: #0ff; /* bleu néon comme les titres accordéon */
}

/* Responsive */
@media (max-width: 600px) {
  .reviews-wrapper {
    max-height: 300px; /* réduit la hauteur sur mobile */
  }
}
.about-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #eee; /* pour contraster avec le fond sombre de l'accordéon */
  font-size: 0.95rem;
}
.legal-text h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #0ff; /* bleu néon accordéon */
  font-size: 1rem;
}

.legal-text p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #eee;
  font-size: 0.95rem;
}

.legal-text a {
  color: #0ff;
  text-decoration: underline;
}

.legal-text a:hover {
  color: #ff4de1; /* rose néon accordéon au hover */
}
.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px; /* largeur fixe du container */
}

.video-item img {
  width: 100%;       /* prend la largeur du container */
  height: auto;      /* garde le ratio original */
  object-fit: contain; /* optionnel : force le contenu à ne pas être étiré */
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,255,255,0.5);
}

.video-title {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #eee;
  text-align: center;
  word-break: break-word;
  width: 100%;  /* le texte reste dans le container */
}

/* Responsive tablette */
@media (max-width: 768px) {
  .video-item {
    width: 45%; /* 2 vidéos par ligne */
  }
}

/* Responsive mobile */
@media (max-width: 480px) {
  .video-item {
    width: 90%; /* 1 vidéo par ligne */
  }
}
