
:root {
    --bg-color: #2b2b2b;        
    --accent-color: #ffdd55;    
    --text-color: #ffffff;      
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Liens */
a {
    color: var(--accent-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1 {
    color: var(--accent-color);  /* jaune #ffdd55 */
    text-align: center;       /* centré */
    font-size: 2.5rem;           /* taille du titre */
    /*margin-right: 100px; */
    margin-top: 70px;             
    font-weight: 700;            
}

/* Titres */
h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    margin-top: 0;
}

/* Boutons */
button {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
button:hover {
    filter: brightness(1.1);
}

/* Input & Textarea */
input, textarea {
    background-color: #3a3a3a;
    color: var(--text-color);
    border: 1px solid #555;
    padding: 8px;
    border-radius: 4px;
}
input:focus, textarea:focus {
    outline: 1px solid var(--accent-color);
}

/* Cartes / blocs */
.card {
    background-color: #343434;
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 15px 0;
}

/* Barre de navigation */
nav {
    background-color: transparent;
    padding: 15px 20px;

    display: flex;
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
}

/* Style de la barre de recherche */
nav input[type="search"] {
    padding: 10px 15px;
    width: 100%;
    max-width: 400px;          /* taille max pour rester responsive */
    color: #fff;
    font-size: 1rem;
}
nav a {
    margin-right: 20px;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #1c1c1c;
    padding: 20px;
    text-align: center;
    color: #ccc;
}

.btn-user img {
    margin-left: 20px; /* espace entre bouton Rechercher et image */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.lp2zic-table {
    color: white;
}

.bouton {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    border: var(--accent-color) solid 2px;
    transition: 0.2s;
}

.bouton:hover {
    background-color: hsl(from var(--accent-color) h s calc(l - 20));
}

.bouton:active {
    background-color: var(--bg-color);
    color: var(--accent-color);
    border: var(--accent-color) solid 2px;
}

.bouton-nav {
    float:right; 
    margin-right:20px; 
    margin-top:20px;
}

.resultat-recherche {
    /*display: block;*/
    padding: 10px;
    font-size: 20px;
}


/*lecteur audio*/

/* === CONTENEUR DU LECTEUR === */
.audio-player {
    background: #343434;
    border-radius: 15px;
    border-width: 10px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    margin-top: 150px;
    align-items: center; 
}
/* === INFORMATIONS DE LA CHANSON === */
.song-info {
    text-align: center;
    margin-bottom: 20px;
}

.song-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.song-artist {
    font-size: 14px;
    color: #666;
}

/* === BARRE DE PROGRESSION === */
.progress-container {
    margin-bottom: 20px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

/* === CONTRÔLES DU LECTEUR === */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffdd55;
    transition: transform 0.2s, color 0.2s;
    padding: 10px;
}

.control-btn:hover {
    transform: scale(1.1);
    color: #764ba2;
}

.play-btn {
    font-size: 40px;
    background: linear-gradient(135deg, #ffdd55 0%, #cfa600 100%);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
}

.play-btn:hover {
    transform: scale(1.05);
}

/* === CONTRÔLE DU VOLUME === */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.volume-icon {
    font-size: 18px;
    color: #667eea;
}

.volume-slider {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    accent-color: var(--accent-color);
    outline: none;
    cursor: pointer;
}