/* Conteneur principal pour le formulaire wizard */
#dwf-form-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Conteneur pour la page de connexion */
#dwf-login-container {
    background: #f0f8ff;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 40px auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Barre de progression */
#dwf-progress-bar {
    width: 100%;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}
#dwf-progress {
    height: 10px;
    width: 0;
    background: linear-gradient(90deg, #ff6b6b, #fbc531);
    transition: width 0.5s ease;
}

/* Titres de section */
.dwf-section h2,
#dwf-login-container h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

/* Styles pour les Questions et Options */
.dwf-question {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.main-question {
    font-weight: 700;
    font-size: 1.2em;
    color: #000;
    margin-bottom: 6px;
    display: block;
}
.sub-question {
    font-weight: 700;
    font-size: 1em;
    color: #555;
    margin-left: 10px;
    display: block;
}
.option {
    font-weight: 400;
    font-size: 0.9em;
    color: #666;
}

/* Champs de formulaire */
.dwf-question input[type="text"],
.dwf-question input[type="date"],
.dwf-question input[type="number"],
.dwf-question select,
.dwf-question input[type="range"],
.dwf-question textarea,
#dwf-login-container input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Indicateur de champ en erreur */
.error {
    border: 1px solid red;
}
/* Pour les boutons radio et checkbox, nous utilisons un outline afin qu'ils soient bien marqués en erreur */
input[type="radio"].error,
input[type="checkbox"].error {
    outline: 2px solid red;
}

/* Message d'erreur */
.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 3px;
    display: block;
}

/* Boutons radio et checkbox */
.dwf-radio, .dwf-checkbox {
    margin-top: 5px;
}
.dwf-radio label, .dwf-checkbox label {
    margin-right: 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9em;
    color: #666;
}
.btn-radio, .btn-checkbox, .btn-radio-small {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 5px;
}
.btn-radio span.option,
.btn-checkbox span.option,
.btn-radio-small span.option {
    font-weight: 400;
    font-size: 0.85em;
    color: #555;
}

/* Boutons de Navigation */
#dwf-navigation {
    text-align: center;
    margin-top: 30px;
}
#dwf-navigation button {
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    margin: 0 10px;
    font-size: 1em;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-abandon {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: #fff;
}
.btn-abandon:before {
    content: "🚫 ";
}
.btn-prev {
    background: linear-gradient(135deg, #2196f3, #1e88e5);
    color: #fff;
}
.btn-prev:before {
    content: "⬅️ ";
}
.btn-next {
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: #fff;
}
.btn-next:after {
    content: " ➡️";
}
.btn-submit {
    background: linear-gradient(135deg, #9c27b0, #8e24aa);
    color: #fff;
}
.btn-submit:before {
    content: "✅ ";
}
#dwf-navigation button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
#dwf-navigation button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Popup Animé */
#dwf-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fbc531;
    color: #333;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2em;
    display: none;
    z-index: 1000;
}

/* Tableaux d'options responsives */
.dwf-options-table-container {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 10px;
}
.dwf-options-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.dwf-options-table th,
.dwf-options-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    word-wrap: break-word;
}
.dwf-options-table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* Blocs colorés pour les sections supplémentaires */
.colored-card {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.discrimination-card {
    background: linear-gradient(135deg, #e0f7fa, #e8f4fa);
    border: 1px solid #b2ebf2;
}
.residence-card {
    background: linear-gradient(135deg, #e8f5e9, #e7f9e7);
    border: 1px solid #c8e6c9;
}
.colored-card .card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #006064;
}
.residence-card .card-title {
    color: #2e7d32;
}
.colored-card .card-subtitle {
    font-size: 0.9em;
    margin-bottom: 15px;
    color: #555;
}

/* Formulaire de Résidence */
.residence-form-group {
    margin-bottom: 15px;
}
.residence-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2e7d32;
}
.residence-form-group input[type="text"],
.residence-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Styles spécifiques pour la section Santé, Éducation et Emploi */
.sante-education-section {
    background-color: #f0fff0; /* fond léger vert */
    border: 1px solid #cce5cc;
    padding: 20px;
    margin-bottom: 30px;
}

/* Styles pour la section Relations entre Non-Migrants et Migrants */
.relations-migrants-section {
    background-color: #fff8e1; /* fond léger orangé */
    border: 1px solid #ffe0b2;
    padding: 20px;
    margin-bottom: 30px;
}

/* Styles pour la section Participation Citoyenne */
.participation-citoyenne-section {
    background-color: #e8f5e9; /* fond léger vert pâle */
    border: 1px solid #c8e6c9;
    padding: 20px;
    margin-bottom: 30px;
}

/* Styles pour la section Communication et Dialogue */
.communication-dialogue-section {
    background-color: #e3f2fd; /* fond bleu très clair */
    border: 1px solid #bbdefb;
    padding: 20px;
    margin-bottom: 30px;
}

/* Styles pour la section Développement Économique et Changements Sociaux */
.developpement-changements-section {
    background-color: #f3e5f5; /* fond violet pâle */
    border: 1px solid #e1bee7;
    padding: 20px;
    margin-bottom: 30px;
}

/* Styles pour la section Perception des Migrants et Réfugiés */
.perception-migrants-section {
    background-color: #fce4ec; /* fond rose très léger */
    border: 1px solid #f8bbd0;
    padding: 20px;
    margin-bottom: 30px;
}

/* Styles pour la section Changements Environnementaux */
.changements-environnementaux-section {
    background-color: #e0f7fa; /* fond bleu cyan léger */
    border: 1px solid #b2ebf2;
    padding: 20px;
    margin-bottom: 30px;
}

.dwf-options-vertical {
    display: block;
}
.dwf-options-vertical .dwf-option {
    margin-bottom: 8px;
}

/* Style spécifique pour la section de sélection de région */
#section-region {
    background-color: #eef7ff;  /* Fond bleu très léger */
    border: 1px solid #cce5ff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}
