/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    --glow-x: 50%;
    --glow-y: 50%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

/* Effet de bordure brillante avec pseudo-élément - RESTAURÉ */
.container::before {
    content: '';
    position: absolute;
    inset: -3px;
    padding: 3px;
    background: conic-gradient(from 0deg at var(--glow-x, 50%) var(--glow-y, 50%),
        transparent 0deg,
        #00ffff 45deg,
        #0099ff 90deg,
        #6600ff 135deg,
        transparent 180deg,
        #ff0099 225deg,
        #ff6600 270deg,
        #ffff00 315deg,
        transparent 360deg
    );
    border-radius: 27px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(1px);
}

.container:hover::before {
    opacity: 1;
    animation: rotate-glow 3s linear infinite;
}

/* Supprimé - plus de glow-green, tout est teal maintenant */

@keyframes rotate-glow {
    0% {
        filter: blur(1px) hue-rotate(0deg);
    }
    100% {
        filter: blur(1px) hue-rotate(360deg);
    }
}

.container:hover {
    transform: translateY(-2px);
}

.glow-card:hover .glow-blob {
    opacity: 1;
}

@media (pointer: fine) {
    .container:hover {
        box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.2), 0 8px 10px -6px rgba(20, 184, 166, 0.1);
    }
    
    .glow-card.glow-teal:hover {
        box-shadow: 0 15px 30px -8px rgba(20, 184, 166, 0.3), 0 10px 20px -5px rgba(20, 184, 166, 0.2);
    }
    
    /* Supprimé - plus de glow-green */
}

/* Système de glow avec blob qui suit la souris */
.glow-blob {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(40px);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glow-card.glow-teal .glow-blob {
    background: radial-gradient(
        circle,
        rgba(20, 184, 166, 0.3) 0%,
        rgba(20, 184, 166, 0.15) 40%,
        transparent 70%
    );
}

/* Supprimé - plus de glow-green, tout utilise glow-teal */

/* Fallback pour anciens navigateurs */
.glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: var(--glow-opacity, 0);
    transition: opacity 0.3s ease;
    z-index: 1;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(20, 184, 166, 0.3) 0%,
        rgba(20, 184, 166, 0.1) 40%,
        transparent 70%
    );
}

/* Supprimé - conflit avec l'effet bordure principal */

/* Styles app-icon supprimés - plus d'icône */

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #0f172a;
    position: relative;
    z-index: 2;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #0f172a;
    position: relative;
    z-index: 2;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1.1em;
    position: relative;
    z-index: 2;
}

/* Alertes */
.alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #15803d;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.alert p {
    margin: 0;
}

/* Upload section */
.upload-section {
    margin-bottom: 30px;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(20, 184, 166, 0.3);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.file-label:hover, .file-label.drag-over {
    background: rgba(255, 255, 255, 0.9);
    border-color: #14b8a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.15);
}

.upload-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 1.5em;
    opacity: 0.7;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.primary-text {
    font-size: 0.9em;
    font-weight: 500;
    color: #0f172a;
}

.secondary-text {
    font-size: 0.75em;
    color: #64748b;
}

.file-list {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin: 5px 0;
    background: rgba(20, 184, 166, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(20, 184, 166, 0.1);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.file-item-name {
    font-weight: 500;
    color: #0f172a;
}

.file-item-size {
    color: #64748b;
    font-size: 0.8em;
}

.file-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.file-item-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.file-name {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Formats info */
.formats-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.format-group {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.format-group ul {
    list-style: none;
    padding-left: 0;
}

.format-group li {
    padding: 5px 0;
    color: #555;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 2;
    outline: none;
    focus-visible: ring-2 ring-offset-2;
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.25), 0 2px 4px -1px rgba(20, 184, 166, 0.06);
}

.button-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.3), 0 4px 6px -2px rgba(20, 184, 166, 0.05);
    background: linear-gradient(135deg, #0f766e, #0d9488);
}

.button-primary:focus {
    ring-color: #14b8a6;
}

.button-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(107, 114, 128, 0.25), 0 2px 4px -1px rgba(107, 114, 128, 0.06);
}

.button-secondary:hover {
    box-shadow: 0 10px 15px -3px rgba(107, 114, 128, 0.3), 0 4px 6px -2px rgba(107, 114, 128, 0.05);
    background: linear-gradient(135deg, #4b5563, #374151);
}

.button-secondary:focus {
    ring-color: #6b7280;
}

.button-large {
    padding: 15px 40px;
    font-size: 1.2em;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Forms */
.conversion-form {
    margin-top: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.format-section {
    margin-bottom: 20px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.format-option {
    position: relative;
    cursor: pointer;
}

.format-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.format-label {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.format-option input[type="radio"]:checked + .format-label {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    border-color: #14b8a6;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.25);
}

.format-option:hover .format-label {
    border-color: #14b8a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.15);
}

/* Options */
.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.option-group input[type="number"] {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.option-group input[type="number"]:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.info-text {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(13, 148, 136, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 15px;
    border-radius: 12px;
    color: #0d9488;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Download section */
.download-section {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.actions {
    margin-top: 30px;
}

/* Links */
.link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

/* Info box */
.info-box {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(13, 148, 136, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 20px;
    border-radius: 16px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.info-box p {
    margin: 5px 0;
}

/* Vectorization methods */
.vectorization-methods {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.method-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.method-option:hover {
    border-color: #14b8a6;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.15);
}

.method-option input[type="radio"] {
    margin-top: 4px;
}

.method-option input[type="radio"]:checked + .method-details {
    color: #0f172a;
}

.method-option:has(input[type="radio"]:checked) {
    border-color: #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(13, 148, 136, 0.1));
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.25);
}

.method-details h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.method-details p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .formats-info {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }
    
    .vectorization-methods {
        gap: 10px;
    }
    
    .method-option {
        padding: 12px;
    }
}

/* Section des fichiers uploadés */
.uploaded-files-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.files-manager {
    margin-top: 20px;
}

.manager-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.button-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.25), 0 2px 4px -1px rgba(239, 68, 68, 0.06);
}

.button-danger:hover {
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3), 0 4px 6px -2px rgba(239, 68, 68, 0.05);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.button-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.file-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.file-card:hover {
    border-color: #14b8a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.file-card.selected {
    border-color: #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(13, 148, 136, 0.1));
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.file-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.file-thumbnail {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.file-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.file-thumbnail.no-preview {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #6b7280;
    font-size: 2em;
}

.file-info {
    text-align: center;
}

.file-name {
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 5px;
    word-break: break-word;
    font-size: 0.9em;
}

.file-size {
    color: #64748b;
    font-size: 0.8em;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #14b8a6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* DRAG & DROP SIMPLE ET EFFICACE */

/* État global quand on drag des fichiers */
body.dragging-active {
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.1), 
        rgba(13, 148, 136, 0.1));
}

body.dragging-active::before {
    content: '📁 Glissez vos images ici !';
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 184, 166, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    z-index: 9999;
    pointer-events: none;
    animation: slideDown 0.3s ease-out;
}

/* Container en mode drag over */
.container.drag-over {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.3);
    border: 2px dashed rgba(20, 184, 166, 0.7) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    transition: all 0.3s ease;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Zone de drop simplifiée - le drag global gère tout */
.file-label {
    transition: all 0.3s ease;
}

.drop-indicator {
    display: none; /* Masqué car on utilise le système global */
}

/* ELIMINATION DEFINITIVE de tout élément vert potentiel */
*[style*="green"], *[class*="green"] {
    color: #14b8a6 !important;
    background-color: transparent !important;
    border-color: #14b8a6 !important;
}

/* Masquer tout carré ou élément vert persistant */
.success-icon {
    color: #14b8a6 !important; /* Pas de vert, même dans success */
}

/* Forcer tous les éléments de titre en teal */
h1, h1 * {
    color: inherit !important;
}

/* SUPPRESSION TOTALE de toute icône/pseudo-élément indésirable */
h1::before, h1::after,
.container::before, .container::after,
*[class*="icon"]::before, *[class*="icon"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Masquer toute image/icône qui pourrait apparaître */
h1 img, h1 svg, h1 .icon, h1 [class*="icon"] {
    display: none !important;
}

/* Si une icône noire apparaît, la masquer */
*[style*="background-image"], 
*[class*="icon"],
.icon-* {
    background-image: none !important;
    display: none !important;
}

.drag-content {
    text-align: center;
    color: white;
}

/* INTERFACE MODERNE - CARTES DE CONVERSION */
.conversion-zone {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.conversion-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.conversion-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.conversion-card:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.file-details h4 {
    margin: 0 0 5px 0;
    color: #0f172a;
    font-size: 1.1em;
    word-break: break-word;
}

.file-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.9em;
}

.remove-file-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #ef4444;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file-btn:hover {
    background: #dc2626;
}

.conversion-options {
    margin-bottom: 20px;
}

.conversion-options label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}

.format-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-option {
    cursor: pointer;
    position: relative;
}

.format-option input {
    position: absolute;
    opacity: 0;
}

.format-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(20, 184, 166, 0.1);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.format-option input:checked + .format-label {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
}

.quality-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quality-options label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
}

.quality-slider {
    flex: 1;
    height: 6px;
    background: rgba(20, 184, 166, 0.2);
    border-radius: 3px;
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #14b8a6;
    border-radius: 50%;
    cursor: pointer;
}

.quality-value {
    font-weight: 500;
    color: #14b8a6;
    min-width: 40px;
}

/* Animations drag & drop supprimées - Interface moderne uniquement */

/* Miniatures des fichiers sélectionnés */
.selected-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.selected-file-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.selected-file-card:hover {
    border-color: #14b8a6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 184, 166, 0.15);
}

.selected-file-thumbnail {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.thumbnail-loading {
    font-size: 1.5em;
    opacity: 0.7;
}

.file-icon {
    font-size: 2em;
    opacity: 0.7;
}

.selected-file-info {
    text-align: center;
    margin-bottom: 8px;
}

.selected-file-name {
    font-size: 0.8em;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-file-size {
    font-size: 0.7em;
    color: #64748b;
}

.selected-file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.selected-file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* SECTION TÉLÉCHARGEMENT DES RÉSULTATS */
.download-results {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(20, 184, 166, 0.3);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.1);
}

.download-results h2 {
    color: #0f172a;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4em;
}

.download-cards {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(20, 184, 166, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
    transform: translateY(-1px);
}

.download-info {
    flex: 1;
}

.download-info h4 {
    margin: 0 0 5px 0;
    color: #0f172a;
    font-size: 1.1em;
    font-weight: 600;
    word-break: break-word;
}

.download-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.9em;
}

.download-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid rgba(20, 184, 166, 0.2);
}