@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4C84FF;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-color: #f5f5f5;
    --text-primary: #333;
    --text-secondary: #666;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
    overflow-x: hidden;
}

body {
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 70rem;
}

.progress-wrapper {
    margin-bottom: 3rem;
}

.progress-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 4rem;
    background: #e5e7eb;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Animation de brillance */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start {
    background: var(--primary-color);
    color: #fff;
}

.btn-start:hover {
    background: #3a6fe6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 132, 255, 0.3);
}

.btn-reset {
    background: #e5e7eb;
    color: var(--text-primary);
}

.btn-reset:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.examples {
    padding: 3rem;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.examples h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.examples h4 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Variantes de couleurs */
.progress-success .progress-fill {
    background: linear-gradient(90deg, var(--success-color), #34d399);
}

.progress-warning .progress-fill {
    background: linear-gradient(90deg, var(--warning-color), #fbbf24);
}

.progress-danger .progress-fill {
    background: linear-gradient(90deg, var(--danger-color), #f87171);
}

/* Animation de pulsation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 132, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 132, 255, 0);
    }
}

.progress-fill.active {
    animation: pulse 2s infinite;
}
