/* ===== Page Aide - Hero ===== */
.aide-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.aide-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.aide-hero p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Navigation par categories ===== */
.aide-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.aide-nav a {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.aide-nav a:hover {
    background: #5b6abf;
    color: white;
}

/* ===== FAQ Accordion ===== */
.faq-section {
    margin-bottom: 2.5rem;
}

.faq-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.faq-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: white;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
    gap: 1rem;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
    color: #9ca3af;
}

.faq-chevron::after {
    content: '\25BC';
    font-size: 0.75rem;
}

.faq-accordion.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-accordion.open .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

/* ===== Cartes d'actions "Je veux..." ===== */
.aide-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.aide-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2937;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.aide-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #5b6abf;
    color: #1f2937;
}

.aide-action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.aide-action-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.aide-action-desc {
    font-size: 0.82rem;
    color: #6b7280;
}

/* ===== Guide de demarrage rapide ===== */
.aide-steps {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.aide-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    position: relative;
}

.aide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #5b6abf;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.aide-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.aide-step p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ===== Checklist ===== */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    color: #374151;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
}

.checklist-item.checklist-done .checklist-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.checklist-item.checklist-done .checklist-icon::after {
    content: '\2713';
}

.checklist-item.checklist-done {
    color: #6b7280;
}

.checklist-action {
    margin-left: auto;
}

.checklist-action .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

/* ===== Tooltips d'aide ===== */
.help-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.help-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
}

.help-tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    white-space: nowrap;
    z-index: 50;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    max-width: 260px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.help-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.help-tooltip:hover .help-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== Badge actualités (navbar) ===== */
.actualites-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* ===== CTA aide ===== */
.aide-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 2rem 0 3rem;
}

.aide-cta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.aide-cta p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.aide-cta a:not(.btn) {
    color: #5b6abf;
    font-weight: 600;
}

/* ===== Settings tab navigation ===== */
.settings-section {
    scroll-margin-top: 80px;
}


/* ===== Section actions dashboard ===== */
.dashboard-actions-section {
    margin-bottom: 2rem;
}

.dashboard-actions-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .aide-hero h1 {
        font-size: 1.5rem;
    }

    .aide-nav {
        gap: 0.4rem;
    }

    .aide-nav a {
        font-size: 0.82rem;
        padding: 0.4rem 0.9rem;
    }

    .aide-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aide-steps {
        flex-direction: column;
    }

    .help-tooltip-text {
        left: 0;
        transform: none;
        max-width: 200px;
    }

    .help-tooltip-text::after {
        left: 12px;
        transform: none;
    }
}

@media (max-width: 480px) {
    .aide-actions-grid {
        grid-template-columns: 1fr;
    }
}
