/* ================================================= */
/* TEST MA COMPO — STYLE PRO MUSIC STUDIO */
/* ================================================= */

/* ========================= */
/* VARIABLES CSS */
/* ========================= */
:root {
    --bg-main: #0d021f;
    --bg-card: rgba(0, 0, 0, 0.75);
    --bg-card-light: rgba(255,255,255,0.05);
    --primary: #ffdd57;
    --secondary: #9b5cff;
    --danger: #e74c3c;
    --text-main: #ffffff;
    --text-muted: #cfcfcf;
    --radius: 12px;
}

/* ========================= */
/* RESET & BASE */
/* ========================= */
* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    min-height: 50vh;
    background:
        linear-gradient(rgba(10,0,30,0.5), rgba(10,0,30,0.8)),
        url("../images/bg-studio.jpg") center/cover no-repeat fixed;
}

a { color: inherit; text-decoration: none; }

/* ========================= */
/* CONTAINER */
/* ========================= */
.container {
    width: 95%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 10px 10px;
}

/* ========================= */
/* STUDIO LAYOUT (2 colonnes) */
/* ========================= */
.studio-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.studio-left {
    flex: 1;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.studio-right {
    flex: 2;
    background: transparent;
}

/* Studio menu */
.studio-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 5px;
}

.studio-left .studio-menu .logout {
    width: auto;
    text-align: left;
}

.header-fixe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #222;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 10px; /* petit espace entre les colonnes */
}

/* Colonnes */
.header-col {
    display: flex;
    align-items: center;
}

/* Largeurs personnalisables */
.header-left {
    width: 25%;  /* Titre */
    justify-content: flex-start;
}

.header-center {
    width: 50%;  /* Avertissement */
    justify-content: center;
    text-align: center;
}

.header-right {
    width: 25%;  /* Bouton retour */
    justify-content: flex-end;
}


/* ========================= */
/* CARDS & FORMULAIRES */
/* ========================= */
.card, form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
}

form { display: flex; flex-direction: column; gap: 12px; }

input, select {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--bg-card-light);
    color: var(--text-main);
    font-size: 15px;
}

input::placeholder { color: #aaa; }

input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary);
}

/* ========================= */
/* BOUTONS */
/* ========================= */
button, .logout {
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

button {
    background: linear-gradient(135deg, var(--primary), #ffd000);
    color: #000;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,221,87,0.35);
}

.logout {
    background: linear-gradient(135deg, var(--secondary), #2a1668);
    color: white;
}

.logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155,92,255,0.4);
}

/* Bouton supprimer */
.btn-supprimer {
    background: linear-gradient(135deg, var(--danger), #ff3b3b);
    color: white;
    padding: 8px 14px;
    font-size: 14px;
}

.btn-supprimer:hover {
    box-shadow: 0 0 12px rgba(231,76,60,0.6);
}

/* ========================= */
/* TITRES & NEON EFFECT */
/* ========================= */
h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
}

h1 { 
    font-size: 32px; 
    text-shadow: 0 0 8px rgba(255,221,87,0.4), 0 0 20px rgba(155,92,255,0.3);
}

h2 { font-size: 32px; }
h3 { font-size: 24px; }

.neon-title {
    color: var(--primary);
    text-shadow: 0 0 5px #ffdd57, 0 0 10px #ffdd57, 0 0 20px #9b5cff;
}

/* ========================= */
/* LISTE DES COMPOS & DETAILS */
/* ========================= */
ul { list-style: none; padding: 0; }

li {
    background: linear-gradient(145deg, #14002b, #0b0018);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 6px 18px rgba(0,0,0,0.6);
    transition: transform 0.2s ease;
}

li:hover { transform: scale(1.01); }

.morceau-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.titre-morceau {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.titre-morceau:hover { color: var(--primary); }

.details-mobile {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.6);
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================= */
/* AUDIO */
/* ========================= */
audio {
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
}

.mes-compos-container {
    min-height: 200px;
    overflow-y: auto;
}

/* ========================= */
/* RESPONSIVE / MOBILE & TABLETTE */
/* ========================= */
@media screen and (max-width: 768px) {

    .studio-layout { flex-direction: column; }
    .studio-left, .studio-right { max-width: 100%; }

    .studio-left .studio-menu .logout, button { width: 100%; }

    .container { width: 100%; padding: 10px; }

    .morceau-ligne { flex-direction: column; align-items: flex-start; }

    h1 { font-size: 34px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }

    body { background-attachment: scroll; }
}

/* Menu déroulant style musical */
select[name="style"], select {
    background-color: rgba(0, 0, 0, 0.85); /* fond noir semi-transparent */
    color: #ffffff;                          /* texte blanc */
    border: 1px solid #555;                  /* contour gris foncé */
    padding: 10px;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
}

select[name="style"] option {
    background-color: #0d021f; /* fond noir pour les options */
    color: #ffffff;            /* texte blanc pour les options */
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colonnes */
    gap: 15px; /* espace entre boutons */
    margin-top: 20px;
}

.style-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #9b5cff, #ffdd57);
    color: #000;
    font-weight: 700;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.style-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(155,92,255,0.4);
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .styles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
        gap: 10px;
    }
}

/* Bouton Retour au studio - spécifique à je_donne_mon_avis.php */
.btn-retour {
    display: block;
    width: max-content;      /* largeur du texte */
    margin: 30px auto 20px auto; /* centré horizontalement et marge haut/bas */
    padding: 12px 25px;
    background: linear-gradient(135deg, #ffffff, #3dff02);
    color: #000;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-retour:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(155,92,255,0.4);
}

.morceau-audio audio {
    width: 100%;
    max-width: 300px;
}

.morceau-audio {
    padding-left: 10px;
}

.morceau-notes {
    padding-left: 15px;
}

.bloc-commentaire-zone textarea {
    min-width: 260px;
    font-size: 16px;
}

.morceau-avis {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars label {
    display: inline-block;
    cursor: pointer;
    color: #ccc;
    font-size: 18px;
    margin-right: 3px;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
    color: var(--primary);
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    resize: vertical;
}

.submit-btn {
    width: max-content;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #06ff1b);
    color: #000;
    font-weight: 700;
    cursor: pointer;
}



/* Bouton Retour */
.retour-studio-header {
    padding: 8px 50px;
    background-color: #eccb5f;
    color: #000000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.7s ease;
}

.retour-studio-header:hover {
    background-color: #0cbe15;
    transform: translateY(-5px);
}

/* Message d'avertissement */
.avertissement-global {
    font-size: 16px;
    color: #ee7411;
}


.morceau-container {
    display: grid;
    grid-template-columns: 320px 1.2fr 1.6fr auto;
    gap: 20px;
    align-items: stretch;
    padding: 20px;
}

/* BLOCS */
.bloc-audio audio {
    width: 100%;

}

.code-morceau {
    margin-top: 8px;
    font-size: 0.85em;
    opacity: 0.8;
}

.bloc-notes {
    width: 100%;
}

.bloc-commentaire textarea {
    width: 100%;
    resize: vertical;
}

/* FORM ALIGNEMENT */
.bloc-form {
    display: contents; /* permet au form de respecter la grid */
}

@media (max-width: 900px) {
    .morceau-container {
        grid-template-columns: 1fr;
    }

    .btn-envoyer {
        width: 100%;
        margin-top: 10px;
    }
}
.bloc-commentaire-zone {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 100%;
}
.btn-envoyer {
    height: 44px;
    align-self: center;
    padding: 0 16px;
    font-size: 14px;
}
.pagination {
    display: flex;
    justify-content: center;   /* centrage horizontal */
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px;
}

/* Boutons de pagination */
.pagination a {
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;

    background: rgba(243, 208, 7, 0.932);
    color: #000000;
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;

    transition: all 0.2s ease;
}
/* Cacher les inputs radio */
.stars input[type="radio"] {
    display: none;
}

/* Styles pour les labels étoiles */
.stars label {
    font-size: 1.5rem;  /* taille de l'étoile */
    color: #ccc;        /* couleur inactive */
    cursor: pointer;
    margin-right: 2px;
}

.stars {
    display: flex;
    flex-direction: row-reverse; /* inverse l’affichage */
    margin-right: 300px;
}

/* Changer la couleur quand sélectionné */
.stars input[type="radio"]:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
    color: gold;  /* couleur active */
}
.critere {
    display: left;
    flex-direction: column; /* force le label au-dessus */
    margin-bottom: 10px;
    color: #2deb07;

}

.critere label {
    margin-bottom: 5px; /* petit espace avant les étoiles */
}





.studio-right {
    padding: 20px;
}

.section-title {
    margin-bottom: 20px;
}

.stat-morceau {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.morceau-titre {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

/* Ligne unique sous le titre */
.morceau-infos {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 18px;
    color: #ddd;
    flex-wrap: wrap;
}

.morceau-infos .info {
    white-space: nowrap;
}

.morceau-infos .note {
    color: #2adb13;
}

.morceau-infos .nb-avis {
    font-size: 15px;
    opacity: 0.8;
}

.detail-link {
    margin-left: auto;
    color: #4CAF50;
    font-weight: 400;
    text-decoration: none;
    font-size: 20px;
}

.detail-link:hover {
    text-decoration: underline;
}


.bloc-commentaire-zone {
    display: flex;
    flex-direction: column;
    gap: 20px; /* espace entre les zones */
}

.bloc-commentaire-zone .comment-section {
    display: flex;
    flex-direction: column;
}

.bloc-commentaire-zone textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #4bf00a;
    resize: vertical;
    font-size: 14px;
}

.comment-section label {
    color: #62e60b; /* Exemple : orange */
}
.admin-button-container .logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
}