/* ============================================================
   help.css — MageStock
   Auteur   : KREMER Régis
   Version  : 2.0.0 (2026-03-02)
   Design   : Aligné sur le design system MageStock (theme-v4, app.css)
   ============================================================ */

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.help-page {
    max-width: 1140px;
    margin: 0 auto;
    padding-bottom: var(--sp-8);
}

.help-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px 32px 24px;
    margin-bottom: var(--sp-6);
    box-shadow: var(--shadow);
}

.help-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.help-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-lg);
    background: var(--blue-pale);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-hero-icon svg {
    width: 26px;
    height: 26px;
}

.help-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.2;
}

.help-hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
}

/* Chips de navigation rapide */
.help-nav-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.help-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    transition: all var(--tr);
    white-space: nowrap;
}

.help-chip:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-pale);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.help-section {
    margin-bottom: var(--sp-6);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.help-section-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: var(--sp-4);
}

.help-section-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-section-icon svg {
    width: 20px;
    height: 20px;
}

.help-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
}

.help-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ─────────────────────────────────────────────
   GRILLES
───────────────────────────────────────────── */
.help-grid {
    display: grid;
    gap: var(--sp-4);
}

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

/* ─────────────────────────────────────────────
   CARDS AIDE (surcharge légère des .card de base)
───────────────────────────────────────────── */
.help-card .card-body {
    font-size: 13px;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────
   LISTES ET ÉTAPES
───────────────────────────────────────────── */
.help-steps {
    margin: 0;
    padding-left: 20px;
    counter-reset: step;
    list-style: none;
}

.help-steps li {
    counter-increment: step;
    margin: 8px 0;
    color: var(--text-secondary);
    line-height: 1.45;
    position: relative;
    padding-left: 4px;
}

.help-steps li::before {
    content: counter(step);
    position: absolute;
    left: -22px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--blue-pale);
    color: var(--blue);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.help-list {
    margin: 0;
    padding-left: 18px;
}

.help-list li {
    margin: 7px 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ─────────────────────────────────────────────
   NOTE CONTEXTUELLE
───────────────────────────────────────────── */
.help-note {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--r);
    background: var(--blue-pale);
    border: 1px solid rgba(34,97,150,.15);
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.5;
}

.help-note strong {
    color: var(--blue);
}

/* ─────────────────────────────────────────────
   FAQ — ACCORDÉON
───────────────────────────────────────────── */
.help-faq {
    display: grid;
    gap: var(--sp-3);
}

.help-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color var(--tr);
}

.help-faq-item[open] {
    border-color: var(--blue);
}

.help-faq-item > summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--tr);
}

.help-faq-item > summary:hover {
    background: var(--bg-hover);
}

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

.help-faq-item > summary::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: transform var(--tr);
}

.help-faq-item[open] > summary::after {
    transform: rotate(180deg);
}

.help-faq-body {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    border-top: 1px solid var(--border);
}

.help-faq-body p {
    margin: 10px 0 0;
}

.help-faq-body p:first-child {
    margin-top: 12px;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .help-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .help-page { padding-bottom: var(--sp-6); }

    .help-hero { padding: 20px 16px 16px; }
    .help-hero-content { gap: 14px; }
    .help-hero-icon { width: 42px; height: 42px; }
    .help-hero-title { font-size: 17px; }

    .help-grid-2,
    .help-grid-3 { grid-template-columns: 1fr; }

    .help-section-header { gap: 12px; }
}
