/**
 * Styles - Page Objectifs pédagogiques
 */

/* Table container */
.pedagogie-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

/* Table */
.pedagogie-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.pedagogie-table th,
.pedagogie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #eee);
    vertical-align: top;
}

.pedagogie-table th {
    background: var(--secondary, #f5f5f5);
    font-weight: 600;
    color: var(--text, #333);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pedagogie-table tbody tr:hover {
    background: #f8f9fa;
}

.pedagogie-table tbody tr:last-child td {
    border-bottom: none;
}

/* Clickable row */
.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
}

.clickable-row:hover {
    background: var(--primary-light, #e8f5e9) !important;
}

/* Column widths */
.col-activite { width: 15%; min-width: 150px; }
.col-objectif { width: 18%; min-width: 180px; }
.col-specifique { width: 15%; min-width: 140px; }
.col-prerequis { width: 12%; min-width: 120px; }
.col-criteres { width: 15%; min-width: 140px; }
.col-consigne { width: 15%; min-width: 140px; }
.col-auteur { width: 10%; min-width: 100px; }

/* Activite cell */
.activite-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activite-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activite-titre {
    font-weight: 600;
    color: var(--text, #333);
    font-size: 0.9rem;
}

/* Empty field */
.empty-field {
    color: #ccc;
    font-style: italic;
}

/* Cell content */
.pedagogie-table td {
    font-size: 0.85rem;
    color: var(--text-light, #666);
    line-height: 1.4;
}

.pedagogie-table td span[title] {
    cursor: help;
}

/* Detail modal */
.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content {
    margin: 0;
    padding: 1rem;
    background: var(--secondary, #f8f9fa);
    border-radius: 8px;
    border-left: 3px solid var(--primary, #4a7c59);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text, #333);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-grid .detail-section {
    margin-bottom: 0;
}

.detail-grid .detail-content {
    min-height: 60px;
}

/* Detail meta */
.detail-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #eee);
}

.badge-auteur {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-date {
    background: #f5f5f5;
    color: #666;
}

/* Stats card highlight */
.stat-card:nth-child(4) .stat-value {
    color: var(--primary, #4a7c59);
}

/* Responsive */
@media (max-width: 1200px) {
    .pedagogie-table {
        font-size: 0.85rem;
    }

    .pedagogie-table th,
    .pedagogie-table td {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
