/* Centre d'aide (/aide) — templates/faq/index.html.twig, assets/js/help-center.js.
   Rendu dans le bloc blanc de contenu (site-v2.css) ; accent orange de la boutique. */

.help-center {
    --help-ink: var(--home-ink, #1d2433);
    --help-text: var(--home-text, #3a4153);
    --help-muted: var(--home-muted, #6b7385);
    --help-line: var(--home-line, #eceff4);
    --help-accent: var(--home-accent, #F78116);
    --help-accent-dark: var(--home-accent-dark, #e06d05);
    --help-soft: #fff5eb;
    --help-radius: .6rem;
}

.help-center .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.help-center .lucide-icon {
    width: 1em;
    height: 1em;
    flex: none;
}

.help-section-title {
    margin: 0 0 1.6rem;
    color: var(--help-ink);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

/* 1. Accueil ---------------------------------------------------------------- */
.help-hero {
    margin: 0 0 3.6rem;
    padding: 4rem 3rem 3.2rem;
    text-align: center;
    background:
        radial-gradient(circle at 88% 12%, rgba(247, 129, 22, .16), transparent 34%),
        radial-gradient(circle at 8% 90%, rgba(51, 102, 153, .10), transparent 32%),
        linear-gradient(180deg, #fff8f1 0%, #fff 100%);
    border-radius: var(--help-radius);
}

.help-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1.2rem;
    padding: .5rem 1.2rem;
    color: var(--help-accent-dark);
    font-size: 1.3rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid #fbe3cc;
    border-radius: 999px;
}

.help-hero__eyebrow .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.help-hero__title {
    max-width: 68rem;
    margin: 0 auto 2.4rem;
    color: var(--help-ink);
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
}

.help-search {
    position: relative;
    max-width: 64rem;
    margin: 0 auto 2rem;
}

.help-search__icon {
    position: absolute;
    top: 50%;
    left: 1.8rem;
    width: 2rem !important;
    height: 2rem !important;
    color: var(--help-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.help-search input {
    width: 100%;
    height: 5.4rem;
    padding: 0 5rem 0 5rem;
    color: var(--help-ink);
    font-size: 1.5rem;
    background: #fff;
    border: 1px solid #e2e6ee;
    border-radius: 999px;
    box-shadow: 0 .8rem 2.4rem rgba(29, 36, 51, .07);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.help-search input::-webkit-search-cancel-button {
    display: none;
}

.help-search input:focus {
    border-color: var(--help-accent);
    box-shadow: 0 0 0 .4rem rgba(247, 129, 22, .15), 0 .8rem 2.4rem rgba(29, 36, 51, .07);
}

.help-search__clear {
    position: absolute;
    top: 50%;
    right: 1.4rem;
    width: 3rem;
    height: 3rem;
    padding: 0;
    color: var(--help-muted);
    font-size: 2.2rem;
    line-height: 1;
    background: #f2f4f8;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.help-search__clear[hidden] {
    display: none;
}

.help-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-shortcuts a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1.4rem;
    color: var(--help-text);
    font-size: 1.3rem;
    font-weight: 500;
    background: #fff;
    border: 1px solid var(--help-line);
    border-radius: 999px;
    transition: color .2s, border-color .2s, background-color .2s;
}

.help-shortcuts a .lucide-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--help-accent);
}

.help-shortcuts a:hover,
.help-shortcuts a:focus-visible {
    color: var(--help-accent-dark);
    background: var(--help-soft);
    border-color: #fbd3ad;
}

/* 2. Sujets ----------------------------------------------------------------- */
.help-topics {
    margin: 0 0 4rem;
}

.help-topics__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-topic-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    height: 100%;
    padding: 2rem 1.8rem;
    color: var(--help-text);
    background: #fff;
    border: 1px solid var(--help-line);
    border-radius: var(--help-radius);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.help-topic-card:hover,
.help-topic-card:focus-visible {
    color: var(--help-text);
    border-color: #fbd3ad;
    box-shadow: 0 1rem 2.4rem rgba(29, 36, 51, .08);
    transform: translateY(-2px);
}

.help-topic-card__icon,
.help-topic__icon,
.help-channel__icon,
.help-contact__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--help-accent);
    background: var(--help-soft);
    border-radius: 50%;
}

.help-topic-card__icon {
    width: 4.4rem;
    height: 4.4rem;
    margin-bottom: .4rem;
}

.help-topic-card__icon .lucide-icon {
    width: 2.2rem;
    height: 2.2rem;
}

.help-topic-card__title {
    color: var(--help-ink);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.help-topic-card__intro {
    color: var(--help-muted);
    font-size: 1.3rem;
    line-height: 1.45;
}

/* 3. Questions -------------------------------------------------------------- */
.help-body {
    display: grid;
    grid-template-columns: 24rem minmax(0, 1fr);
    gap: 3.6rem;
    align-items: start;
    margin: 0 0 4.4rem;
}

.help-nav {
    position: sticky;
    top: 9rem;
}

.help-nav__title {
    margin: 0 0 .8rem;
    color: var(--help-muted);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.help-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.2rem;
    color: var(--help-text);
    font-size: 1.4rem;
    border-left: 3px solid transparent;
    border-radius: 0 .4rem .4rem 0;
    transition: color .2s, background-color .2s, border-color .2s;
}

.help-nav a .lucide-icon {
    width: 1.7rem;
    height: 1.7rem;
    color: var(--help-muted);
}

.help-nav a:hover,
.help-nav a.is-active {
    color: var(--help-accent-dark);
    background: var(--help-soft);
    border-left-color: var(--help-accent);
}

.help-nav a:hover .lucide-icon,
.help-nav a.is-active .lucide-icon {
    color: var(--help-accent);
}

.help-nav a.is-empty {
    opacity: .4;
}

.help-topic {
    margin: 0 0 3.2rem;
    scroll-margin-top: 9rem;
}

.help-topic[hidden] {
    display: none;
}

.help-topic__title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0 0 1.4rem;
    color: var(--help-ink);
    font-size: 1.9rem;
    font-weight: 700;
}

.help-topic__icon {
    width: 3.8rem;
    height: 3.8rem;
}

.help-topic__icon .lucide-icon {
    width: 1.9rem;
    height: 1.9rem;
}

.help-questions {
    border: 1px solid var(--help-line);
    border-radius: var(--help-radius);
    overflow: hidden;
}

.help-question {
    scroll-margin-top: 10rem;
    background: #fff;
}

.help-question + .help-question {
    border-top: 1px solid var(--help-line);
}

.help-question[hidden] {
    display: none;
}

.help-question summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.6rem 2rem;
    color: var(--help-ink);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.help-question summary::-webkit-details-marker {
    display: none;
}

.help-question summary:hover {
    color: var(--help-accent-dark);
    background: #fffaf5;
}

.help-question__chevron {
    width: 1.8rem !important;
    height: 1.8rem !important;
    color: var(--help-muted);
    transition: transform .25s;
}

.help-question[open] > summary {
    color: var(--help-accent-dark);
    background: #fffaf5;
}

.help-question[open] .help-question__chevron {
    color: var(--help-accent);
    transform: rotate(180deg);
}

.help-question.is-target > summary {
    box-shadow: inset 3px 0 0 var(--help-accent);
}

.help-answer {
    padding: .4rem 2rem 1.8rem;
    color: var(--help-text);
    font-size: 1.4rem;
    line-height: 1.7;
    background: #fffaf5;
}

.help-answer p {
    margin: 0 0 1rem;
}

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

.help-answer__links {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.8rem;
    padding-top: .4rem;
}

.help-answer__links a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--help-accent-dark);
    font-weight: 600;
}

.help-answer__links a:hover {
    text-decoration: underline;
}

.help-results {
    margin: 0 0 1.6rem;
    color: var(--help-muted);
    font-size: 1.4rem;
}

.help-empty {
    padding: 3.6rem 2rem;
    color: var(--help-muted);
    font-size: 1.4rem;
    text-align: center;
    border: 1px dashed #dfe3ea;
    border-radius: var(--help-radius);
}

.help-empty[hidden] {
    display: none;
}

.help-empty .lucide-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 1rem;
    color: var(--help-accent);
}

.help-empty p {
    margin: 0 0 .4rem;
}

.help-empty strong {
    color: var(--help-ink);
}

/* 4. Contact ---------------------------------------------------------------- */
.help-contact {
    margin: 0 0 1rem;
    padding: 3rem;
    background: #f7f8fb;
    border-radius: var(--help-radius);
    scroll-margin-top: 9rem;
}

.help-contact__intro {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0 0 2.2rem;
}

.help-contact__intro p {
    margin: 0;
    color: var(--help-muted);
    font-size: 1.4rem;
}

.help-contact__badge {
    width: 5.2rem;
    height: 5.2rem;
    background: #fff;
}

.help-contact__badge .lucide-icon {
    width: 2.6rem;
    height: 2.6rem;
}

.help-contact__channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-channel {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.2rem;
    align-items: center;
    height: 100%;
    padding: 1.6rem 1.8rem;
    background: #fff;
    border: 1px solid var(--help-line);
    border-radius: var(--help-radius);
    transition: border-color .2s, box-shadow .2s;
}

.help-channel:hover,
.help-channel:focus-visible {
    border-color: #fbd3ad;
    box-shadow: 0 .8rem 2rem rgba(29, 36, 51, .07);
}

.help-channel__icon {
    grid-row: span 2;
    width: 4.4rem;
    height: 4.4rem;
    font-size: 2rem;
}

.help-channel__icon .lucide-icon {
    width: 2rem;
    height: 2rem;
}

.help-channel--whatsapp .help-channel__icon {
    color: #1faa53;
    background: #e8f8ee;
}

.help-channel__label {
    color: var(--help-ink);
    font-size: 1.4rem;
    font-weight: 700;
}

.help-channel__value {
    min-width: 0;
    overflow: hidden;
    color: var(--help-muted);
    font-size: 1.3rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1199px) {
    .help-topics__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .help-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .help-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .help-hero {
        margin-bottom: 2.8rem;
        padding: 2.8rem 1.6rem 2.4rem;
    }

    .help-search input {
        height: 4.8rem;
        padding: 0 4.4rem 0 4.6rem;
        font-size: 1.4rem;
    }

    .help-shortcuts {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 0 -1.6rem;
        padding: 0 1.6rem .2rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .help-shortcuts::-webkit-scrollbar {
        display: none;
    }

    .help-shortcuts a {
        white-space: nowrap;
    }

    .help-topics__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .help-topic-card {
        padding: 1.6rem 1.4rem;
    }

    .help-topic-card__intro {
        display: none;
    }

    .help-question summary {
        padding: 1.4rem 1.6rem;
        font-size: 1.4rem;
    }

    .help-answer {
        padding: .2rem 1.6rem 1.6rem;
    }

    .help-contact {
        padding: 2.2rem 1.6rem;
    }

    .help-contact__intro {
        align-items: flex-start;
    }
}
