/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f5ff;
    overflow-x:hidden;
}

.container,
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
header {
    background-color: #fff;

    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-height: 60px;
}

.france-flag {
    display: flex;
    margin-left: 15px;
    height: 30px;
    width: 45px;
    border-radius: 4px;
    overflow: hidden;
}

.france-flag .blue {
    background-color: #0055A4;
    flex: 1;
}

.france-flag .white {
    background-color: #ffffff;
    flex: 1;
}

.france-flag .red {
    background-color: #EF4135;
    flex: 1;
}

/* Section héro */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1)), 
                url(background.jpg);
                background-size: cover;
    padding: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-section{
     width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.offer-title {
    text-align: center;
    margin-bottom: 30px;
}

.offer-title h1 {
    color: #1a65b7;
}

.subtitle {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

/* Formulaire */
.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 25px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.progress-bar-container {
    margin-bottom: 5px;
}

.progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background-color: #1a65b7;
    width: 16.6%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.step-counter {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 0.9rem;
    color: #666;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option-btn {
    position: relative;
    cursor: pointer;
}

.option-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: block;
    padding: 15px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
}

.option-btn input[type="radio"]:checked + .option-label {
    background-color: #e6f2ff;
    border-color: #1a65b7;
    color: #1a65b7;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(26, 101, 183, 0.1);
}

.option-btn:hover .option-label {
    border-color: #1a65b7;
}




/* Ajouter dans styles.css */
.form-container.submitted {
    display: none;
}

.form-container.submitted + .confirmation-step {
    display: block;
}



body.form-submitted .hero-section .form-container,
body.form-submitted .step-counter,
body.form-submitted .progress-bar-container {
    display: none;
}

.confirmation-step {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.confirmation-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirmation-icon {
    font-size: 60px;
    color: #04a64b;
    margin-bottom: 20px;
}

.confirmation-step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.confirmation-step p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.sub-message {
    font-size: 14px;
    color: #888;
}


.step-counter {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 0.9rem;
    color: #666;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
}




.error-message {
    color: #e53935;
    font-size: 0.9rem;
    margin: 5px 0 15px;
    min-height: 20px;
}

.buttons-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.back-btn {
    padding: 12px 20px;
    border: none;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    max-width: 120px;
}

.back-btn:hover {
    background-color: #e0e0e0;
}

.action-btn {
    padding: 15px 25px;
    border: none;
    background-color: #1a65b7;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 3;
}

.action-btn:hover {
    background-color: #0d4c9e;
}

.action-btn i {
    margin-left: 5px;
}

.back-btn i {
    margin-right: 5px;
}

.next-btn {
    display: block;
    width: 100%;
}

.submit-btn {
    background-color: #04a64b;
}

.submit-btn:hover {
    background-color: #038f40;
}

.contact-form {
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #1a65b7;
    outline: none;
}

.postal-city {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

.rgpd-consent {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
}

.rgpd-consent input {
    margin-right: 10px;
    margin-top: 4px;
}

.rgpd-consent label {
    font-size: 0.85rem;
    color: #666;
}

.security-info {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
}

.security-info i {
    color: #1a65b7;
    margin-right: 5px;
}

/* Compteur de participation */
.participation-counter {
    background-color: #1a65b7;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    margin: 30px auto;
    font-weight: 500;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(26, 101, 183, 0.2);
}

.participation-counter i {
    margin-right: 10px;
}

.highlight {
    font-weight: 700;
    color: #ffeb3b;
}

/* Points de confiance */
.trust-points {
    margin: 40px 0;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex: 1 1 30%;
    min-width: 200px;
}

.trust-icon {
    font-size: 1.5rem;
    color: #04a64b;
    margin-right: 15px;
}

.trust-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Section Réassurance */
.reassurance-section {
    padding: 60px 0;
    background-color: #fff;
    border-radius: 10px;

    margin: 40px 0;
}

.reassurance-section h2,
.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a65b7;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.reassurance-item {
    background-color: #f7faff;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.reassurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.reassurance-item .icon {
    color: #1a65b7;
    font-size: 2rem;
    margin-bottom: 15px;
}

.reassurance-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.reassurance-item p, 
.reassurance-item ul, 
.reassurance-item ol {
    color: #666;
    font-size: 0.95rem;
}

.reassurance-item ul, 
.reassurance-item ol {
    padding-left: 20px;
    margin-top: 10px;
    text-align: left;
}

.reassurance-item li {
    margin-bottom: 8px;
}

.reassurance-item strong {
    color: #1a65b7;
    font-weight: 600;
}

/* Section FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    
}
.faq-item:hover{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f7ff;
}

.faq-question h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.toggle-icon {
    color: #1a65b7;
    transition: transform 0.3s ease;
    font-size: 35px;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: #f9fbff;
}

.faq-item.active .faq-question {
    background-color: #e6f0ff;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px;
}

.faq-item.active .toggle-icon {
    
}

.faq-answer p, 
.faq-answer ul, 
.faq-answer ol {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.faq-answer ul, 
.faq-answer ol {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #1a65b7;
}

/* Pied de page */
footer {
    background-color: #1a3a5f;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

/* Boutons d'appel à l'action */
.cta-container {
    text-align: center;
    margin: 30px 0;
}

.cta-button {
    display: inline-block;
    background-color: #04a64b;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 166, 75, 0.3);
    border: none;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background-color: #038f40;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(4, 166, 75, 0.4);
}

/* Pour assurer le bon fonctionnement des ancres de navigation */
html {
    scroll-behavior: smooth;
}

/* Div pleine largeur */
.full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    text-align: center;
    box-sizing: border-box;
}

/* Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(4, 166, 75, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(4, 166, 75, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(4, 166, 75, 0.3);
    }
}

/* Media Queries - Unique breakpoint à 1000px */
@media (max-width: 1000px) {
    .offer-title h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .trust-container {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-item {
        width: 100%;
        max-width: 500px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .postal-city {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .rgpd-consent {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .reassurance-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .option-label {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .buttons-group {
        flex-direction: column;
    }
    
    .back-btn, .action-btn {
        width: 100%;
        max-width: none;
    }
    
    .action-btn {
        order: -1;
        margin-bottom: 10px;
    }
}

        .legal-section {
            padding: 80px 0;
        }
        
        .legal-section h1 {
            margin-bottom: 30px;
        }
        
        .legal-section h2 {
            margin: 30px 0 15px;
        }
        
        .legal-content {
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.8;
        }
        
        .back-link {
            display: inline-block;
            margin-top: 40px;
            color: #4CAF50;
            text-decoration: none;
            font-weight: 600;
        }
        
        .back-link:hover {
            text-decoration: underline;
        }