/* ============================================================
   SECTION EXPLICATIVE CENTRALE - PAGES QUALITÉS
   Styles pour le contenu pédagogique au centre de la page
   (introduction, intervalles, caractère, théorie, styles, exemples)
   ============================================================ */

/* ============================================================
   1. CONTENEUR PRINCIPAL
   ============================================================ */

.quality-content {
    background: transparent;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 3px solid #808000;
}

/* Bannière nom accord */
.quality-header {
    background: #808000;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    margin: 0 auto 2rem auto;
    width: fit-content; 
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFAEB;
    text-transform: uppercase;
}

.quality-content > div {
    margin-bottom: 2.5rem;
}

.quality-content > div:last-child {
    margin-bottom: 0;
}

/* ============================================================
   2. TITRES DE SECTIONS
   ============================================================ */

.quality-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    margin-top: 4rem;
    border-bottom: 2px solid #e0e0e0;
}

/* ============================================================
   3. SECTION INTRODUCTION
   ============================================================ */

.quality-intro p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #444;
}

/* ============================================================
   4. SECTION INTERVALLES - STYLE UNIFIÉ
   ============================================================ */

/* Tableau des intervalles */
.intervals-table-quality {
    table-layout: fixed;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    border: 3px solid #808000;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.intervals-table-quality tbody tr {
    border-bottom: 2px solid #808000;
}

.intervals-table-quality tbody tr:last-child {
    border-bottom: none;
}

.intervals-table-quality td,
.intervals-table-quality th {
    padding: 0.75rem;
    text-align: center;
    vertical-align: middle;
    border-right: 1.5px solid #808000;
    border-bottom: 1.5px solid #808000;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
}

.intervals-table-quality td:last-child,
.intervals-table-quality th:last-child {
    border-right: none;
}

.intervals-table-quality tbody tr:last-child td,
.intervals-table-quality tbody tr:last-child th {
    border-bottom: none;
}

/* En-têtes (première colonne) - Bordure épaisse à gauche */
.intervals-table-quality th {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    text-align: left;
    width: 150px;
    border-right: 3px solid #808000; /* Bordure épaisse pour séparer */
}

/* Ligne 1 : Degrés - Fond beige */
.intervals-table-quality tbody tr:nth-child(1) th,
.intervals-table-quality tbody tr:nth-child(1) td {
    background: #e0d5a0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

/* Ligne 2 : Intervalles - Fond blanc */
.intervals-table-quality tbody tr:nth-child(2) th,
.intervals-table-quality tbody tr:nth-child(2) td {
    background: white;
    color: #808000;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Ligne 3 : Demi-tons - Fond crème */
.intervals-table-quality tbody tr:nth-child(3) th,
.intervals-table-quality tbody tr:nth-child(3) td {
    background: #FFFAEB;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}

/* Formule d'intervalles */
.intervals-formula {
    font-size: 1rem;
    color: #555;
    margin-top: 1rem;
    text-align: center;
}

.intervals-formula strong {
    color: #808000;
    font-size: 1.125rem;
}

/* ============================================================
   5. SECTION CARACTÈRE / SONORITÉ
   ============================================================ */

.quality-character p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* ============================================================
   6. SECTION CONSTRUCTION THÉORIQUE
   ============================================================ */

.quality-theory p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* ============================================================
   7. SECTION STYLES MUSICAUX
   ============================================================ */

.styles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.style-tag {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
    .quality-content {
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .quality-content {
        padding: 1.5rem;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .quality-content {
        padding: 1rem;
    }
    
    .quality-section-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .quality-header {
        font-size: 1.3rem;
        padding: 0.75rem 1rem;
    }
    
    .quality-section-title {
        font-size: 1.3rem;
        margin-top: 2.5rem;
    }
    
    /* Tableau responsive */
    .intervals-table-quality {
        max-width: 100%;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .intervals-table-quality td,
    .intervals-table-quality th {
        padding: 0.5rem 0.375rem;
        font-size: 0.85rem;
    }
    
    .intervals-table-quality tbody tr:nth-child(1) th,
    .intervals-table-quality tbody tr:nth-child(1) td {
        font-size: 0.95rem;
    }
    
    .intervals-table-quality tbody tr:nth-child(2) th,
    .intervals-table-quality tbody tr:nth-child(2) td {
        font-size: 0.8rem;
    }
    
    .intervals-table-quality tbody tr:nth-child(3) th,
    .intervals-table-quality tbody tr:nth-child(3) td {
        font-size: 0.9rem;
    }
    
    .intervals-table-quality th {
        width: 90px;
        font-size: 0.85rem;
    }
    
    .intervals-formula {
        font-size: 0.9rem;
    }
    
    .intervals-formula strong {
        font-size: 1rem;
    }
    
    .quality-intro p,
    .quality-character p,
    .quality-theory p {
        font-size: 0.95rem;
    }
    
    .styles-tags {
        gap: 0.5rem;
    }
    
    .style-tag {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }
}