/**
 * Styles pour la page FAQ UMOA
 * Design professionnel et responsive
 * 
 * @package UMOA
 */

/* ============================================================================
   VARIABLES
   ============================================================================ */

:root {
    --faq-primary: var(--blue-medium, #4A90E2);
    --faq-primary-dark: var(--blue-deep, #1E3A8A);
    --faq-primary-light: var(--blue-light, #6BB6FF);
    --faq-gradient: linear-gradient(135deg, var(--faq-primary-light) 0%, var(--faq-primary-dark) 100%);
    --faq-bg: var(--white, #FFFFFF);
    --faq-bg-light: var(--gray-50, #F9FAFB);
    --faq-border: var(--gray-200, #E5E7EB);
    --faq-text: var(--gray-900, #111827);
    --faq-text-light: var(--gray-600, #4B5563);
    --faq-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --faq-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --faq-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --faq-radius: 12px;
    --faq-radius-sm: 8px;
    --faq-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   PAGE FAQ
   ============================================================================ */

.faq-page {
    min-height: 100vh;
    background: var(--faq-bg-light);
    padding-bottom: 4rem;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.faq-hero {
    background: var(--faq-gradient);
    padding: 4rem 1rem 3rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    line-height: 1.2;
}

.faq-icon {
    font-size: 3.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.faq-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Barre de recherche */
.faq-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    background: white;
    color: var(--faq-text);
    box-shadow: var(--faq-shadow-lg);
    transition: var(--faq-transition);
    outline: none;
}

.faq-search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), var(--faq-shadow-lg);
    transform: translateY(-2px);
}

.faq-search-input::placeholder {
    color: var(--faq-text-light);
}

.faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faq-text-light);
    pointer-events: none;
}

/* ============================================================================
   CONTENU PRINCIPAL
   ============================================================================ */

.faq-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ============================================================================
   CATÉGORIES
   ============================================================================ */

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.faq-category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--faq-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--faq-text);
    cursor: pointer;
    transition: var(--faq-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.faq-category-btn:hover {
    border-color: var(--faq-primary);
    color: var(--faq-primary);
    transform: translateY(-2px);
    box-shadow: var(--faq-shadow-md);
}

.faq-category-btn.active {
    background: var(--faq-gradient);
    border-color: transparent;
    color: white;
    box-shadow: var(--faq-shadow-md);
}

.faq-category-btn span {
    font-size: 1.2rem;
}

/* ============================================================================
   LISTE FAQ
   ============================================================================ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-section {
    background: white;
    border-radius: var(--faq-radius);
    padding: 2rem;
    box-shadow: var(--faq-shadow);
    transition: var(--faq-transition);
}

.faq-section:hover {
    box-shadow: var(--faq-shadow-md);
}

.faq-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--faq-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--faq-border);
}

.section-icon {
    font-size: 2rem;
}

/* ============================================================================
   ITEMS FAQ
   ============================================================================ */

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-radius-sm);
    overflow: hidden;
    transition: var(--faq-transition);
}

.faq-item:hover {
    border-color: var(--faq-primary-light);
    box-shadow: var(--faq-shadow);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--faq-bg-light);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--faq-transition);
    font-family: inherit;
}

.faq-question:hover {
    background: white;
}

.faq-question[aria-expanded="true"] {
    background: white;
    border-bottom: 1px solid var(--faq-border);
}

.faq-q-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--faq-text);
    flex: 1;
    line-height: 1.5;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--faq-primary);
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.faq-answer > * {
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--faq-text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p:first-child {
    padding-top: 1.5rem;
}

.faq-answer p:last-child {
    padding-bottom: 1.5rem;
}

.faq-answer ul,
.faq-answer ol {
    padding: 0.5rem 1.5rem 1.5rem 3rem;
    color: var(--faq-text-light);
    line-height: 1.8;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--faq-text);
    font-weight: 600;
}

.faq-answer a {
    color: var(--faq-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--faq-transition);
}

.faq-answer a:hover {
    text-decoration: underline;
    color: var(--faq-primary-dark);
}

/* ============================================================================
   AUCUN RÉSULTAT
   ============================================================================ */

.faq-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--faq-radius);
    box-shadow: var(--faq-shadow);
}

.faq-no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.faq-no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.faq-no-results h3 {
    font-size: 1.5rem;
    color: var(--faq-text);
    margin-bottom: 0.5rem;
}

.faq-no-results p {
    color: var(--faq-text-light);
    line-height: 1.6;
}

/* ============================================================================
   SECTION CONTACT
   ============================================================================ */

.faq-contact {
    margin-top: 4rem;
    background: var(--faq-gradient);
    border-radius: var(--faq-radius);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    box-shadow: var(--faq-shadow-lg);
}

.faq-contact-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.faq-contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--faq-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.faq-btn-primary {
    background: white;
    color: var(--faq-primary);
    box-shadow: var(--faq-shadow-md);
}

.faq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--faq-shadow-lg);
    background: var(--faq-bg-light);
}

.faq-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    backdrop-filter: blur(10px);
}

.faq-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--faq-shadow-md);
}

/* ============================================================================
   RESPONSIVE - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    .faq-hero {
        padding: 3rem 1rem 2rem;
    }
    
    .faq-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .faq-icon {
        font-size: 2.5rem;
    }
    
    .faq-subtitle {
        font-size: 1.1rem;
    }
    
    .faq-search-input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 0.95rem;
    }
    
    .faq-content {
        padding: 1.5rem 1rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .faq-category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
    
    .faq-section-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }
    
    .section-icon {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-q-text {
        font-size: 1rem;
    }
    
    .faq-answer > * {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 2rem;
    }
    
    .faq-contact {
        padding: 2rem 1.5rem;
    }
    
    .faq-contact-content h2 {
        font-size: 1.75rem;
    }
    
    .faq-contact-content p {
        font-size: 1rem;
    }
    
    .faq-contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .faq-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-icon {
        font-size: 2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
    }
    
    .faq-category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .faq-category-btn span {
        font-size: 1rem;
    }
    
    .faq-section {
        padding: 1rem;
    }
    
    .faq-section-title {
        font-size: 1.25rem;
    }
    
    .faq-question {
        padding: 0.875rem 1rem;
    }
    
    .faq-q-text {
        font-size: 0.95rem;
    }
}

/* ============================================================================
   ACCESSIBILITÉ
   ============================================================================ */

.faq-question:focus {
    outline: 3px solid var(--faq-primary-light);
    outline-offset: 2px;
}

.faq-category-btn:focus {
    outline: 3px solid var(--faq-primary-light);
    outline-offset: 2px;
}

.faq-search-input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Animation pour les lecteurs d'écran */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

