:root {
    --hero-background: url(FondTete.webp);
    --hypercar-image: url(HypercarCar.webp);
    --lmp2-image: url(LMP2Car.webp);
    --lmgt3-image: url(LMGT3Car.webp);
    --img_toggle : url(toggle_darck.webp);
    --menu-color: #363636;
    --paraphColor : #181616;
    --text-color: #d1c9c9;
    --background-color: #363636;
    --hypercar-color: rgb(255, 0, 0);
    --lmp2-color: rgb(0, 83, 155);
    --lmgt3-color: rgb(0, 155, 0);
    --background_color_2 : #505050;
    --background_color_3 : #606060;
    --borderColor : #606060;
    --footer-color: #525252;
    --ancre-color: #363636;
    --form-color: rgba(100, 100, 100, 0.95);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: var(--text-color);
}

body {
    background-color: var(--background-color);
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

#menu{
    position: sticky;
    top: 0;
    left: 0;
    background: var(--menu-color);
    display: flex;
    justify-content: space-between;
    z-index: 3;
    color: var(--text-color);
    box-shadow: 0 4px 10px -2px black;
}

#menu ul {
    display: flex;
    list-style: none;
    padding: 0px;
    margin: 0px;
}

#menu li a {
    font-size: large;
    display: block;
    padding: 20px;
}

#menu li a:hover {
    background-color : var(--background_color_2);
    border-bottom: var(--borderColor) solid 5px;
    padding-bottom: 15px;
}

#switchBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    width: 80px;
    background: var(--img_toggle) center no-repeat;
    background-size: contain;
}


/* Form Container Styles */
.container {
    width: 60%;
    margin: 60px auto;
    padding: 30px;
    background: var(--form-color);
    border-radius: 10px;
    box-shadow: 0 20px 10px rgba(0, 0, 0, 0.1);
}

/* Form Element Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Label Styles */
label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
}

/* Input Field Styles */
input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

/* Submit Button Styles */
input[type="submit"] {
    background-color: #4a90e2;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

input[type="submit"]:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* Placeholder Styles */
::placeholder {
    color: #999;
    opacity: 0.7;
}

#photobas {

    border-radius: 5px;
    display: flex;
    margin: auto;
    width: 95%;
}

#photobas2 {

    border-radius: 5px;
    margin: 0%;
    width: 10%;
}

#ancre {
    list-style: none;
    text-decoration: none;
    color: var(--background_color);
    background-color: var(--ancre-color);
    border-radius: 5px;
    border: 2px double;
    margin: 1%;
    padding: 0.5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bas {
    background-color: var(--footer-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    bottom: 0;
    width: 100%;
}

#bas ul {

    list-style: none;
    padding: 0px;
    margin: 0%;

    display: grid;
    grid-template-columns: [first] 250px [line2] 250px [line3] 150px [col4-start] 150px [end];
    justify-items: center;
    justify-content: space-between;
}

#bas li a {
    text-decoration: none;
    font-size: large;
    display: block;
    padding: 6px;

}

/* Hamburger button styles */
.hamburger-button {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 15px;
}

.hamburger-button span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}


/* Add these media queries at the end of your existing CSS file */
@media screen and (max-width: 768px) {
    .hamburger-button {
        display: flex;
        z-index: 4;
    }

    /* Animate hamburger to X when menu is open */
    .hamburger-button.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-button.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-button.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    #menu {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #menu ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--menu-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        z-index: 3;
    }

    #menu ul.active {
        display: flex;
    }

    #menu li {
        width: 100%;
        text-align: center;
    }

    #menu li a {
        padding: 20px;
        font-size: 1.2em;
    }

    #switchBtn {
        display: flex;
        width: 60px; /* Slightly smaller on mobile */
        height: 30px;
        margin: 10px;
        z-index: 4; /* Keep it above the menu overlay */
        background-size: contain;
        background-position: center;
    }

    /* Ensure switch stays visible when menu is open */
    #menu.active #switchBtn {
        position: relative;
        z-index: 5;
    }

    input[type="submit"] {
        width: 100%;
    }

    #bas {
        background-color: var(--footer-color);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }
    
}