/* ========== Importation des polices ========== */
@font-face {
    font-family: 'Borel' ;
    src: url('fonts/Borel-Regular.ttf')
    
}

@font-face {
    font-family: 'Roboto' ;
    src: url('fonts/Roboto-Regular.ttf')
    
}

@font-face {
    font-family: 'Geist' ;
    src: url('fonts/Geist-VariableFont_wght.ttf')
    
}

/* ========== Global Styles ========== */
header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 20px;
    text-align: center;
    height: 10vh;
    flex-shrink: 0;
    font-size: 1.5rem;

}

h1 {
     font-family: 'Borel';
    text-align: center;
    color: #F5F5F5;
    
}
h2 {
     font-family: 'Borel';
    text-align: center;
    color: #ffff00;
    font-size: 2rem;
}

body {
    
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: #425EA2;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #6495ED;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    cursor: url('3D/curseur.png'), auto;
}

/* ========== Masonry Layout avec Grid en 3 colonnes fixes sur grand écran ========== */
.masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
}

.masonry-item {
    background-color: transparent;
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.caption {
    text-align: center;
    margin-top: 10px;
}

/* ========== Playlist Styles ========== */
.playlist-cover {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-cover:hover .playlist-overlay {
    opacity :1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.playlist-date {
    background-color: rgba(255, 255, 0, 0.9);
    color: #425EA2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Geist', sans-serif;
}

.deezer-logo {
    background-color: rgba(255, 255, 255, 0.9);
    color: #425EA2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

/* Texte du dépliant */
.extra-content {
    display: none;
    margin-top: 15px;
    width: 90%;
    max-width: 350px;
    margin: 15px auto 0;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
}

.masonry-item.open .extra-content {
    display: block;
}

.gallery {
    flex: 1; /* Le contenu occupe tout l'espace restant */
}



/* ========== Deezer Player Styles ========== */
.deezer-player {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deezer-player iframe {
    border-radius: 12px;
    background-color: #1a1a1a;
}

.playlist-links {
    margin-top: 15px;
    text-align: center;
}

.deezer-link {
    display: inline-block;
    background: linear-gradient(45deg, #ff6600, #ff9900);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Geist', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.deezer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    background: linear-gradient(45deg, #ff7700, #ffaa00);
}

.deezer-link:active {
    transform: translateY(0);
}

/* Style alternatif pour les liens Deezer */
.deezer-link::before {
    content: "♪ ";
    margin-right: 5px;
}

/* ========== Loading States ========== */
.loading {
    text-align: center;
    color: #F5F5F5;
    font-style: italic;
    opacity: 0.7;
    padding: 20px;
}

.error {
    text-align: center;
    color: #ff6b6b;
    font-style: italic;
    padding: 20px;
}

/* ========== Footer ========== */
footer {
    background-color: rgba(0, 0, 0, 0);
    font-family: Borel, sans-serif;
    color: #F5F5F5;
    text-align: center;
    padding-top: 10px;
    height: 10vh;
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: auto;
}

/* ========== Responsive pour Mobile ========== */
@media (max-width: 768px) {
   
    header {
        flex-shrink: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        font-size: 1.5rem;
    }
    
    .masonry {
        grid-template-columns: 1fr;
    }
    
    footer {
        font-size: 0.85rem;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
        margin-top: auto;
        width: 100%;
        flex-shrink: 0;
        padding: 0;
    }

    .playlist-overlay {
        opacity: 1; /* Toujours visible sur mobile */
    }

    .extra-content {
        width: 95%;
        max-width: none;
    }

    .deezer-player iframe {
        height: 250px; /* Plus compact sur mobile */
    }

    .playlist-overlay {
        padding: 10px;
    }

    .playlist-date {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .deezer-logo {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

}

        /* ========== Loading & Error States ========== */
        .loading {
            text-align: center;
            color: #F5F5F5;
            font-style: italic;
            opacity: 0.7;
            padding: 20px;
        }

        .error {
            text-align: center;
            color: #ff6b6b;
            font-style: italic;
            padding: 20px;
            background-color: rgba(255, 0, 0, 0.1);
            border-radius: 10px;
            border: 1px solid rgba(255, 0, 0, 0.3);
        }