/* index4 — flow TikTok user-friendly (mobile-first) */

.page-index4 {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Choix d'accès */
.access-choice {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.access-card {
    background: var(--white, #fff);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.access-card--highlight {
    border-color: var(--blue-france, #000091);
    box-shadow: 0 4px 16px rgba(0, 0, 145, 0.08);
}

.access-card__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.access-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    color: var(--text, #1a1a2e);
}

.access-card p {
    font-size: 0.88rem;
    color: var(--text-muted, #64748b);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.access-card .btn-primary,
.access-card .btn-secondary {
    width: 100%;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid var(--blue-france, #000091);
    border-radius: 8px;
    background: transparent;
    color: var(--blue-france, #000091);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(0, 0, 145, 0.06);
}

.divider-or {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0 1.25rem;
    position: relative;
}

.divider-or::before,
.divider-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border, #e2e8f0);
}

.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

/* Étapes numérotées */
.step-block {
    background: var(--white, #fff);
    border-radius: 12px;
    border: 1px solid var(--border, #e2e8f0);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.step-block__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-france, #000091);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-block__head h2 {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.3;
}

.step-block__head p {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin: 0.25rem 0 0;
}

/* Guide enregistrement */
.record-guide {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.record-tabs {
    display: flex;
    gap: 0.5rem;
}

.record-tab {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted, #64748b);
}

.record-tab.is-active {
    background: var(--blue-france, #000091);
    color: #fff;
    border-color: var(--blue-france, #000091);
}

.record-panel {
    display: none;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.record-panel.is-active {
    display: block;
}

.record-panel ol {
    margin: 0;
    padding-left: 1.2rem;
}

.record-panel li {
    margin-bottom: 0.5rem;
}

.record-panel li:last-child {
    margin-bottom: 0;
}

.tip-box {
    background: #fff8e6;
    border-left: 3px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    margin: 0.75rem 0;
    line-height: 1.5;
}

.tip-box strong {
    color: #92400e;
}

.open-site-btn {
    margin: 0.75rem 0 1rem;
}

.tiktok-example {
    margin: 1rem 0;
}

.tiktok-example > p {
    font-size: 0.88rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.example-video {
    width: 100%;
    max-height: 280px;
    border-radius: 8px;
    background: #000;
}

/* Formulaire TikTok bas */
.form-tiktok-submit {
    margin-top: 0.5rem;
}

.verify-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-verify {
    position: relative;
    width: 100%;
}

.btn-verify:disabled,
.btn-verify.is-cooldown {
    background: #94a3b8 !important;
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-verify .timer-label {
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0.95;
}

.verify-status {
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    line-height: 1.45;
    display: none;
}

.verify-status.is-visible {
    display: block;
}

.verify-status--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.verify-status--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.verify-status--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Popup récap final */
.recap-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.recap-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    gap: 0.5rem;
}

.recap-list li:last-child {
    border-bottom: none;
}

.recap-list strong {
    flex-shrink: 0;
    min-width: 5.5rem;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.recap-list span {
    word-break: break-all;
}

.recap-warning {
    background: #fff8e6;
    border-radius: 8px;
    padding: 0.85rem;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.recap-warning ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

/* Progress indicator */
.flow-progress {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.flow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.flow-dot.is-done {
    background: var(--blue-france, #000091);
}

.flow-dot.is-current {
    background: var(--blue-france, #000091);
    transform: scale(1.3);
}

@media (min-width: 480px) {
    .access-choice {
        grid-template-columns: 1fr 1fr;
    }

    .access-card--full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 479px) {
    .step-block {
        padding: 1rem;
    }

    .record-tab {
        font-size: 0.78rem;
        padding: 0.5rem;
    }
}
