/* =====================================================================
   Pages d'aide (FAQ, centre d'aide, contact, CGU, confidentialité).
   Même disposition partout : barre de navigation sous le bandeau, colonne latérale
   courte, contenu dans des cartes blanches à plat. L'orange du logo reste réservé aux accents.
   ===================================================================== */

/* Navigation entre les pages d'aide */
.support-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.support-nav__list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-nav__list a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.support-nav__list a:hover { color: #0f172a; }
.support-nav__list a[aria-current] { border-bottom-color: #ff5500; color: #0f172a; }

/* Disposition */
.support-page {
    padding: 1.75rem 0 3rem;
    background: #f8fafc;
}

.support-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.support-layout--single { grid-template-columns: minmax(0, 1fr); }
.support-layout--contact { grid-template-columns: minmax(0, 1fr) 360px; }

.support-side {
    position: sticky;
    top: 130px; /* sous le menu fixe (114 px) */
}

.support-layout--contact .support-side { position: static; }

.support-side__title {
    margin: 0 0 0.6rem;
    padding: 0 0.75rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.support-card {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.support-card + .support-card { margin-top: 1rem; }

.support-card__title {
    margin: 0 0 0.25rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
}

.support-card__intro {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.6;
}

.support-card__intro a { color: #0f172a; font-weight: 600; }

/* Catégories (filtre de la FAQ, ancres du centre d'aide) */
.support-filters {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.support-filter {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.support-filter i { color: #64748b; }
.support-filter:hover { background: #f1f5f9; color: #0f172a; }
.support-filter.active { background: #fff3ed; color: #0f172a; font-weight: 700; }
.support-filter.active i { color: #ff5500; }

.support-filter__count {
    margin-left: auto;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recherche */
.support-search {
    position: relative;
    margin-bottom: 1rem;
}

.support-search i {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    color: #64748b;
}

.support-search input {
    width: 100%;
    padding: 0.7rem 0.95rem 0.7rem 2.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
}

.support-search input:focus,
.support-form .form-control:focus {
    outline: 0;
    border-color: #ff5500;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

/* Questions et réponses */
.support-faq {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.support-faq .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.support-faq .accordion-header { margin: 0; }

.support-faq .accordion-button {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: none;
}

.support-faq .accordion-button:not(.collapsed) {
    background: #fff;
    color: #0f172a;
    box-shadow: inset 0 -1px 0 #f1f5f9;
}

.support-faq .accordion-button:focus-visible { box-shadow: inset 0 0 0 2px #ff5500; }
.support-faq .accordion-button::after { margin-left: 0; }

.support-faq .faq-question-text {
    flex: 1;
    min-width: 0;
}

.support-faq__tag {
    flex-shrink: 0;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
}

.support-faq .accordion-body {
    padding: 0.85rem 1rem 1rem;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.65;
    white-space: pre-line;
}

.faq-highlight {
    padding: 0 0.1em;
    border-radius: 2px;
    background: #ffe3d5;
    color: inherit;
}

.support-empty {
    padding: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 0.93rem;
    text-align: center;
}

/* Thèmes du centre d'aide */
.support-group { scroll-margin-top: 130px; }
.support-group + .support-group { margin-top: 1.75rem; }

.support-group__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
}

.support-group__title i { color: #ff5500; }

/* Encadré de contact, en bas des pages */
.support-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.support-strip h2 {
    margin: 0 0 0.15rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.support-strip p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.support-strip__channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    color: #475569;
    font-size: 0.88rem;
}

.support-strip__channels i { margin-right: 0.3rem; color: #ff5500; }
.support-strip__channels a { color: #0f172a; font-weight: 500; text-decoration: none; }
.support-strip__channels a:hover { text-decoration: underline; }

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: #ff5500;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.support-btn:hover { color: #fff; opacity: 0.9; }

/* Documents (CGU, confidentialité) */
.support-summary {
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-summary a {
    display: flex;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-left: 2px solid #e2e8f0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
}

.support-summary a:hover { border-left-color: #ff5500; color: #0f172a; }

.support-doc { padding: 2rem; }

.support-doc__section {
    padding: 1.4rem 0;
    border-top: 1px solid #f1f5f9;
    scroll-margin-top: 130px;
}

.support-doc__section:first-child { padding-top: 0; border-top: 0; }
.support-doc__section:last-child { padding-bottom: 0; }

.support-doc__section h2 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
}

.support-doc__number { margin-right: 0.3rem; color: #ff5500; }

.support-doc__section p {
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.support-doc__section a { color: #0f172a; font-weight: 600; }

.support-doc__section ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.8;
}

.support-doc__section li::marker { color: #ff5500; }

/* Texte saisi dans le back-office */
.support-prose {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
}

.support-prose h1,
.support-prose h2,
.support-prose h3,
.support-prose h4 {
    margin: 1.25rem 0 0.5rem;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 700;
}

.support-prose p { margin: 0 0 0.75rem; }
.support-prose > :last-child { margin-bottom: 0; }
.support-prose ul,
.support-prose ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.support-prose a { color: #0f172a; font-weight: 600; text-decoration: underline; }
.support-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.support-prose + .support-doc__section { margin-top: 1.4rem; }

.support-body-card { margin-bottom: 1rem; }

/* Contact */
.support-form .form-label {
    margin-bottom: 0.3rem;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 600;
}

.support-form .form-control {
    padding: 0.6rem 0.8rem;
    border-color: #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.support-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-contact li {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid #f1f5f9;
}

.support-contact li:first-child { padding-top: 0; border-top: 0; }
.support-contact li:last-child { padding-bottom: 0; }

.support-contact__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: #fff3ed;
    color: #ff5500;
}

.support-contact__label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.support-contact__value {
    display: block;
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
}

a.support-contact__value:hover { text-decoration: underline; }

.support-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.support-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
}

.support-social a:hover { border-color: #ff5500; background: #ff5500; color: #fff; }

.support-map { padding: 0; overflow: hidden; }

.support-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

/* Vérification d'un document */
.verify-status {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
}

.verify-status > i { font-size: 1.6rem; line-height: 1.2; }
.verify-status h2 { margin: 0; color: #0f172a; font-size: 1.15rem; font-weight: 800; }
.verify-status p { margin: 0.1rem 0 0; color: #334155; font-size: 0.92rem; overflow-wrap: anywhere; }
.verify-status--ok { background: #f0fdf4; }
.verify-status--ok > i { color: #15803d; }
.verify-status--warning { background: #fffbeb; }
.verify-status--warning > i { color: #b45309; }
.verify-status--error { background: #fef2f2; }
.verify-status--error > i { color: #b91c1c; }

.verify-notice {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid #b45309;
    background: #fffbeb;
    color: #78350f;
    font-size: 0.9rem;
}

.verify-title { margin: 1.25rem 0 0.5rem; color: #0f172a; font-size: 1.05rem; font-weight: 700; }
.verify-facts { margin: 0; }

.verify-facts > div {
    display: flex;
    gap: 1rem;
    padding: 0.55rem 0;
    border-top: 1px solid #f1f5f9;
    font-size: 0.93rem;
}

.verify-facts dt { flex: 0 0 40%; color: #64748b; font-weight: 500; }
.verify-facts dd { margin: 0; color: #0f172a; font-weight: 600; overflow-wrap: anywhere; }
.verify-help { margin: 1rem 0 0; color: #334155; font-size: 0.9rem; line-height: 1.6; }
.verify-help a { color: #0f172a; font-weight: 600; }
.verify-meta { margin: 0.5rem 0 0; color: #64748b; font-size: 0.8rem; overflow-wrap: anywhere; }

.verify-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.verify-form input {
    flex: 1 1 14rem;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.verify-form input:focus {
    outline: 0;
    border-color: #ff5500;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

.verify-steps { margin: 0; padding-left: 1.15rem; color: #334155; font-size: 0.92rem; line-height: 1.65; }
.verify-steps li + li { margin-top: 0.35rem; }

@media (max-width: 991.98px) {
    .support-page { padding: 1.25rem 0 2.25rem; }

    .support-layout,
    .support-layout--contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .support-side { position: static; }
    .support-side--summary,
    .support-side__title { display: none; }

    /* Une seule ligne, qui défile : les questions restent en haut de l'écran */
    .support-filters {
        flex-direction: row;
        gap: 0.35rem;
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .support-filters::-webkit-scrollbar { display: none; }

    .support-filter {
        flex-shrink: 0;
        width: auto;
        padding: 0.35rem 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #fff;
        font-size: 0.85rem;
    }

    .support-filter__count { margin-left: 0; }
}

@media (max-width: 575.98px) {
    .support-nav__list { column-gap: 1.1rem; }
    .support-nav__list a { padding: 0.55rem 0; font-size: 0.86rem; }
    .support-card { padding: 1.15rem; }
    .support-doc { padding: 1.25rem; }
    .support-faq__tag { display: none; }
    .support-strip { padding: 1.1rem; }
    .support-strip .support-btn { width: 100%; }
}
