/**
 * À Retenir Block — Stepper CSS
 * Identique au glossaire-plugin gt-stepper, portée sur arb-block
 */

/* ==========================================================================
   POINTS CLÉS - FORMAT STEPPER "À RETENIR" (Proposition A)
   Cible visuelle : a-retenir-propositions.html section A
   ========================================================================== */

.gt-points-cles.gt-stepper {
    background: #fff !important;
    padding: 40px !important;
    margin: 2.5rem 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
    position: relative;
    text-align: center;
}

/* Neutraliser les overrides Gutenberg/Astra sur wp-block-group */
.wp-block-group.gt-points-cles.gt-stepper {
    padding: 40px !important;
}

/* Pas de double filet — le prototype n'en a pas */
.gt-points-cles.gt-stepper::before {
    display: none;
}

/* ── Badge "À RETENIR" — pill grise centrée (= .section-label du prototype) ── */
.gt-stepper-badge {
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    background: #f5f5f3;
    border-radius: 20px;
    display: inline-block !important;
    padding: 4px 14px !important;
    margin: 0 0 28px 0 !important;
    line-height: 1.4;
}

/* ── Titre H2 — 19px, weight 400, aligné à gauche comme le prototype ── */
.gt-stepper-titre {
    font-family: Georgia, serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: #1a1a1a !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
    text-align: center;
}

/* ── Dots de navigation ── */
.gt-stepper-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.gt-stepper-tab {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.gt-stepper-tab:hover,
.gt-stepper-tab:focus {
    background: #aaa !important;
    box-shadow: none !important;
    outline: none;
    transform: scale(1.15);
}

.gt-stepper-tab:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
    border-radius: 50%;
}

.gt-stepper-tab.is-active {
    background: #1a1a1a !important;
    transform: scale(1.25);
}

.gt-stepper-tab.is-active:hover,
.gt-stepper-tab.is-active:focus {
    background: #1a1a1a !important;
}

/* ── Panneau de contenu ── */
.gt-stepper-content {
    min-height: 100px;
    padding: 24px 0 8px;
    text-align: left;
}

.gt-stepper-panel {
    display: none;
    font-size: 0.93rem !important;
    line-height: 1.75 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gt-stepper-panel.is-active {
    display: block;
}

/* ── Barre de progression ── */
.gt-stepper-progress {
    height: 2px;
    background: #eee;
    border-radius: 1px;
    margin-top: 20px;
    text-align: left;
}

.gt-stepper-progress-fill {
    height: 2px;
    background: #1a1a1a;
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* ── Barre basse : navigation + signature ── */
.gt-stepper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.gt-stepper-nav button {
    font-size: 0.85rem;
    padding: 7px 16px;
    cursor: pointer;
    color: #555;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background 0.15s;
    font-family: inherit;
}

.gt-stepper-nav button:hover:not(:disabled) {
    background: #f5f5f3;
}

.gt-stepper-nav button:disabled {
    opacity: 0.3;
    cursor: default;
}

.gt-stepper-nav button:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* ── Signature ── */
.gt-stepper-sig {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: #999;
    font-style: italic;
    user-select: none;
}

.gt-stepper-sig-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f0ee;
    border: 1px solid #e0e0de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    font-style: normal;
    color: #888;
    flex-shrink: 0;
}


/* ── Curseur typewriter IA ── */
@keyframes gt-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.gt-stepper-panel[data-typing]::after {
    content: '|';
    display: inline-block;
    margin-left: 1px;
    color: #1a1a1a;
    font-weight: 300;
    animation: gt-blink 0.7s step-start infinite;
    vertical-align: baseline;
}

/* ── Liste masquée après init JS ── */
.gt-stepper.js-ready .gt-stepper-items,
.gt-stepper.js-ready .gt-stepper-items li {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .gt-points-cles.gt-stepper {
        margin: 2rem 0;
    }

    .gt-stepper-titre {
        font-size: 1.1rem !important;
    }

    .gt-stepper-tab {
        width: 7px;
        height: 7px;
    }

    .gt-stepper-panel {
        font-size: 0.95rem !important;
    }
}