/* ============================================
   GRILLE-SECTIONS.CSS
   Styles pour l'interface d'édition des sections
   et la grille textuelle
   ============================================ */
/* Note: Les styles d'affichage des sections (.grid-section-header) 
   sont maintenant dans grille-affichage.css */

/* ============================================
   GRILLE TEXTUELLE - SECTIONS
   ============================================ */

.text-grid-section-row {
    background-color: #f8f9fa;
}

.text-grid-section-cell {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--couleur-primaire-foncee, #2c3e50);
    text-align: center;
    padding: 1rem !important;
    border-top: 2px solid var(--couleur-primaire, #808000);
    border-bottom: 1px solid #dee2e6;
}

/* ============================================
   INTERFACE D'ÉDITION DES PROGRESSIONS
   ============================================ */

#editProgressionList {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.edit-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.edit-item-section,
.edit-item-chord {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edit-item-section {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem;
}

.edit-item-grip {
    color: #999;
    cursor: grab;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.edit-item-grip:active {
    cursor: grabbing;
}

.edit-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.edit-item-content i {
    color: #666;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.section-title-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.section-title-input:focus {
    outline: none;
    border-color: var(--couleur-primaire, #808000);
    box-shadow: 0 0 0 3px rgba(128, 128, 0, 0.1);
}

.edit-item-chord span {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-item .btn-icon {
    flex-shrink: 0;
}

/* ✅ Drag & Drop dans l'édition */
.edit-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.edit-item.drag-over {
    border-color: var(--couleur-primaire, #808000);
    background-color: rgba(128, 128, 0, 0.05);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 47.9375rem) {
    .text-grid-section-cell {
        font-size: 1rem;
        padding: 0.75rem !important;
    }
    
    .edit-item {
        padding: 0.5rem;
    }
    
    .edit-item-content {
        gap: 0.5rem;
    }
    
    .edit-item-grip {
        font-size: 1rem;
    }
    
    .section-title-input {
        font-size: 0.9375rem;
        padding: 0.4rem 0.625rem;
    }
}
