/**
 * Le Havre des Basses Ribes - Styles principaux
 * Thème sombre moderne avec cartes, badges, drawer, toasts
 */

/* ===== VARIABLES CSS ===== */
:root {
    --color-bg-primary: #0f0f1a;
    --color-bg-secondary: #1a1a2e;
    --color-bg-tertiary: #2a2a3e;
    --color-bg-card: #1e1e2e;
    --color-text-primary: #ffffff;
    --color-text-secondary: #d0d0e0;
    --color-text-muted: #a0a0b0;
    --color-border: #3a3a4e;
    --color-primary: #6c5ce7;
    --color-primary-hover: #7d6ef0;
    --color-primary-light: rgba(108, 92, 231, 0.1);
    --color-success: #00d4aa;
    --color-success-light: rgba(0, 212, 170, 0.1);
    --color-warning: #ffa726;
    --color-warning-light: rgba(255, 167, 38, 0.1);
    --color-danger: #ff6b6b;
    --color-danger-light: rgba(255, 107, 107, 0.1);
    --color-info: #4fc3f7;
    --color-info-light: rgba(79, 195, 247, 0.1);
    --color-accent-1: #fd79a8;
    --color-accent-2: #fdcb6e;
    --color-accent-3: #55efc4;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, #1a1a2e 50%, var(--color-bg-primary) 100%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 14px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ADMIN ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
}

.admin-topbar {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h1 {
    font-size: 20px;
    font-weight: 600;
}

.admin-topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== SIDEBAR ===== */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-header h2 {
    font-size: 18px;
    color: var(--color-primary);
}

.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-secondary);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border-left-color: var(--color-primary);
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #252535 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-1), var(--color-primary));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--color-primary);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    /* Contenu de la carte */
}

.card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== KPI CARDS ===== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #252535 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.kpi-card-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kpi-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.kpi-card-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kpi-card-change.positive {
    color: var(--color-success);
}

.kpi-card-change.negative {
    color: var(--color-danger);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-success {
    background: linear-gradient(135deg, var(--color-success-light) 0%, rgba(0, 212, 170, 0.2) 100%);
    color: var(--color-success);
    border: 1px solid var(--color-success);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, var(--color-warning-light) 0%, rgba(255, 167, 38, 0.2) 100%);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, var(--color-danger-light) 0%, rgba(255, 107, 107, 0.2) 100%);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, var(--color-info-light) 0%, rgba(79, 195, 247, 0.2) 100%);
    color: var(--color-info);
    border: 1px solid var(--color-info);
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3);
}

.badge-neutral {
    background: rgba(128, 128, 128, 0.2);
    color: var(--color-text-muted);
    border: 1px solid var(--color-text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7d6ef0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, #8e7ff0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success) 0%, #00e6c4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00e6c4 0%, var(--color-success) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.6);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-warning {
    background: var(--color-warning);
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-label.required::after {
    content: ' *';
    color: var(--color-danger);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2), 0 0 15px rgba(108, 92, 231, 0.3);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-help {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 5px;
}

.form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 5px;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.table thead {
    background: var(--color-bg-secondary);
}

.table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    border-bottom: 2px solid var(--color-border);
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: linear-gradient(90deg, var(--color-bg-tertiary) 0%, rgba(108, 92, 231, 0.05) 100%);
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--color-primary);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #252535 100%);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--color-primary);
    animation: fadeInUp 0.3s ease;
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-1), var(--color-primary));
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== DRAWER (AUDIT LOG) ===== */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.drawer-overlay.active {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--color-bg-card);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--color-bg-card);
    z-index: 10;
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.drawer-body {
    padding: 20px;
}

.drawer-item {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
}

.drawer-item:last-child {
    border-bottom: none;
}

.drawer-item-time {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.drawer-item-action {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 3px;
}

.drawer-item-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ===== TOASTS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 15px 20px;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast-error {
    border-left: 4px solid var(--color-danger);
}

.toast-warning {
    border-left: 4px solid var(--color-warning);
}

.toast-info {
    border-left: 4px solid var(--color-info);
}

.toast-icon {
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== HELP TOGGLE ===== */
.help-toggle {
    margin-bottom: 20px;
}

.help-content {
    display: none;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
}

.help-content.active {
    display: block;
}

.help-section {
    margin-bottom: 15px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.help-section p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== FILTERS ===== */
.filters-bar {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #252535 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filters-bar:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-danger {
    color: var(--color-danger);
}

.text-warning {
    color: var(--color-warning);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* ===== SITE PUBLIC ===== */
.site-header {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, #1e1e2e 100%);
    border-bottom: 2px solid var(--color-primary);
    padding: 25px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-1), var(--color-primary));
    opacity: 0.6;
    animation: shimmer 3s infinite;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav {
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: var(--color-text-primary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.site-nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.site-nav a:hover::after {
    width: 80%;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.site-footer {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, #1a1a2e 100%);
    border-top: 2px solid var(--color-primary);
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
    margin-top: 80px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-1), var(--color-primary));
    opacity: 0.6;
}

/* ===== ANIMATIONS ET EFFETS ===== */
h1, h2, h3 {
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Images d'animaux avec effet hover */
.site-content img {
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.site-content img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(108, 92, 231, 0.4);
}

/* Cartes d'animaux spéciales */
.site-content .card img {
    border: 2px solid transparent;
    transition: var(--transition);
}

.site-content .card:hover img {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
}

/* Barres de progression animées */
.site-content [style*="width:"] {
    transition: width 1s ease;
}

/* Effet de brillance sur les boutons */
.btn-primary, .btn-success {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-success::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

/* ===== EFFETS SPÉCIAUX SITE PUBLIC ===== */
.site-content > .card:first-child {
    animation: fadeInUp 0.6s ease;
}

.site-content > .card:nth-child(2) {
    animation: fadeInUp 0.8s ease;
}

.site-content > .card:nth-child(3) {
    animation: fadeInUp 1s ease;
}

/* Placeholder animaux avec animation */
.site-content [style*="🐾"] {
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
    border: 2px dashed var(--color-primary);
}

/* Barre de progression besoins */
.site-content [style*="background: var(--color-primary)"] {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-1) 100%) !important;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
    animation: shimmer 2s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .drawer {
        width: 100%;
        right: -100%;
    }
    
    .modal {
        width: 95%;
        margin: 20px;
    }
    
    h1, h2, h3 {
        -webkit-text-fill-color: var(--color-text-primary);
    }
}
