/* Notre Référence Slideshow Styles */
.slideshow-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slideshow-wrapper {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.slideshow {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.slide-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: 100%;
}

.slide-item {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio for all devices */
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slide-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.navigation {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.nav-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: #555;
}

/* Media query for mobile (phone) */
@media (max-width: 767px) {
    .slide-item {
        width: 95%;
        max-width: none;
        margin: 0 auto;
    }
    
    .slide-content {
        justify-content: center;
    }
}

/* Media query for PC */
@media (min-width: 768px) {
    .slide-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .slide-item {
        padding-bottom: 100%; /* Same square aspect ratio as mobile */
        margin: 0 auto;
    }
}