/**
 * Style de la page FAQ — Redesign Premium
 * @author Shawn Dutil
 */

/* ===========================
   LAYOUT
=========================== */
.faq-container {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===========================
   TITRE
=========================== */
.faq-container > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--vert-profond);
    text-align: center;
    margin: 0 0 12px 0;
    width: 100%;
}

.faq-container > h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--or), transparent);
    margin: 16px auto 0;
}

/* ===========================
   ITEMS FAQ
=========================== */
.faq-item {
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.05s; }
.faq-item:nth-child(3) { animation-delay: 0.10s; }
.faq-item:nth-child(4) { animation-delay: 0.15s; }
.faq-item:nth-child(5) { animation-delay: 0.20s; }
.faq-item:nth-child(6) { animation-delay: 0.25s; }
.faq-item:nth-child(7) { animation-delay: 0.30s; }
.faq-item:nth-child(8) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   BOUTON QUESTION
=========================== */
.faq-question {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid rgba(201, 168, 76, 0.3);
    border-radius: 2px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-left-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question:hover {
    background: #fffdf5;
    border-left-color: var(--or);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-question.active {
    background: var(--vert-profond);
    border-left-color: var(--or);
    box-shadow: 0 4px 20px rgba(28, 46, 28, 0.25);
}

.faq-question span:first-child {
    font-family: 'Raleway', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--vert-profond);
    transition: color 0.2s ease;
}

.faq-question.active span:first-child {
    color: var(--or-clair);
}

/* Flèche */
.arrow {
    font-size: 0.7rem;
    color: var(--or);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.faq-question.active .arrow {
    transform: rotate(180deg);
}

/* ===========================
   RÉPONSE
=========================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    border-left: 3px solid rgba(201, 168, 76, 0.3);
    border-radius: 0 0 2px 2px;
    padding: 0 24px;
}

.faq-answer.open {
    padding-bottom: 24px;
}

.faq-answer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    font-weight: 400;
    color: #444;
    line-height: 1.8;
    margin: 20px 0 0 0;
}

.faq-answer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vert-profond);
    margin: 20px 0 8px 0;
    padding-left: 12px;
    border-left: 2px solid var(--or);
}

.faq-answer ol,
.faq-answer ul {
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    line-height: 1.8;
    padding-left: 20px;
    margin: 12px 0 0 0;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer ul {
    margin-top: 8px;
}

/* Liens dans les réponses */
.faq-answer a,
.email-link-FAQ {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vert-moyen);
    text-decoration: none;
    border-bottom: 1px solid rgba(58, 90, 58, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
    word-break: break-word;
}

.faq-answer a:hover,
.email-link-FAQ:hover {
    color: var(--or);
    border-bottom-color: var(--or);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 600px) {
    .faq-container > h2      { font-size: 2rem; }
    .faq-question            { padding: 15px 16px; }
    .faq-question span:first-child { font-size: 0.84rem; }
    .faq-answer              { padding: 0 16px; }
    .faq-answer.open         { padding-bottom: 18px; }
    .faq-answer p            { font-size: 1rem; }
}