/* =============================================
   AIDE.HTML — Page d'aide standalone
   ============================================= */

.aide-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HERO ────────────────────────────────── */
.aide-hero {
    background: #142137;
    padding: 80px 24px 90px;
    text-align: center;
}

.aide-hero__bg { display: none; }

.aide-hero__content {
    max-width: 620px;
    margin: 0 auto;
}

.aide-badge {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(132,209,244,0.12);
    color: #84d1f4;
    border: 1px solid rgba(132,209,244,0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.aide-hero__title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
}

.aide-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    margin: 0 0 32px;
}

/* Barre de recherche */
.aide-search-wrap {
    max-width: 500px;
    margin: 0 auto;
}

.aide-search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #1a2332;
    outline: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
}

.aide-search-input:focus {
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 3px rgba(132,209,244,0.4);
}

/* ── BARRE THÈMES ────────────────────────── */
.aide-topics-bar {
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.aide-topics-bar .aide-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aide-topic {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
    white-space: nowrap;
}

.aide-topic:hover {
    border-color: #2f4b78;
    color: #2f4b78;
    background: #f0f4ff;
}

.aide-topic.active {
    background: #2f4b78;
    border-color: #2f4b78;
    color: #fff;
}

/* ── MAIN FAQ ────────────────────────────── */
.aide-main {
    background: #f5f7fb;
    padding: 56px 0;
}

.aide-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.aide-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Item FAQ */
.aide-faq-item {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.aide-faq-item:hover  { border-color: #b8cfe8; box-shadow: 0 2px 12px rgba(47,75,120,0.07); }
.aide-faq-item.open   { border-color: #2f4b78; box-shadow: 0 4px 18px rgba(47,75,120,0.12); }
.aide-faq-item.hidden { display: none; }

.aide-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a2332;
    font-family: inherit;
    text-align: left;
    transition: color 0.2s;
}

.aide-faq-item.open .aide-faq-q { color: #2f4b78; }

/* Indicateur +/− sans icône */
.aide-faq-q::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 300;
    color: #94a3b8;
    line-height: 1;
    transition: transform 0.3s ease, color 0.2s;
}

.aide-faq-item.open .aide-faq-q::after {
    content: '−';
    color: #2f4b78;
}

.aide-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.aide-faq-a p {
    padding: 0 20px 20px;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    border-top: 1px solid #f1f5f9;
}

.aide-faq-a p strong { color: #1a2332; }

.aide-faq-item.open .aide-faq-a { max-height: 250px; }

/* État vide */
.aide-empty {
    text-align: center;
    padding: 60px 24px;
    color: #94a3b8;
    grid-column: 1 / -1;
}

.aide-empty p { font-size: 0.95rem; }

/* ── GUIDES ──────────────────────────────── */
.aide-guides-section {
    background: #fff;
    padding: 56px 0;
    border-top: 1px solid #e8edf5;
}

.aide-guides-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 28px;
}

.aide-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.aide-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #1a2332;
    transition: all 0.2s;
}

.aide-guide:hover {
    border-color: #2f4b78;
    box-shadow: 0 6px 24px rgba(47,75,120,0.1);
    transform: translateY(-3px);
}

.aide-guide h4 { font-size: 0.95rem; font-weight: 700; margin: 0; color: #1a2332; }
.aide-guide p  { font-size: 0.82rem; color: #64748b; margin: 0; line-height: 1.5; }

/* ── CTA ─────────────────────────────────── */
.aide-cta-section {
    background: #f5f7fb;
    padding: 56px 0;
}

.aide-cta-box {
    background: #2f4b78;
    border-radius: 20px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.aide-cta-box__text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.aide-cta-box__text p { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; }

.aide-cta-box__btns { display: flex; gap: 12px; flex-wrap: wrap; }

.aide-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.aide-cta-btn--main {
    background: #fff;
    color: #2f4b78;
}

.aide-cta-btn--main:hover { background: #f0f4ff; transform: translateY(-2px); }

.aide-cta-btn--ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}

.aide-cta-btn--ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }


/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .aide-hero          { padding: 60px 16px 70px; }
    .aide-faq-grid      { grid-template-columns: 1fr; }
    .aide-guides-grid   { grid-template-columns: 1fr; }
    .aide-cta-box       { padding: 28px 20px; flex-direction: column; }
    .aide-cta-box__btns { width: 100%; }
    .aide-cta-btn       { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .aide-hero__title { font-size: 1.5rem; }
    .aide-topic       { font-size: 0.78rem; padding: 6px 12px; }
    .aide-faq-q       { padding: 14px 16px; font-size: 0.87rem; }
}
