/* Variables CSS pour les couleurs principales */
:root {
    --primary-blue: #4169E1;
    --primary-red: #DC143C;
    --accent-orange: #FF8C00;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --white: #FFFFFF;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
.header {
    background-color: var(--light-gray);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-blue);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.header-text {
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Section Héro */
.hero {
    padding: 40px 0;
    background-color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #E6E6FA 0%, #D8BFD8 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-blue);
}

.placeholder-content {
    text-align: center;
    color: var(--primary-blue);
}

.placeholder-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.placeholder-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.placeholder-content p {
    font-size: 14px;
    color: var(--dark-gray);
    opacity: 0.8;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

/* Formulaire */
.form-container {
    background-color: var(--white);
    border: 3px solid var(--primary-red);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Progress Bar */
.form-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-blue);
    width: 25%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-container h2 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: bold;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--white);
    color: var(--dark-gray);
    box-sizing: border-box;
}

.date-dropdowns {
    display: flex;
    gap: 10px;
}

.date-dropdowns select {
    flex: 1;
    width: auto;
}

@media (max-width: 480px) {
    .date-dropdowns {
        flex-direction: column;
        gap: 5px;
    }
    
    .date-dropdowns select {
        width: 100%;
    }
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.error-message {
    color: var(--primary-red);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    gap: 10px;
}

.btn-next,
.btn-prev,
.btn-submit {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-next,
.btn-submit {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #E67E00;
}

.btn-prev {
    background-color: #6c757d;
    color: var(--white);
}

.btn-prev:hover {
    background-color: #5a6268;
}

/* Single button layout */
.form-step:first-child .btn-next {
    width: 100%;
}

/* Section Info */
.info-section {
    background-color: var(--light-gray);
    padding: 30px 0;
    text-align: center;
}

.info-section h2 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-bottom: 15px;
}

.info-section p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Classement */
.ranking-section {
    padding: 40px 0;
    text-align: center;
}

.ranking-section h2 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 25px;
}

.ranking-section p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--primary-red);
    font-size: 18px;
}

.btn-quote {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-quote:hover {
    background-color: #3658CC;
}

/* Section Offre */
.offer-section {
    background-color: var(--light-gray);
    padding: 40px 0;
}

.offer-section h2 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
}

.offer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.offer-text p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

/* Carte de France Interactive */
.france-map-container {
    text-align: center;
}

.france-map-container h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 16px;
}

.france-map {
    width: 100%;
    max-width: 450px;
    height: auto;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.france-map:hover {
    transform: scale(1.02);
}

.map-instruction {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 10px;
    font-style: italic;
}

.steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    background-color: var(--primary-red);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step p {
    font-size: 16px;
    line-height: 1.6;
}

.offer-section .btn-quote {
    display: block;
    margin: 0 auto;
}

/* Section Raisons */
.reasons-section {
    padding: 40px 0;
    text-align: center;
}

.reasons-section h2 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 30px;
}

.reasons-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: left;
}

.reasons-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.checkmark {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 18px;
}

/* Pied de page */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
}

.footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */

/* Tablettes */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .offer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .form-container {
        padding: 20px;
    }

    .hero {
        padding: 30px 0;
    }

    .ranking-section, .offer-section, .reasons-section {
        padding: 30px 0;
    }
}

/* Mobiles */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .header-text {
        font-size: 14px;
    }

    .form-container h2 {
        font-size: 16px;
    }

    .ranking-section h2, .offer-section h2, .reasons-section h2 {
        font-size: 18px;
    }

    .hero-text p, .offer-text p, .ranking-section p {
        font-size: 14px;
    }

    .btn-next, .btn-quote {
        font-size: 16px;
        padding: 12px 20px;
    }

    .form-container {
        padding: 15px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .step-number {
        margin: 0 auto;
    }
}

/* Animations et effets */
.form-container {
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-2px);
}

button {
    transition: all 0.3s ease;
}

button:active {
    transform: translateY(1px);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
select:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

.cookie-text p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: var(--dark-gray);
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie.accept {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-cookie.accept:hover {
    background-color: #3658CC;
}

.btn-cookie.essential {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid #ddd;
}

.btn-cookie.essential:hover {
    background-color: #e0e0e0;
}

.cookie-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Responsive pour le cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        padding: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
    }

    .cookie-text h3 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }
}