@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* African Parrot - base visuelle unifiée */
:root {
    --bg-color: #e0e5ec;
    --surface-color: #e0e5ec;
    --text-primary: #2c3e50;
    --text-secondary: #6f7f8f;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --accent-color: #ffc000;
    --accent-red: #e74c3c;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --pi-gold: #ffc000;
    --pi-blue: #1a2c3e;
    --pi-gradient: linear-gradient(135deg, #ffc000, #f39c12);

    --bg: var(--bg-color);
    --light: var(--shadow-light);
    --primary: var(--pi-gold);
    --shadow: var(--shadow-dark);
    --text-color: var(--text-primary);
    --nm-light: var(--shadow-light);
    --nm-dark: var(--shadow-dark);
    --nm-shadow-light: var(--shadow-light);
    --nm-shadow-dark: var(--shadow-dark);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 36px;
    --transition: 0.25s ease;
    --shadow-raised: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    --shadow-soft: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
    --shadow-inset: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --font-body: "Plus Jakarta Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: "Montserrat", "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

img,
svg,
video {
    max-width: 100%;
}

a,
a:hover,
a:focus,
a:active {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(255, 192, 0, 0.55);
    outline-offset: 3px;
}

.neumorphic,
.nm-card,
.neu-card,
.article-card,
.stat-card,
.dashboard-card {
    background: var(--surface-color);
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    transition: transform var(--transition), box-shadow var(--transition);
}

.neumorphic:hover,
.nm-card:hover,
.neu-card:hover,
.article-card:hover,
.stat-card:hover,
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.neumorphic-inset,
.nm-inset,
.neu-inset {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset);
}

.main-content {
    min-height: 100vh;
    margin-left: 0;
    padding: var(--space-lg);
    transition: margin-left var(--transition);
}

.main-content.sidebar-open {
    margin-left: 280px;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface-color);
    box-shadow: 0 8px 18px rgba(44, 62, 80, 0.08);
}

.navbar-brand {
    color: var(--pi-blue);
    font-weight: 800;
}

.nav-link {
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    transition: color var(--transition), box-shadow var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--surface-color);
    color: var(--pi-gold);
    box-shadow: var(--shadow-inset);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 100vh;
    background: var(--surface-color);
    box-shadow: 9px 0 16px var(--shadow-dark);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header,
.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.sidebar-header {
    justify-content: space-between;
}

.sidebar-logo h4,
.user-info strong {
    margin: 0;
    color: var(--text-primary);
}

.user-info small {
    color: var(--text-secondary);
}

.user-avatar,
.comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--pi-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.user-avatar {
    width: 50px;
    height: 50px;
}

.sidebar-menu {
    flex: 1;
    margin: 0;
    padding: var(--space-sm) 0;
    list-style: none;
}

.menu-section {
    padding: var(--space-md) var(--space-lg) var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xs) var(--space-sm);
    padding: 12px var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background var(--transition), box-shadow var(--transition), color var(--transition);
}

.sidebar-menu li a .menu-icon {
    width: 30px;
    font-size: 1.15rem;
}

.sidebar-menu li a .menu-text {
    flex: 1;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    background: var(--surface-color);
    color: var(--pi-blue);
    box-shadow: var(--shadow-inset);
}

.hamburger,
.close-sidebar,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
}

.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
}

.hamburger.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-16px) scale(0.92);
}

.close-sidebar,
.icon-btn {
    width: 38px;
    height: 38px;
}

.hamburger:hover,
.close-sidebar:hover,
.icon-btn:hover {
    color: var(--pi-gold);
    box-shadow: var(--shadow-inset);
}

.btn-neumorphic,
.nm-btn,
.neu-btn,
.btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 22px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), color var(--transition), background var(--transition);
}

.btn-neumorphic:hover,
.nm-btn:hover,
.neu-btn:hover,
.btn-full:hover {
    color: var(--pi-blue);
    transform: translateY(-2px);
}

.btn-neumorphic:active,
.nm-btn:active,
.neu-btn:active,
.btn-full:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-inset);
}

.btn-full {
    width: 100%;
}

.btn-primary,
.btn-warning {
    border-color: transparent;
    background: var(--pi-gold);
    color: var(--pi-blue);
    font-weight: 700;
}

.btn-primary:hover,
.btn-warning:hover {
    background: #f3b400;
    color: var(--pi-blue);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-control,
.form-select,
.nm-input,
.neu-input,
textarea.nm-input,
textarea.neu-input {
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 12px 14px;
    box-shadow: var(--shadow-inset);
    transition: box-shadow var(--transition), background var(--transition);
}

.form-control:focus,
.form-select:focus,
.nm-input:focus,
.neu-input:focus {
    outline: 0;
    background: var(--surface-color);
    color: var(--text-primary);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
}

label,
.form-label {
    color: var(--text-primary);
    font-weight: 700;
}

.text-muted,
small {
    color: var(--text-secondary) !important;
}

.article-card {
    margin-bottom: 30px;
    padding: var(--space-lg);
}

.article-image {
    width: 100%;
    height: 200px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.article-badge,
.status-badge,
.role-badge,
.badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.badge-breaking,
.status-refuse,
.badge-danger {
    background: var(--danger-color);
}

.badge-sponsored,
.status-en_attente,
.badge-warning {
    background: var(--warning-color);
}

.badge-editorial,
.badge-info {
    background: var(--info-color);
}

.badge-exclusive,
.status-publie,
.badge-success {
    background: var(--success-color);
}

.alert {
    border: 0;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: rgba(39, 174, 96, 0.14);
    color: #166f3c;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.14);
    color: #9d2b20;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.18);
    color: #875509;
}

.alert-info {
    background: rgba(52, 152, 219, 0.14);
    color: #1b5f8f;
}

.table {
    color: var(--text-primary);
}

.table thead th {
    border-bottom-color: rgba(44, 62, 80, 0.12);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table td,
.table th {
    border-color: rgba(44, 62, 80, 0.08);
    vertical-align: middle;
}

.progress {
    background: var(--surface-color);
    border-radius: 999px;
    box-shadow: var(--shadow-inset);
    overflow: hidden;
}

[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

@media (max-width: 992px) {
    .main-content {
        padding: var(--space-md);
    }

    .main-content.sidebar-open {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 300px;
    }

    .article-card {
        margin: 0 0 var(--space-lg);
    }

    .btn-neumorphic,
    .nm-btn,
    .neu-btn,
    .btn-full {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .hamburger {
        top: 14px;
        left: 14px;
        width: 44px;
        height: 44px;
    }
}
