:root {
    --primary-color: white;
}

body {
    color: #24466A;
}

.markdown-body h1 {
    font-size: 2.2rem;
    font-weight: 700;
    
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.markdown-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.navbar-nav .nav-link:hover {
    color: #f4b880 !important;
}

/* --- Styles de la Frise Chronologique Horizontale --- */
.horizontal-timeline {
    position: relative;
    padding: 3rem 0;
}

/* Style personnalisé pour l'onglet actif de la navbar */
.navbar-nav .nav-link.active {
    color: #f4b880 !important; /* Couleur sable/accent de l'ASL */
    position: relative;
}

@media (min-width: 768px) {
    .navbar-nav .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 8px;
        right: 8px;
        height: 2px;
        background-color: #f4b880; /* Petite barre de surbrillance */
        border-radius: 2px;
    }
}


/* Dessin de la grande ligne horizontale traversante */
.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    opacity: 0.2;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-step {
    position: relative;
    flex: 0 0 280px; /* Largeur fixe de chaque jalon pour forcer l'alignement */
    text-align: center;
    z-index: 2;
}

/* Dessin de la pastille centrale positionnée sur la ligne */
.timeline-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(24, 50, 79, 0.2);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-in-out;
}

/* Effet au survol du jalon */
.timeline-step:hover::before {
    transform: translate(-50%, -50%) scale(1.3);
}

/* Cache-défilement propre pour les navigateurs (Webkit) */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
/* Styles de base pour le conteneur de la date */
.eph {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

/* Variante Large (eph-lg) */
.eph-lg {
    width: 70px;
    height: 80px;
}

/* Partie supérieure : Le jour de la semaine (ex: ven) */
.eph-top {
    display: block;
    width: 100%;
    background-color: #dc3545; /* Rouge style calendrier, modifiable selon votre charte */
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 0;
    letter-spacing: 0.5px;
}

/* Partie centrale : Le numéro du jour (ex: 4) */
.eph-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #212529;
    line-height: 1.1;
    margin-top: 4px;
}

/* Partie inférieure : Le mois (ex: déc) */
.eph-month {
    display: block;
    font-size: 0.75rem;
    text-transform: lowercase;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
}
