:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --background-color: #fff;
    --text-color: #333;
    --error-color: red;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://www.quiveutgagner.com/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background: var(--background-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #3A616B;
    margin-bottom: 20px;
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

.carousel .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.carousel .nav:hover {
    background: rgba(0,0,0,0.8);
}

.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* Formulaire */
.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group label {
    flex: 1;
    font-weight: bold;
}

.form-group.double-line > * {
    flex: 1;
    box-sizing: border-box;
}

.form-group.civilite-group select { flex: 0.5; }
.form-group.civilite-group input { flex: 1; }

input, select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#autre-voiture-container {
    display: none;
    margin-top: 10px;
}

.full-width { flex-direction: column; }

.cta {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta:hover { background: #00c6ff; }

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.participe { font-weight: bold; }

input[type=radio] { width: auto; }

/* Liens */
a.custom-link {
    color: #3A616B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.custom-link:hover { color: #3A616B; font-weight: bold; }
a.custom-link:visited { color: #4facfe; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 20px; }
    .carousel { height: 250px; }
    .carousel img { object-fit: cover; }
}