
/* Reset & Base */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

/* HEADER — ici juste la partie du texte défilant, le slideshow / image de fond selon ta config */
header {
  position: relative;
  margin-top: 60px; /* si tu as un bandeau fixe */
  color: white;
  text-align: center;
}

/* Texte dans le header */
header h1,
header p {
  position: relative;
  z-index: 1;
  margin: 0.3rem 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
}

/* Section Items */
.items {
  padding: 2rem 1rem;
}

.items h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.item img:hover {
  transform: scale(1.05);
}

.price {
  font-weight: bold;
  color: #0077b6;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.btn-jeux {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: #0077b6;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 119, 182, 0.4);
}

.btn-jeux:hover {
  background-color: #023e8a;
  box-shadow: 0 5px 10px rgba(0, 62, 138, 0.6);
}

/* Section Contact */
.contact {
  background: #eeeeee;
  padding: 2rem 1rem;
  text-align: center;
}

form {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form select,
form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

form button {
  background-color: #0077b6;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #023e8a;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem 1rem;
}

/* Dialog image zoom */
dialog#imageDialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 90%;
  max-height: 90%;
}

dialog#imageDialog img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

dialog#imageDialog button {
  margin-top: 10px;
  background: #0077b6;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Marquee (défilement) */
.marquee {
  width: 100%;
  background-color: #494e50;
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.marquee p {
  display: inline-block;
  animation: scroll-left 15s linear infinite;
  font-weight: bold;
  font-size: 1rem;
  padding-left: 100%;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}











/* ===== MENU MODERNE ===== */
.navbar {
  background-color:  #494e50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 40px; /* sous la marquee */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  font-family: 'Segoe UI', sans-serif;
}

.navbar .logo a {
  font-size: 1.6rem;
  font-weight: bold;
  color: #4a4d4e;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #e9e6e6;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: #eff0f1;
  border-bottom: 2px solid #e9ebec;
}


/* Sous-menu */
.submenu {
  display: none;
  position: absolute;
  top: 2.5rem;
  left: 0;
  background-color:#494e50;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 220px;
  z-index: 1000;
}

.submenu li {
  padding: 0;
}

.submenu a {
  display: block;
  padding: 0.7rem 1rem;
  font-weight: 500;
  color: #333;
}

.submenu a:hover {
  background-color: #f1f1f1;
  color: #0077b6;
}

/* ===== Responsive ===== */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0077b6;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background:#494e50;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    max-height: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .menu li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .submenu {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
    margin-top: 0.9rem;
  }

  .submenu a {
    padding-left: 2rem;
  }

  .menu-icon {
    display: block;
  }
}

/* Nouvelle règle : on ajoute .has-submenu:hover .submenu ET .has-submenu .submenu:hover */
.has-submenu:hover .submenu,
.has-submenu .submenu:hover {
  display: block;
}





.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  
}
.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;

  background-size: cover; /* <- ici ! */
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  background-color: #000; /* ou blanc ou autre */
}
.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(79, 82, 83, 0.9);
  color: rgb(8, 8, 8);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.slide-button:hover {
  background-color: rgba(237, 240, 243, 0.9);
}








/* Conteneur des items */
.item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Image uniforme avec ratio fixe 4:3 (par ex) */
.item img {
  width: 100%;
  aspect-ratio: 4 / 3; /* fixe largeur/hauteur */
  object-fit: cover;   /* crop centré */
  border-radius: 12px;
  transition: transform 0.4s ease;
  will-change: transform;
}


.item1 img {
  width: 100%;
  aspect-ratio: 4 / 3; /* fixe largeur/hauteur */
  object-fit: cover;   /* crop centré */
  border-radius: 12px;
  transition: transform 0.4s ease;
  will-change: transform;
}




.item img:hover {
  transform: scale(1.1);
}

/* Titre + description dans item */
.item h3 {
  margin: 1rem 0 0.5rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: #185a9d;
}

.item p {
  flex-grow: 1;
  font-size: 1rem;
  color: #555555;
  margin-bottom: 1rem;
}

/* Prix */
.price {
  font-weight: 700;
  color: #43cea2;
  font-size: 1.2rem;
  margin-top: auto;
}

/* Pour garder un bon espacement dans la grille */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .item {
    padding: 0.8rem;
  }
  .item h3 {
    font-size: 1.1rem;
  }
  .price {
    font-size: 1.1rem;
  }
}






/* Animation d'apparition progressive */
.pre-appear {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Modal image - transition */
dialog#imageDialog {
  opacity: 0;
  transition: opacity 0.3s ease;
}

dialog#imageDialog.visible {
  opacity: 1;
}
