/* Styles spécifiques pour la page FAQ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0 60px 0; /* padding-top réduit */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Barre de recherche */
#faqSearch {
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#faqSearch:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    outline: none;
}

.input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    border-right: none;
    color: white;
}

/* Catégories FAQ */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    color: #333;
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}

.faq-category h2::after {
    display: none;
}

/* Accordéon */
.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.accordion-button {
    font-weight: 600;
    padding: 18px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    border-bottom: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    line-height: 1.7;
    background: #fff;
}

.accordion-body h6 {
    color: #667eea;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.accordion-body ul, .accordion-body ol {
    margin-bottom: 18px;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.accordion-body strong {
    color: #333;
    font-weight: 600;
}

.accordion-body em {
    color: #666;
    font-style: italic;
}

/* Mise en surbrillance */
.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 40px 0;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.no-results h4 {
    color: #495057;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .accordion-button {
        padding: 15px 20px;
        font-size: 14px;
    }

    .accordion-body {
        padding: 20px;
    }

    .faq-category h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .hero-section h1.display-4 {
        white-space: nowrap;
        font-size: 2.7rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-category {
    animation: fadeInUp 0.6s ease-out;
}

.accordion-item {
    animation: fadeInUp 0.4s ease-out;
}

/* Accessibilité */
.accordion-button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Styles pour les listes */
.accordion-body ul li::marker {
    color: #667eea;
}

.accordion-body ol li::marker {
    color: #667eea;
    font-weight: 600;
}

/* Badges et étiquettes */
.badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tableaux dans le contenu */
.accordion-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.accordion-body table th,
.accordion-body table td {
    padding: 10px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.accordion-body table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.accordion-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Styles supplémentaires du fichier faq.php */
.accordion-button:not(.collapsed) {
    background-color: #667eea;
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-item {
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
    border-radius: 8px;
}

.accordion-button {
    font-weight: 600;
    padding: 15px 20px;
}

.accordion-body {
    padding: 20px;
    line-height: 1.6;
}

.accordion-body h6 {
    color: #667eea;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.accordion-body ul, .accordion-body ol {
    margin-bottom: 15px;
}

.accordion-body li {
    margin-bottom: 5px;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

#faqSearch {
    border: 2px solid #667eea;
    border-radius: 8px;
}

#faqSearch:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
}