/* faq.css - Styles spécifiques pour la page FAQ */

/* Header de la page FAQ - Amélioré */
.page-header.faq-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(10, 10, 24, 0.85)), url('../images/illu/hurlevent.jpg') center/cover no-repeat;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.page-header.faq-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(239, 203, 62, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem 2rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(239, 203, 62, 0.3);
    letter-spacing: 2px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.separator {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 1.5rem auto;
    box-shadow: 0 0 10px rgba(239, 203, 62, 0.5);
}

/* Section de recherche - Améliorée */
.faq-search-section {
    background: linear-gradient(135deg, rgba(10, 10, 24, 0.98), rgba(15, 15, 30, 0.98));
    padding: 1.5rem 0;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(239, 203, 62, 0.05);
    position: sticky;
    top: 70px;
    z-index: 90;
    transition: var(--transition);
    border-bottom: 1px solid rgba(239, 203, 62, 0.15);
}

.faq-search-section.fixed {
    position: fixed;
    left: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

#faq-search {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 20, 0.4));
    border: 2px solid rgba(239, 203, 62, 0.25);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

#faq-search:focus {
    outline: none;
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 10, 20, 0.5));
    box-shadow: 
        0 0 20px rgba(239, 203, 62, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#faq-search:focus + .search-icon {
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

#faq-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Catégories FAQ - Améliorées */
.faq-categories {
    margin: 3rem 0 2.5rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.category-tab {
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 20, 0.4));
    color: var(--text-light);
    border: 2px solid rgba(239, 203, 62, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(239, 203, 62, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-tab:hover {
    background: linear-gradient(135deg, rgba(239, 203, 62, 0.15), rgba(239, 203, 62, 0.25));
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 203, 62, 0.2);
}

.category-tab:hover::before {
    opacity: 1;
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-dark);
    border-color: var(--primary-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(239, 203, 62, 0.4),
        0 0 30px rgba(239, 203, 62, 0.2);
    font-weight: 700;
}

.category-tab.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

.category-tab.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contenu FAQ - Amélioré */
.faq-content {
    margin-bottom: 4rem;
    min-height: 400px;
}

.faq-category {
    display: none;
}

.faq-category.active,
.faq-category.visible {
    display: block;
}

/* Style amélioré des cartes de questions */
.faq-item {
    background: linear-gradient(135deg, rgba(10, 10, 24, 0.6), rgba(15, 15, 30, 0.6));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(239, 203, 62, 0.15);
    border-left: 4px solid var(--primary-color);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(239, 203, 62, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-left-width: 5px;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item.important {
    border-left-color: #e67e22;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), rgba(10, 10, 24, 0.7));
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(230, 126, 34, 0.1);
}

.faq-item.important::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #e67e22 transparent transparent;
    z-index: 2;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.faq-item.important:hover::after {
    opacity: 1;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.5), rgba(10, 10, 20, 0.5));
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(239, 203, 62, 0.12);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 203, 62, 0.05), transparent);
    transition: left 0.5s ease;
}

.faq-question:hover::before {
    left: 100%;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.7), rgba(10, 10, 20, 0.7));
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-right: 2.5rem;
    flex: 1;
    line-height: 1.5;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover h3 {
    color: var(--primary-light);
}

.toggle-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-top: 0.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 203, 62, 0.15), rgba(239, 203, 62, 0.08));
    border-radius: 50%;
    border: 2px solid rgba(239, 203, 62, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.faq-question:hover .toggle-icon {
    background: linear-gradient(135deg, rgba(239, 203, 62, 0.25), rgba(239, 203, 62, 0.15));
    border-color: rgba(239, 203, 62, 0.5);
    transform: scale(1.1);
}

.faq-item.open .toggle-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(239, 203, 62, 0.3);
}

.faq-item.open .toggle-icon i {
    color: var(--text-dark);
}

/* Réponses FAQ - Améliorées */
.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(5, 5, 15, 0.4), rgba(5, 5, 15, 0.3));
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.faq-item.open .faq-answer {
    padding: 2rem;
    max-height: none !important;
    overflow: visible;
    border-top: 1px solid rgba(239, 203, 62, 0.1);
}

.faq-item.open .toggle-icon i {
    transform: rotate(45deg);
}

.faq-answer p {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Amélioration des listes dans les réponses */
.faq-answer ul, 
.faq-answer ol {
    margin: 1.5rem 0;
    padding-left: 1.8rem;
}

.faq-answer ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    line-height: 1.7;
}

.faq-answer ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    line-height: 1.7;
}

.faq-answer ul li::before {
    content: '▸';
    color: var(--primary-color);
    position: absolute;
    left: -0.2em;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(239, 203, 62, 0.3);
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.faq-answer a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
    border-bottom-style: solid;
}

/* Mise en évidence des éléments importants */
.faq-answer strong {
    color: var(--primary-light);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(239, 203, 62, 0.2);
}

/* Style des blocs de code */
.faq-answer code {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(10, 10, 20, 0.4));
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: #FFD700;
    border: 1px solid rgba(239, 203, 62, 0.25);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Message "Aucun résultat" */
.no-results-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(0, 0, 0, 0.4));
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    display: none;
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-left: 5px solid #e74c3c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.no-results-message p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Mise en surbrillance des termes de recherche */
.highlight {
    background: linear-gradient(135deg, rgba(239, 203, 62, 0.4), rgba(239, 203, 62, 0.25));
    color: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(239, 203, 62, 0.2);
    text-shadow: 0 0 5px rgba(239, 203, 62, 0.3);
}

/* Section contact - Améliorée */
.question-contact-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(10, 10, 24, 0.85)), url('../images/illu/champs.jpg') center/cover no-repeat;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.question-contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(239, 203, 62, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(239, 203, 62, 0.3);
}

.contact-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-buttons .cta-button {
    transition: all 0.3s ease;
}

.contact-buttons .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 203, 62, 0.4);
}

/* États de chargement et erreurs - Améliorés */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.loading-indicator i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(180, 30, 30, 0.25));
    border-radius: 12px;
    margin: 3rem 0;
    border: 2px solid rgba(231, 76, 60, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.error-message i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.empty-faq-message {
    padding: 3rem 2rem;
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(10, 10, 20, 0.3));
    border-radius: 12px;
    border: 1px solid rgba(239, 203, 62, 0.15);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .page-title {
        font-size: 2.8rem;
        letter-spacing: 1.5px;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .category-tab {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    .page-header.faq-header {
        height: 35vh;
        min-height: 250px;
    }
    
    .page-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .category-tab {
        width: 100%;
        max-width: 350px;
        text-align: center;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-item.open .faq-answer {
        padding: 1.5rem;
    }
    
    .contact-text h2 {
        font-size: 2rem;
    }
    
    .contact-text p {
        font-size: 1.1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .cta-button {
        width: 100%;
        max-width: 320px;
    }
}

@media screen and (max-width: 576px) {
    .page-header.faq-header {
        height: 30vh;
        min-height: 220px;
    }
    
    .page-title {
        font-size: 1.9rem;
        letter-spacing: 0.5px;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 1.05rem;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    #faq-search {
        padding: 12px 16px 12px 42px;
        font-size: 0.95rem;
    }
    
    .category-tab {
        padding: 0.7rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .toggle-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-item.open .faq-answer {
        padding: 1.2rem;
    }
    
    .contact-text h2 {
        font-size: 1.7rem;
    }
    
    .contact-text p {
        font-size: 1rem;
    }
}
