@charset "UTF-8";

/* Icône d'accès */
.audio-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 10px auto;
    transition: background 0.3s;
    position: absolute;
    transform: translate(-50%, -50%);
}

.audio-icon.used {
    background-color: #4caf50;
}

.audio-icon i,
.audio-symbol {
    font-size: 28px;
    color: #000;
}

/* Platine audio */
.audio-platine {
    display: none;
    position: absolute;
    max-width: 90vw;
    width: min(400px, 90vw);
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px;
    background: #232323;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    z-index: 100;
}

/* Image de couverture */
.cover {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* Spectre audio */
.spectrum {
    width: 100%;
    height: 60px;
    background: black;
    display: block;
    margin-bottom: 10px;
    border-radius: 6px;
}

/* Contrôles */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.controls button {
    padding: 6px 12px;
    font-size: 16px;
    border: none;
    background: #1976d2;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.controls button:hover {
    background: #1565c0;
}

.controls button i {
    font-size: 1.2rem;
}
.controls button {
    pointer-events: auto;
    cursor: pointer;
    z-index: 101; /* au besoin */
}

/* Barre de progression */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #444;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    margin: 5px 0;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #2196f3;
    transition: width 0.1s;
}

/* Responsive pour petits écrans */
@media (max-width: 480px) {
    .controls button {
        flex: 1 1 40%;
        font-size: 14px;
        padding: 6px;
    }

    .audio-platine {
        width: 95vw;
    }
}
