:root {
    --bg: #0b0f1a;
    --card-bg: #161e2d;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --secondary: #1e293b;
    --accent: rgba(59, 130, 246, 0.5);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    background-image: radial-gradient(circle at top right, #1e293b, #0b0f1a);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 420px;
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

h1 { 
    font-size: 3.5rem; 
    margin: 0 0 0.5rem 0; 
    letter-spacing: -3px; 
    background: linear-gradient(to bottom right, #fff, #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p { 
    color: var(--text-dim); 
    margin-bottom: 2.5rem; 
    font-size: 1.1rem;
}

/* --- BOUTONS --- */
button, .button {
    display: block;
    width: 100%;
    padding: 1.1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active { transform: scale(0.96); }

.primary { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.secondary { 
    background: var(--secondary); 
    color: var(--text); 
}

.secondary:hover {
    background: #2d3748;
}

/* --- ZONE DE TRANSFERT --- */
#transfer-zone {
    padding: 10px;
}

#status {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}

#file-input {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed var(--primary);
    padding: 2rem 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    width: 100%;
    color: var(--text-dim);
    cursor: pointer;
}

/* --- ANIMATIONS DE REPRISE ET PAUSE --- */
@keyframes pulse-warn {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.98); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.pause-animation {
    animation: pulse-warn 2s infinite ease-in-out;
    background: rgba(245, 158, 11, 0.1);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

footer { 
    margin-top: 2.5rem; 
    color: var(--text-dim);
    font-size: 0.85rem; 
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Custom scrollbar pour le cache si besoin */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}