/* FAQ Section - Style modulaire */
.faq {
    background-color: #f9f9f9;
    padding-top: 80px;
    padding-bottom: 80px;
}

.faq .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 30px;
    font-size: 2rem;
    color: #4169e1;
    font-weight: 700;
    line-height: 2.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #4169e1;
    border-radius: 5px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-question:hover {
    background-color: #D4EAFE;
}

.faq-question i {
    margin-right: 15px;
    color: #4169e1;
    font-size: 1.2rem;
}

.faq-question h3 {
    flex-grow: 1;
    margin: 0;
    font-size: 1.1rem;
    color: #333333;
    font-weight: 600;
}

.toggle-icon {
    color: #4169e1;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px;
    padding-top: 0;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin-bottom: 15px;
    color: #666666;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #4169e1;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* FAQ TABS - Design moderne et élégant */
.faq-tabs {
    margin-bottom: 2rem;
}

.faq-tabs > div {
    background: rgb(59, 130, 246);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
}

.tab-btn {
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

.tab-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.tab-btn.active {
    color: #4169e1;
    background-color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tab-btn.active i {
    color: #4169e1;
}

/* Animation fade pour les FAQ items */
.faq-item {
    transition: opacity 0.3s ease;
    margin-bottom: 20px;
}

.faq-tabs ~ .faq-container .faq-item {
    display: none;
}

.faq-tabs ~ .faq-container .faq-item.visible {
    display: block;
}

/* Amélioration responsive des onglets */
@media (max-width: 640px) {
    .faq-tabs > div {
        padding: 4px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .tab-btn i {
        margin-right: 6px;
    }
}

@media (min-width: 768px) {
    .section-title {
      font-size: 3rem;
      line-height: 1;
    }
  }