/* ========== STYLES TUTORIEL ========== */

/* Welcome modal */
.welcome-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.welcome-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.welcome-header img {
    width: 60px;
    height: 60px;
}

.welcome-header h2 {
    color: var(--text-primary);
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.welcome-content {
    margin-bottom: 32px;
}

.welcome-content p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: #3a8eef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--border-color);
}

.welcome-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.welcome-footer label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
}

.welcome-footer input[type="checkbox"] {
    cursor: pointer;
}

/* Tutorial overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.tutorial-spotlight {
    border: 3px solid var(--accent-blue);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Tutorial card */
.tutorial-card {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    padding: 24px;
    width: 400px;
    max-width: 90vw;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tutorial-step {
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tutorial-close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    padding: 0;
}

.tutorial-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tutorial-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.tutorial-title i {
    color: var(--accent-blue);
    font-size: 20px;
}

.tutorial-title span {
    flex: 1;
}

.tutorial-card p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Tutorial progress */
.tutorial-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.2s ease;
}

.tutorial-dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

.tutorial-dot.completed {
    background: var(--accent-green);
}

/* Tutorial actions */
.tutorial-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
