@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

    h1, h2, h3, h4, h5, h6 {
        font-family: 'Montserrat', sans-serif;
    }

    body, p, label, a {
        font-family: 'Roboto', sans-serif;
    }
/* --- Couleurs du thème --- */
:root {
    --color-bg-page: #ffffff;       /* fond de la page */
    --color-bg-footer: #f6f0ed;          /* fond footer*/
    --color-bg-section: #f7f6f2;    /* fonds des sections / cartes */
    --color-bg-alt: #f5f2ea;        /* fonds alternatifs */
    --color-border: #e4e5ed;        /* bordures */
    --color-accent: #ed9b27;        /* boutons et accents */
    --color-text: #171717;          /* texte principal */
    --color-titre: #00386e;          /* titres */
    --color-fond: #00386e;          /* couleur bordures (bleu) */
    --color-gold: #ed9b27;          /* texte (doré) */
    --color-footer: #00386e;          /* texte footer (bleu) */
}

/* --- Structure globale --- */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-bg-page);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

/* --- Navbar fixe --- */
.navbar {
    background-color: var(--color-fond);
}
.navbar-brand, .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar-brand:hover, .nav-link:hover {
    color: var(--color-accent) !important;
}

/* Espace pour navbar fixe */
body > .container {
    flex: 1 0 auto;      /* permet au footer de rester en bas si contenu court */
    padding-top: 70px;   /* ajuster selon hauteur navbar */
}

/* --- Titres --- */
h1, h2, h3 {
    color: var(--color-fond);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Tableaux --- */
table {
    background-color: var(--color-bg-page);
    border: 1px solid var(--color-border);
}
table.dataTable thead th {
    background-color: var(--color-fond);
    color: #ffffff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px;
    padding: 4px 10px;
}

/* --- Filtres --- */
.filters {
    margin-bottom: 20px;
}
.filters label {
    font-weight: bold;
    margin-right: 10px;
}

/* --- Cartes --- */
.card {
    background-color: var(--color-bg-section);
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.card-header {
    font-weight: 700;
    color: #ffffff;
    background-color: #00386e;
}
.card-header-cr {
    background-color: var(--color-fond); /* bleu foncé / texte principal */
}
.card-header-obs {
    background-color: var(--color-fond); /* bleu foncé / texte principal */
}
dt {
    font-weight: bold;
}
em {
    color: var(--color-text);
}

/* --- Footer --- */
footer {
    background-color: var(--color-bg-footer);
    color: var(--color-text); 
    padding: 20px 0;
    flex-shrink: 0; /* reste en bas si contenu court */
}
footer .footer-title {
    font-weight: 800;
    color: var(--color-footer); /* titre en blanc */
}
footer p, footer a {
    color: var(--color-footer); /* texte et liens en blanc */
}
footer img {
    height: 80px;
    object-fit: contain;
}

/* Espace entre le contenu et le footer */
.container.mt-4 {
    margin-bottom: 80px; /* ajuste la valeur selon l'espace souhaité */
}


/* --- Liens généraux --- */
a {
    color: inherit;
    text-decoration-style: dotted;
}
a:hover {
    color: var(--color-accent);
    text-decoration-style: dotted;
}

/* --- Responsivité --- */
@media (max-width: 576px) {
    footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 10px;
    }
    footer .d-flex.gap-3 {
        justify-content: center !important;
    }
    body > .container {
        padding-top: 90px; /* navbar plus haute sur mobile */
    }
}



.timeline-container {
    width: 100%;
    overflow-x: auto;
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.timeline {
    display: flex;
    list-style: none;
    position: relative;
    padding: 0;
    margin: 0;
    border-top: 2px solid #00386e; /* ligne centrale */
}

.timeline-item {
    position: relative;
    flex: 0 0 auto;
    text-align: center;
    padding: 0 30px;
}

.timeline-date {
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
}

.timeline-date::after {
    content: '';
    display: block;
    width: 2px;
    height: 10px;
    background: #00386e;
    margin: 0 auto;
    margin-top: 2px;
}

.timeline-point {
    width: 14px;
    height: 14px;
    background-color: #00386e;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: -1px;
}

.timeline-content {
    margin-top: 10px;
    position: relative;
}

.timeline-content::before {
    content: '';
    display: block;
    width: 2px;
    height: 10px;
    background: #00386e;
    margin: 0 auto;
    margin-bottom: 2px;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        border-top: none;
        border-left: 2px solid #00386e;
    }

    .timeline-item {
        padding: 20px 0;
    }

    .timeline-date::after,
    .timeline-content::before {
        height: 2px;
        width: 10px;
    }
}
