/* Corps principal */
body {
    font-family: 'Inter', sans-serif; /* Police principale */
    background-color: #f9f9f9; /* Couleur de fond douce */
    color: #333; /* Couleur du texte */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body.dark-mode .faq-card {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode header, body.dark-mode footer {
    background-color: #333;
}

.btn {
    background-color: green;
    color: #ffffff;
}
.btn-secondary {
    background-color: #ef5923;
    color: #ffffff;}

/* En-tête */
header {
    background-color: #ef5923; /* Couleur de fond */
    color: black; /* Couleur du texte */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Légère ombre */
}

header img {
    display: block;
    margin: 0 auto;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white; /* Fond des cartes */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Légère ombre */
}

/* Titres */
h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Cartes FAQ */
.faq-card {
    background-color: #f9f9f9; /* Fond clair */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.faq-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Ombre accentuée au survol */
}

.faq-category {
    background-color: #ef5923; /* Couleur de fond des catégories */
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.faq-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.faq-description {
    font-size: 0.9rem;
    color: #555;
    display: none; /* Masqué par défaut */
}

/* Boutons */
button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background-color: #ef5923;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #d94c1f;
    transform: translateY(-2px); /* Légère élévation au survol */
}

/* Feedback Buttons */
.feedback-buttons {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.feedback-up {
    color: white;
    border-color: none;
}

.feedback-up:hover {
    background-color: green;
    color: white;
}

.feedback-down {
    color: red;
    background-color: green;
    /**border-color: none;*/
}

.feedback-down:hover {
    background-color: red;
    color: white;
}

.modal-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.modal-body {
    font-size: 1.2rem;
    text-align: center;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.feedback-selected {
    background-color: #d4edda !important; /* Vert clair pour 👍 */
    color: black !important;
    border-color: #c3e6cb !important;
}

.feedback-down.feedback-selected {
    background-color: #f8d7da !important; /* Rouge clair pour 👎 */
    border-color: #f5c6cb !important;
}

/* Formulaire de filtrage */
.form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-select {
    font-family: 'Inter', sans-serif;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    border-color: #ef5923;
    outline: none;
    box-shadow: 0 0 4px rgba(239, 89, 35, 0.5); /* Effet lumineux */
}

/* Pied de page */
footer {
    background-color: #ef5923; /* Fond */
    color: white; /* Texte */
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Liens */
a {
    color: #ef5923;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d94c1f;
    text-decoration: underline;
}

/* Responsivité */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .faq-card {
        padding: 10px;
    }
}

/* Mode sombre */
body.dark-mode {
    background-color: #000000; /* Fond noir */
    color: #000000; /* Texte noir */
}

body.dark-mode .faq-card {
    background-color: #121212; /* Fond légèrement plus clair pour différencier les cartes */
    color: #ffffff; /* Texte des cartes en blanc */
    border: 1px solid #333333; /* Bordure subtile pour délimiter */
}

body.dark-mode header {
    background-color: #000000; /* Fond noir pour le header */
}

body.dark-mode header h1 {
    color: #000000; /* Titre principal en blanc */
}

body.dark-mode footer {
    background-color: #000000; /* Fond noir pour le footer */
    color: #ffffff; /* Texte du footer en blanc */
}

body.dark-mode .faq-category {
    background-color: #ef5923; /* Couleur d'arrière-plan des catégories */
    color: #ffffff; /* Couleur du texte des catégories */
}

body.dark-mode .faq-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFF;
}

body.dark-mode .btn {
    background-color: #ef5923;
    color: #ffffff;
}
body.dark-mode .btn-secondary {
    background-color: green;
    color: #ffffff;
}


body.dark-mode .faq-description {
    font-size: 0.9rem;
    color: #aa9696;
    display: none; /* Masqué par défaut */
}

body.dark-mode .feedback-up {
    color: green;
    border-color: green;
}

body.dark-mode .feedback-up:hover {
    background-color: green;
    color: white;
}

body.dark-mode .feedback-down {
    color: red;
    border-color: red;
}

body.dark-mode .feedback-down:hover {
    background-color: red;
    color: white;
}
