/* --- NOUVEAU : Styles pour la vidéo de fond --- */
#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Derrière tout le contenu */
    background-color: #000; /* Fond noir si la vidéo ne charge pas */
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.5s ease-in;
    
    /* AJOUTÉ : Styles pour l'image de fond */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    /* AJOUTÉ : Applique le filtre au conteneur (pour l'image) */
    filter: grayscale(20%) brightness(0.4);
}

/* MODIFIÉ : S'active pour la vidéo OU l'image */
body.video-active #video-container,
body.image-active #video-container {
    opacity: 1;
}

#artist-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit l'écran sans déformer */
    
    /* MODIFIÉ : Le filtre est sur le conteneur, pas sur la vidéo */
    /* filter: grayscale(20%) brightness(0.4); */ 
    
    /* AJOUTÉ : Doit être un bloc */
    display: block;
}

/* AJOUTÉ : Cache la balise <video> si on affiche une image */
body.image-active #artist-video {
    display: none;
}


/* --- Styles existants --- */
body {
    height: 100vh;
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'VT323', monospace;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
    box-sizing: border-box;
    padding-top: 10vh;
    transition: padding-top 0.4s ease-out;
}

body.profile-active {
    padding-top: 5vh;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    transition: max-width 0.4s ease-out;
}

body.profile-active .container {
    max-width: 1000px;
}

#grid-view {
    opacity: 1;
    position: relative;
    visibility: visible;
    transition: opacity 0.4s ease-out, visibility 0s linear 0s;
}

body.profile-active #grid-view {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0s linear 0.4s;
}

.nav-back {
    display: block;
    margin-bottom: 30px;
    font-size: 1.6em;
    color: #888;
    text-decoration: none;
    letter-spacing: 3px;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.nav-back:hover {
    color: #fff;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.artist-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-column h2 {
    font-size: 1.5em;
    text-align: center;
    padding: 0;
    margin: 0 0 10px 0;
    color: #fff;
    background: none;
    width: 70%;
}

.artist-card {
    border: 2px solid #fff;
    background: #000;
    cursor: pointer;
    width: 70%;
    font-size: 0;
    transition: filter 0.4s ease-out, opacity 0.4s ease-out;
}

.artist-card img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0%); /* Ta valeur, pas touché */
    transition: filter 0.4s ease-out, opacity 0.4s ease-out;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.profile-active .artist-card:not(.selected) {
    opacity: 0;
}

body.profile-active .artist-card.selected img {
     filter: grayscale(100%) blur(8px); /* Ta valeur, pas touché */
     opacity: 0.6;
}

#profile-view {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 5vh;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    transition: opacity 0.4s 0.3s ease-in;
}

body.profile-active #profile-view {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #fff;
    filter: grayscale(0%); /* Ta valeur, pas touché */
    opacity: 0.7; /* Translucidité de l'image */
}

.profile-terminal {
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.7); /* Fond translucide */
}

.terminal-header {
    background: #fff;
    color: #000;
    padding: 5px 10px;
    font-size: 1.2em;
    border-bottom: 2px solid #fff;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#profile-bio-text {
    font-size: 1.5em;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    color: #fff;
    height: 200px;
    overflow-y: auto;
}

#profile-bio-text + .typed-cursor {
    color: #fff;
    opacity: 1;
    animation: blink 0.7s infinite;
}

.artist-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.artist-links a {
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    text-decoration: none;
    border: 2px solid #fff;
    color: #fff;
    padding: 2px 10px;
    transition: all 0.3s;
}

.artist-links a:hover {
    background: #fff;
    color: #000;
}

/* --- Responsive pour mobile --- */

@media (max-width: 640px) { /* Applique ces styles sur les écrans de 640px ou moins */

    /* Remonte un peu plus le contenu sur mobile */
    body {
        padding-top: 5vh; 
    }
    body.profile-active {
        padding-top: 5vh; /* Garde le même padding pour le profil */
    }

    /* Le container prend presque toute la largeur */
    .container {
        width: 95%;
        max-width: 95%; /* Annule la limite de 900px */
    }
    body.profile-active .container {
        max-width: 95%; /* Annule la limite de 1000px */
    }

    /* La grille passe à une seule colonne */
    .artist-grid {
        grid-template-columns: 1fr; 
        gap: 50px; /* Augmente l'espace vertical entre les artistes */
    }

    /* Le nom prend plus de largeur */
    .artist-column h2 {
        width: 90%; /* Prend 90% de la largeur de la colonne */
    }

    /* La carte (image) prend plus de largeur */
    .artist-card {
        width: 90%; /* Prend 90% de la largeur de la colonne */
    }

    /* La bio prend plus de largeur (si jamais elle était limitée) */
    /* .artist-bio { ... } */ /* Cette classe n'est plus utilisée pour le layout */

    /* Ajustements pour la vue profil sur mobile */
    .profile-content {
        grid-template-columns: 1fr;
    }
    .profile-image {
        margin-bottom: 30px;
    }
    #profile-bio-text {
        height: auto;
        max-height: 250px;
    }

} /* Fin de la media query */