/* FAQ GoDem : accordéon natif <details>, sans dépendance JavaScript. */

.faq-section {
    margin: 35px 0 45px;
}

.faq-title {
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f69323;
    font-size: 26px;
    line-height: 1.3;
    color: #1d3052;
}

.faq-intro {
    margin: 0 0 20px;
    color: #5b5b5b;
    line-height: 1.7;
}

.faq-list {
    margin: 0;
}

.faq-item {
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid rgba(52, 52, 52, 0.18);
}

.faq-item summary {
    display: block;
    position: relative;
    padding: 17px 60px 17px 22px;
    color: #1d3052;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-item summary:hover,
.faq-item summary:focus {
    background: #f4f6fa;
    outline: none;
}

.faq-item summary:focus-visible {
    outline: 2px solid #f69323;
    outline-offset: -2px;
}

.faq-item[open] > summary {
    background: #1d3052;
    color: #ffffff;
}

.faq-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    color: #f69323;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.faq-icon::before {
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 16px;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    padding: 18px 22px 20px;
    border-top: 1px solid rgba(52, 52, 52, 0.1);
    color: #343434;
    font-size: 15px;
    line-height: 1.8;
}

.faq-answer p {
    margin: 0 0 12px;
}

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

.faq-answer ul,
.faq-answer ol {
    margin: 0 0 12px 22px;
    padding: 0;
}

.faq-answer a {
    color: #1d3052;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #f69323;
}

/* Sommaire des thèmes de la FAQ générale. */
.faq-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 30px;
    padding: 0;
    list-style: none;
}

.faq-toc li {
    margin: 0;
}

.faq-toc a {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #1d3052;
    color: #1d3052;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-toc a:hover,
.faq-toc a:focus {
    background: #1d3052;
    color: #ffffff;
}

.faq-block {
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.faq-block > h2 {
    margin-bottom: 8px;
    font-size: 23px;
    color: #1d3052;
}

.faq-block .faq-section {
    margin: 10px 0 0;
}

.faq-note {
    margin-top: 25px;
    color: #6b6b6b;
    font-size: 13px;
}

/* Menu principal : sous-menus longs (villes) limités en hauteur et scrollables. */
@media (min-width: 992px) {
    .mainmenu > li > ul {
        max-height: 60vh;
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .faq-title {
        font-size: 22px;
    }

    .faq-item summary {
        padding: 14px 50px 14px 16px;
        font-size: 15px;
    }

    .faq-icon {
        right: 15px;
    }

    .faq-answer {
        padding: 15px 16px 18px;
        font-size: 14px;
    }
}
