/* --- IMPORTATION POLICE IBM PLEX MONO --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

:root { 
    --yzy-font: 'IBM Plex Mono', monospace; 
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-font-smoothing: antialiased; 
}

body { 
    font-family: var(--yzy-font); 
    background-color: #ff0000; /* Fond rouge */
    color: #000; 
    font-weight: 400; 
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- ANIMATION DES FLEURS (RÉAJOUTÉ) --- */
#flower-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.pop-flower {
    position: absolute;
    pointer-events: none;
    animation: flowerPop 1.5s ease-out forwards;
}

@keyframes flowerPop {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

/* --- PANIER --- */
.cart-btn { 
    position: fixed; 
    top: 25px; 
    right: 25px; 
    z-index: 1000; 
    color: #000; 
}

/* --- LAYOUT --- */
main { 
    max-width: 700px; 
    margin: 40px auto 180px; 
    padding: 0 20px; 
}

/* --- HEADER --- */
.album-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

.main-cover { 
    width: 280px; 
    height: 280px; 
    object-fit: cover; 
    margin-bottom: 30px; 
}

.info h1 { 
    font-size: 2.8rem; 
    font-weight: 700; 
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.artist { 
    font-size: 1.2rem; 
    font-weight: 400; 
    text-transform: uppercase;
}

.distro { 
    font-size: 0.8rem; 
    font-weight: 400; 
    color: #000; /* YZY en Noir */
    margin-top: 8px; 
    text-transform: uppercase;
}

/* --- TRACKLIST --- */
.track-item { 
    display: flex; 
    align-items: center; 
    padding: 18px 10px; 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    cursor: pointer; 
    font-size: 1rem; 
    color: #000;
    transition: background 0.2s, color 0.2s;
}

/* Sélection & Hover : Fond Noir, Texte Rouge */
.track-item:hover, .track-item.active { 
    background: #000; 
    color: #ff0000; 
}

.track-item.active { 
    font-weight: 700; 
}

.t-num { 
    width: 45px; 
    color: #000; /* Chiffres en Noir */
    transition: color 0.2s;
}

/* Chiffre devient rouge au survol ou si actif */
.track-item:hover .t-num, .track-item.active .t-num {
    color: #ff0000;
}

.t-title { 
    text-transform: uppercase; 
}

/* --- LECTEUR PILL NOIR --- */
.player-container {
    position: fixed;
    bottom: 35px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    z-index: 1000;
}

.bullet-player {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 30px;
    border-radius: 100px;
    gap: 25px;
    width: 100%;
    max-width: 550px;
    height: 65px;
}

.player-controls { 
    display: flex; 
    align-items: center; 
    gap: 18px; 
}

.ctrl-icon { 
    background: none; 
    border: none; 
    color: #fff; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 22px;
    height: 22px;
}

.ctrl-icon svg {
    transform: scale(1.2);
}

.hidden { 
    display: none !important; 
}

.player-meta { 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    min-width: 0;
}

#track-title-display { 
    font-size: 12px; 
    font-weight: 700; 
    text-transform: uppercase; 
    margin-bottom: 6px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container { 
    width: 100%; 
    display: flex; 
    align-items: center; 
    height: 12px; 
}

#progress-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    outline: none;
}

#progress-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px; 
    background: rgba(255, 255, 255, 0.2);
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #ffffff;
    margin-top: -5px; 
}

/* --- FOOTER YEEZY STYLE --- */
.yzy-footer-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000; /* Par-dessus tout */
    font-family: var(--yzy-font);
}

.footer-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    padding: 10px;
    display: block;
}

.footer-content {
    background: #fff; /* Fond blanc comme sur l'image */
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 20px;
    border-radius: 2px;
}

.footer-content.hidden {
    display: none;
}

.close-x {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
}

.footer-nav {
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* --- FOOTER YEEZY STYLE (TRANSPARENT) --- */
.yzy-footer-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    font-family: var(--yzy-font);
}

.footer-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    padding: 10px;
    display: block;
    transition: transform 0.2s;
}

.footer-content {
    background: none; /* Supprimé le blanc */
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 20px;
}

.footer-content.hidden {
    display: none;
}

.close-x {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    color: #000;
}

.footer-nav {
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* --- CURSEUR TOTAL --- */
* {
    cursor: url('flowers.png') 16 16, auto !important;
}

/* On force aussi sur les liens et boutons qui ont souvent leur propre curseur */
a, button, [role="button"], .track-item {
    cursor: url('flowers.png') 16 16, pointer !important;
}

/* --- ÉCRAN DE CHARGEMENT --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ff0000; /* Fond rouge */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000; /* Par-dessus tout */
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-flower {
    width: 60px; /* Taille de la fleur qui charge */
    animation: spin 2s linear infinite; /* Elle tourne à l'infini */
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cacher le site pendant le chargement */
.loaded #loading-screen {
    opacity: 0;
    visibility: hidden;
}