/* ============================================
   BloomCompress - Botanical Luxury Design
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors */
    --cream: #fdfaf0;
    --cream-dark: #f5f0e3;
    --brown: #af8c68;
    --brown-light: #c4a67d;
    --brown-dark: #8b6f4e;
    --brown-deeper: #6b5540;

    /* Neutrals */
    --white: #ffffff;
    --text-primary: #3d3428;
    --text-secondary: #7a6e5d;
    --text-muted: #a89f91;
    --border-light: rgba(175, 140, 104, 0.15);
    --border-medium: rgba(175, 140, 104, 0.25);

    /* Semantic */
    --video-color: #8b7355;
    --image-color: #a68b5b;
    --success: #7d9b76;
    --success-light: rgba(125, 155, 118, 0.1);
    --error: #c17b7b;
    --error-light: rgba(193, 123, 123, 0.1);
    --warning: #c9a55c;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(175, 140, 104, 0.08);
    --shadow-medium: 0 8px 40px rgba(175, 140, 104, 0.12);
    --shadow-elevated: 0 16px 60px rgba(175, 140, 104, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.5s;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Decorative Background Elements */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(175, 140, 104, 0.06) 0%, transparent 70%);
}

.deco-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(175, 140, 104, 0.04) 0%, transparent 70%);
}

.deco-line {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.deco-line-1 {
    width: 1px;
    height: 200px;
    top: 100px;
    left: 10%;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

.deco-line-2 {
    width: 1px;
    height: 300px;
    bottom: 50px;
    right: 8%;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 24px 8px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 0;
    animation: fadeInDown var(--duration-slow) var(--ease-out);
}

.logo-container {
    margin-bottom: 0;
}

.logo-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Card Base */
.card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--brown);
    overflow: hidden;
    animation: fadeInUp var(--duration-normal) var(--ease-out);
}

.card.hidden {
    display: none;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brown-light), var(--brown), var(--brown-dark));
    opacity: 0.8;
}

.card-accent.error {
    background: linear-gradient(90deg, var(--error), #d48a8a, var(--error));
}

/* Drop Zone */
.drop-zone {
    position: relative;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    background: linear-gradient(135deg, transparent 0%, rgba(175, 140, 104, 0.02) 100%);
}

.drop-zone:hover {
    border-color: var(--brown);
    background: linear-gradient(135deg, rgba(175, 140, 104, 0.03) 0%, rgba(175, 140, 104, 0.06) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.drop-zone.drag-over {
    border-color: var(--brown);
    border-style: solid;
    background: rgba(175, 140, 104, 0.08);
    transform: scale(1.01);
}

.drop-zone-visual {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
}

.drop-zone-rings {
    position: absolute;
    inset: 0;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    animation: ringPulse 3s var(--ease-in-out) infinite;
}

.ring-1 {
    inset: 0;
    animation-delay: 0s;
}

.ring-2 {
    inset: 8px;
    animation-delay: 0.5s;
}

.ring-3 {
    inset: 16px;
    animation-delay: 1s;
}

.drop-zone:hover .ring {
    border-color: var(--brown-light);
}

.drop-zone-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    color: var(--brown);
    transition: all var(--duration-normal) var(--ease-out);
}

.drop-zone-icon svg {
    width: 22px;
    height: 22px;
}

.drop-zone:hover .drop-zone-icon {
    background: var(--brown);
    color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.drop-zone-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.drop-zone-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.drop-zone-divider {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
}

.drop-zone-divider::before,
.drop-zone-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--border-light);
}

.drop-zone-divider::before {
    right: calc(50% + 24px);
}

.drop-zone-divider::after {
    left: calc(50% + 24px);
}

.btn-browse {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 24px;
    background: transparent;
    color: var(--brown);
    border: 1.5px solid var(--brown);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-browse:hover {
    background: var(--brown);
    color: var(--white);
}

/* Limits Section */
.limits-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.limit-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.limit-card:hover {
    box-shadow: var(--shadow-soft);
}

.limit-icon {
    color: var(--brown);
    opacity: 0.7;
}

.limit-icon svg {
    width: 20px;
    height: 20px;
}

.limit-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.limit-number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brown);
}

.limit-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.limit-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.limit-divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

/* Formats Section */
.formats-section {
    margin-top: 10px;
    text-align: center;
}

.formats-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.format-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--cream);
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: all var(--duration-fast) var(--ease-out);
}

.format-tag.video {
    border: 1px solid var(--video-color);
    color: var(--video-color);
}

.format-tag.image {
    border: 1px solid var(--image-color);
    color: var(--image-color);
}

.format-tag:hover {
    transform: translateY(-1px);
}

/* Processing Card */
.processing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.processing-title h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.processing-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.processing-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 16px;
    background: var(--cream);
    border-radius: var(--radius-sm);
}

.counter-current {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brown);
}

.counter-divider {
    font-size: 1rem;
    color: var(--text-muted);
}

.counter-total {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Progress Section */
.progress-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.progress-bar-container {
    flex: 1;
    position: relative;
}

.progress-bar-track {
    height: 8px;
    background: var(--cream-dark);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brown-light), var(--brown));
    border-radius: 4px;
    transition: width 0.4s var(--ease-out);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-glow {
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 12px;
    background: var(--brown);
    border-radius: 4px;
    filter: blur(8px);
    opacity: 0.3;
    transition: width 0.4s var(--ease-out);
}

.progress-percentage {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown);
    min-width: 50px;
    text-align: right;
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.file-list::-webkit-scrollbar {
    width: 4px;
}

.file-list::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 2px;
}

.file-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 2px;
}

/* File Item */
.file-item {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration-fast) var(--ease-out);
}

.file-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-soft);
}

.file-item.error {
    border-color: var(--error);
    background: var(--error-light);
}

.file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border-light);
}

.file-icon.video {
    color: var(--video-color);
}

.file-icon.image {
    color: var(--image-color);
}

.file-info {
    min-width: 0;
    flex: 1;
}

.file-name {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.file-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
}

.file-size {
    color: var(--text-muted);
}

.file-status {
    font-weight: 500;
}

.file-status.pending { color: var(--text-muted); }
.file-status.uploading { color: var(--warning); }
.file-status.processing { color: var(--brown); }
.file-status.complete { color: var(--success); }
.file-status.error { color: var(--error); }

/* File Progress - inline with file info */
.file-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}

.file-progress.hidden {
    display: none;
}

.file-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--cream-dark);
    border-radius: 2px;
    overflow: hidden;
    min-width: 60px;
}

.file-progress-fill {
    height: 100%;
    background: var(--brown);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.file-progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
}

/* File Stats - compact inline */
.file-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-stats.hidden {
    display: none;
}

.file-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-stat .stat-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
}

.file-stat .stat-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.file-stat .savings.positive {
    color: var(--success);
}

.file-stat .savings.negative {
    color: var(--error);
}

/* File Actions - always visible on same line */
.file-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.file-actions.hidden {
    display: none;
}

.btn-download-individual {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-download-individual:hover {
    background: var(--brown-dark);
    transform: scale(1.05);
}

/* When file is complete, hide progress and show stats + download on same line */
.file-item.complete .file-progress {
    display: none;
}

/* Success Section */
.success-section {
    text-align: center;
    margin-bottom: 16px;
}

.success-icon-container {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
}

.success-rings {
    position: absolute;
    inset: 0;
}

.success-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--success);
    opacity: 0.3;
}

.success-ring-1 {
    inset: 0;
    animation: successRing 2s var(--ease-out) infinite;
}

.success-ring-2 {
    inset: 6px;
    animation: successRing 2s var(--ease-out) infinite 0.3s;
}

.success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    border-radius: 50%;
    color: var(--success);
    animation: successPop 0.5s var(--ease-out);
}

.success-icon svg {
    width: 22px;
    height: 22px;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.success-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.summary-card {
    text-align: center;
    padding: 12px 8px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.summary-card.highlight {
    background: linear-gradient(135deg, rgba(175, 140, 104, 0.1), rgba(175, 140, 104, 0.05));
    border: 1px solid var(--border-medium);
}

.summary-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.summary-card.highlight .summary-value {
    color: var(--brown);
}

.summary-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Download Actions */
.download-actions {
    margin-bottom: 16px;
}

.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--brown), var(--brown-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 20px rgba(175, 140, 104, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(175, 140, 104, 0.4);
}

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

/* Individual Downloads */
.individual-downloads {
    margin-bottom: 12px;
}

.downloads-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    transition: all var(--duration-fast) var(--ease-out);
}

.download-item:hover {
    border-color: var(--border-medium);
}

.download-name {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-size {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-download-small {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--brown);
    border: 1px solid var(--brown);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-download-small svg {
    width: 12px;
    height: 12px;
}

.btn-download-small:hover {
    background: var(--brown);
    color: var(--white);
}

/* Secondary Button */
.btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-secondary:hover {
    color: var(--brown);
    border-color: var(--brown);
    background: rgba(175, 140, 104, 0.05);
}

/* Error Card */
.error-card {
    text-align: center;
}

.error-section {
    margin-bottom: 24px;
}

.error-icon-container {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error-light);
    border-radius: 50%;
    color: var(--error);
}

.error-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 8px 24px;
    text-align: center;
}

.footer-content {
    max-width: 680px;
    margin: 0 auto;
}

.footer-brand {
    display: none;
}

.footer-logo {
    display: none;
}

.footer-by {
    display: none;
}

.footer-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes ringPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes successPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes successRing {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive - Tablette */
@media (max-width: 900px) {
    .container {
        max-width: 600px;
        padding: 12px 20px 8px;
    }

    .logo-image {
        max-width: 500px;
    }
}

/* Responsive - Mobile Large */
@media (max-width: 640px) {
    .container {
        padding: 8px 16px 4px;
    }

    .card {
        padding: 16px 16px;
        border-radius: var(--radius-md);
    }

    .logo-image {
        width: 100%;
        max-width: 100%;
    }

    .drop-zone {
        padding: 16px 12px;
    }

    .drop-zone-visual {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .ring-2 {
        inset: 6px;
    }

    .ring-3 {
        inset: 12px;
    }

    .drop-zone-icon {
        width: 30px;
        height: 30px;
    }

    .drop-zone-icon svg {
        width: 16px;
        height: 16px;
    }

    .drop-zone-title {
        font-size: 1rem;
    }

    .drop-zone-text {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .drop-zone-divider {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .drop-zone-divider::before,
    .drop-zone-divider::after {
        width: 40px;
    }

    .drop-zone-divider::before {
        right: calc(50% + 16px);
    }

    .drop-zone-divider::after {
        left: calc(50% + 16px);
    }

    .btn-browse {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .limits-section {
        gap: 12px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .limit-card {
        padding: 6px 10px;
        gap: 6px;
    }

    .limit-icon svg {
        width: 16px;
        height: 16px;
    }

    .limit-number {
        font-size: 1.1rem;
    }

    .limit-label {
        font-size: 0.7rem;
    }

    .limit-detail {
        font-size: 0.6rem;
    }

    .limit-divider {
        height: 24px;
    }

    .formats-section {
        margin-top: 8px;
    }

    .formats-label {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }

    .format-tags {
        gap: 4px;
    }

    .format-tag {
        font-size: 0.55rem;
        padding: 3px 8px;
    }

    .footer {
        padding: 4px 16px;
    }

    .footer-note {
        font-size: 0.65rem;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .summary-card {
        padding: 12px 8px;
    }

    .summary-value {
        font-size: 1.1rem;
    }

    .summary-label {
        font-size: 0.65rem;
    }

    .file-item {
        grid-template-columns: 30px 1fr auto auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .file-icon {
        width: 30px;
        height: 30px;
    }

    .file-name {
        font-size: 0.75rem;
    }

    .file-meta {
        font-size: 0.65rem;
        gap: 6px;
    }

    .file-progress {
        min-width: 70px;
    }

    .file-progress-bar {
        min-width: 40px;
    }

    .file-progress-text {
        font-size: 0.6rem;
        min-width: 28px;
    }

    .file-stats {
        gap: 8px;
    }

    .file-stat .stat-label {
        font-size: 0.5rem;
    }

    .file-stat .stat-value {
        font-size: 0.6rem;
    }

    .btn-download-individual {
        width: 26px;
        height: 26px;
    }

    .deco-circle-1,
    .deco-circle-2,
    .deco-line-1,
    .deco-line-2 {
        display: none;
    }
}

/* Responsive - Mobile Small */
@media (max-width: 400px) {
    .container {
        padding: 4px 12px 4px;
    }

    .card {
        padding: 12px 12px;
    }

    .drop-zone {
        padding: 12px 10px;
    }

    .drop-zone-visual {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    .drop-zone-title {
        font-size: 0.9rem;
    }

    .limits-section {
        flex-direction: row;
        gap: 8px;
    }

    .limit-card {
        flex-direction: column;
        padding: 6px 8px;
        gap: 2px;
    }

    .limit-info {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .limit-detail {
        margin-left: 0;
        margin-top: 2px;
    }

    .limit-divider {
        width: 1px;
        height: 40px;
    }

    .format-tag {
        font-size: 0.5rem;
        padding: 2px 6px;
    }

    .processing-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .processing-counter {
        align-self: flex-end;
    }
}

/* Hauteur d'écran réduite */
@media (max-height: 700px) {
    .container {
        padding-top: 8px;
    }

    .drop-zone {
        padding: 16px 12px;
    }

    .drop-zone-visual {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }

    .limits-section {
        margin-top: 8px;
        padding-top: 8px;
    }

    .formats-section {
        margin-top: 6px;
    }
}
