/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* Language Switch */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5a6c7d;
}

.lang-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Introduction */
.intro-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-content {
    text-align: center;
}

.intro-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.1rem;
    color: #5a6c7d;
    margin-bottom: 16px;
    line-height: 1.7;
    text-align: justify;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* Section Fonctionnalités */
.features-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 32px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    margin-bottom: 24px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card:last-child {
    margin-bottom: 0;
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.6;
    text-align: justify;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: #5a6c7d;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Formulaire */
.questionnaire-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-block {
    margin-bottom: 40px;
}

.block-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.block-description {
    font-size: 1rem;
    color: #5a6c7d;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
}

/* Groupes de checkboxes et radios */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Groupes d'intérêt pour les fonctionnalités */
.feature-interest-group {
    margin-bottom: 32px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid #ff6b6b;
}

.feature-interest-group:last-child {
    margin-bottom: 0;
}

.feature-interest-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

/* Labels pour checkboxes et radios */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.checkbox-label:hover,
.radio-label:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Checkboxes */
.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-color: #ff6b6b;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Radios */
.radio-label input[type="radio"] {
    display: none;
}

.radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radiomark {
    border-color: #ff6b6b;
}

.radio-label input[type="radio"]:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
}

/* Champs texte */
.text-input,
.textarea-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    resize: vertical;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.textarea-input {
    min-height: 120px;
}

/* Champs "Autre" */
.other-field {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
}

/* Section de soumission */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner de chargement */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message de confirmation */
.confirmation-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.confirmation-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 700;
}

.confirmation-content p {
    font-size: 1.2rem;
    color: #5a6c7d;
    font-weight: 500;
}

/* Messages d'erreur */
.error-message {
    background: #fee;
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    color: #d63031;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switch {
        top: 15px;
        right: 15px;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .intro-section,
    .features-section {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .features-title {
        font-size: 1.6rem;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-top: 0;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .questionnaire-form {
        padding: 30px 20px;
    }
    
    .block-title {
        font-size: 1.2rem;
    }
    
    .checkbox-label,
    .radio-label {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .feature-interest-group {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .feature-interest-title {
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 16px 30px;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .confirmation-content h2 {
        font-size: 1.6rem;
    }
    
    .confirmation-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .intro-section,
    .features-section {
        padding: 25px 15px;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .features-title {
        font-size: 1.4rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 1.8rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .questionnaire-form {
        padding: 25px 15px;
    }
    
    .submit-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-block {
    animation: fadeInUp 0.6s ease forwards;
}

.form-block:nth-child(1) { animation-delay: 0.1s; }
.form-block:nth-child(2) { animation-delay: 0.2s; }
.form-block:nth-child(3) { animation-delay: 0.3s; }
.form-block:nth-child(4) { animation-delay: 0.4s; }
.form-block:nth-child(5) { animation-delay: 0.5s; }

/* États de focus améliorés */
.checkbox-label:focus-within,
.radio-label:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.feature-description {
    font-size: 0.9rem;
}

.feature-interest-group {
    padding: 14px;
    margin-bottom: 20px;
}

.feature-interest-title {
    font-size: 1rem;
}

.title {
    font-size: 1.8rem;
} 