/* ==========================================================================
   PORTFOLIO — custom.css
   Palette 1 "Lagune Nocturne" — 60% dominante bleu-nuit / 30% secondaire
   gris-bleu clair / 10% accent ambre. Contrastes vérifiés WCAG AAA.
   Typo : Space Grotesk (titres) / Inter (corps) / JetBrains Mono (code, tags).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (variables CSS)
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
    /* Palette 1 — "Lagune Nocturne" (60% dominante / 30% secondaire / 10% accent) */
    --bg: #0D1220;
    --surface: #121A2C;
    --surface-2: #162035;
    --surface-3: #1C2A45;
    --text: #C9D2E3;
    --text-muted: #8791A8;
    --accent: #F2A93B;
    --accent-hover: #FFC266;
    --border: rgba(201, 210, 227, 0.10);
    --border-strong: rgba(201, 210, 227, 0.18);
    --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    --danger: #F87171;
    --success: #34D399;
}

:root[data-theme="light"] {
    --bg: #F6F8FC;
    --surface: #FFFFFF;
    --surface-2: #EEF2F8;
    --surface-3: #E3E9F3;
    --text: #101828;
    --text-muted: #5B6472;
    --accent: #D9820A;
    --accent-hover: #B96C08;
    --border: rgba(16, 24, 40, 0.08);
    --border-strong: rgba(16, 24, 40, 0.14);
    --shadow: 0 20px 40px -12px rgba(16, 24, 40, 0.12);
    --danger: #DC2626;
    --success: #059669;
}

:root {
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --radius-sm: 8px;
    --container-max: 1180px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--container-max); }

.section { padding: 6rem 0; }
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 2.5rem;
}

.terminal-eyebrow {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.terminal-eyebrow-inline {
    font-family: var(--font-mono);
    color: var(--accent);
}

/* Scroll-reveal (activé en JS) */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   3. Navbar
   -------------------------------------------------------------------------- */
.site-navbar {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text) !important;
    font-size: 1.1rem;
}

.site-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}
.site-navbar .nav-link:hover { color: var(--text) !important; }

.navbar-toggler {
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: transparent;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--accent); }

.theme-toggle {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-left: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-icon-light, .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: inline-block; }
:root[data-theme="light"] .theme-icon-dark { display: inline-block; }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn-hero-primary {
    background: var(--accent);
    color: #0B1120;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-hero-primary:hover { background: var(--accent-hover); color: #0B1120; transform: translateY(-2px); }

.btn-hero-outline {
    background: transparent;
    color: var(--text);
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn-hero-outline:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 9rem 0 6rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.hero-text, .col-lg-5 { position: relative; z-index: 1; }

.hero-name {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 0.25rem;
}

.hero-title {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.hero-location {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.hero-socials { display: flex; gap: 0.75rem; }
.hero-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.hero-socials a:hover { border-color: var(--accent); color: var(--accent); }

.hero-photo-frame { position: relative; display: inline-block; }
.hero-photo {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
}
.hero-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    font-size: 4rem;
    color: var(--text-muted);
}
.hero-photo-tag {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   6. À propos
   -------------------------------------------------------------------------- */
.about-text { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.about-meta-grid { display: flex; gap: 2rem; flex-wrap: wrap; }
.about-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.about-meta-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.about-meta-label { color: var(--text-muted); font-size: 0.9rem; }

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}
.about-card-line { margin-bottom: 0.6rem; color: var(--text); word-break: break-word; }
.about-card-key { color: var(--accent); }
.about-card-status { color: var(--success); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Compétences
   -------------------------------------------------------------------------- */
.skill-category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-category-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.skill-category-title { font-size: 1.15rem; margin-bottom: 1.25rem; color: var(--accent); }

.skill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.skill-item-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.skill-item-head span:first-of-type { font-weight: 500; }
.skill-level-tag {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.skill-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.skill-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.skill-bar-debutant { width: 30%; background: color-mix(in srgb, var(--accent) 45%, var(--text-muted)); }
.skill-bar-intermediaire { width: 55%; background: color-mix(in srgb, var(--accent) 75%, var(--text-muted)); }
.skill-bar-avance { width: 80%; }
.skill-bar-expert { width: 100%; }

/* --------------------------------------------------------------------------
   8. Timeline (expériences / formations)
   -------------------------------------------------------------------------- */
.timeline-section-alt { background: var(--surface); }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-strong);
}

.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.timeline-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}
.timeline-section-alt .timeline-card { background: var(--bg); }

.timeline-date { font-family: var(--font-mono); color: var(--accent); font-size: 0.8rem; }
.timeline-title { margin: 0.4rem 0 0.15rem; font-size: 1.2rem; }
.timeline-subtitle { color: var(--text-muted); margin-bottom: 0.6rem; }
.timeline-description { color: var(--text-muted); margin-bottom: 0.5rem; }
.timeline-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--success) 18%, transparent);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   9. Projets
   -------------------------------------------------------------------------- */
.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); }

.project-card-image { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--text-muted);
}

.project-featured-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--accent);
    color: #0B1120;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-card-title { font-size: 1.15rem; margin-bottom: 0.2rem; }
.project-card-client { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.6rem; }
.project-card-description { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; flex-grow: 1; }

.project-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.project-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.project-card-link {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------------------- */
.contact-intro { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.75rem; }

.contact-info-list { list-style: none; padding: 0; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-info-list a { color: var(--text); }
.contact-info-list i { color: var(--accent); margin-right: 0.5rem; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-alert {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}
.contact-form-alert.is-success { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.contact-form-alert.is-error { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.contact-form .form-control, .contact-form textarea {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
}
.contact-form .form-control:focus {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.contact-form .form-label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; }

.contact-form .form-control.is-invalid { border-color: var(--danger); }
.contact-form .invalid-feedback { display: none; color: var(--danger); font-size: 0.82rem; }
.contact-form .invalid-feedback.is-visible { display: block; }

.btn-spinner { margin-left: 0.4rem; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.site-footer-signature { font-family: var(--font-mono); font-size: 0.8rem; margin-top: 0.3rem; margin-bottom: 0; }

/* ==========================================================================
   ADMIN — dashboard, sidebar, forms, tables
   ========================================================================== */

.admin-body { background: var(--surface-2); font-family: var(--font-body); color: var(--text); }

.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    color: var(--text);
}
.admin-sidebar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--accent);
}
.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; padding: 0 0.75rem; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.admin-nav-link:hover { background: var(--surface); color: var(--text); }
.admin-nav-link.active { background: var(--surface); color: var(--accent); }
.admin-sidebar-footer { padding: 1rem 0.75rem 0; border-top: 1px solid var(--border); margin-top: 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-logout-btn { cursor: pointer; }

.admin-offcanvas { background: var(--bg); color: var(--text); width: 280px; }
.admin-offcanvas .admin-sidebar-footer { border-top: 1px solid var(--border); }

/* Main content */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-burger { color: var(--text); font-size: 1.4rem; }
.admin-breadcrumb .breadcrumb { font-size: 0.88rem; margin-bottom: 0; }
.admin-breadcrumb a { color: var(--text-muted); }
.admin-breadcrumb .active { color: var(--text); }
.admin-topbar-user { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

.admin-content { padding: 2rem; flex-grow: 1; }

.admin-page-header { margin-bottom: 1.75rem; }
.admin-page-header h1 {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.admin-page-header-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Cards */
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}
.admin-card-title {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}
.admin-card-title i { color: var(--accent); }

/* Welcome card + stats (dashboard) */
.admin-welcome-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.admin-welcome-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--text-muted);
    flex-shrink: 0;
}
.admin-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.admin-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.admin-stat-card:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); }
.admin-stat-card i { font-size: 1.6rem; color: var(--accent); }
.admin-stat-value { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.admin-stat-label { display: block; color: var(--text-muted); font-size: 0.85rem; }

/* Buttons */
.admin-btn-primary {
    background: var(--accent);
    color: #0B1120;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-sm);
}
.admin-btn-primary:hover { background: var(--accent-hover); color: #0B1120; }

.admin-btn-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
}
.admin-btn-outline:hover { border-color: var(--accent); color: var(--text); }

.admin-btn-danger {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
    color: var(--danger);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
}
.admin-btn-danger:hover { background: color-mix(in srgb, var(--danger) 24%, transparent); color: var(--danger); }

.admin-btn-icon {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
}
.admin-btn-icon:hover { border-color: var(--accent); }

/* Forms */
.admin-form .form-label { font-weight: 500; font-size: 0.9rem; }
.admin-form .form-control, .admin-form .form-select {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}
.admin-form .form-control:focus, .admin-form .form-select:focus {
    background: var(--bg);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.admin-form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

.admin-upload-preview {
    width: 150px; height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.admin-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-upload-preview-wide { width: 100%; height: 180px; }

/* Tables */
.admin-table { color: var(--text); margin-bottom: 0; }
.admin-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; font-weight: 600; border-color: var(--border); }
.admin-table td { border-color: var(--border); vertical-align: middle; }

.admin-order-controls { display: flex; gap: 0.3rem; }

.admin-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: capitalize;
}
.admin-badge-level-debutant { background: color-mix(in srgb, var(--text-muted) 20%, transparent); color: var(--text-muted); }
.admin-badge-level-intermediaire { background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 75%, var(--text-muted)); }
.admin-badge-level-avance { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.admin-badge-level-expert { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }

/* List items (experiences/educations/projects index) */
.admin-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.admin-list-item-body { flex-grow: 1; }
.admin-list-item-body h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.admin-list-item-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 0.4rem; }
.admin-reorder-buttons { display: flex; flex-direction: column; gap: 0.3rem; }
.admin-list-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

.admin-list-item-thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    flex-shrink: 0;
}
.admin-list-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-badge-featured {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    margin-left: 0.5rem;
    font-size: 0.7rem;
}

.admin-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.admin-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* Empty state */
.admin-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.admin-empty-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--text-muted); }

/* Alerts */
.admin-alert-success { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.admin-alert-error { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .section { padding: 4rem 0; }
    .hero-section { padding: 7rem 0 3rem; }
    .admin-content { padding: 1.25rem; }
    .admin-list-item { flex-wrap: wrap; }
}