/* Variables globales */
:root {
    --primary-color: #9BAF58;
}

/* Réinitialisation des styles */
* {
    box-sizing: border-box;
}


html {
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  
body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
/* Styles de base */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Prevent vertical scrolling */
    height: 100%; /* Ensure the body takes the full height of the viewport */
    width: 100%;
}

body {
    font-family: 'Grandstander', cursive;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #956633;
    min-height: 100vh;
}

/* Styles de l'en-tête */
header.header {
    background-color: #9BAF58;
    height: 60px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1em;
}

header.header img {
    width: 45px;
    height: auto;
    transition: transform 0.3s ease;
}

header.header img:hover {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

nav.navbar {
    display: flex;
    gap: 1em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

nav.navbar a {
    text-transform: uppercase;
    font-weight: bold;
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s ease;
}

nav.navbar a:hover {
    color: #586920;
}

/* Styles pour le menu mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 1em;
        top: 50%;
        transform: translateY(-50%);
    }

    nav.navbar {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #9BAF58;
        flex-direction: column;
        align-items: center;
        padding: 1em 0;
        transform: translateY(-100%);
        transition: all 0.3s ease;
        gap: 1.5em;
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav.navbar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

main {
    padding-top: 6rem;
    padding-bottom: 3rem;
}