/* ============================================
   mes-fichiers.fr — CSS principal
   Design WeTransfer/Dropbox/Stripe level
   ============================================ */

/* --- Variables & Custom Properties --- */
:root {
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-light: #dbeafe;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #1f2937;
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

::selection {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-hover); }

/* --- Typography --- */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); font-weight: 600; line-height: 1.4; }
p { font-size: 1rem; line-height: 1.7; color: var(--color-text-secondary); }
small { font-size: 0.8125rem; color: var(--color-text-muted); }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.header-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.header-logo-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.header-logo-text {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-nav a {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.header-nav a:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* --- Hero / Upload Zone --- */
.hero {
    padding-top: calc(64px + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.6s ease both;
}

.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
    text-align: center;
    margin-bottom: 0.75rem;
    animation: fade-in-up 0.6s ease 0.1s both;
}

.hero-subtitle {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 1.0625rem;
    animation: fade-in-up 0.6s ease 0.2s both;
}

/* --- Upload Dropzone --- */
.dropzone {
    width: 100%;
    max-width: 640px;
    min-height: 320px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.6s ease 0.3s both;
    box-shadow: var(--shadow-sm);
}

.dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(59, 130, 246, 0.01));
    border-radius: inherit;
    transition: var(--transition);
}

.dropzone:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.dropzone.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: var(--shadow-glow), 0 0 40px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.dropzone.active::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.04));
}

.dropzone-icon {
    width: 72px;
    height: 72px;
    background: var(--color-primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.dropzone-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    animation: upload-arrow 2.5s ease-in-out infinite;
}

.dropzone-text {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.dropzone-hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    text-align: center;
}

.dropzone-btn {
    margin-top: 1.25rem;
    padding: 0.75rem 1.75rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.dropzone-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.file-input { display: none; }

/* --- Progress Section --- */
.progress-section {
    display: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    animation: fade-in-up 0.4s ease both;
}

.progress-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.progress-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.progress-file-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-file-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.progress-file-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-file-size {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

.progress-bar-wrap {
    position: relative;
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-primary), #60a5fa);
    background-size: 200% 100%;
    animation: progress-gradient 2s linear infinite;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.progress-percent {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Success Section --- */
.success-section {
    display: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    animation: fade-in-up 0.5s ease both;
}

.success-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.success-checkmark {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
}

.success-checkmark svg {
    width: 72px;
    height: 72px;
}

.success-checkmark .checkmark-circle {
    fill: none;
    stroke: var(--color-success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark-circle 0.6s ease-in-out forwards;
}

.success-checkmark .checkmark-check {
    fill: none;
    stroke: var(--color-success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-draw 0.4s ease 0.4s forwards;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.success-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.link-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.125rem 0.125rem 0.125rem 1rem;
    margin-bottom: 1rem;
}

.link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text);
    outline: none;
    min-width: 0;
}

.link-box .copy-btn {
    padding: 0.625rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.link-box .copy-btn:hover {
    background: var(--color-primary-hover);
}

.link-box .copy-btn svg { width: 14px; height: 14px; }

.success-expiry {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.success-expiry svg { width: 14px; height: 14px; }

.btn-new-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-new-upload:hover {
    background: var(--color-surface);
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.btn-new-upload svg { width: 16px; height: 16px; }

/* --- Error State --- */
.error-section {
    display: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    animation: fade-in-up 0.4s ease both;
}

.error-card {
    background: var(--color-surface);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.error-icon {
    width: 56px;
    height: 56px;
    background: var(--color-danger-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.error-icon svg { width: 28px; height: 28px; color: var(--color-danger); }

.error-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.375rem; }
.error-msg { font-size: 0.9375rem; color: var(--color-text-secondary); margin-bottom: 1.25rem; }

/* --- How It Works Section --- */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step-card:hover {
    background: var(--color-bg);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.step-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Security Badges --- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.security-badge:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.security-badge-icon {
    width: 44px;
    height: 44px;
    background: var(--color-success-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-badge-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-success);
}

.security-badge-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.125rem;
}

.security-badge-text p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* --- Download Page --- */
.download-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(64px + 2rem) 1.5rem 2rem;
}

.download-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--color-border);
    animation: fade-in-up 0.5s ease both;
}

.download-file-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    position: relative;
}

.download-file-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.download-file-icon .ext-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    padding: 0.125rem 0.5rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.download-filename {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
    word-break: break-all;
}

.download-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.download-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.download-meta-item svg { width: 16px; height: 16px; }

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: #fff;
}

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

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

.download-countdown {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-warning-light);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.download-countdown svg { width: 14px; height: 14px; }

.download-downloads {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.download-downloads svg { width: 14px; height: 14px; }

.download-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.download-actions a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.download-actions a:hover { color: var(--color-text-secondary); }
.download-actions a svg { width: 14px; height: 14px; }

/* --- Expired Page --- */
.expired-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.expired-icon {
    width: 72px;
    height: 72px;
    background: var(--color-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.expired-icon svg { width: 32px; height: 32px; color: var(--color-text-muted); }

.expired-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.expired-text { font-size: 0.9375rem; color: var(--color-text-secondary); margin-bottom: 2rem; }

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-cta svg { width: 18px; height: 18px; }

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--color-text-secondary); }

/* --- Report Modal --- */
.report-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.report-overlay.active { display: flex; }

.report-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    animation: fade-in-up 0.3s ease;
}

.report-modal h3 { margin-bottom: 1rem; }

.report-modal select,
.report-modal input,
.report-modal textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.report-modal select:focus,
.report-modal input:focus,
.report-modal textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-secondary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast svg { width: 18px; height: 18px; }

/* --- Mentions legales --- */
.legal-page {
    padding: calc(64px + 3rem) 0 3rem;
}

.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { margin: 2.5rem 0 1rem; color: var(--color-text); }
.legal-page h3 { margin: 1.5rem 0 0.75rem; color: var(--color-text); font-size: 1.0625rem; }
.legal-page p { margin-bottom: 1rem; }
.legal-page ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-page li { margin-bottom: 0.5rem; color: var(--color-text-secondary); font-size: 0.9375rem; }

/* --- Keyframe Animations --- */
@keyframes upload-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes progress-gradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes checkmark-circle {
    100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-draw {
    100% { stroke-dashoffset: 0; }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.05); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.4; }
}

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

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .steps-grid { gap: 1.5rem; }
    .security-grid { gap: 1rem; }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; padding-top: calc(64px + 2.5rem); padding-bottom: 2.5rem; }
    .dropzone { min-height: 260px; padding: 2rem 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
    .security-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .section { padding: 3rem 0; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .download-card { padding: 2rem 1.5rem; }
    .header-nav { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero { min-height: auto; padding-top: calc(64px + 2rem); }
    .dropzone { min-height: 220px; padding: 1.5rem 1rem; border-radius: var(--radius-lg); }
    .dropzone-icon { width: 56px; height: 56px; border-radius: 16px; }
    .dropzone-icon svg { width: 24px; height: 24px; }
    h1 { font-size: 1.5rem; }
    .download-card { padding: 1.5rem; border-radius: var(--radius-lg); }
    .link-box { flex-direction: column; padding: 0.5rem; }
    .link-box input { width: 100%; text-align: center; padding: 0.5rem; }
    .link-box .copy-btn { width: 100%; justify-content: center; }
}

/* --- Dark Mode --- */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f172a;
        --color-surface: #1e293b;
        --color-text: #f1f5f9;
        --color-text-secondary: #94a3b8;
        --color-text-muted: #64748b;
        --color-border: #334155;
        --color-border-hover: #475569;
        --color-primary-light: rgba(59, 130, 246, 0.15);
        --color-success-light: rgba(16, 185, 129, 0.15);
        --color-danger-light: rgba(239, 68, 68, 0.15);
        --color-warning-light: rgba(245, 158, 11, 0.15);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
        --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);
    }

    .header {
        background: rgba(30, 41, 59, 0.85);
        border-bottom-color: rgba(51, 65, 85, 0.6);
    }

    .dropzone { background: var(--color-surface); }
    .dropzone.active { background: rgba(59, 130, 246, 0.08); }

    .step-card:hover { background: rgba(255, 255, 255, 0.03); }

    .download-file-icon .ext-badge {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .toast { background: #f1f5f9; color: #1e293b; }

    body { background: var(--color-bg); }
    tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
}
