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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

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

/* Bandeau RGPD */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0B3948;
    color: white;
    padding: 15px 0;
    z-index: 10000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.gdpr-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.gdpr-content p {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

.gdpr-content a {
    color: #FFD470;
    text-decoration: underline;
}

.gdpr-buttons {
    display: flex;
    gap: 10px;
}

.gdpr-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gdpr-accept {
    background: #FFD470;
    color: #0B3948;
}

.gdpr-accept:hover {
    background: #e6c063;
}

.gdpr-decline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.gdpr-decline:hover {
    background: white;
    color: #0B3948;
}

/* Header */
.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
    width: auto;
}

.rating {
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: 40px 0;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page d'accueil */
.welcome-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B3948;
    margin-bottom: 40px;
    line-height: 1.2;
}

.highlight {
    color: #6B73FF;
    background: linear-gradient(45deg, #6B73FF, #9B59B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.form-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.cta-button {
    background: linear-gradient(45deg, #D85A7F, #E91E63);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 90, 127, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 90, 127, 0.4);
}

/* Section avantages */
.benefits-section {
    margin: 60px 0;
}

.benefits-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.check-icon {
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Témoignage */
.testimonial {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.testimonial h3 {
    color: #0B3948;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content strong {
    color: #0B3948;
}

.rating-section {
    color: #4CAF50;
    font-weight: 600;
}

/* Formulaire multi-étapes */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Barre de progression */
.progress-bar {
    position: relative;
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(45deg, #6B73FF, #9B59B6);
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    top: -30px;
    right: 0;
    font-weight: 600;
    color: #6B73FF;
}

/* Titres des étapes */
.step-title {
    font-size: 1.8rem;
    color: #0B3948;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* Grille d'options */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.options-grid.multi-select {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Boutons d'options */
.option-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: #FFD470;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.option-btn.selected {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
}

.option-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-weight: bold;
}

/* Boutons d'options multi-sélection avec couleurs différentes */
.option-btn.multi[data-value="optical"] {
    border-color: #4CAF50;
}

.option-btn.multi[data-value="optical"].selected {
    background: #4CAF50;
}

.option-btn.multi[data-value="dental"] {
    border-color: #2196F3;
}

.option-btn.multi[data-value="dental"].selected {
    background: #2196F3;
}

.option-btn.multi[data-value="hospital"] {
    border-color: #FF9800;
}

.option-btn.multi[data-value="hospital"].selected {
    background: #FF9800;
}

.option-btn.multi[data-value="general"] {
    border-color: #9C27B0;
}

.option-btn.multi[data-value="general"].selected {
    background: #9C27B0;
}

/* Groupes d'entrée */
.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.input-group input,
.input-group select {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #FFD470;
}

.input-group input.error,
.input-group select.error {
    border-color: #dc3545;
}

/* Boutons suivant */
.next-btn {
    background: linear-gradient(45deg, #D85A7F, #E91E63);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(216, 90, 127, 0.3);
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Formulaire de contact */
.contact-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #0B3948;
}

.form-group input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FFD470;
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Section de consentement */
.consent-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    font-weight: 400;
}

.checkbox-group a {
    color: #0B3948;
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: #FFD470;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #D85A7F, #E91E63);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 90, 127, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Notice de confidentialité */
.privacy-notice {
    background: #e8f5e8;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.privacy-notice a {
    color: #0B3948;
    text-decoration: underline;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: #0B3948;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close:hover {
    color: #FFD470;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    color: #0B3948;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gdpr-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .form-card {
        padding: 20px 15px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .option-btn {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .checkbox-group input[type="checkbox"] {
        margin-top: 0;
    }
}

/* Animations et transitions */
.option-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.option-btn:active {
    transform: scale(0.98);
}

.form-group input:focus,
.input-group input:focus,
.input-group select:focus {
    box-shadow: 0 0 0 3px rgba(255, 212, 112, 0.2);
}

/* États de chargement */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #0B3948;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Focus visible pour l'accessibilité */
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #FFD470;
    outline-offset: 2px;
}

/* Amélioration des performances */
.page {
    will-change: transform, opacity;
}

.option-btn,
.cta-button,
.next-btn,
.submit-btn {
    will-change: transform;
}

