@import url('base.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../image/page_background_bleu.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.music-players-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 0;
}

.music-player{
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.video-player{
    max-width: 1200px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.music-player h1,
.video-player h1 {
    font-family: 'please-write-me-a-song', serif;
    font-size: 2rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.music-player iframe {
    width: 100%;
    height: 400px;
}

.carousel-container {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Pour Firefox */
    scroll-behavior: smooth;
    padding: 0.5rem 0;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari */
}

.video-item {
    flex: 0 0 calc((100% - 20px) / 2); /* 2 vidéos visibles */
    aspect-ratio: 16 / 9; /* Ratio standard */
    border-radius: 12px;
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 0;
    transform: translateY(50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color-light);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.carousel-btn i {
    font-size: 1.5rem;
}

.prev-btn {
    right: 70px;
}

.next-btn {
    right: 20px;
}

@media (max-width: 1024px) {
    .video-item {
        flex: 0 0 calc((100%) / 1); /* 1 vidéo visible */
    }
    .music-players-container {
        grid-template-columns: 1fr;
        place-items: center;
    }

    .music-player,
    .video-player{
        width: 90%;
        max-width: 750px;
    }
}