/* portraits.css — styles des modales réutilisés depuis search-ad.html
   (la base .info-modal / .new-close-btn provient de modal-fix.css). */

/* ─── Modale Biographie ─────────────────────────────────────────── */
.bio-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(80,0,0,0.85) 0%, rgba(20,20,40,0.90) 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.bio-modal-content {
    background: #3a3a3a;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.bio-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #2a2a2a;
    border-bottom: 1px solid #555;
}
.bio-modal-title {
    margin: 0;
    color: #f0c040;
    font-size: 1rem;
    font-weight: 600;
}
.bio-modal-body {
    overflow-y: auto;
    padding: 1rem;
    flex: 1;
}
.bio-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #2a2a2a;
    border-top: 1px solid #555;
    text-align: center;
}
/* Layout deux colonnes */
.bio-two-col {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.bio-col-left {
    flex: 0 0 auto;
    text-align: center;
    width: 120px;
}
.bio-photo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0c040;
    margin: 0 auto 0.5rem;
}
.bio-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bio-composer-name {
    color: #f0c040;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.2;
}
.bio-col-right {
    flex: 1;
    min-width: 0;
}
.bio-section-label {
    color: #f0c040;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    margin-top: 0.6rem;
}
.bio-col-right .bio-section-label:first-child { margin-top: 0; }
.bio-quote, .bio-testimony {
    color: #ddd;
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}
.bio-text {
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.6;
    border-top: 1px solid #555;
    padding-top: 0.8rem;
}
@media (max-width: 480px) {
    .bio-two-col { flex-direction: column; align-items: center; }
    .bio-col-left { width: 100%; }
}
@media (min-width: 481px) {
    .bio-photo-circle { width: 200px; height: 200px; }
    .bio-col-left { width: 220px; }
}

/* ─── Modale Œuvre (À PROPOS / INTERPRÉTATION) ──────────────────── */
/* Même habillage que la modale Biographie, teinte d'accent différente. */
.oeuvre-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,60,50,0.88) 0%, rgba(20,20,40,0.92) 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.oeuvre-modal-content {
    background: #3a3a3a;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.oeuvre-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #2a2a2a;
    border-bottom: 1px solid #555;
}
.oeuvre-modal-title {
    margin: 0;
    color: #0FB89F;
    font-size: 1rem;
    font-weight: 600;
}
.oeuvre-modal-body {
    overflow-y: auto;
    padding: 1rem;
    flex: 1;
}
.oeuvre-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #2a2a2a;
    border-top: 1px solid #555;
    text-align: center;
}
/* En-tête interne : compositeur + titre de l'œuvre */
.oeuvre-composer-name {
    color: #0FB89F;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}
.oeuvre-work-title {
    color: #e8e8e8;
    font-weight: 600;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 0.9rem;
}
.oeuvre-section-label {
    color: #0FB89F;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    margin-top: 0.6rem;
}
.oeuvre-section-label:first-child { margin-top: 0; }
.oeuvre-text {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
}
/* Ligne séparatrice entre À PROPOS et INTERPRÉTATION */
.oeuvre-divider {
    border: 0;
    border-top: 1px solid #555;
    margin: 1rem 0;
}
.oeuvre-empty {
    color: #ccc;
    padding: 1rem 0;
}

/* ─── Modale Partition ───────────────────────────────────────────── */
.partition-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,40,80,0.90) 0%, rgba(20,20,40,0.95) 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.partition-modal-content {
    background: #2a2a2a;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}
.partition-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #1a1a2e;
    border-bottom: 1px solid #444;
    flex-shrink: 0;
}
.partition-modal-title {
    margin: 0;
    color: #f0c040;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.partition-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.partition-action-btn {
    background: #3a3a5a;
    border: none;
    color: #ddd;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.partition-action-btn:hover { background: #555580; }
.partition-modal-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #3a3a3a;
    gap: 0.5rem;
}
#partition-canvas {
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    background: #fff;
}
.partition-loading {
    color: #ccc;
    text-align: center;
    padding: 2rem;
}
.partition-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: #1a1a2e;
    border-top: 1px solid #444;
    flex-shrink: 0;
}
.partition-page-info {
    color: #ddd;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

/* ─── Modale « Écoute et partition » ─────────────────────────────── */
.score-direct-body {
    text-align: center;
    padding: 18px 16px 24px;
}
.score-direct-composer-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    background: #fff;
    border: 2px solid #eee;
}
/* Le portrait devient cliquable (ouvre la biographie) */
.score-direct-composer-img[role="button"] {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.score-direct-composer-img[role="button"]:hover {
    transform: scale(1.04);
    border-color: #f0c040;
}
.score-direct-composer {
    color: yellow;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 6px;
    line-height: 1.3;
}
.score-direct-title {
    color: yellow;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 22px;
    line-height: 1.35;
    padding: 0 8px;
}
.score-direct-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}
.score-direct-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.15s ease;
    line-height: 0;
}
.score-direct-icon-btn:hover { transform: scale(1.06); }
.score-direct-icon-btn:active { transform: scale(0.98); }
.score-direct-icon-btn img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    pointer-events: none;
}
.score-direct-icon-btn.is-playing img {
    filter: drop-shadow(0 0 10px rgba(240, 192, 64, 0.95));
}

/* ─── En-tête de la liste des partitions ─────────────────────────── */
.partitions-list-title {
    color: #fff;
    text-align: center;
    font-weight: 700;
    margin: 10px 0 4px;
}
.partitions-list-count {
    color: #BFBFBF;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 16px;
}
