/* ----------------------------------------------
   Global Styles
---------------------------------------------- */

/* Polices */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');

/* Définition de la taille de la page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #241845;
    text-align: center;
    padding-left: 20px;
}

/* ----------------------------------------------
   Navbar Styles
---------------------------------------------- */

.navbar {
    background-color: #ffffff;
    border: 1px solid #ffffff;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-logo {
    width: auto;
}

.navbar-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-menu a {
    padding: 12px 20px;
    margin: 5px 10px;
    text-decoration: none;
    color: #241845;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    color: #3498db;
    background-color: #ffffff;
    font-size: 15px;
}

.space {
    margin: 5px;
}

/* ----------------------------------------------
   Timeline Styles
---------------------------------------------- */

.timeline {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.timeline-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.date {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.content {
    flex: 1;
    padding-left: 20px;
    font-size: 16px;
    max-width: 80%;
    word-wrap: break-word;
    margin-left: 20px;
}

/* ----------------------------------------------
   Footer Styles
---------------------------------------------- */

footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 15px;
}

footer a {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .footer-logo {
    width: 50px;
    margin: 0 10px;
}

footer a img {
    vertical-align: middle;
    max-height: 60px;
    height: auto;
    width: auto;
}

/* ----------------------------------------------
   Contenu page Styles
---------------------------------------------- */

.bande_image {
    width: 100%;
}

h2 {
    font-family: 'Roboto', sans-serif;
    color: #59A9D8;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 4;
}

p {
    font-family: 'Roboto', sans-serif;
    color: #241845;
    font-weight: 400;
    font-size: 14px;
    line-height: 2;
}

strong {
    font-weight: 700;
}

/* ----------------------------------------------
   Bloc images "Actualités"
---------------------------------------------- */

.actus-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.actus-images img {
    width: 400px;
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.actus-images img:hover {
    transform: scale(1.05);
}

/* ----------------------------------------------
   Responsive Styles
---------------------------------------------- */

/* ✅ Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar-menu {
        justify-content: center;
    }

    .navbar-menu a {
        font-size: 12px;
        padding: 10px;
    }

    .timeline-event {
        flex-direction: column;
        align-items: flex-start;
    }

    .content {
        margin-left: 0;
        padding-left: 0;
        max-width: 100%;
    }
}

/* ✅ Mobiles (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-left: 10px;
    }

    h2 {
        font-size: 14px;
    }

    p {
        font-size: 13px;
    }

    .navbar-menu a {
        font-size: 11px;
        padding: 8px;
        margin: 5px;
    }

    .actus-images {
        gap: 10px;
    }

    .actus-images img {
        width: 85vw;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }

    footer a img {
        max-height: 50px;
    }
}

/* ✅ Très petits écrans (max-width: 480px) */
@media (max-width: 480px) {
    .date {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }

    .content {
        font-size: 14px;
    }

    .actus-images img {
        width: 90vw;
    }

    .navbar-logo img {
        max-width: 150px;
    }
    /* ✅ Timeline Responsive en dessous de 1020px */
@media (max-width: 1020px), (max-height: 950px) {
    .timeline {
        padding-left: 10px;
        padding-right: 10px;
    }

    .timeline-event {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-event .date {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 0 10px 0;
        align-self: flex-start; /* ou center si tu préfères centrer */
        width: 80px;
        height: 80px;
        font-size: 14px;
    }

    .timeline-event .content {
        margin-left: 0;
        padding-left: 0;
        max-width: 100%;
        width: 100%;
        font-size: 14px;
    }
}

}
