/* Fichier : /assets/style.css (Version Intégrale Complète et Corrigée) */

:root {
    --primary-color: #6a5acd; /* Un violet doux */
    --secondary-color: #3b82f6; /* Un bleu moderne */
    --text-color: #333;
    --background-color: #f8f9fa;
    --white-color: #fff;
    --border-radius: 12px;
    --footer-link-color: #4B0082; /* Un violet plus foncé pour le contraste */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--white-color);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

h3 {
    color: #444;
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.intro {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section img {
    max-width: 250px;
    height: auto;
}

/* Section Quiz */
.quiz-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #fdfdff;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}

.quiz-header {
    text-align: center;
    margin-bottom: 20px;
}

.quiz-header h2 {
    border-bottom: none;
    margin-top: 0;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
}

.bonus-box {
    margin-top: 15px;
    padding: 10px;
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    color: #856404;
    font-weight: 500;
}

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

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.4s ease-in-out;
}

/* Styles pour les questions (générés par JS) */
.question {
    animation: fadeIn 0.5s;
}

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

.question-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.question-help {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    display: block;
    padding: 15px;
    background-color: var(--background-color);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 500;
}

.option:hover {
    border-color: var(--secondary-color);
    background-color: #eef5ff;
}

.option.selected {
    border-color: var(--primary-color);
    background-color: #f3f1ff;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-prev {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* Champs de formulaire */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
}

#submitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Section Carte */
.map-section #map {
    height: 350px;
    width: 100%;
    border-radius: var(--border-radius);
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* Grille pour les villes à proximité */
.city-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 15px; 
    margin-top: 15px; 
}
.city-link { 
    padding: 12px 15px; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef;
    border-radius: 8px; 
    text-decoration: none; 
    color: var(--primary-color); 
    text-align: center; 
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.city-link:hover { 
    background: #eef5ff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Section FAQ */
.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #666;
}
.footer a {
    color: var(--footer-link-color);
    text-decoration: none;
}
.footer p {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    .quiz-section { padding: 20px; }
}

/* --- CORRECTION BOUTONS FIN DU QUIZ --- */
.quiz-nav {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Force les éléments à prendre toute la hauteur */
    gap: 5%;
    margin-top: 20px;
}
.quiz-nav .btn-prev {
    flex-basis: 30%;
    /* On s'assure qu'il n'y ait pas de style conflictuel */
    margin: 0;
    width: auto;
}
.quiz-nav #submitBtn {
    flex-basis: 65%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    /* On s'assure qu'il n'y ait pas de style conflictuel */
    margin: 0;
    width: auto;
}