/* --- STYLES DES CARTES DE CONTENU --- */

/* Base globale pour tous les éléments */
* { box-sizing: border-box; }

/* Style général du site */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0; padding: 0; font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
}

/* Conteneur principal et titres de section */
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.section-title { margin-top: 60px; padding-bottom: 10px; border-bottom: 3px solid var(--accent-red); color: var(--accent-blue); }

/* Carte générique utilisée sur le planning */
.card { 
    background: var(--bg-card); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    margin-bottom: 25px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    border: 1px solid var(--border-color); 
}

/* Corrige le premier titre dans une carte */
.card-content h3:first-child {
    margin-top: 0;
}

/* Image, contenu et badge des cartes */
.card-img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 25px; flex: 1; }
.badge { 
    background: var(--accent-red); 
    color: white; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    display: inline-block; 
    margin-bottom: 10px; 
}

/* Version desktop : image à gauche, contenu à droite */
@media (min-width: 700px) {
    .card { flex-direction: row; }
    .card-img { width: 320px; max-width: 320px; height: auto; }
}
