/**
 * CSS MINIMALISTE - PAGE RÉSISTANCES
 * Fichier: css/05-pages/resistances-simple.css
 * Version: 2.0 - Simplifiée et cohérente avec index.php
 * 
 * Réutilise au maximum les classes existantes du site
 * Ajoute uniquement les styles spécifiques nécessaires
 */

/* ============================================================================
   BREADCRUMB (seule classe vraiment spécifique)
   ============================================================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--background-light, #f8f9fa);
    border-radius: 8px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary, #1a73e8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark, #1557b0);
    text-decoration: underline;
}

.breadcrumb span:not(:last-child) {
    color: var(--text-secondary, #666);
}

.breadcrumb span:last-child {
    color: var(--dark, #2c3e50);
    font-weight: 500;
}

/* ============================================================================
   TABLEAUX (amélioration légère des tableaux existants)
   ============================================================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.table th {
    background: var(--primary, #1a73e8);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.table tbody tr:hover {
    background: var(--background-light, #f8f9fa);
}

.table td:first-child {
    font-weight: 500;
}

/* Tableaux de valeurs E-series (grilles de nombres) */
.table td strong {
    color: var(--primary, #1a73e8);
    font-family: 'Courier New', monospace;
}

.table thead th[colspan] {
    text-align: center;
    background: linear-gradient(135deg, var(--primary, #1a73e8), var(--primary-dark, #1557b0));
}

/* Cellules centrées pour les valeurs numériques */
.table td {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Sauf la première colonne des tableaux comparatifs */
.table tbody tr td:first-child {
    text-align: left;
    font-family: inherit;
}

/* Alternance de couleurs pour faciliter la lecture */
.table tbody tr:nth-child(odd) {
    background: #fafafa;
}

.table tbody tr:nth-child(even) {
    background: #fff;
}

/* Tableau compact pour mobile */
@media (max-width: 768px) {
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.3rem;
    }
    
    /* Forcer le scroll horizontal sur mobile pour les grands tableaux */
    .card-content {
        overflow-x: auto;
    }
}

/* ============================================================================
   RESPONSIVE - AJUSTEMENTS GRID
   ============================================================================ */

/* Sur mobile, grid passe en 1 colonne */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Sur tablette, grid en 2 colonnes */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================================================
   UTILITAIRES LÉGERS
   ============================================================================ */

/* Ajustements de marges pour les listes dans les cartes */
.card-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.card-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Espacement des titres h4 dans les cartes */
.card-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary, #1a73e8);
    font-size: 1.1rem;
}

.card-content h4:first-child {
    margin-top: 0;
}

/* Style pour les formules mathématiques */
.card-content p > strong {
    color: var(--dark, #2c3e50);
}

/* Évaluations par étoiles dans les tableaux comparatifs */
.rating {
    display: inline-block;
    font-size: 1.1rem;
    color: #ffd700;
    white-space: nowrap;
}