/* MODIFIÉ : J'ai remplacé les valeurs de ce bloc :root pour correspondre 
    à notre charte "Communication" (Sarcelle/Anthracite) 
    tout en conservant vos nouveaux noms de variables.
*/
:root {
    /* Couleurs primaires (Sarcelle / Aqua) */
    --primary-color: #0d9488;
    --secondary-color: #0f766e; /* Sarcelle foncé */
    --accent-color: #2dd4bf; /* Aqua clair */

    /* Fonds (Gris anthracite neutre) */
    --background-color: #18181b;
    --surface-color: #27272a;
    --surface-elevated: #3f3f46;
    --surface-card: #3f3f46; /* Gardé simple, identique à elevated */

    /* Textes (Blancs cassés / Gris) */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Couleurs sémantiques (universelles, gardées) */
    --error-color: #ff4757;
    --success-color: #2ed573;
    --warning-color: #f59e0b; /* Notre ancien accent jaune/orange */

    /* Bordures et Ombres (teintées Sarcelle) */
    --border-color: rgba(244, 244, 245, 0.1); /* Bordure neutre */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 32px rgba(13, 148, 136, 0.12), 0 2px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 64px rgba(13, 148, 136, 0.18), 0 4px 32px rgba(0, 0, 0, 0.35);

    /* Dégradés (s'adaptent automatiquement aux variables ci-dessus) */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-surface: linear-gradient(135deg, var(--surface-elevated) 0%, var(--surface-card) 100%);
    --gradient-bg: radial-gradient(ellipse at top, var(--surface-color) 0%, var(--background-color) 70%);
}
/* ----- FIN DE LA MODIFICATION ----- */
/* Le reste du fichier utilise ces variables */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--gradient-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Halos Sarcelle */
        radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    padding: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.glow {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    position: relative;
    /* Ombre Sarcelle */
    text-shadow: 0 8px 32px rgba(13, 148, 136, 0.3);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { filter: brightness(1) drop-shadow(0 0 20px rgba(13, 148, 136, 0.3)); }
    100% { filter: brightness(1.1) drop-shadow(0 0 30px rgba(13, 148, 136, 0.5)); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.user-counter {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: var(--gradient-surface);
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    z-index: 1000;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.user-counter:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.upload-container {
    width: 100%;
    max-width: 600px;
    background: var(--gradient-surface);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 2rem auto;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.upload-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Halo Sarcelle */
    background: radial-gradient(circle, rgba(13, 148, 136, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Fond Sarcelle */
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(45, 212, 191, 0.08) 100%);
    cursor: pointer;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.drop-zone::before {
    content: '📁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120%);
    font-size: 3rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.drop-zone:hover::before,
.drop-zone.drag-over::before {
    transform: translate(-50%, -120%) scale(1.1);
    opacity: 0.6;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    /* Fond Sarcelle au survol */
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(45, 212, 191, 0.15) 100%);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.drop-zone p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.upload-btn {
    display: block;
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.upload-btn:hover::before {
    left: 100%;
}

.upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.upload-btn:active {
    transform: translateY(0);
}

.upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    border-radius: 20px;
    background: var(--surface-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-container input[type="text"] {
    width: calc(100% - 120px);
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.result-container input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--surface-elevated);
    /* Lueur Sarcelle */
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.copy-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.copy-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid var(--background-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-btn.loading {
    position: relative;
    color: transparent;
}

.upload-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spin 0.8s linear infinite;
}

/* Messages et notifications */
.success-message {
    color: var(--success-color);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.1) 0%, rgba(46, 213, 115, 0.05) 100%);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid rgba(46, 213, 115, 0.2);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.4s ease-out;
}

.success-message::before {
    content: '✅';
    font-size: 1.2rem;
}

.error-message {
    color: var(--error-color);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.05) 100%);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 71, 87, 0.2);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.4s ease-out;
}

.error-message::before {
    content: '❌';
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation et compte utilisateur */
.account-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    background: var(--gradient-surface);
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    backdrop-filter: blur(20px);
}

.account-button:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.account-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    width: 100%;
}

.account-link:hover {
    color: var(--accent-color);
    /* Fond Sarcelle */
    background: rgba(13, 148, 136, 0.1);
}

.account-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Styles pour les formulaires d'authentification */
.auth-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: var(--surface-elevated);
    border-radius: 12px;
    box-shadow: var(--shadow-md); /* Utilisation de la variable d'ombre */
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    background: var(--surface-color);
    color: var(--text-primary);
}

/* Boutons principaux (Se connecter, S'inscrire) */
.auth-form button,
.auth-form a {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 0;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    /* Ombre Sarcelle */
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.09);
    transition: background 0.18s, transform 0.15s;
}
.delete-btn {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5em 1.2em;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5em;
    transition: background 0.2s;
}
.delete-btn:hover {
    background: #b71c1c;
}
.auth-form button:hover,
.auth-form a:hover {
    background: linear-gradient(90deg, var(--secondary-color) 60%, var(--primary-color) 100%);
    transform: translateY(-2px) scale(1.02);
    color: #fff;
    text-decoration: none;
}

/* Lien S'inscrire dans le texte */
.auth-form p a {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    background: none;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.18s;
}

.auth-form p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Bouton retour à l'accueil */
.back-button {
    display: inline-block;
    margin: 2rem auto 0 auto;
    padding: 0.7rem 2.2rem;
    background: linear-gradient(90deg, var(--surface-elevated) 60%, var(--surface-color) 100%);
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    /* Ombre Sarcelle */
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.07);
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.15s;
}

.back-button:hover {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px) scale(1.02);
    text-decoration: none;
}

/* Styles pour la grille d'uploads */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.upload-item {
    background: var(--surface-elevated);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm); /* Variable d'ombre */
    position: relative;
    transition: all 0.3s ease;
}

.upload-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-item.selected {
    border: 2px solid var(--primary-color);
    /* Ombre Sarcelle */
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2), var(--shadow-md);
}

.upload-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.upload-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.upload-info {
    padding: 10px;
}
/* Upload progress styles */
.upload-progress {
    width: 100%;
    padding: 1rem 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.11);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    transition: width 0.3s cubic-bezier(.4,2,.6,1);
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.01rem;
}

.drop-zone.uploading {
    pointer-events: none;
    opacity: 0.8;
}

.uploading .drop-zone {
    border-style: solid;
}
.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.logout-btn {
    background: linear-gradient(135deg, var(--error-color) 0%, #ff6b7a 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff3742 0%, var(--error-color) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.anon-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    padding: 1.5em 2em;
    margin: 0 auto;
    max-width: 800px;
    width: 90%;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg); /* Variable d'ombre */
    animation: slideBannerIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.anon-banner span {
    flex: 1;
    line-height: 1.6;
}

.anon-banner a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    /* Fond Sarcelle */
    background: rgba(13, 148, 136, 0.1);
}

.anon-banner a:hover {
    color: var(--accent-color);
    /* Fond Sarcelle */
    background: rgba(13, 148, 136, 0.15);
}

.anon-banner label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0 20px;
    cursor: pointer;
}

.anon-banner input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.anon-banner button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2em;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.anon-banner button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideBannerIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 19, 26, 0.8);
    backdrop-filter: blur(3px);
    z-index: 2999;
    display: none;
}

@media (max-width: 768px) {
    .anon-banner {
        padding: 1.2em;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .anon-banner label {
        justify-content: center;
        margin: 10px 0;
    }

    .anon-banner button {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* Footer */
footer {
    width: 100%;
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--surface-elevated) 100%);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer .container {
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
}

footer a:hover {
    color: var(--accent-color);
    /* Fond Sarcelle */
    background: rgba(13, 148, 136, 0.1);
    text-decoration: none;
}

footer hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* Design responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 2rem 0 1.5rem 0;
    }

    .glow {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .upload-container {
        max-width: 100%;
        padding: 1.5rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }

    .drop-zone {
        padding: 3rem 1rem;
        border-radius: 16px;
    }

    .drop-zone::before {
        font-size: 2.5rem;
    }

    .upload-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .result-container {
        max-width: 100%;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .result-container input[type="text"] {
        width: 100%;
        margin-bottom: 1rem;
    }

    .copy-btn {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
    }

    .account-button {
        top: 1rem;
        right: 1rem;
        min-width: 160px;
        padding: 1rem;
    }

    .user-counter {
        top: 1rem;
        left: 1rem;
        padding: 0.8rem 1rem;
    }

    footer .container {
        padding: 2rem 1rem 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .anon-banner {
        width: 95%;
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .anon-banner label {
        justify-content: center;
        margin: 0;
    }

    .anon-banner button {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .glow {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .upload-container {
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    .drop-zone {
        padding: 2.5rem 0.8rem;
    }
    
    .upload-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }

    .account-button {
        min-width: 140px;
        padding: 0.8rem;
    }
}

/* Animations globales */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    /* Selection Sarcelle */
    background: rgba(13, 148, 136, 0.3);
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface-card);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.controls-bar {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--surface-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sort-select, .bulk-actions {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.sort-select:hover, .bulk-actions:hover {
    border-color: var(--primary-color);
    /* Lueur Sarcelle */
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.1);
}

.bulk-actions {
    cursor: pointer;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.bulk-actions:hover {
    background: var(--secondary-color);
}

.view-modes {
    display: flex;
    gap: 5px;
    background: var(--surface-color);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.view-mode-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.view-mode-btn.active {
    background: var(--primary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.success-message {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(46, 213, 115, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* .copy-btn, .download-btn - Redéfinition pour la grille */
.upload-actions .copy-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    background: var(--success-color); /* Vert pour "copié" */
    color: white;
    margin: 0; /* Reset des marges */
}

.upload-actions .copy-btn:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: none; /* Reset */
}

.download-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    background: #17a2b8; /* Bleu/Cyan pour "télécharger" */
    color: white;
}

.download-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}


/* List View Styles */
.list-view .uploads-grid {
    display: block;
}

.list-view .upload-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.list-view .upload-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.list-view .upload-item img:hover {
    transform: scale(1.05);
}

.list-view .upload-checkbox {
    position: relative;
    top: auto;
    left: auto;
    margin-right: 15px;
}

.list-view .upload-info {
    flex: 1;
}

/*
 * STYLES POUR LE BANDEAU DE COOKIES
 */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Utilise les variables de votre thème */
    background: var(--surface-elevated);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    z-index: 4000;
    display: flex; /* Sera activé par JS */
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    /* Animation d'entrée */
    transform: translateY(100%);
    animation: slideUpBanner 0.5s ease-out 0.5s forwards;
}

@keyframes slideUpBanner {
    from { transform: translateY(100%); }
    to { transform: translateY(0%); }
}

.cookie-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner p a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}
.cookie-banner p a:hover {
    text-decoration: underline;
}

.cookie-accept-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Empêche le texte de sauter à la ligne */
}
.cookie-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive pour le bandeau */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
}