* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #444;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

input[type="file"] {
    display: none;
}

.file-input-label {
    display: inline-block;
    padding: 12px 30px;
    background-color: #667eea;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-input-label:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.file-name {
    margin-top: 10px;
    color: #27ae60;
    font-size: 13px;
    font-weight: 500;
    min-height: 18px;
}

input[type="submit"] {
    padding: 14px 40px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    width: 100%;
}

input[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Conteneur de la barre de progression */
.progress-section {
    display: none;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.progress-section.active {
    display: block;
}

.timer-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.timer-box {
    flex: 1;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.timer-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.timer-display {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(102, 126, 234, 0.2);
    letter-spacing: 2px;
}

.timer-display.remaining {
    color: #e74c3c;
}

.progress-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    line-height: 28px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    transition: width 0.2s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
}

.progress-info {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.status-message.show {
    display: block;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.upload-url {
    margin-top: 15px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    word-break: break-all;
}

.upload-url a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.upload-url a:hover {
    text-decoration: underline;
}

.warning-box {
    margin-top: 20px;
    padding: 12px;
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.link-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.link-section a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.link-section a:hover {
    background-color: #e0e0e0;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-group button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #555;
}

.btn-secondary:hover {
    background-color: #bdc3c7;
}
