/* ==========================================================================
   STYLE ORIGINAL PRÉSERVÉ (FORMATIONS)
   ========================================================================== */
:root {
    --gold: #c5a059;
    --dark-gold: #8f6b1e;
    --deep-black: #0a0a0a;
}

* {margin: 0; padding: 0; box-sizing: border-box;}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--deep-black);
    color: #eee;
    line-height: 1.6;
}

.formation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* --- Header --- */
.archive-header {
    text-align: center;
    margin-bottom: 5rem;
}

.archive-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--gold);
    letter-spacing: 4px;
}

.header-ornament {
    color: var(--dark-gold);
    margin: 1.5rem 0;
    letter-spacing: 10px;
}

/* --- Listing Style --- */
.formation-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.formation-entry {
    display: grid;
    grid-template-columns: 120px 1fr; /* Année à gauche, détails à droite */
    gap: 2rem;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.4) 100%);
    border-left: 3px solid var(--dark-gold);
    padding: 2rem;
    transition: all 0.3s ease;
}

.formation-entry:hover {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(30, 30, 30, 0.8) 0%, rgba(15, 15, 15, 0.4) 100%);
    transform: translateX(5px);
}

.formation-year {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    padding-top: 0.2rem;
}

.formation-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.formation-inst {
    font-size: 0.85rem;
    color: var(--dark-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.formation-desc {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   CORRECTIONS RESPONSIVE (AJOUTS)
   ========================================================================== */

@media (max-width: 900px) {
    .formation-container { padding: 4rem 1.5rem; }
    .archive-header { margin-bottom: 3rem; }
}

@media (max-width: 768px) {
    .archive-header h1 { font-size: 2.2rem; letter-spacing: 2px; }
    .header-ornament { letter-spacing: 5px; }

    .formation-entry {
        grid-template-columns: 1fr; /* On empile l'année au-dessus du titre */
        gap: 0.8rem;
        padding: 1.5rem;
        border-left-width: 4px; /* Renforce le trait sur mobile */
    }
    
    .formation-year {
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(143, 107, 30, 0.3);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        display: block; /* Pour que la bordure prenne toute la largeur */
    }

    .formation-title { font-size: 1.25rem; }
    .formation-inst { font-size: 0.75rem; letter-spacing: 1px; }
    
    .formation-entry:hover {
        transform: none; /* Désactive le décalage horizontal sur mobile pour éviter les bugs de scroll */
        background: rgba(30, 30, 30, 0.9);
    }
}

@media (max-width: 480px) {
    .archive-header h1 { font-size: 1.8rem; }
    .formation-container { padding: 3rem 1rem; }
    .formation-entry { padding: 1.2rem; }
    .formation-desc { font-size: 0.85rem; }
}