/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ---- NAVBAR ---- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin: 0px 80px;
}
.logo {
    text-align: center;
}
.logo img {
    height: 40px;
}

h2 {
    text-align: center;
}

.navbar a:hover {
    color: chocolate;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.75s;
}



/* ---- SECTION NOTRE HISTOIRE ---- */

#HISTOIRE {

    background-color: lightpink;
    padding: 120px 0 40px; /* Ajout d'espace sous la navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

}

#HISTOIRE h2 {

    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;

}

.histoire-container {

    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    padding: 20px;

}

.histoire-carte {

    background-color: white;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    width: 80%;

}

.histoire-carte:hover {

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);

}

.histoire-carte img {

    width: 100%;
    height: auto;
    border-radius: 10px;

}

/* ---- TIMELINE ---- */

.box-timeline {

    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 50px 0;
    position: relative;

}

.ligne {

    width: 5px;
    height: 100%;
    background: #333;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

}

/* Conteneur regroupant chaque rond et sa boîte */

.timeline-item {

    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 20px 0;
    position: relative;

}

/* Styles pour les ronds */

.rond {

    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}

/* Positionnement précis des ronds */

.r1 { top: 10%; }
.r2 { top: 25%; }
.r3 { top: 40%; }
.r4 { top: 55%; }
.r5 { top: 70%; }
.r6 { top: 85%; }
.r7 { top: 100%; }

/* Styles des cases */

.box {

    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    width: 45%;
    position: relative;

}

.box:hover {

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    background-color: chocolate;
    transition: background-color 0.75s;

}

/* Alternance des boîtes à gauche et à droite */

.b1, .b3, .b5, .b7 {

    margin-right: auto;

}

.b2, .b4, .b6 {

    margin-left: auto;

}

/* Ajustement pour le responsive */

@media (max-width: 1024px) {

    .timeline-item {

        flex-direction: column;
        align-items: center;
        text-align: center;

    }

    .box {

        width: 80%;
        margin: 10px 0;

    }

    .rond {

        position: relative;
        left: auto;
        transform: none;

    }

}
/* Ajustement pour le responsive */

@media (max-width: 1024px) {

    .timeline-item {

        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;

    }

    .box {

        width: 80%;

    }

}

/* Ajustement pour le responsive */

@media (max-width: 1024px) {

    .timeline-item {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }

    .box {

        width: 80%;

        margin: 10px 0;

        transform: none;

    }

    .rond {

        position: relative;

        left: auto;

        transform: none;

    }

}
/* Ajustement pour le responsive */

@media (max-width: 1024px) {

    .timeline-item {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }

    .box {

        width: 80%;

        margin: 10px 0;

        transform: none;

    }

    .rond {

        position: relative;

        left: auto;

        transform: none;

    }

}

/* Ajustement pour le responsive */

@media (max-width: 1024px) {

    .timeline-item {

        flex-direction: column;

        align-items: center;

        text-align: center;

    }

    .box {

        width: 80%;

        margin: 10px 0;

    }

    .rond {

        position: relative;

        left: auto;

        transform: none;

    }

}
/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {

    .box {

        width: 90%;

        left: 0 !important;

        margin-bottom: 20px;

    }

    .ligne {

        display: none;

    }

    .rond {

        display: none;

    }

}

/* ---- FOOTER ---- */

.footer {

    background-color: #333333;
    color: white;
    padding: 25px 30px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    position: relative;
    bottom: 0;
    left: 0;

}

/* Liens du footer */

.footer-links ul {

    list-style: none;
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;

}

.footer-links a {

    color: white;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 5px;
    transition: color 0.75s;

}

.footer-links a:hover {

    color: chocolate;

}

/* Boîtes des éléments */



@media (max-width: 768px) {

    .histoire-carte {

        width: 90%;

    }

}