body {
    font-family: 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

h2 {
    font-size: clamp(1rem, 4vw, 1.6rem);
    margin: 0;
    margin-top: 2%;
}

header {
    text-align: center;
    font-size: 2em;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

nav a {
    width: 17vh;
    padding: 20px 20px;
    margin: 2% 10px;
    border: 1px solid black;
    border-radius: 10px;
    background-color: #303a43;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: clamp(0.7rem, 4vw, 1rem);
    transition: opacity 0.1s ease-out;
    font-weight: bold;
}

#neuf {
    background-color: #557a18;
    transition: color 0.2s ease-out;
}

#neuf.active {
    color: black;
    background-color: white;
    transition: color 0.2s ease-out;
}

#occasion {
    color: black;
    background-color: white;
    transition: color 0.2s ease-out;
}

#occasion.active {
    background-color: #557a18;
    color: white;
    transition: color 0.2s ease-out;
}

main a:hover {
    opacity: 70%;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.article {
    display: flex;
    width: 500px;
    margin: clamp(0.6rem, 2vw ,1.2rem);
    padding: 1%;
    border: 2px solid gray;
    border-radius: 10px;
}



.one.active {
    display: none;
}

.two {
    display: none;
}

.two.active {
    display: flex;
}

.article img {
    max-width: 200px;
    width: 30vw;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.right,.left{
    padding: 1%;
    padding-bottom: 5%;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: center;
}

.button {
    position: relative;
    padding: 6px 3%;
    border: 1px solid black;
    border-radius: 10px;
    background-color: #830e10;
    color: white;
    text-decoration: none;
    font-size: clamp(0.7rem, 3vw, 1rem);
    transition: opacity 0.1s ease-out;
}
