:root {
    --unilu-blue: #002366;
    --unilu-gold: #E3B23C;
    --unilu-light-blue: #0056B3;
    --unilu-light: #F8F9FA;
    --unilu-dark: #212529;
}

/* Couleurs UNILU */
.bg-unilu-blue { background-color: var(--unilu-blue) !important; }
.text-unilu-blue { color: var(--unilu-blue) !important; }
.bg-unilu-gold { background-color: var(--unilu-gold) !important; }
.text-unilu-gold { color: var(--unilu-gold) !important; }

/* Boutons personnalisés */
.btn-unilu-blue {
    background-color: var(--unilu-blue);
    border-color: var(--unilu-blue);
    color: white;
}

.btn-unilu-blue:hover {
    background-color: var(--unilu-light-blue);
    border-color: var(--unilu-light-blue);
    color: white;
}

.btn-unilu-gold {
    background-color: var(--unilu-gold);
    border-color: var(--unilu-gold);
    color: var(--unilu-dark);
}

.btn-unilu-gold:hover {
    background-color: #d4a02c;
    border-color: #d4a02c;
    color: var(--unilu-dark);
}

/* Navigation — nettoyage legacy */
.navbar-brand strong { font-size: 1.0rem; }
.navbar-brand small  { font-size: 0.72rem; opacity: 0.75; }

/* ---- Bouton retour en haut ---- */
#scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background: var(--unilu-blue);
    color: #fff;
    border: 2px solid var(--unilu-gold);
    border-radius: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
#scroll-top-btn:hover {
    background: var(--unilu-gold);
    color: var(--unilu-blue);
}
#scroll-top-btn.visible { display: flex; }

/* ---- Fil d'Ariane (breadcrumb) ---- */
.breadcrumb-bar {
    background: #f0f4fb;
    border-bottom: 1px solid #dce4f0;
    padding: 7px 0;
}
.breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    font-size: 0.8rem;
}
.breadcrumb-bar .breadcrumb-item a {
    color: var(--unilu-blue);
    text-decoration: none;
}
.breadcrumb-bar .breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-bar .breadcrumb-item.active { color: #6c757d; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: #9aaac0; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--unilu-blue) 0%, var(--unilu-light-blue) 100%);
    color: white;
    padding: 4rem 0;
}

/* Cards */
.card {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
    margin: 0;
    color: #111827;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card:hover {
    transform: translateY(-2px);
}

/* Footer */
footer a:hover {
    color: var(--unilu-gold) !important;
    text-decoration: none;
}
.footer-link:hover {
    color: var(--unilu-gold) !important;
    padding-left: 4px;
    transition: all 0.15s;
}
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.18s;
}
.footer-social:hover {
    background: var(--unilu-gold);
    border-color: var(--unilu-gold);
    color: #001240;
}


/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.card-body {
    padding: 1rem 1.25rem;
}
.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

/* Grid */
.grid {
    display: grid;
    gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-responsive { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    font-size: 0.75rem;
    line-height: 1;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
}
.badge-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    transition: all 160ms ease;
}
.btn:hover { border-color: #d1d5db; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-outline { background: #fff; color: #2563eb; border-color: #bfdbfe; }
.btn-outline:hover { background: #eff6ff; }
.btn-muted { background: #f3f4f6; color: #374151; }

/* Tabs */
.tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; }
.tab {
    padding: 0.5rem 0.75rem;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0;
    color: #374151;
}
.tab:hover { background: #f9fafb; }
.tab.active { background: #fff; border-color: #e5e7eb; color: #111827; }

/* List items */
.list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.list-item:hover { border-color: #d1d5db; }
.list-item .title { font-weight: 600; }
.list-item .meta { color: #6b7280; font-size: 0.875rem; }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin-top: 1rem; }
.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.pagination .active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Empty state */
.empty {
    text-align: center;
    padding: 2rem;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
}
.empty .emoji { font-size: 2rem; }

/* Utilities */
.muted { color: #6b7280; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.stack-sm { display: flex; gap: 0.5rem; align-items: center; }
.stack-md { display: flex; gap: 0.75rem; align-items: center; }
.stack-lg { display: flex; gap: 1rem; align-items: center; }
.space-y-sm > * + * { margin-top: 0.5rem; }
.space-y-md > * + * { margin-top: 0.75rem; }
.space-y-lg > * + * { margin-top: 1rem; }

/* Images */
.thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}
.hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Fix unmatched brace safety */
/* End of file */
/* ===== ADMIN STYLES ===== */
/* Layout Admin */
.admin-container .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.admin-container .col-lg-3,
.admin-container .col-md-4,
.admin-container .col-lg-9,
.admin-container .col-md-8 {
    position: relative !important;
    width: 100% !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
}

@media (min-width: 768px) {
    .admin-container .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    .admin-container .col-md-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
}

@media (min-width: 992px) {
    .admin-container .col-lg-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    .admin-container .col-lg-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }
}

/* Sidebar Admin */
.admin-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
    border-right: 1px solid #dee2e6;
    position: sticky;
    top: 20px;
    border-radius: 10px;
    padding: 1.5rem !important;
}

.admin-main-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: calc(100vh - 200px);
}

/* Header Admin */
.admin-header {
    background: var(--unilu-blue);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* Cards Admin */
.admin-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.admin-card:hover {
    transform: translateY(-2px);
}

.admin-card-header {
    background: var(--unilu-blue);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1rem 1.5rem;
}

/* Navigation Admin */
.navbar-admin {
    background: var(--unilu-blue) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand div {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .admin-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .admin-main-content {
        min-height: auto;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .admin-container .col-md-4,
    .admin-container .col-md-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}