/* Styles spécifiques à la page FAQs */

:root {
    --bleu-nuit: #1a237e;
    --rouge-nuit: #b71c1c;
    --blanc: #ffffff;
    --gris-clair: #f5f5f5;
    --gris-fonce: #424242;
    --bleu-clair: #3f51b5;
    --rouge-clair: #e53935;
    --bleu-gradient: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --rouge-gradient: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
}

/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--rouge-nuit) 100%);
    color: var(--blanc);
    padding: 60px 0;
    text-align: center;
}

.faq-hero-content h1 {
    font-size: 4.0rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
        font-weight: 700;
}

.faq-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}
.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-start infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--bleu-nuit) }
}
        

/* FAQ Search Section */
.faq-search {
    padding: 40px 0;
    background-color: var(--gris-clair);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}
/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(183, 28, 28, 0.8) 100%),
            url('../media/slide2.png') center/cover;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        color: var(--blanc);
        padding: 120px 0 80px;
        text-align: center;
        position: relative;
        overflow: hidden;
        animation: slideUp 1s ease;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../media/UCAO-TECH.png') center/contain no-repeat;
    opacity: 0.3; /* Ajustez l'opacité ici */
    z-index: 1;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
}

.faq-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* FAQ Search Section */
.faq-search {
    padding: 40px 0;
    background-color: var(--gris-clair);
}
#faq-search-input {
    all: unset;
    flex: 1;
    padding: 15px 0;
    font-size: 1rem;
    background: transparent;
    color: var(--gris-fonce);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    }



.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--blanc);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

.search-box i {
    padding: 0 15px;
    color: var(--gris-fonce);
}

.search-box input {
    all: unset;
    flex: 1;
    padding: 15px 0;
    font-size: 1rem;
    background: transparent;
    color: var(--gris-fonce);
}

.search-box input::placeholder {
    color: var(--gris-fonce);
    opacity: 0.7;
}

.search-box button {
    background:linear-gradient(135deg, var(--bleu-nuit) 0%, var(--rouge-nuit) 100%);
    color: var(--blanc);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.fas {
    color: var(--bleu-nuit);
}

.search-box button:hover {
    background:var(--bleu-nuit);
    transform: translateY(-2px);
}


/* FAQ Categories */
.faq-categories {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.categories-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    background: var(--blanc);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--gris-fonce);
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--bleu-nuit) 0%, var(--rouge-nuit) 100%);
    color: var(--blanc);
    border-color: var(--bleu-nuit);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: var(--gris-clair);
}

.faq-category-group {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--gris-fonce);
    position: relative;
    padding-bottom: 10px;
}

.faq-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background:  linear-gradient(135deg, var(--bleu-nuit) 0%, var(--rouge-nuit) 100%);
     
}
.faq-category-title::after {
    animation: slideRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideRight {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}
.faq-items {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: var(--blanc);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
     border: 1px solid;
    border-color: var(--bleu-nuit);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--gris-clair);
    transition: all 0.3s ease;
    color: var(--bleu-nuit);
}

.faq-question:hover {
    background: #e8e8e8;
    color: var(--rouge-nuit);
   
}

.faq-question i {
    transition: all 0.3s ease;
    color: var(--bleu-nuit);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--bleu-nuit);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--gris-fonce);
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--gris-fonce);
}

/* FAQ Contact Section */
.faq-contact {
    padding: 60px 0;
    background: var(--bleu-gradient);
    color: var(--blanc);
    text-align: center;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-btn {
    display: inline-block;
    background: var(--blanc);
    color: var(--bleu-nuit);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--blanc);
}

.contact-btn:hover {
    background: transparent;
    color: var(--blanc);
    transform: translateY(-3px);
}

/* Message aucun résultat */
.no-results-message {
    text-align: center;
    padding: 40px;
    background: var(--gris-clair);
    border-radius: 10px;
    margin: 20px 0;
    border: 2px dashed #e0e0e0;
}

.no-results-message i {
    font-size: 3rem;
    color: var(--rouge-clair);
    margin-bottom: 15px;
    opacity: 0.7;
}

.no-results-message h3 {
    color: var(--gris-fonce);
    margin-bottom: 10px;
}

.no-results-message p {
    color: var(--gris-fonce);
    opacity: 0.8;
}

.no-results-message a {
    color: var(--bleu-nuit);
    text-decoration: none;
    font-weight: 600;
}

.no-results-message a:hover {
    color: var(--bleu-clair);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero-content h1 {
        font-size: 2rem;
    }
    
    .faq-hero-content p {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
    }
    
    .search-box input {
        padding: 15px;
        margin: 10px 0;
        width: 100%;
    }
    
    .categories-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .faq-category-title {
        font-size: 1.5rem;
    }
    
    .contact-cta h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}

/* Animation pour les éléments FAQ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.5s ease-out;
}

/* Effet de focus pour l'accessibilité */
.search-box input:focus,
.category-btn:focus,
.contact-btn:focus {
    outline: 2px solid var(--bleu-clair);
    outline-offset: 2px;
}

.faq-question:focus {
    outline: 2px solid var(--bleu-clair);
    outline-offset: -2px;
}   