/* Déclaration des droits d'auteur */
/* Ce site est entièrement sous droit de Zyllow. Toute reproduction ou utilisation sans autorisation est interdite. */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    padding-bottom: 100px; 
    position: relative;
    min-height: 100vh; 
    background: linear-gradient(120deg, #f4f4f4, #eaeaea);
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    background-color: transparent;
    color: white;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

nav {
    text-align: center;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline-flex;
    align-items: center;
}

nav ul li a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%; 
    bottom: -1px;
    transform: translateX(-50%) scaleX(0); 
    width: 65%; 
    height: 2px;
    background-color: #fff;
    opacity: 0; 
    transition: transform 0.5s ease, opacity 0.5s ease; 
}

nav ul li a:hover::after {
    transform: translateX(-50%) scaleX(1); 
    opacity: 1; 
}

main {
    padding: 0;
}

section {
    margin-bottom: 20px;
}

.centered-message {
    position: relative;
    text-align: center;
    background-image: url('images/image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out;
    min-height: 100px;
    max-height: 450px;
}

.centered-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.centered-message h1,
.centered-message p {
    position: relative;
    z-index: 2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.separator {
    border: 0;
    border-top: 2px solid #ddd;
    margin: 20px auto;
    width: 80%;
}

.filter-header {
    text-align: center;
    margin-bottom: 20px;
}

.filter-header h2 {
    font-size: 1.8em;
}

.filter-menu {
    text-align: center;
    margin-bottom: 20px;
}

.filter-menu button {
    background-color: #252b2d;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.filter-menu button:hover {
    background-color: #66696b;
    box-shadow: 0px 4px 6px #252b2db4;
    transform: scale(1.05);
}

.filter-menu button.active {
    background-color: #66696b;
    transform: scale(1.1);
}

.filter-sliders {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.slider-group {
    margin: 0;
}

.slider-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.slider-group input[type="range"] {
    -webkit-appearance: none;
    width: 150px;
    background: #66696b; 
    border-radius: 5px;
    height: 6px; 
    outline: none; 
    margin: 0;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; 
    width: 15px;
    height: 15px;
    background: #252b2d;
    border-radius: 50%;
    cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 15px; 
    height: 15px; 
    background: #252b2d; 
    border-radius: 50%;
    cursor: pointer;
}

.vehicle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.vehicle-card {
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px;
    display: flex;
    align-items: center;
    width: 310px;
    box-sizing: border-box;
    transition: transform 1s, box-shadow 1s;
    background-color: #f9f9f9;
    border-color: #252b2d91;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 2;
        transform: translateY(0);
    }
}

.vehicle-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #252b2d;
}

.vehicle-info {
    flex: 1;
    margin-right: 10px; 
}

.vehicle-info h3 {
    margin: 0;
    font-size: 1.1em;
}

.vehicle-info p {
    margin: 5px 0;
}

.vehicle-image {
    width: 100px;
    height: auto;
}

.vehicle-image img {
    width: 100%; 
    height: auto;
    border-radius: 5px; 
}

footer {
    background-color: #252b2d;
    color: white;
    text-align: center;
    height: 60px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 1000;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.centered-message h1, 
.centered-message p {
    opacity: 0; 
    animation: fadeIn 1s ease-out forwards; 
}

.centered-message h1 {
    animation-delay: 0.2s; 
}

.centered-message p {
    animation-delay: 0.5s; 
}

.text-block {
    color: #fff;
    font-size: 1.2em;
    margin-top: 20px;
    white-space: pre-wrap;
}

.cursor {
    display: inline;
}

@keyframes blink {
    50% { opacity: 0; }
}