/* Reset et Base - Optimise pour l'assurance auto */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Barre de progression du scroll */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(15, 123, 255, 0.1);
    z-index: 10000;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--teal));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(15, 123, 255, 0.5);
}

/* Accessibilite - Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


:root {
    --primary-blue: #34b170;
    --secondary-blue: #1f8b46;
    --teal: #66D2A3;
    --orange: #288e63;
    --light-bg: #F5F7FA;
    --dark-text: #2C3E50;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px; /* Lisibilite renforcee */
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--white);
}

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(44, 182, 125, 0.3);
}

.testimonials .btn-primary{
margin-top: 30px;
}

.how-it-works .btn-primary{
margin-top: 30px;
}

.btn-primary:hover {
    background-color: #239A69;
    box-shadow: 0 5px 14px rgba(44, 182, 125, 0.35);
    transition: all 0.4s ease;
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 3px 10px rgba(44, 182, 125, 0.3);
    transition: all 0.2s ease;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Effet ripple sur les boutons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.8s ease-out, height 0.8s ease-out, opacity 0.8s ease-out;
    opacity: 0;
}

.btn:active::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

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

.btn-secondary:hover {
    background-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(15, 123, 255, 0.25);
    transition: all 0.4s ease;
}

.btn-secondary:active {
    transform: scale(0.98);
    transition: all 0.2s ease;
}

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

/* Header */
header {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* Surcharge du container UNIQUEMENT pour le header */
header .container {
    max-width: 100%; /* Casse la limite des 1200px pour coller aux bords */
    padding: 0 40px; /* Laisse juste 40px d'ecart avec les bords de l'ecran */
}

/* S'assure que le contenu s'etire bien */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    margin-right: auto; /* Pousse la navigation et la partie droite vers la droite */
}

.logo-circle {
    width: 110px;
    height: 110px;
}

.logo-circle img {
    width: 135px;
    height: 135px;
    object-fit: contain;
    margin-left: 38%;
}

/* Navigation par etapes */
.nav-steps {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-right: 10%;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--dark-text);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo-right {
    display: flex;
    align-items: center;
    padding-left: 15px;
    border-left: 1px solid rgba(15, 123, 255, 0.2);
}


.reload-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary-blue);
}

.reload-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(15, 123, 255, 0.3);
}

.reload-btn svg {
    width: 24px;
    height: 24px;
}

/* Bouton remonter en haut */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--orange);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 123, 255, 0.3);
    color: white;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(15, 123, 255, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: url('../img/img-background.webp');
    background-size: cover;
    background-position: center;
    color: var(--dark-text);
    padding: 80px 0;
    min-height: 500px;
    align-items: center;
}

.hero-content {
    padding-top: 110px;
    max-width: 1100px;
    text-align: left;
}

.hero h1 {
    color: var(--dark-text);
    margin-bottom: 20px;
    text-align: left;
    max-width: 760px;
}

.hero-slogan {
    font-size: 1.22rem;
    line-height: 1.55;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: 760px;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-align: left;
    max-width: 760px;
}

/* Formulaire Container - Fusionne */
.form-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 980px;
    min-width: 320px;
    color: var(--dark-text);
    margin-left: 0;
    margin-right: 0;
}

.gift-offer-note {
    width: 100%;
    max-width: 980px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--orange);
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--dark-text);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.gift-offer-note p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.gift-offer-note small {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
}

/* Indicateur de progression du formulaire */
.form-progress-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 12px;
}

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

.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--teal));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 123, 255, 0.3);
}

.form-progress-text {
    text-align: center;
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

.form-step { 
    display: none;
    animation: fadeOut 0.5s ease-in-out forwards;
}

.form-step.active { 
    display: block;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.form-question {
    min-height: auto;
    width: 100%;
}

.form-question h2 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 25px;
    line-height: 1.3;
}

.form-step-intro {
    color: #5e6e82;
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    border: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

fieldset.options-grid {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.option-btn {
    display: flex;
    cursor: pointer;
    height: 100%;
}

.option-btn input { display: none; }

.option-btn span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: left;
    font-size: 1.1rem;
    transition: all 0.5s ease;
    background-color: var(--white);
    min-height: 104px;
    height: 100%;
    width: 100%;
}

.option-inline-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: var(--primary-blue);
    transition: transform 0.2s ease, color 0.2s ease;
}

.assureur-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.option-btn:hover span {
    border-color: var(--primary-blue);
    background-color: #f0f7ff;
}

.option-btn:hover .option-inline-icon {
    transform: scale(1.08);
}

.option-btn input:checked + span {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    color: var(--white);
}

.option-btn input:checked + span .option-inline-icon {
    color: var(--white);
}

.options-grid-assurance .option-btn:last-child {
    grid-column: span 2;
}

.conditional-input {
    margin-top: 12px;
}

.age-circles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.age-circle {
    width: 55px;
    height: 55px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    position: relative;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-circle:hover {
    border-color: var(--primary-blue);
    background-color: #f0f7ff;
}

.age-circle.selected {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    animation: pulse 0.8s ease-out;
    box-shadow: 0 0 0 0 rgba(15, 123, 255, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 123, 255, 0.5); transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { box-shadow: 0 0 0 8px rgba(15, 123, 255, 0); transform: scale(1); }
}

.age-confirmation {
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
    color: #2e7d32;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.age-confirmation.show {
    display: block;
}

.checkbox-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.checkbox-label:hover { 
    border-color: var(--primary-blue); 
    background-color: #f0f7ff;
}

.checkbox-label input:checked + .checkbox-content { 
    color: var(--primary-blue); 
    font-weight: 600; 
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.need-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.checkbox-label:hover .need-icon {
    transform: scale(1.1);
}

.checkbox-label input:checked + .checkbox-content .need-icon {
    filter: brightness(0.9);
}

.form-input {
    width: 100%;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15, 123, 255, 0.12);
}

.form-input.valid {
    border-color: #4caf50;
    background-color: #f1f8f4;
}

.form-input.invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: none;
    pointer-events: none;
}

.input-validation-icon.show {
    display: block;
}

.input-validation-icon.valid {
    color: #4caf50;
}

.input-validation-icon.invalid {
    color: #dc3545;
}

.input-help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
    padding-left: 5px;
}

.input-help-text.error {
    color: #dc3545;
}

.consent-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.consent-box label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-box {
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-blue);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.form-navigation .btn {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    animation: successFadeIn 0.6s ease-out;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

.success-icon {
    margin-bottom: 20px;
    animation: checkmarkDraw 0.8s ease-out 0.3s both;
}

.success-message h2 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(21, 87, 36, 0.2);
    font-size: 0.95rem;
    color: #0d4e14;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-error-message {
    color: #dc3545;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.form-error-message:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Section Temoignages */
.testimonials { background-color: var(--primary-blue); color: var(--white); padding: 80px 0; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 10px; color: var(--white); }
.google-rating { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 50px; font-size: 1.4rem; }
.stars { color: var(--white); font-size: 1.8rem; letter-spacing: 3px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.testimonial-card { background-color: rgba(255, 255, 255, 0.1); border: 2px dashed rgba(255, 255, 255, 0.3); padding: 35px; border-radius: 12px; text-align: left; }
.testimonial-stars { color: var(--white); font-size: 1.5rem; margin-bottom: 15px; letter-spacing: 2px; }
.testimonial-text { font-size: 1.1rem; line-height: 1.6; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Tooltips */
.tooltip-wrapper { position: relative; display: inline-block; margin-left: 8px; }
.tooltip-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background-color: #e0e0e0; color: #666; font-size: 0.75rem; font-weight: 600; font-style: italic; cursor: help; transition: all 0.3s ease; vertical-align: middle; line-height: 1; }
.tooltip-icon:hover { background-color: var(--primary-blue); color: var(--white); transform: scale(1.1); }
.tooltip-content { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; padding: 10px 14px; background-color: var(--dark-text); color: var(--white); border-radius: 6px; font-size: 0.85rem; line-height: 1.4; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1000; max-width: 220px; white-space: normal; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); text-align: left; }
.tooltip-content::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--dark-text); }
.tooltip-wrapper:hover .tooltip-content, .tooltip-wrapper:focus-within .tooltip-content { opacity: 1; visibility: visible; }

/* Preview */
.preview-step { background-color: var(--light-bg); border-radius: 12px; padding: 30px; margin-bottom: 30px; }
.preview-item { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #e0e0e0; }
.preview-item:last-child { border-bottom: none; }
.preview-label { font-weight: 600; color: var(--dark-text); }
.preview-value { color: #666; text-align: right; flex: 1; margin-left: 20px; }

/* Skeletons */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s ease-in-out infinite; border-radius: 4px; }
.skeleton-text { height: 1.2rem; margin-bottom: 10px; }
.skeleton-title { height: 2rem; width: 60%; margin-bottom: 20px; }

/* ================================================================= */
/* ================== RESPONSIVE (MOBILES & TABLETTES) ============= */
/* ================================================================= */

@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    
    /* Header Responsive : Tout sur une ligne ! */
    header {
        padding: 10px 0;
    }
    
    header .container {
        padding: 0 15px; /* Petit espace sur les bords */
    }
    
    .header-content {
        flex-direction: row; /* Maintient sur une ligne */
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo {
        width: auto;
        justify-content: flex-start;
        margin-right: auto;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-circle img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        
    }
    
    /* Masquer les elements non-essentiels pour gagner de la place */
    .nav-steps, 
    .secure-badge { 
        display: none !important; 
    }
    
    .header-right {
        width: auto;
        justify-content: flex-end;
        gap: 10px;
    }
    
    .reload-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .reload-btn svg {
        width: 18px;
        height: 18px;
    }

    .header-logo-right img {
        max-height: 35px;
        width: auto;
    }
    
    /* On ajuste le Hero pour qu'il ne rentre pas dans le header affine */
    .hero { 
        padding: 50px 0; 
        padding-top: 100px;
    }
    
    .hero-content {
        padding-top: 20px;
    }
    
    /* Le reste du responsive reste le meme */
    .form-container { 
        padding: 25px;
        margin: 20px 0;
        max-width: 100%;
    }

    .gift-offer-note {
        margin-top: 12px;
        padding: 12px 14px;
        max-width: 100%;
    }

    .gift-offer-note p {
        font-size: 0.95rem;
    }

    .gift-offer-note small {
        font-size: 0.72rem;
    }
    
    .options-grid, .checkbox-options, .advantages-grid, .testimonials-grid, .steps-grid, .stats-grid { 
        grid-template-columns: 1fr; 
    }

    .option-btn span {
        min-height: 88px;
    }

    .option-inline-icon {
        width: 30px;
        height: 30px;
    }

    .options-grid-assurance .option-btn:last-child {
        grid-column: span 1;
    }
    .btn { width: 100%; min-width: auto; }

    /* Scroll to top reduit pour mobile */
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    .scroll-to-top-btn svg { width: 20px; height: 20px; }
}

/* Encore plus petit (tres petits telephones) */
@media (max-width: 380px) {
    .header-logo-right img {
        max-height: 25px;
    }
    .logo-circle {
        width: 50px;
        height: 50px;
    }
    .logo-circle img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .secure-badge { display: none; }
    .nav-steps { display: none; }
}

/* ================================================================= */
/* ================== AUTRES SECTIONS ============================== */
/* ================================================================= */

.partner-card { background-color: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; min-height: 120px; }
.partner-logo { display: flex; align-items: center; justify-content: center; width: 100%; }
.partner-logo-img { max-width: 100%; object-fit: contain; }
.combined-logo { flex-direction: column; gap: 15px; }
.combined-logo-item { max-height: 50px; }

.advantages { background: var(--white); padding: 80px 0; color: var(--white); }
.advantages h2 { text-align: center; color: var(--secondary-blue); margin-bottom: 60px; }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.advantage-card { background-color: #eeeeee; color: var(--dark-text); padding: 35px; border-radius: 12px; }
.advantage-icon, .step-icon, .stat-icon { border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.advantage-icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--teal), var(--secondary-blue)); font-size: 2rem; color: var(--white); margin-bottom: 20px; }
.advantage-icon img { width: 40px; height: 40px; object-fit: contain; }
.advantage-card h3 { color: var(--teal); margin-bottom: 15px; font-size: 1.4rem; }
.highlight-text { color: var(--primary-blue); font-weight: 600; }

.how-it-works { background: linear-gradient(135deg, rgba(15, 123, 255, 0.34), rgba(53, 160, 255, 0.14)), url('../img/img-block.webp'); background-size: cover; padding: 80px 0; }
.how-it-works h2 { text-align: center; color: var(--white); margin-bottom: 60px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.step-card { text-align: center; background-color: rgba(255, 255, 255, 0.95); padding: 30px; border-radius: 12px; }
.step-icon { width: 80px; height: 80px; background-color: var(--primary-blue); color: var(--white); font-size: 2rem; font-weight: bold; margin: 0 auto 20px; }
.engagement-badge { background-color: var(--primary-blue); color: var(--white); padding: 25px 50px; border-radius: 25px; font-size: 22px; font-weight: 600; display: inline-block; margin-top: 50px; }

.statistics { background-color: var(--white); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.stat-item { display: flex; align-items: center; gap: 25px; }
.stat-icon { width: 90px; height: 90px; background-color: var(--primary-blue); font-size: 2.5rem; color: var(--white); flex-shrink: 0; }
.stat-icon img { width: 50px; height: 50px; object-fit: contain; }
.stat-content h3 { font-size: 2.5rem; color: var(--dark-text); margin-bottom: 5px; }
.stat-highlight { color: var(--teal); font-weight: 600; }

/* Footer */
footer { background-color: #2C3E50; color: var(--white); padding: 50px 0 30px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 30px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--white); opacity: 0.8; transition: opacity 0.3s; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; opacity: 0.7; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.6s ease-out; }

/* Modal des offres partenaires */
.partner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-blue);
    background-color: #f5f5f5;
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modal-body h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.partner-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.partner-offer-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.partner-offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--teal);
}

.offer-image {
    width: 100%;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.partner-offer-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.offer-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
}

.offer-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
}

.offer-benefits li {
    padding: 5px 0;
    color: #555;
    font-size: 0.85rem;
}

.offer-btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    font-size: 1rem;
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    .partner-modal {
        align-items: flex-start;
        padding: 0;
    }
        
    .modal-content {
        position: relative;
        background: white;
        border-radius: 12px;
        max-width: 650px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 10001;
        animation: modalSlideIn 0.3s ease-out;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        padding: 20px 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-body h2 {
        font-size: 1.3rem;
    }
    
    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .partner-offers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .partner-offer-card {
        padding: 18px;
    }
    
    .offer-image {
        height: 120px;
    }
}

/* Focus visible pour Accessibilite */
*:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

