/* ── FAQ Page ── */

/* Hero */
.fd-rouge.firstsection {
    background: #c40018;
    padding: 52px 0 44px;
}
.fd-rouge .heading { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.fd-rouge .heading-text { color: rgba(255,255,255,.92); }

/* Nav catégories */
.faq-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 12px 0;
}
.faq-nav a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 24px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.faq-nav a:hover {
    background: #c40018;
    color: #fff;
    border-color: #c40018;
    text-decoration: none;
}
.faq-nav a.is-active {
    background: linear-gradient(to right, #1a1a1a, #c40018);
    color: #fff;
    border-color: #c40018;
    box-shadow: 0 2px 8px rgba(196, 0, 24, .25);
}
.faq-nav a.is-active:hover {
    opacity: .92;
}

/* Sections FAQ */
.faq-section { padding: 44px 0; }
.faq-section + .faq-section { padding-top: 0; }

.faq-category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #c40018;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-shadow: none;
}

/* Accordéon */
.faq-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    overflow: hidden;
}
.faq-item[open] {
    box-shadow: 0 4px 16px rgba(0,0,0,.09);
    border-color: #c40018;
}

.faq-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    color: #c40018;
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform .25s;
}
.faq-item[open] > .faq-question::after {
    content: '−';
}
.faq-question:hover { color: #c40018; }

.faq-answer {
    padding: 0 22px 20px;
    font-size: 1.35rem;
    color: #444;
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
}
.faq-answer p { margin: 12px 0 0; }
.faq-answer p:first-child { margin-top: 14px; }
/* Rétablit les puces (le reset global main.css l20 met ol,ul → list-style:none) */
.faq-answer ul, .faq-answer ol {
    margin: 10px 0;
    padding-left: 24px;        /* espace pour que les puces soient visibles */
    list-style-position: outside;
}
.faq-answer ul { list-style: disc; }
.faq-answer ol { list-style: decimal; }
.faq-answer li {
    margin-bottom: 6px;
    display: list-item;        /* sécurité au cas où un autre CSS aurait
                                  passé li à display:block ou flex */
}
.faq-answer a { color: #c40018; font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }

/* Animation ouverture */
details[open] .faq-answer {
    animation: fadeInAnswer .2s ease;
}
@keyframes fadeInAnswer {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 767px) {
    .faq-question { font-size: 1.35rem; padding: 14px 16px; }
    .faq-answer   { font-size: 1.25rem; padding: 0 16px 16px; }
    .faq-category-title { font-size: 1.8rem; }
    .faq-nav a    { font-size: 1.1rem; padding: 6px 12px; }
}

/* ── Toolbar FAQ : nav + search ── */
.faq-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 8px 0 4px;
}
.faq-toolbar-sep {
    width: 60%;
    max-width: 320px;
    height: 1px;
    background: linear-gradient(to right, transparent, #d0d0d0 30%, #d0d0d0 70%, transparent);
}

/* ── Barre de recherche FAQ ── */
.faq-search-wrap {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 12px;
}
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: border-color .2s, box-shadow .2s;
}
.faq-search:focus-within {
    border-color: #c40018;
    box-shadow: 0 0 0 3px rgba(196,0,24,.12), 0 2px 8px rgba(0,0,0,.05);
}
.faq-search-icon {
    display: inline-flex;
    padding: 0 14px 0 18px;
    font-size: 1.5rem;
    opacity: .55;
    pointer-events: none;
}
.faq-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 6px;
    font-size: 1.4rem;
    font-family: inherit;
    color: #222;
    min-width: 0;
}
.faq-search-input::placeholder { color: #999; font-style: italic; }
.faq-search-clear {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.faq-search-clear:hover { background: #c40018; color: #fff; }
.faq-search-count {
    text-align: center;
    margin-top: 10px;
    font-size: 1.15rem;
    color: #666;
    min-height: 1.3em;
}
.faq-search-count strong { color: #c40018; }

/* Surbrillance des termes trouvés */
.faq-item mark {
    background: #fff59d;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

/* Transition d'apparition/disparition des sections */
.faq-section.is-hidden,
.faq-item.is-hidden {
    display: none;
}

/* Bloc "aucun résultat" */
.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    max-width: 560px;
    margin: 0 auto;
}
.faq-no-results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: .65;
}
.faq-no-results h3 {
    font-size: 1.8rem;
    color: #c40018;
    margin: 0 0 10px;
    text-shadow: none;
}
.faq-no-results p {
    font-size: 1.3rem;
    color: #555;
    margin: 0 0 20px;
}

@media (max-width: 560px) {
    .faq-search-input { font-size: 1.25rem; padding: 12px 4px; }
    .faq-search-icon  { font-size: 1.3rem; padding: 0 10px 0 14px; }
}

/* ============================================================
   Tableau comparatif des couvertures d'assurance
   (entrée FAQ "SCDW vs Ultimate Cover")
   ============================================================ */
.faq-cover-table {
    width: 100%;
    margin: 18px 0 12px;
    border-collapse: collapse;
    font-size: 1.05rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.faq-cover-table thead th {
    background: #c40018;
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.faq-cover-table thead th:first-child {
    text-align: left;
}
.faq-cover-table tbody td {
    padding: 9px 12px;
    border-top: 1px solid #ececec;
    text-align: center;
    color: #333;
}
.faq-cover-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #222;
}
.faq-cover-table tbody tr:nth-child(even) td {
    background: #fafafa;
}
.faq-cover-table tbody tr:hover td {
    background: #fff8e1;
}
@media (max-width: 560px) {
    .faq-cover-table {
        font-size: .9rem;
    }
    .faq-cover-table thead th,
    .faq-cover-table tbody td {
        padding: 7px 6px;
    }
    .faq-cover-table thead th {
        font-size: .8rem;
    }
}
