/**
 * TROUVE ACCORD - Tableau des accords similaires
 * Style unifié identique au tableau d'intervalles
 */

/* ============================================
   SECTION PRINCIPALE
   ============================================ */

.trouve-accord-similar-section {
    width: 100%;
    max-width: 850px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.trouve-accord-similar-section .intervals-container {
    background: transparent;
    padding: 0;
}

/* Afficher le titre pour ce tableau */
.trouve-accord-similar-section .intervals-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ============================================
   TABLEAU - STYLE IDENTIQUE
   ============================================ */

.similar-chords-table-wrapper {
    overflow-x: auto;
}

.similar-chords-table {
    table-layout: fixed;
    width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    border: 3px solid #808000;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

/* ============================================
   EN-TÊTE DU TABLEAU
   ============================================ */

.similar-chords-table thead th {
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
    border-right: 1.5px solid #808000;
    border-bottom: 2px solid #808000;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    background: #e0d5a0;
}

.similar-chords-table thead th:last-child {
    border-right: none;
}

/* ============================================
   CORPS DU TABLEAU
   ============================================ */

.similar-chords-table tbody tr {
    border-bottom: 1.5px solid #808000;
    transition: background-color 0.2s ease;
}

.similar-chords-table tbody tr:last-child {
    border-bottom: none;
}

.similar-chords-table tbody tr:hover {
    background-color: #f8f9fa;
}

.similar-chords-table tbody td {
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
    border-right: 1.5px solid #808000;
    border-bottom: 1.5px solid #808000;
    background: #FFFAEB;
}

.similar-chords-table tbody td:last-child {
    border-right: none;
}

/* ============================================
   CELLULES SPÉCIFIQUES
   ============================================ */

/* Colonne du nom de l'accord */
.similar-chords-table .chord-name-cell {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    white-space: nowrap;
}

/* Colonne des notes manquantes */
.similar-chords-table .missing-notes-cell {
    font-size: 0.95rem;
    font-weight: 500;
    color: #808000;
}

/* ============================================
   PRÉFÉRENCE MOUVEMENT RÉDUIT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .similar-chords-table tbody tr {
        transition: none;
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .trouve-accord-similar-section {
        page-break-inside: avoid;
    }
    
    .similar-chords-table {
        border: 2px solid #333;
    }
    
    .similar-chords-table thead th {
        background: #e0e0e0 !important;
        color: #000 !important;
    }
    
    .similar-chords-table tbody td {
        background: #fff !important;
    }
    
    .similar-chords-table tbody tr:hover {
        background-color: transparent !important;
    }
}