/* ------------------------
   Général
------------------------ */
.section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* ------------------------
   Slider
------------------------ */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 15px;
}

.carousel-images img {
    display: none;
    width: 100%;
}
.carousel-images img:first-child {
    display: block;
}


.carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.carousel-controls button:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.2);
}

.carousel-controls .prev { left: 10px; }
.carousel-controls .next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.active-dot {
    background: #3498db;
}

/* ------------------------
   Accordéon
------------------------ */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background: #3498db;
    color: #fff;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 18px;
}

.accordion-header:hover { background: #2980b9; }

.accordion-content {
    padding: 15px 20px;
    background: #f4f4f4;
    display: none;
}

.accordion-item.open .accordion-content { display: block; }

/* ------------------------
   Bouton Galerie
------------------------ */
.bloc-text {
    text-align: center;
}

.btn-galerie {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-galerie:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

/* ------------------------
   Vignettes Jeux
------------------------ */
.featured-games {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.games-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.game-thumbnail {
    width: 180px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-thumbnail img { width: 100%; display: block; }

.game-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Détails du jeu */
.game-details {
    display: none;
    margin-top: 30px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.game-details img.game-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-details h5 {
    color: #3498db;
    margin-bottom: 5px;
}

.game-details p { margin-bottom: 10px; line-height: 1.5; }

/* Responsive */
@media screen and (max-width: 768px) {
    .games-flex {
        flex-direction: column;
        align-items: center;
    }
    .game-thumbnail {
        width: 80%;
    }
}
 
