/* ==========================================================================
   Photowalk - Style Google Photos / Google Drive
   Minimaliste, sobre, dossiers par utilisateur, thèmes blanc/sombre, responsive
   ========================================================================== */

:root {
    --bg-page: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f3f4;
    --bg-card: #ffffff;
    --border-color: #dadce0;
    --border-subtle: #edf0f2;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --accent: #1a73e8;
    --accent-hover: #1557b0;
    --accent-light: #e8f0fe;
    --accent-text: #ffffff;
    --danger: #d93025;
    --danger-light: #fce8e6;
    --card-shadow: 0 1px 3px rgba(60,64,67, 0.12), 0 1px 2px rgba(60,64,67, 0.08);
    --card-shadow-hover: 0 4px 14px rgba(60,64,67, 0.18), 0 2px 4px rgba(60,64,67, 0.1);
    --modal-shadow: 0 12px 32px rgba(0,0,0, 0.24);
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Google Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-page: #121212;
    --bg-surface: #1e1e1e;
    --bg-surface-hover: #2d2d2d;
    --bg-card: #1e1e1e;
    --border-color: #383a3c;
    --border-subtle: #292929;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #70757a;
    --accent: #8ab4f8;
    --accent-hover: #aecbfa;
    --accent-light: rgba(138, 180, 248, 0.15);
    --accent-text: #202124;
    --danger: #f28b82;
    --danger-light: rgba(242, 139, 130, 0.15);
    --card-shadow: 0 1px 3px rgba(0,0,0, 0.4);
    --card-shadow-hover: 0 4px 16px rgba(0,0,0, 0.6);
    --modal-shadow: 0 12px 32px rgba(0,0,0, 0.7);
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ==========================================================================
   Barre de Navigation
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    display: block;
}

.brand-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 16px;
}

.breadcrumb-current {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Utilisateur connecté dans navbar */
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-hover);
    padding: 4px 12px 4px 5px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.user-avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.user-pseudo-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 1px 2px rgba(0,0,0, 0.15);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
    padding: 11px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.icon-btn-danger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* Thème */
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Conteneur Principal */
.main-container {
    max-width: 1360px;
    margin: 24px auto 60px auto;
    padding: 0 24px;
}

/* ==========================================================================
   VUE 1 : DOSSIERS PAR UTILISATEUR (Google Drive / Albums)
   ========================================================================== */
.folders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.folder-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.folder-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
}

.folder-mine {
    border-left: 4px solid var(--accent);
}

.folder-cover {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: var(--bg-surface-hover);
    overflow: hidden;
}

.folder-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.folder-card:hover .folder-cover-img {
    transform: scale(1.04);
}

.folder-empty-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.folder-me-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.folder-details {
    padding: 14px 16px;
    background: var(--bg-card);
}

.folder-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.folder-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.folder-titles {
    min-width: 0;
}

.folder-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   VUE 2 : GALERIE D'UN DOSSIER UTILISATEUR
   ========================================================================== */
.user-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-header-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-header-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.user-header-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.photo-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--bg-surface-hover);
    cursor: pointer;
    overflow: hidden;
    user-select: none;
}

.photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.photo-thumb-wrap:hover .photo-img {
    transform: scale(1.03);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-thumb-wrap:hover .photo-overlay {
    opacity: 1;
}

.overlay-zoom {
    background: rgba(255, 255, 255, 0.9);
    color: #202124;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0, 0.25);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.photo-thumb-wrap:hover .overlay-zoom {
    transform: scale(1);
}

.photo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    gap: 10px;
}

.photo-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.photo-name-display {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-date-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.photo-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.action-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-icon-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--accent);
}

.btn-danger-hover:hover {
    background: var(--danger-light) !important;
    color: var(--danger) !important;
}

.lightbox-title {
    font-weight: 600;
    color: #ffffff;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Visionneuse Plein Écran (Lightbox - SANS BOUTON DOWNLOAD)
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.96);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(to bottom, rgba(0,0,0, 0.7), transparent);
    z-index: 10;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
}

.lightbox-author { font-weight: 500; }
.lightbox-divider { color: #888; }
.lightbox-counter { color: #aaa; font-size: 13px; }

.lightbox-actions .icon-btn {
    color: #fff;
    background: rgba(255,255,255, 0.1);
}
.lightbox-actions .icon-btn:hover {
    background: rgba(255,255,255, 0.25);
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px 20px 80px;
    position: relative;
    user-select: none;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.2s ease;
}

.lightbox-spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255, 0.15);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.lb-nav-btn:hover { background: rgba(255,255,255, 0.3); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Protection contre le téléchargement aisé */
.no-download {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ==========================================================================
   Pages d'Authentification (Login / Register / Forgot Password)
   ========================================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background-color: var(--bg-page);
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--modal-shadow);
    max-width: 420px;
    width: 100%;
    padding: 36px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    height: 48px;
    width: auto;
    margin-bottom: 14px;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 20px;
}

/* Bouton Google Sign-In officiel */
.btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    box-shadow: 0 1px 2px rgba(60,64,67, 0.08);
    transition: var(--transition);
}

.btn-google:hover {
    background-color: #f8fafd;
    border-color: #c2d7fa;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(60,64,67, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-google {
    background-color: #202124;
    color: #e8eaed;
    border-color: #5f6368;
}

[data-theme="dark"] .btn-google:hover {
    background-color: #303134;
    border-color: #8ab4f8;
    color: #8ab4f8;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 12px;
}

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

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.auth-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-link:hover { text-decoration: underline; }

.auth-link-sm {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
}
.auth-link-sm:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.auth-back {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}
.auth-back a {
    color: var(--text-muted);
    text-decoration: none;
}
.auth-back a:hover {
    color: var(--text-primary);
}

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(217, 48, 37, 0.2);
}
.alert-success {
    background: rgba(52, 168, 83, 0.15);
    color: #1e8e3e;
    border: 1px solid rgba(52, 168, 83, 0.2);
}
[data-theme="dark"] .alert-success {
    color: #81c995;
}

/* Modale d'Upload */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-surface);
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--modal-shadow);
    padding: 24px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.open .modal-card { transform: scale(1); }

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.modal-header h3 { font-size: 18px; font-weight: 500; }
.modal-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.close-btn { font-size: 24px; line-height: 1; color: var(--text-muted); }

.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    background: var(--bg-page);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    margin-bottom: 18px;
}

.dropzone.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}

.file-input-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.dropzone-icon { color: var(--accent); margin-bottom: 8px; }
.dropzone-text { font-size: 14px; color: var(--text-primary); margin-bottom: 4px; }
.dropzone-text strong { color: var(--accent); }
.dropzone-sub { font-size: 12px; color: var(--text-muted); }

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface-hover);
}

.preview-item img { width: 100%; height: 100%; object-fit: cover; }

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0, 0.6);
    color: #fff;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-wrap { margin-bottom: 18px; }
.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}
.progress-fill { height: 100%; background: var(--accent); transition: width 0.15s ease; }
.progress-text { font-size: 12px; color: var(--text-secondary); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3000;
    animation: slideUp 0.3s ease;
    font-size: 14px;
}
.toast-success { border-left: 4px solid #34a853; }
.toast-error   { border-left: 4px solid #ea4335; }
.toast-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
}
.toast-close:hover { color: #fff; }

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 40px auto;
}

.empty-icon-wrap { color: var(--text-muted); margin-bottom: 20px; opacity: 0.6; }
.empty-state h2 { font-size: 22px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.empty-state p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .brand-title { font-size: 18px; }
    .user-pseudo-label { display: none; }
    .main-container { padding: 0 14px; margin-top: 16px; }
    .folders-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .lightbox-content { padding: 56px 10px 10px 10px; }
    .lb-nav-btn { width: 40px; height: 40px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}
