@charset "UTF-8";

/* --- CONFIGURATION --- */
:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #777;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --transition-slow: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}

/* --- HEADER --- */
header {
    padding: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; width: 100%; top: 0; z-index: 100;
    mix-blend-mode: difference;
}

h1 { font-weight: 300; letter-spacing: 0.5rem; text-transform: uppercase; font-size: 1.5rem; }

.socials a {
    color: white; text-decoration: none; margin-left: 20px;
    font-size: 0.9rem; opacity: 0.7; transition: opacity 0.3s ease;
}
.socials a:hover { opacity: 1; }

/* --- LAYOUT --- */
main { flex: 1; display: grid; grid-template-columns: 2fr 1fr; height: 100vh; }

/* --- VISUAL CONTAINER --- */
.visual-container {
    position: relative;
    background: #000;
    overflow: hidden;
}

.visual-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* États initiaux */
#albumCover { z-index: 5; opacity: 1; transform: scale(1.05); }
#mainVideo { z-index: 4; opacity: 0; }

/* Mode Vidéo Activé */
.visual-container.video-mode #albumCover { opacity: 0; z-index: 3; pointer-events: none; transform: scale(1); }
.visual-container.video-mode #mainVideo { z-index: 5; }

/* Dégradé Texte */
.video-gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.8) 100%);
    z-index: 10; pointer-events: none; opacity: 0; transition: opacity var(--transition-slow);
}
.visual-container.video-mode .video-gradient-overlay { opacity: 1; }

/* Titre */
.current-track-info { position: absolute; bottom: 3rem; left: 3rem; z-index: 20; pointer-events: none; }
.current-title { font-size: 3rem; font-weight: 700; opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.current-title.show { opacity: 1; transform: translateY(0); }


/* --- BOUTON LECTURE (LOGIQUE STRICTE) --- */
.play-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 80px; height: 80px;
    border: 1px solid white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 30;
    
    /* PAR DÉFAUT : CACHÉ ET INTOUCHABLE */
    /* C'est ce qui règle le bug de la pochette */
    opacity: 0;
    pointer-events: none; 
    
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

/* CLASSE ACTIVE : Ajoutée par JS quand on bouge la souris */
.play-overlay.visible {
    opacity: 1;
    pointer-events: auto; /* Redevient cliquable */
}

/* Hover sur le bouton lui-même */
.play-overlay:hover { background: rgba(255,255,255,0.1); transform: translate(-50%, -50%) scale(1.1); }

/* Icônes */
.play-icon { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid white; margin-left: 5px; }
.pause-icon { width: 15px; height: 20px; border-left: 5px solid white; border-right: 5px solid white; display: none; }
.playing .play-icon { display: none; }
.playing .pause-icon { display: block; }

/* --- PLAYLIST --- */
.playlist-container {
    padding: 8rem 2rem 2rem 2rem; display: flex; flex-direction: column; justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.05); background: var(--bg-color); z-index: 50;
}
.playlist-title { font-size: 0.8rem; text-transform: uppercase; color: var(--accent-color); margin-bottom: 2rem; letter-spacing: 2px; }
.track-list {
    list-style: none;
    
    /* --- GESTION DU SCROLL --- */
    max-height: 55vh; /* Occupe max 55% de la hauteur de l'écran */
    overflow-y: auto; /* Active le scroll si nécessaire */
    padding-right: 10px; /* Espace pour ne pas coller le texte à la barre */
    
    /* --- L'EFFET "FADE" (MAGIQUE) --- */
    /* Cela rend le bas de la liste transparent pour suggérer la suite */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* --- BARRE DE SCROLL PERSONNALISÉE (MINIMALISTE) --- */

/* Pour Chrome, Safari, Edge */
.track-list::-webkit-scrollbar {
    width: 4px; /* Très fin */
}
.track-list::-webkit-scrollbar-track {
    background: transparent; /* Fond invisible */
}
.track-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1); /* Petit trait gris très sombre */
    border-radius: 4px;
}
.track-list:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3); /* S'éclaire un peu au survol */
}

/* Pour Firefox */
.track-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.track-item {
    padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer;
    display: flex; justify-content: space-between; transition: all 0.4s ease; opacity: 0.5;
}
.track-item:hover { opacity: 0.8; padding-left: 10px; }
.track-item.playing { opacity: 1; border-bottom: 1px solid #fff; padding-left: 15px; }



/* --- MODALE INFOS (SMART & MINIMALIST) --- */
.info-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Fond sombre léger */
    backdrop-filter: blur(20px); /* L'effet "Smart" : flou important */
    -webkit-backdrop-filter: blur(20px); /* Compatibilité Safari */
    z-index: 200;
    
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; /* Caché par défaut */
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-overlay.active {
    opacity: 1; pointer-events: auto;
}

.info-content {
    max-width: 400px;
    padding: 2rem;
    text-align: center;
    transform: translateY(30px); /* Départ légèrement plus bas */
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
    opacity: 0;
}

/* Quand la modale est active, le contenu remonte et apparait */
.info-overlay.active .info-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s; /* Petit délai pour la fluidité */
}

.info-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.info-email {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.info-email:hover {
    border-bottom-color: #fff;
    opacity: 0.8;
}

.info-close {
    margin-top: 3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.info-close:hover { opacity: 1; }

/* --- COPYRIGHT DISCRET --- */
.legal-notice {
    /* Version PC : Fixé en bas à droite */
    position: fixed;
    bottom: 15px;
    right: 25px;
    
    font-size: 0.65rem;      /* Très petit */
    color: var(--text-color);
    opacity: 0.3;            /* Presque transparent (le secret du "discret") */
    letter-spacing: 1px;
    z-index: 150;            /* Au-dessus du fond mais sous la modale */
    pointer-events: none;    /* On peut cliquer au travers si besoin */
    font-family: var(--font-main);
    text-transform: uppercase;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    main { grid-template-columns: 1fr; grid-template-rows: 50vh 1fr; }
    .playlist-container { padding: 2rem; border-left: none; border-top: 1px solid rgba(255,255,255,0.1); overflow-y: auto; }
    .current-track-info { bottom: 1rem; left: 1rem; }
    .current-title { font-size: 1.8rem; }
    header { padding: 1rem; }
    .legal-notice {
        position: static;   /* Il ne flotte plus, il rentre dans le flux */
        text-align: center; /* Centré */
        margin-top: 3rem;   /* Un peu d'espace après la dernière chanson */
        padding-bottom: 1rem;
        opacity: 0.2;       /* Encore plus discret sur mobile */
        width: 100%;
    }
    .track-list {
        max-height: none; /* On laisse la liste s'étendre totalement sur mobile */
        mask-image: none; /* Pas de fondu nécessaire sur mobile */
        -webkit-mask-image: none;
        overflow-y: visible;
    }
}