/**
 * help.css
 *
 * Styles de la page d'aide BusyBook — shortcode [ecla_aide].
 *
 * Charte graphique :
 *  - Vert header   : #2e7d32
 *  - Orange accent : #ff9900
 *  - Bleu-ciel bg  : #e3f2fd
 *  - Bleu foncé    : #003366
 *
 * Mobile-first — desktop = source unique de vérité.
 * Tous les breakpoints s'adaptent depuis les styles mobile.
 *
 * @package AlibabaNiger
 * @since   1.5.0
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES LOCALES
   ═══════════════════════════════════════════════════════════════════════════ */
#ecla-help-wrapper {
    --help-green       : #2e7d32;
    --help-green-dark  : #1b5e20;
    --help-green-light : #e8f5e9;
    --help-orange      : #ff9900;
    --help-orange-dark : #e68800;
    --help-sky         : #e3f2fd;
    --help-blue        : #003366;
    --help-blue-mid    : #1565c0;
    --help-text        : #1a2744;
    --help-muted       : #546e7a;
    --help-white       : #ffffff;
    --help-border      : rgba(21,101,192,0.15);
    --help-radius      : 12px;
    --help-shadow      : 0 4px 24px rgba(0,0,0,0.08);
    --help-card-shadow : 0 2px 12px rgba(0,0,0,0.07);
}

/* ═══════════════════════════════════════════════════════════════════════════
   WRAPPER GLOBAL
   ═══════════════════════════════════════════════════════════════════════════ */
#ecla-help-wrapper {
    font-family  : -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   Helvetica, Arial, sans-serif;
    color        : var(--help-text);
    background   : var(--help-sky);
    min-height   : 100vh;
    box-sizing   : border-box;
    overflow-x   : hidden;
}

#ecla-help-wrapper *,
#ecla-help-wrapper *::before,
#ecla-help-wrapper *::after {
    box-sizing: border-box;
}

#ecla-help-wrapper p {
    line-height : 1.7;
    margin      : 0 0 12px;
    color       : var(--help-text);
}

#ecla-help-wrapper strong {
    color       : var(--help-blue);
    font-weight : 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-hero {
    background    : linear-gradient(135deg, var(--help-green) 0%, var(--help-green-dark) 100%);
    padding       : 28px 16px 36px;
    position      : relative;
    overflow      : hidden;
}

/* Décoration géométrique de fond */
.ecla-help-hero::before {
    content       : '';
    position      : absolute;
    top           : -40px;
    right         : -40px;
    width         : 200px;
    height        : 200px;
    background    : rgba(255,255,255,0.06);
    border-radius : 50%;
}
.ecla-help-hero::after {
    content       : '';
    position      : absolute;
    bottom        : -60px;
    left          : -20px;
    width         : 160px;
    height        : 160px;
    background    : rgba(255,153,0,0.12);
    border-radius : 50%;
}

.ecla-help-hero-inner {
    position   : relative;
    z-index    : 1;
    max-width  : 900px;
    margin     : 0 auto;
    text-align : center;
}

/* Logo dans le hero */
.ecla-help-logo-link {
    display         : inline-flex;
    align-items     : center;
    gap             : 8px;
    text-decoration : none;
    margin-bottom   : 16px;
}

.ecla-help-logo-img {
    height     : 40px;
    width      : auto;
    object-fit : contain;
    filter     : drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}

.ecla-help-brand {
    color       : var(--help-white);
    font-size   : 1.5rem;
    font-weight : 900;
    letter-spacing : -0.01em;
    text-shadow : 0 1px 4px rgba(0,0,0,0.2);
}

.ecla-help-hero-title {
    color       : var(--help-white);
    font-size   : 1.75rem;
    font-weight : 900;
    margin      : 0 0 8px;
    text-shadow : 0 2px 8px rgba(0,0,0,0.15);
    line-height : 1.2;
}

.ecla-help-hero-sub {
    color      : rgba(255,255,255,0.88);
    font-size  : 1rem;
    margin     : 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ONGLETS DE NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-tabs-wrapper {
    background  : var(--help-white);
    box-shadow  : 0 2px 8px rgba(0,0,0,0.08);
    position    : sticky;
    top         : 0;
    z-index     : 100;
}

.ecla-help-tabs {
    display     : flex;
    max-width   : 900px;
    margin      : 0 auto;
    overflow-x  : auto;
    scrollbar-width : none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}
.ecla-help-tabs::-webkit-scrollbar { display: none; }

.ecla-help-tab {
    flex            : 1 0 auto;
    min-width       : 120px;
    display         : flex;
    flex-direction  : column;
    align-items     : center;
    gap             : 3px;
    padding         : 12px 16px 10px;
    border          : none;
    background      : none;
    cursor          : pointer;
    font-size       : 0.8rem;
    font-weight     : 600;
    color           : var(--help-muted);
    border-bottom   : 3px solid transparent;
    transition      : color 0.2s, border-color 0.2s, background 0.2s;
    white-space     : nowrap;
    line-height     : 1.2;
}

.ecla-help-tab:hover {
    color      : var(--help-green);
    background : var(--help-green-light);
}

.ecla-help-tab.active {
    color        : var(--help-green);
    border-color : var(--help-green);
    background   : var(--help-green-light);
}

.ecla-help-tab-icon {
    font-size : 1.3rem;
    line-height: 1;
}

.ecla-help-tab-label {
    font-size : 0.78rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PANNEAUX DE CONTENU
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-panels {
    max-width : 900px;
    margin    : 0 auto;
    padding   : 20px 14px 48px;
}

.ecla-help-panel {
    display : none;
}
.ecla-help-panel.active {
    display : block;
    animation : helpFadeIn 0.25s ease;
}
@keyframes helpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS GÉNÉRIQUES
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-section {
    background    : var(--help-white);
    border-radius : var(--help-radius);
    box-shadow    : var(--help-card-shadow);
    padding       : 20px 18px;
    margin-bottom : 18px;
    display       : flex;
    gap           : 14px;
    align-items   : flex-start;
}

.ecla-help-section--highlight {
    background    : linear-gradient(135deg, var(--help-green-light) 0%, #f1f8e9 100%);
    border-left   : 4px solid var(--help-green);
}

.ecla-help-section-icon {
    font-size   : 1.8rem;
    flex-shrink : 0;
    line-height : 1;
    margin-top  : 2px;
}

.ecla-help-section-body {
    flex     : 1;
    min-width: 0;
}

.ecla-help-section-body h2 {
    font-size     : 1.15rem;
    font-weight   : 800;
    color         : var(--help-green);
    margin        : 0 0 12px;
    line-height   : 1.2;
    border-bottom : 2px solid var(--help-orange);
    padding-bottom: 6px;
    display       : inline-block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VALEURS (ONGLET 1)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-values-grid {
    display               : grid;
    grid-template-columns : 1fr 1fr;
    gap                   : 12px;
    margin-top            : 4px;
}

.ecla-help-value-card {
    background    : var(--help-sky);
    border        : 1px solid var(--help-border);
    border-radius : 10px;
    padding       : 14px 12px;
    text-align    : center;
}

.ecla-help-value-icon {
    font-size     : 1.6rem;
    margin-bottom : 6px;
    line-height   : 1;
}

.ecla-help-value-card h3 {
    font-size   : 0.9rem;
    font-weight : 800;
    color       : var(--help-green);
    margin      : 0 0 6px;
}

.ecla-help-value-card p {
    font-size  : 0.82rem;
    color      : var(--help-muted);
    margin     : 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS (ONGLET 1)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-stats-row {
    display         : flex;
    justify-content : space-around;
    gap             : 12px;
    flex-wrap       : wrap;
    margin-top      : 8px;
}

.ecla-help-stat {
    text-align : center;
    flex       : 1;
    min-width  : 80px;
}

.ecla-help-stat-number {
    display     : block;
    font-size   : 2.2rem;
    font-weight : 900;
    color       : var(--help-green);
    line-height : 1;
    margin-bottom: 4px;
}

.ecla-help-stat-label {
    display   : block;
    font-size : 0.78rem;
    color     : var(--help-muted);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ÉTAPES NUMÉROTÉES (ONGLETS 2 ET 3)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-steps {
    list-style  : none;
    padding     : 0;
    margin      : 12px 0 0;
    display     : flex;
    flex-direction: column;
    gap         : 14px;
}

.ecla-help-step {
    display : flex;
    gap     : 14px;
    align-items: flex-start;
}

.ecla-help-step-num {
    flex-shrink   : 0;
    width         : 34px;
    height        : 34px;
    background    : var(--help-green);
    color         : var(--help-white);
    border-radius : 50%;
    font-size     : 1rem;
    font-weight   : 900;
    display       : flex;
    align-items   : center;
    justify-content: center;
    box-shadow    : 0 2px 8px rgba(46,125,50,0.3);
    margin-top    : 2px;
}

.ecla-help-step-body h3 {
    font-size   : 0.95rem;
    font-weight : 800;
    color       : var(--help-blue);
    margin      : 0 0 4px;
}

.ecla-help-step-body p {
    font-size  : 0.87rem;
    margin     : 0 0 6px;
    color      : var(--help-muted);
}

.ecla-help-step-body ul {
    margin     : 6px 0 0 16px;
    padding    : 0;
}

.ecla-help-step-body ul li {
    font-size   : 0.85rem;
    color       : var(--help-muted);
    margin-bottom: 4px;
    line-height : 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ ACCORDÉON (ONGLET 2)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-faq {
    display        : flex;
    flex-direction : column;
    gap            : 8px;
    margin-top     : 8px;
}

.ecla-help-faq-item {
    border        : 1px solid rgba(46,125,50,0.2);
    border-radius : 8px;
    overflow      : hidden;
    background    : var(--help-white);
}

.ecla-help-faq-q {
    width           : 100%;
    text-align      : left;
    background      : none;
    border          : none;
    padding         : 13px 14px;
    font-size       : 0.87rem;
    font-weight     : 700;
    color           : var(--help-blue);
    cursor          : pointer;
    display         : flex;
    justify-content : space-between;
    align-items     : center;
    gap             : 8px;
    transition      : background 0.2s;
    line-height     : 1.4;
}

.ecla-help-faq-q:hover {
    background : var(--help-green-light);
}

.ecla-faq-arrow {
    font-size    : 0.7rem;
    flex-shrink  : 0;
    color        : var(--help-green);
    transition   : transform 0.25s ease;
    display      : inline-block;
}

.ecla-help-faq-a {
    padding    : 0 14px 12px;
    border-top : 1px solid rgba(46,125,50,0.15);
    background : var(--help-green-light);
}

.ecla-help-faq-a p {
    font-size  : 0.85rem;
    color      : var(--help-muted);
    margin     : 10px 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPES DE COMPTES (ONGLET 3)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-account-types {
    display        : flex;
    flex-direction : column;
    gap            : 14px;
    margin-top     : 12px;
}

.ecla-help-account-card {
    border        : 2px solid var(--help-border);
    border-radius : 12px;
    padding       : 16px 14px;
    background    : var(--help-white);
    position      : relative;
    transition    : box-shadow 0.2s;
}

.ecla-help-account-card--shop    { border-color: rgba(46,125,50,0.35); }
.ecla-help-account-card--service { border-color: rgba(21,101,192,0.35); }
.ecla-help-account-card--hybrid  {
    border-color : var(--help-orange);
    box-shadow   : 0 4px 16px rgba(255,153,0,0.15);
}

.ecla-help-account-header {
    display     : flex;
    align-items : center;
    gap         : 8px;
    margin-bottom: 8px;
    flex-wrap   : wrap;
}

.ecla-help-account-icon {
    font-size : 1.4rem;
    line-height: 1;
}

.ecla-help-account-header h3 {
    font-size  : 1.05rem;
    font-weight: 800;
    color      : var(--help-blue);
    margin     : 0;
    flex       : 1;
}

.ecla-help-account-badge {
    background    : var(--help-orange);
    color         : var(--help-white);
    font-size     : 0.72rem;
    font-weight   : 700;
    padding       : 2px 8px;
    border-radius : 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ecla-help-account-desc {
    font-size  : 0.85rem;
    color      : var(--help-muted);
    margin     : 0 0 10px;
    line-height: 1.5;
}

.ecla-help-account-features {
    list-style : none;
    padding    : 0;
    margin     : 0;
    display    : flex;
    flex-direction: column;
    gap        : 5px;
}

.ecla-help-account-features li {
    font-size  : 0.83rem;
    color      : var(--help-text);
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLEAU DE BORD CARDS (ONGLET 3)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-dashboard-grid {
    display               : grid;
    grid-template-columns : 1fr 1fr;
    gap                   : 12px;
    margin-top            : 8px;
}

.ecla-help-dashboard-card {
    background    : var(--help-sky);
    border        : 1px solid var(--help-border);
    border-radius : 10px;
    padding       : 14px 12px;
}

.ecla-help-dashboard-icon {
    font-size     : 1.5rem;
    margin-bottom : 6px;
    line-height   : 1;
}

.ecla-help-dashboard-card h3 {
    font-size   : 0.88rem;
    font-weight : 800;
    color       : var(--help-green);
    margin      : 0 0 5px;
}

.ecla-help-dashboard-card p {
    font-size  : 0.8rem;
    color      : var(--help-muted);
    margin     : 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKLIST (ONGLET 3)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-checklist {
    list-style : none;
    padding    : 0;
    margin     : 6px 0;
    display    : flex;
    flex-direction: column;
    gap        : 6px;
}

.ecla-help-checklist li {
    font-size   : 0.85rem;
    color       : var(--help-text);
    padding-left: 20px;
    position    : relative;
    line-height : 1.5;
}

.ecla-help-checklist li::before {
    content  : '✓';
    position : absolute;
    left     : 0;
    color    : var(--help-green);
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONSEILS (ONGLET 3)
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-tips {
    list-style : none;
    padding    : 0;
    margin     : 8px 0 20px;
    display    : flex;
    flex-direction: column;
    gap        : 10px;
}

.ecla-help-tips li {
    display    : flex;
    align-items: flex-start;
    gap        : 10px;
    font-size  : 0.87rem;
    color      : var(--help-text);
    line-height: 1.5;
}

.ecla-help-tip-icon {
    font-size  : 1.1rem;
    flex-shrink: 0;
    margin-top : 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIENS ET BOUTONS CTA
   ═══════════════════════════════════════════════════════════════════════════ */
.ecla-help-cta-link {
    display       : inline-block;
    color         : var(--help-blue-mid);
    font-size     : 0.85rem;
    font-weight   : 700;
    text-decoration: underline;
    margin-top    : 6px;
    transition    : color 0.2s;
}

.ecla-help-cta-link:hover {
    color : var(--help-green);
}

.ecla-help-cta-btn {
    display       : inline-block;
    background    : var(--help-orange);
    color         : var(--help-white);
    font-size     : 1rem;
    font-weight   : 800;
    padding       : 13px 28px;
    border-radius : 30px;
    text-decoration: none;
    transition    : background 0.2s, transform 0.15s;
    box-shadow    : 0 4px 14px rgba(255,153,0,0.35);
    text-align    : center;
    margin-top    : 8px;
    display       : inline-block;
}

.ecla-help-cta-btn:hover {
    background : var(--help-orange-dark);
    transform  : translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP — ≥ 600px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {

    .ecla-help-hero {
        padding : 36px 24px 48px;
    }

    .ecla-help-hero-title {
        font-size : 2.2rem;
    }

    .ecla-help-hero-sub {
        font-size : 1.1rem;
    }

    .ecla-help-logo-img { height: 48px; }
    .ecla-help-brand    { font-size: 1.8rem; }

    .ecla-help-tab {
        flex-direction : row;
        gap            : 8px;
        font-size      : 0.9rem;
        padding        : 14px 20px 12px;
    }

    .ecla-help-tab-icon  { font-size: 1.2rem; }
    .ecla-help-tab-label { font-size: 0.9rem; }

    .ecla-help-panels {
        padding : 28px 20px 60px;
    }

    .ecla-help-section {
        padding : 24px 22px;
    }

    .ecla-help-section-body h2 {
        font-size : 1.3rem;
    }

    .ecla-help-account-types {
        flex-direction        : row;
        flex-wrap             : wrap;
    }

    .ecla-help-account-card {
        flex : 1 1 calc(50% - 7px);
    }

    .ecla-help-account-card--hybrid {
        flex : 1 1 100%;
    }

}

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP LARGE — ≥ 768px
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

    .ecla-help-hero-title { font-size: 2.5rem; }

    .ecla-help-account-card {
        flex : 1 1 calc(33.333% - 10px);
    }

    .ecla-help-account-card--hybrid {
        flex : 1 1 calc(33.333% - 10px);
    }

    .ecla-help-dashboard-grid {
        grid-template-columns : repeat(3, 1fr);
    }

    .ecla-help-values-grid {
        grid-template-columns : repeat(4, 1fr);
    }

    .ecla-help-section-icon { font-size: 2.2rem; }

    .ecla-help-step-num {
        width  : 38px;
        height : 38px;
    }

}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITÉ — prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .ecla-help-panel.active { animation: none; }
    .ecla-help-cta-btn:hover { transform: none; }
    .ecla-faq-arrow { transition: none; }
}
