html, body {
    overflow-x: hidden; /* Supprime la barre de défilement horizontale */
}

body {
    background-color: #42464e;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Style de la barre de navigation */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(90deg, rgba(39,40,42,1) 0%, rgba(67,68,71,1) 40%, rgba(73,76,83,1) 60%, rgba(86,88,94,1) 80%, rgba(98,102,107,1) 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
    padding-left: 10px;
}

.logo img {
    height: 50px;
    margin-left: 20px;
    margin-right: 10px;
}

.navigation {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.navigation li {
    display: inline;
}

.navigation a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
    padding: 0px 10px;
}

.navigation a:hover {
    color: #adadad;
    text-decoration: underline;
}

.fa-user {
    font-size: 1.65rem;
    color: #fff;
    margin-top: 3px;
    margin-right: 15px;
    cursor: pointer;
    transition: color 0.3s;
    margin-left: 10px;
}

.fa-user:hover {
    color: #adadad;
}

/* Barre de recherche */
.searchBar {
    display: flex;
    gap: 5px;
    margin-right: 39px;
}

.searchBar input {
    padding: 8px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 200px;
}

.searchBar input::placeholder {
    color: white;
    opacity: 0.7;
}

.searchBar button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.searchBar button:hover {
    color: #adadad;
}

/* Effet de disparition de la barre de navigation au scroll */
.hidden {
    top: -155px;
}

/* Cacher le menu burger sur PC */
.menu-toggle {
    display: none;
}

/* Cacher l'icône de croix au début */
.menu-toggle .fa-xmark {
    display: none;
}

/* Afficher l'icône de croix quand le menu est actif */
.menu-toggle.active .fa-bars {
    display: none;
}

.menu-toggle.active .fa-xmark {
    display: block;
}

/* Section Présentation */
.presentation {
    padding: 100px 40px 60px 40px;
}

.presentation-container {
    display: flex;
    align-items: center;
    max-width: 1300px;
    width: 100%;
}

/* Image de la présentation */
.presentation-image {
    flex: 1;
    margin-left: -35px;
}

.presentation-image img {
    width: clamp(300px, 50vw, 600px); 
}

/* Texte */
.presentation-text {
    max-width: 600px;
    text-align: right;
}

.presentation-text h1 {
    font-size: clamp(2rem, 5vw, 5rem); 
    text-transform: uppercase;
    margin-bottom: 20px;
}

.top-btn {
    text-decoration: none;
    background-color: #fff;
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    font-size: clamp(1rem, 2vw, 1.3rem); /* Taille dynamique */
}

.top-btn:hover {
    background-color: #adadad;
}

/* Section Parallaxe */
.parallax {
    width: 100vw;
    height: 62vh;
    background-image: url('Images/New33.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Histoire */
.history {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 100px 40px 100px 40px;
}

/* Bloc texte */
.history-content {
    background-color: #fff;
    color: black;
    padding: 10px 20px 30px 45px;
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* taille du texte dynamique */
}

.history-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.history-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Bouton */
.btn {
    text-decoration: none;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #504f4f;
}

/* Image */
.history-image {
    max-width: clamp(250px, 40%, 350px);
    border-radius: 15px;
}

.history-image img {
    width: 100%;
    border-radius: 15px;
}

.background-section {
    background: #000;
    border-radius: 100%;
    padding-bottom: 100%;
    width: 100%; 
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .logo {
        margin-bottom: 10px;
        margin-right: 35px;
    }

    .searchBar {
        margin-bottom: 10px;
        margin-left: 15px;
    }

    /* Menu burger */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        left: 20px;
        z-index: 1101;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
    }    
    
    /* Pour s'assurer que le menu reste bien en haut sur mobile */
    .navbar {
        position: fixed;
        top: 0;  
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }
    
    /* Lorsque le menu est actif, on affiche la navbar */
    .navbar.active {
        opacity: 1;
        visibility: visible;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .navigation li {
        margin: 15px 0;
    }

    .navigation a {
        font-size: 1.4rem;
        padding: 10px;
    }

    /* Logo */
    .logo {
        display: flex;
        justify-content: center;
    }

    .logo img {
        margin: 0;
    }

    .fa-user {
        position: fixed;
        font-size: 1.65rem;
        color: white;
        cursor: pointer;
        right: 10px;
        top: 20px;
        transition: color 0.3s;
    }

    .fa-user:hover {
        color: #8d8d8d;
    }

    /* Barre de recherche */
    .searchBar {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .searchBar input {
        width: 90%;
        max-width: 300px;
    }

    /* Section Présentation */
    .presentation {
        padding: 170px 20px 0px 20px;
    }

    .presentation-container {
        flex-direction: column;
    }

    .presentation-image {
        display: flex;
        justify-content: center; 
        margin-left: 0; 
    }

    .presentation-image img {
        width: 90%;
        max-width: 500px;
    }

    .presentation-text {
        text-align: center;
    }

    .presentation-text h1 {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }

    .top-btn {
        font-size: clamp(1rem, 3vw, 1.5rem); /* Taille dynamique */
    }    

    .parallax {
        width: 100%; /* Prend toute la largeur */
        height: 70vw; /* Utilise la largeur de la fenêtre comme référence pour la hauteur */
        background-attachment: scroll;
        background-size: contain;
    }

    .history {
        flex-direction: column;
        padding: 0; /* Supprime le padding du haut et des côtés */
        margin: 0;
        gap: 30px; /* Un petit espace entre texte et image */
        padding-bottom: 100px;
    }
    
    .history-content {
        width: 100%;
        max-width: clamp(250px, 75%, 500px); /* S’adapte à la taille de l’écran */
        padding: 15px 20px;
        align-items: center; /* Centre les éléments en flex */
        font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Texte responsive */
    }

    .history-content p {
        text-align: center; /* Centre le texte */
        font-size: clamp(1rem, 2.2vw, 1.2rem);
    }
    
    .history-content h2 {
        text-align: center;
        font-size: clamp(1.3rem, 5vw, 1.7rem); /* Titre responsive */
    }
    
    .history-image {
        width: 100%;
        max-width: clamp(250px, 75%, 500px); /* Même largeur que le texte */
        height: 180px; /* Hauteur réduite pour effet paysage */
        margin: 0 auto;
        overflow: hidden;
        border-radius: 10px; /* Optionnel : rend le visuel plus doux */
    }
    
    .history-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 15%;
        display: block;
    } 
}

/* Assurer que le menu normal reste visible sur PC */
@media (min-width: 768px) {
    .presentation {
        min-height: 80vh; /* Prend toute la hauteur de l'écran */
        display: flex;
        justify-content: center;
        align-items: center;
    }
}