/* public/assets/css/app.css */

/* ============================================
   RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Couleurs */
    --primary: #8B5CF6;
    --primary-light: #8B5CF620;
    --primary-dark: #7C3AED;
    --primary-hover: #6D28D9;
    
    --success: #10B981;
    --success-light: #10B98115;
    --warning: #F59E0B;
    --warning-light: #F59E0B15;
    --danger: #EF4444;
    --danger-light: #EF444415;
    --info: #3B82F6;
    
    /* Neutres */
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;
    
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: var(--primary);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --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);
    
    /* Rayons */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
    
    /* Typographie */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Espacement */
    --navbar-height: 64px;
}

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

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-warning {
    background: var(--warning);
    color: var(--text);
    border-color: var(--warning);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--border-light);
    color: var(--text);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

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

.form-group label small {
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.input-icon {
    position: relative;
}

.input-icon svg:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon input {
    padding-left: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width var(--transition), background-color var(--transition);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Input large (page publique) */
.input-large {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    transition: border-color var(--transition);
}

.input-large:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Color picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
}

.color-value {
    font-size: 14px;
    font-family: monospace;
    color: var(--text-secondary);
}

/* Toggle switches */
.toggle-grid {
    display: grid;
    gap: 12px;
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.toggle-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.toggle-item input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    flex-shrink: 0;
    transition: background var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-item input:checked + .toggle-switch {
    background: var(--primary);
}

.toggle-item input:checked + .toggle-switch::after {
    transform: translateX(22px);
}

.toggle-label strong {
    display: block;
    font-size: 14px;
}

.toggle-label small {
    font-size: 13px;
    color: var(--text-muted);
}

/* File upload zone */
.file-upload-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload-zone .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

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

.file-upload-content svg {
    margin: 0 auto 12px;
    color: var(--text-muted);
}

.file-upload-content p {
    font-weight: 500;
    color: var(--text-secondary);
}

.file-upload-preview img {
    max-width: 200px;
    max-height: 150px;
    margin: 12px auto 0;
    border-radius: var(--radius);
    object-fit: cover;
}

.current-cover {
    margin-bottom: 12px;
}

.current-cover img {
    max-height: 200px;
    border-radius: var(--radius);
    object-fit: cover;
}

/* ============================================
   ALERTES / FLASH
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
}

.alert-close:hover { opacity: 1; }

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

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-plan {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-warning {
    background: var(--warning-light);
    color: #92400E;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.status-active { background: var(--success-light); color: #065F46; }
.status-draft { background: var(--border-light); color: var(--text-secondary); }
.status-paused { background: var(--warning-light); color: #92400E; }
.status-expired { background: var(--danger-light); color: #991B1B; }
.status-archived { background: var(--border-light); color: var(--text-muted); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    height: var(--navbar-height);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.brand-icon { font-size: 24px; }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
}

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

.nav-user {
    position: relative;
    margin-left: 8px;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    transition: all var(--transition);
}

.nav-user-btn:hover {
    border-color: var(--primary);
}

.nav-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 50;
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-header {
    padding: 16px;
}

.nav-dropdown-header strong {
    display: block;
    font-size: 14px;
}

.nav-dropdown-header small {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.nav-dropdown hr {
    border: none;
    height: 1px;
    background: var(--border-light);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.nav-dropdown-item:hover {
    background: var(--bg);
    color: var(--text);
}

.nav-dropdown-item.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    min-height: calc(100vh - var(--navbar-height) - 60px);
}

.main-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
}

/* ============================================
   GUEST LAYOUT (Login / Register)
   ============================================ */
.layout-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.guest-container {
    width: 100%;
    max-width: 440px;
}

.guest-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.guest-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.guest-logo h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.guest-tagline {
    color: var(--text-muted);
    font-size: 14px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.5rem;
}

.page-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.page-header-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 1.75rem;
}

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

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border-light);
}

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

.event-card-cover {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
}

.event-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
}

.event-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

.event-card-body {
    padding: 18px 20px 12px;
}

.event-card-title {
    font-size: 17px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.event-card-stats {
    display: flex;
    gap: 16px;
}

.event-card-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   FORM CARD
   ============================================ */
.event-form {
    max-width: 720px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.form-card-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h2 {
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ============================================
   SHARE SECTION
   ============================================ */
.share-section {
    margin-bottom: 32px;
}

.share-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.share-card h3 {
    margin-bottom: 16px;
}

.share-links {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.share-link-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.copy-field {
    display: flex;
    gap: 8px;
}

.copy-field input {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-family: monospace;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
}

.share-qr {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.share-qr small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-icon { font-size: 28px; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
    color: var(--text);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* ============================================
   ADMIN PHOTO GRID
   ============================================ */
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.admin-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.admin-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity var(--transition);
}

.admin-photo-item:hover .admin-photo-overlay {
    opacity: 1;
}

.photo-guest {
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.photo-date {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.admin-photo-overlay .btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* ============================================
   MESSAGES LIST (Admin)
   ============================================ */
.messages-list {
    display: grid;
    gap: 12px;
}

.message-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-content {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* ============================================
   VOICES LIST (Admin)
   ============================================ */
.voices-list {
    display: grid;
    gap: 12px;
}

.voice-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.voice-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.voice-duration {
    padding: 2px 8px;
    background: var(--bg);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.voice-card audio {
    width: 100%;
    height: 40px;
    margin-bottom: 8px;
}

.voice-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   DANGER ZONE
   ============================================ */
.danger-zone {
    margin-top: 48px;
    padding: 24px;
    background: var(--danger-light);
    border: 2px solid #FECACA;
    border-radius: var(--radius-lg);
}

.danger-zone h3 {
    color: var(--danger);
    margin-bottom: 8px;
}

.danger-zone p {
    font-size: 14px;
    color: #991B1B;
    margin-bottom: 16px;
}

/* ============================================
   PUBLIC PAGE
   ============================================ */
.layout-public {
    background: var(--bg);
}

.public-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    color: white;
}

.public-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.public-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.event-type-icon {
    font-size: 52px;
    margin-bottom: 12px;
}

.public-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.public-date {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.public-welcome {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
}

/* Guest actions section */
.guest-actions {
    max-width: 560px;
    margin: -40px auto 40px;
    position: relative;
    z-index: 3;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-xl);
}

.guest-name-section {
    margin-bottom: 24px;
}

.action-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--bg);
    border-radius: var(--radius);
}

.action-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.action-tab.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.action-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.action-section.active {
    display: block;
}

/* Upload zone (public) */
.upload-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-zone-content {
    color: var(--text-muted);
}

.upload-icon {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Upload preview grid */
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

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

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

.upload-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.upload-result,
.message-result,
.voice-result {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.result-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.result-error {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Voice recorder */
.voice-recorder {
    text-align: center;
    padding: 20px 0;
}

.voice-status p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.voice-visualizer {
    margin-bottom: 16px;
}

.voice-visualizer canvas {
    width: 100%;
    max-width: 300px;
    height: 60px;
    margin: 0 auto;
    display: block;
}

.voice-timer {
    font-size: 32px;
    font-weight: 700;
    font-family: monospace;
    color: var(--danger);
    margin-bottom: 20px;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.voice-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.btn-record,
.btn-stop {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-record {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-record:hover {
    background: var(--danger);
    color: white;
}

.btn-record.recording {
    background: var(--danger);
    color: white;
    animation: pulse 1s ease infinite;
}

.btn-stop {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
}

.btn-stop:hover {
    background: var(--text);
    border-color: var(--text);
}

.voice-playback {
    margin-top: 16px;
}

.voice-playback audio {
    width: 100%;
    max-width: 400px;
    margin-bottom: 12px;
}

.voice-playback-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Gallery link section */
.gallery-link-section {
    text-align: center;
    padding: 40px 20px;
}

.public-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

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

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 4px;
}

.gallery-date {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.gallery-count {
    font-size: 14px;
    color: var(--text-muted);
}

.gallery-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Gallery tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-tab {
    flex: 1;
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.gallery-tab.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.gallery-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.gallery-tab-content.active {
    display: block;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.photo-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
}

.photo-grid-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.photo-grid-item:hover img {
    transform: scale(1.05);
}

.photo-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.photo-grid-item:hover .photo-grid-overlay {
    opacity: 1;
}

.photo-grid-guest {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.load-more-container {
    text-align: center;
    padding: 32px;
}

/* ============================================
   PUBLIC MESSAGES (Galerie)
   ============================================ */
.public-messages-list {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.public-message-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.public-message-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
}

.public-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
}

.public-message-header time {
    color: var(--text-muted);
    font-size: 13px;
}

.public-message-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
}

/* ============================================
   PUBLIC VOICES (Galerie)
   ============================================ */
.public-voices-list {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.public-voice-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.public-voice-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warning-light);
    color: var(--warning);
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
}

.public-voice-body {
    flex: 1;
    min-width: 0;
}

.public-voice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.public-voice-header time {
    color: var(--text-muted);
    font-size: 13px;
}

.voice-duration-badge {
    padding: 2px 8px;
    background: var(--bg);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
}

.public-voice-player audio {
    width: 100%;
    height: 40px;
    margin-bottom: 6px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: default;
    color: var(--text-muted);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-info small {
    color: var(--text-muted);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    animation: fadeIn 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

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

.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-loader {
    position: absolute;
    color: white;
    animation: spin 1s linear infinite;
}

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

.spinner {
    animation: spin 1s linear infinite;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
}

.lightbox-info {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(0,0,0,0.7);
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.lightbox-guest {
    font-weight: 500;
}

.lightbox-counter {
    opacity: 0.7;
    font-size: 13px;
}

.lightbox-download {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    opacity: 0.8;
    font-size: 13px;
}

.lightbox-download:hover {
    opacity: 1;
    color: white;
}

/* public/assets/css/app.css (suite à partir du slideshow) */

/* ============================================
   SLIDESHOW
   ============================================ */
.slideshow {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slideshow.active {
    display: flex;
}

.slideshow-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.slideshow-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}

.slideshow-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.slideshow-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 100px;
}

.slideshow-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    transition: opacity 0.6s ease;
}

.slideshow-image.fade-out {
    opacity: 0;
}

.slideshow-image.fade-in {
    opacity: 1;
}

.slideshow-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.15);
}

.slideshow-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}

.slideshow-btn:hover {
    background: rgba(255,255,255,0.25);
}

.slideshow-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
    min-width: 60px;
    text-align: center;
}

.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 10;
}

.slideshow-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================
   ERROR PAGES
   ============================================ */
.error-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.error-page .error-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.error-page h1 {
    font-size: 72px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 16px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   LOADER / SPINNER
   ============================================ */
.btn .btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-flex;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
}

.page-loader .spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

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

.skeleton-photo {
    aspect-ratio: 1;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-dark);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    max-width: 380px;
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ============================================
   COPY FEEDBACK
   ============================================ */
.copied-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: var(--bg-dark);
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 3000;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablette */
@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }
    
    h1 { font-size: 1.5rem; }
    
    .navbar-menu {
        display: none;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        z-index: 99;
        border-top: 1px solid var(--border);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-user {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-user-btn {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-light);
        margin-top: 8px;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius);
    }
    
    .nav-link:hover {
        background: var(--bg);
    }
    
    .app-container {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .share-card {
        padding: 16px;
    }
    
    .copy-field {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .admin-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    /* Public page */
    .public-title {
        font-size: 1.75rem;
    }
    
    .guest-actions {
        margin: -30px 12px 30px;
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    
    .action-tab span {
        display: none;
    }
    
    .action-tab {
        font-size: 20px;
    }
    
    /* Gallery */
    .gallery-page {
        padding: 16px;
    }
    
    .gallery-header h1 {
        font-size: 1.5rem;
    }
    
    .gallery-toolbar {
        flex-direction: column;
        text-align: center;
    }
    
    .gallery-toolbar-actions {
        justify-content: center;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 4px;
    }
    
    .photo-grid-item {
        border-radius: var(--radius-sm);
    }
    
    /* Lightbox mobile */
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    
    .lightbox-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 8px 14px;
        font-size: 13px;
        bottom: 10px;
        max-width: 90vw;
    }
    
    /* Toast mobile */
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    
    .toast {
        max-width: 100%;
    }
}

/* Mobile petit */
@media (max-width: 480px) {
    .guest-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    
    .guest-logo h1 {
        font-size: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    
    .photo-grid-item {
        border-radius: 2px;
    }
    
    .upload-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .public-hero {
        min-height: 30vh;
        padding: 40px 16px;
    }
    
    .public-title {
        font-size: 1.4rem;
    }
    
    .lightbox-image {
        max-width: 100vw;
        max-height: 80vh;
        border-radius: 0;
    }
    
    .slideshow-content {
        padding: 20px 0 80px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Préférence mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slideshow-image {
        transition: none;
    }
}

/* Mode sombre automatique (préparation) */
@media (prefers-color-scheme: dark) {
    /* Décommenter pour activer le mode sombre automatique
    :root {
        --bg: #0F172A;
        --bg-card: #1E293B;
        --bg-elevated: #1E293B;
        --text: #F1F5F9;
        --text-secondary: #94A3B8;
        --text-muted: #64748B;
        --border: #334155;
        --border-light: #1E293B;
        --border-focus: var(--primary);
        --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
        --shadow: 0 1px 3px rgba(0,0,0,0.4);
        --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
        --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
        --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
    }
    
    .navbar {
        background: rgba(15,23,42,0.92);
    }
    
    .layout-guest {
        background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 100%);
    }
    */
}

/* Print */
@media print {
    .navbar, .app-footer, .public-footer,
    .gallery-toolbar-actions, .lightbox, .slideshow,
    .toast-container, .btn, button {
        display: none !important;
    }
    
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .photo-grid-item {
        break-inside: avoid;
    }
}
/* Ajouter dans public/assets/css/app.css — section share */

/* ===== QR SHARE SECTION ===== */

.share-qr {
    display: flex;
    flex-direction: column;
    align-items: center;      /* centre horizontalement */
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.share-qr #qrCode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.share-qr #qrCode img,
.share-qr #qrCode canvas {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.share-qr small {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
}
/* Ajouter à la FIN de public/assets/css/app.css */

/* ============================================
   VIDÉO GALERIE
   ============================================ */
.photo-grid-item.is-video {
    position: relative;
}

.video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.5px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.upload-preview-item {
    position: relative;
    overflow: hidden;
}

#uploadProgressContainer {
    margin: 12px 0;
    background: var(--border-light, #E2E8F0);
    border-radius: 8px;
    overflow: hidden;
    height: 8px;
}

#uploadProgressBar {
    height: 100%;
    background: var(--primary, #8B5CF6);
    border-radius: 8px;
    transition: width 0.3s ease;
}
/* Ajouter à la fin de public/assets/css/app.css */

/* ============================================
   ADMIN TOOLBAR & SÉLECTION MULTIPLE
   ============================================ */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.admin-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.admin-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.admin-selected-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    padding: 4px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

/* Photo item admin avec checkbox */
.admin-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.admin-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-photo-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.admin-photo-item.pending-approval {
    border-color: var(--warning);
}

/* Checkbox dans chaque photo */
.admin-photo-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    cursor: pointer;
}

.admin-photo-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.admin-photo-item:hover .admin-photo-checkbox input,
.admin-photo-checkbox input:checked {
    opacity: 1;
}

/* Badge en attente */
.approval-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--warning);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
}

/* Overlay admin photo */
.admin-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 40%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-photo-item:hover .admin-photo-overlay {
    opacity: 1;
}

.admin-photo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.admin-photo-info .photo-guest {
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.admin-photo-info .photo-date {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.admin-photo-info .photo-size {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.admin-photo-actions {
    display: flex;
    gap: 6px;
}

.admin-photo-actions .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* Pagination numérotée */
.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-num:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
}

.pagination-dots {
    padding: 0 4px;
    color: var(--text-muted);
}

/* Admin grille responsive */
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .admin-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

@media (min-width: 1200px) {
    .admin-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .admin-photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-photo-actions .btn {
        padding: 3px 6px;
        font-size: 11px;
    }
}
/* Ajouter à la FIN de public/assets/css/app.css */

/* ============================================
   LIVRE D'OR FUSIONNÉ (texte + vocal)
   ============================================ */

/* Compteurs en haut */
.guestbook-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.guestbook-stat {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

/* Liste des messages */
.guestbook-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Carte message individuel */
.guestbook-card {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    animation: fadeIn 0.4s ease;
}

.guestbook-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Bordure gauche colorée selon le type */
.guestbook-text {
    border-left: 4px solid var(--primary);
}

.guestbook-voice {
    border-left: 4px solid var(--warning);
}

/* Avatar */
.guestbook-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
}

.guestbook-avatar-text {
    background: var(--primary-light);
    color: var(--primary);
}

.guestbook-avatar-voice {
    background: var(--warning-light);
    color: #D97706;
}

/* Corps du message */
.guestbook-body {
    flex: 1;
    min-width: 0;
}

/* En-tête */
.guestbook-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.guestbook-name {
    font-size: 15px;
    color: var(--text);
}

.guestbook-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.guestbook-badge-text {
    background: var(--primary-light);
    color: var(--primary);
}

.guestbook-badge-voice {
    background: var(--warning-light);
    color: #D97706;
}

.guestbook-duration {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg);
    border-radius: var(--radius-full);
}

.guestbook-time {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Contenu du message texte */
.guestbook-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    word-wrap: break-word;
}

/* Lecteur audio */
.guestbook-audio-player {
    margin-bottom: 8px;
}

.guestbook-audio-player audio {
    width: 100%;
    height: 44px;
    border-radius: var(--radius);
}

/* Lien de téléchargement */
.guestbook-download-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.guestbook-download-link:hover {
    background: var(--bg);
    color: var(--text);
}

/* Compteur dans les onglets */
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    margin-left: 6px;
}

.gallery-tab.active .tab-count {
    background: var(--primary);
    color: white;
}

/* ============================================
   RESPONSIVE LIVRE D'OR
   ============================================ */
@media (max-width: 768px) {
    .guestbook-card {
        padding: 16px;
        gap: 12px;
    }

    .guestbook-avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .guestbook-header {
        gap: 6px;
    }

    .guestbook-time {
        margin-left: 0;
        width: 100%;
        margin-top: 2px;
    }

    .guestbook-name {
        font-size: 14px;
    }

    .guestbook-content p {
        font-size: 14px;
    }

    .guestbook-stats {
        gap: 12px;
    }

    .guestbook-stat {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .guestbook-card {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .guestbook-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .guestbook-type-badge {
        font-size: 10px;
        padding: 1px 8px;
    }
}