/* ===== BODY - PAGE HISTOIRE =====*/
body {
    padding-top: 70px;              
    background-color: #0f1729;      
    color: #fff;                    
}

/* ===== HEADER - TITRE DE LA PAGE =====*/
.history-header {
    background-color: #002d6f;     
    color: white;                 
    padding-top: 5rem;
    padding-right: 1.5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    text-align: center;             
    margin-bottom: 3rem;           
}

.history-header h1 { 
    font-size: 2.8rem;              
    font-weight: 900;               /* Texte gras */
    margin-bottom: 1rem;           
}

.history-header p { 
    color: #ccc;                   
    font-size: 1.1rem;              
}

/* ===== CONTENEUR TIMELINE =====*/
.timeline-container {
    max-width: 1300px;              /* Largeur maximale */
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 4rem;
    margin-left: auto;
    padding-top: 3rem;
    padding-right: 2rem;
    padding-bottom: 3rem;
    padding-left: 2rem;
    background: #ffffff;            
    color: #222;                    
}

/* ===== GRILLE DES ÉVÉNEMENTS =====*/
.timeline-events {
    display: grid;                  /* Système de grille */
    grid-template-columns: repeat(3, 1fr);  /* 3 colonnes égales */
    gap: 2rem;                      
}

/* ===== CARTE TIMELINE =====*/
.timeline-card {
    background: #fff;               
    border-radius: 12px;            /* Coins arrondis */
    transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Animations (Repris de internet) */
    display: flex;                  
    flex-direction: column;         
}

/* ===== EFFET AU SURVOL =====*/
.timeline-card:hover {
    transform: translateY(-8px);    /* Soulève de 8px */
    box-shadow: 0 12px 30px rgba(0, 68, 148, 0.25);  /* Ombre blue */
}

/* ===== IMAGE DE LA TIMELINE =====*/
.timeline-image { 
    height: 220px;                  /* Hauteur fixe */
    object-fit: cover;              /* Remplit l'espace sans déformation */
}

/* ===== CONTENU TEXTE =====*/
.timeline-content { 
    padding: 1.5rem;                                         
}

.timeline-content h3 { 
    color: #004494;                 
    font-weight: 800;               /* Texte gras */
    margin-bottom: 0.8rem;         
}

.timeline-content p {
    color: #666;                   /* Texte gris */
    font-size: 0.95rem;             /* Taille réduite */
    line-height: 1.5;               /* Hauteur de ligne pour lisibilité */
}

/* ===== MEDIAQUERIES - GRAND ÉCRAN =====
   À partir de 1200px, passe à 2 colonnes */
@media (max-width: 1200px) {
    .timeline-events { 
        grid-template-columns: repeat(2, 1fr);  /* 2 colonnes */
    }
    .timeline-image { 
        height: 200px;              /* Hauteur réduite */
    }
    .timeline-container { 
        padding-top: 2rem;
        padding-right: 1.5rem;
        padding-bottom: 2rem;
        padding-left: 1.5rem;
    }
}

/* ===== MEDIAQUERIES - TABLETTE =====
   À partir de 768px, ajustements */
@media (max-width: 768px) {
    .history-header { 
        padding-top: 3.5rem;
        padding-right: 1rem;
        padding-bottom: 3.5rem;
        padding-left: 1rem;
        margin-bottom: 2rem;
    }
    .history-header h1 { 
        font-size: 2rem;            
    }
    .history-header p { 
        font-size: 1rem;           
    }
    .timeline-container { 
        padding-top: 2rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 3rem;
        margin-left: 1rem;

    }
    .timeline-events { 
        grid-template-columns: 1fr;  /* 1 seule colonne */
        gap: 1.5rem;
    }
    .timeline-image { 
        height: 180px;              
    }
}

/* ===== MEDIAQUERIES - MOBILE =====
   À partir de 480px, mobile layout */
@media (max-width: 480px) {
    .history-header h1 { 
        font-size: 1.6rem;          
        margin-bottom: 0.5rem;
    }
    .history-header p { 
        font-size: 0.95rem;
    }
    .timeline-container { 
        padding-top: 1.5rem;
        padding-right: 1rem;
        padding-bottom: 1.5rem;
        padding-left: 1rem;
    }
    .timeline-image { 
        height: 160px;              
    }
    .timeline-content { 
        padding: 1rem;             
    }
    .timeline-content h3 { 
        font-size: 1rem;            
        margin-bottom: 0.5rem;
    }
    .timeline-content p { 
        font-size: 0.9rem;          
    }
}