/**
 * Feuille de style du composant FaqSection
 * Fichier : public/css/faq-section.css
 *
 */

:root {
    --faq-ink: #121a2b;
    --faq-muted: #3a4458;
    --faq-accent: #e8743b;
    --faq-border: rgba(18, 26, 43, 0.12);
}

.faq-section {
    width: 100%;
    background-color: #ffffff;
    padding-top: clamp(56px, 9vw, 112px);
    padding-bottom: clamp(56px, 9vw, 112px);
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    color: var(--faq-ink);
}

.faq-section ::selection {
    background-color: var(--faq-accent);
    color: #ffffff;
}

.faq-section .custom-container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);
    box-sizing: border-box;
}

/* En-tête / Colonne gauche */
.faq-header {
    max-width: 440px;
}

.faq-header .eyebrow-text {
    display: block;
    color: var(--faq-accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    user-select: none;
}

.faq-header .section-title {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--faq-ink);
    margin-bottom: 1.25rem;
}

.faq-header .subtitle-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--faq-muted);
    margin-bottom: 1.75rem;
}

.faq-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.faq-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 17px;
    font-weight: 700;
    color: var(--faq-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    border-radius: 4px;
}

.faq-contact-link:hover {
    color: var(--faq-accent);
    text-decoration-color: var(--faq-accent);
}

.faq-contact-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 116, 59, 0.35);
}

/* Colonne droite : Accordéon */
.faq-accordion-group {
    border-bottom: 1px solid var(--faq-border);
}

.faq-item {
    border-top: 1px solid var(--faq-border);
}

.faq-item h3 {
    margin: 0;
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
    min-height: 56px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.faq-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 116, 59, 0.35);
}

.faq-question-text {
    font-family: 'Figtree', system-ui, sans-serif;
    font-size: 17.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--faq-ink);
    transition: color 0.2s ease;
}

.faq-trigger:hover .faq-question-text,
.faq-trigger[aria-expanded="true"] .faq-question-text {
    color: var(--faq-accent);
}

.faq-icon-wrapper {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(18, 26, 43, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-trigger:hover .faq-icon-wrapper {
    border-color: var(--faq-ink);
}

.faq-trigger[aria-expanded="true"] .faq-icon-wrapper {
    background-color: rgba(232, 116, 59, 0.1);
    border-color: var(--faq-accent);
}

.faq-icon-svg {
    width: 14px;
    height: 14px;
    color: var(--faq-ink);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-trigger[aria-expanded="true"] .faq-icon-svg {
    transform: rotate(45deg);
    color: var(--faq-accent);
}

/* Réponses */
.faq-answer-wrapper {
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    padding-right: 1.5rem;
}

.faq-answer-text {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--faq-muted);
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .faq-trigger {
        padding: 1.5rem 0;
    }
    .faq-question-text {
        font-size: 18px;
    }
    .faq-answer-text {
        font-size: 16px;
    }
}