/**
 * Styles pour le formulaire d'éligibilité Bénéficiaire V3
 * Version: 1.0.0
 * Toutes les classes sont préfixées par fbv3- pour éviter les conflits
 */

/* Styles de base avec reset pour éviter les conflits */
.fbv3-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

/* Reset des styles pour les éléments à l'intérieur du conteneur */
.fbv3-form-container *,
.fbv3-form-container *::before,
.fbv3-form-container *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* Barre de progression */
.fbv3-progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 25px;
    margin-bottom: 30px;
    overflow: hidden;
}

.fbv3-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

/* Conteneur de questions */
.fbv3-question-container {
    margin-bottom: 20px;
}

/* Styles pour les questions */
.fbv3-question {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

/* Conteneur d'options */
.fbv3-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* Boutons d'options */
.fbv3-option-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.fbv3-option-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.fbv3-option-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Conteneur de boutons */
.fbv3-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 10px;
}

/* Boutons généraux */
.fbv3-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.fbv3-btn-prev {
    background-color: #1C2E8A;
    color: white;
}

.fbv3-btn-prev:hover {
    background-color: #1C2E8A;
}

.fbv3-btn-restart {
    background-color: #63B770;
    color: white;
}

.fbv3-btn-restart:hover {
    background-color: #63B770;
}

/* Section des résultats */
.fbv3-result {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 25px;
    margin-top: 20px;
}

.fbv3-result-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.fbv3-result-content {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
}

/* Styles responsives */
@media (max-width: 768px) {
    .fbv3-form-container {
        padding: 20px;
    }
    
    .fbv3-question {
        font-size: 18px;
    }
    
    .fbv3-option-btn {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .fbv3-buttons {
        flex-direction: column;
    }
    
    .fbv3-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Conteneur de question */
.question {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question h3 {
    margin-bottom: 25px;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.4;
}

/* Options de réponse */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: none !important;
}

.option-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: translateY(0);
}

.option-btn:active {
    transform: translateY(0);
}

/* Conteneur de résultat */
.result {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    border-left: 5px solid #63B770;
    color: #000000;
}

.result h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.result p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
}

/* Boutons de navigation */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    background-color: #63B770;
    color: white;
    border: none;
    box-shadow: none !important;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: none !important;
}

.btn:hover {
    background-color: #4f9e5d;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Style pour les écrans mobiles */
@media (max-width: 768px) {
    .fbv3-form-container {
        padding: 15px;
    }
    
    .fbv3-form-container h1 {
        font-size: 24px;
    }
    
    .fbv3-form-container h2.subtitle {
        font-size: 16px;
    }
    
    .option-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
    }
}
