/*-- Créé par Joachim Espin / le 20.02.2025 */

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

/* Mise en place du layout de la page */
html,
body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

/* Style du corps de la page avec un fond d'écran */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: url(../ASSETS/img/histoire_des_marque1.jpg) center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Style de la barre de navigation */
.navbar {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Style du lien actif dans la navbar */
#actuelle {
    color: #ffd900;
    font-weight: 600;
}

/* Logo dans la navbar */
.navbar a .logo {
    color: white;
    font-size: 2em;
    font-weight: bold;
    margin-left: 50px;
}

/* Positionnement du logo image dans la navbar */
.navbar a .img-logo {
    position: absolute;
    left: 60px;
    width: 150px;
    height: 100px;
    margin-top: 40px;
}

/* Style des liens de la navbar */
.navbar a {
    color: white;
    font-size: 15px;
    transition: color 0.6s ease;
}

/* Container pour les liens dans la navbar */
.navbar .nav-links {
    display: flex;
    justify-content: center;
}

/* Style de la liste des liens dans la navbar */
.navbar .nav-links ul {
    display: flex;
    margin: 0;
}

/* Espacement entre les éléments de la navbar */
.navbar .nav-links ul li {
    margin: 0 25px;
}

/* Effet de hover pour les liens dans la navbar */
.navbar .nav-links ul li a:hover {
    color: #ffd900;
    font-weight: 600;
}

/* Menu hamburger visible sur petits écrans */
.navbar .menu-hamburger {
    display: none;
    position: absolute;
    right: 30px;
    top: 40px;
    width: 35px;
    z-index: 3;
}

/* Style des articles de contenu */
article {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 15px;
    margin: 100px;
    background-color: #534b4b;
    border-radius: 10px;
    text-align: justify;
}

/* Style des divs dans les articles */
article div {
    border-radius: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* Mise en page flexible pour les sections d'images et de texte */
.text-image {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* Mise en page inverse pour les sections d'images et de texte */
.text-image_inverse {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
}

/* Style des images dans les sections de texte */
.text-image img {
    width: 150px;
    padding-left: 15px;
    padding-bottom: 20px;
}

/* Style des images dans les sections inversées */
.text-image_inverse img {
    width: 150px;
    padding-right: 15px;
    padding-bottom: 20px;
}

/* Style du footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: auto;
}

/* Style pour les écrans plus petits (moins de 900px) */
@media screen and (max-width: 900px) {
    .navbar {
        padding: 0;
    }

    /* Affichage du menu hamburger sur mobile */
    .navbar .menu-hamburger {
        display: block;
    }

    /* Navigation mobile : menu caché et affichage sur clic */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        background: rgba(255, 255, 255, 0.256);
        backdrop-filter: blur(7px);
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        margin-left: -100%;
        transition: margin 0.5s ease;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Affichage du menu mobile */
    .nav-links.mobile-menu {
        margin-left: 0;
        position: fixed;
    }

    .navbar .nav-links ul li {
        margin: 25px 0;
    }

    .navbar a {
        font-size: 1.2em;
    }

    /* Réajustement du logo dans la navbar pour les petits écrans */
    .navbar a .logo {
        position: absolute;
        top: 40px;
        left: -10px;
    }

    .navbar a .img-logo {
        margin-top: 15px;
        width: 225px;
        height: 200px;
        padding-left: 45px;
    }

    /* Ajustement des marges des articles sur petits écrans */
    article {
        margin-top: 200px;
        margin-right: 20px;
        margin-left: 20px;
    }
}

/* Style pour les écrans entre 900px et 1323px */
@media screen and (max-width: 1323px) {
    .navbar a .logo {
        color: white;
        font-size: 2em;
        font-weight: bold;
        margin-left: 50px;
    }

    .navbar a .img-logo {
        position: absolute;
        left: 35px;
        width: 150px;
        height: 100px;
        margin-top: 80px;
    }
}

/* Réajustement pour les petits écrans (moins de 500px) */
@media screen and (max-width: 500px) {
    /* Réorganisation des éléments text-image en colonne pour les très petits écrans */

    .text-image {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin:auto;
    }

    .text-image_inverse {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
}
