@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')
    
}

* { cursor: url('3D/main.png') 16 16, auto; }

header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 10px;
    margin-bottom: 30px;
    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;
}

#logo-title {
    width: 300px;       
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#logo-title:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 20px;
    padding: 0;
    line-height: 1;
}

header h1 a {
    display: inline-block;
}

body {
    
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    color: #F5F5F5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #CBCDCB;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* grille en 3 colonnes*/
.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;
    overflow: hidden;
}

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

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

/*  playlists  */
.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; 
}



/* deezer 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);
}


.deezer-link::before {
    content: "♪ ";
    margin-right: 5px;
}

.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 {
    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;
}

@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; /* visible sur mobile */
    }

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

    .deezer-player iframe {
        height: 250px;
    }

    .playlist-overlay {
        padding: 10px;
    }

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

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

}

        /* error */
        .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);
        }