/* ============================================================ */
/* PayFlow - Gestion de Paie                                     */
/* Theme: FULL BLACK + Gold accent  (premium dark mode)          */
/* Font: Outfit + DM Sans                                        */
/* ============================================================ */

:root {
    --black: #000000;
    --dark-1: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #181818;
    --dark-4: #1e1e1e;
    --dark-5: #252525;
    --dark-6: #2a2a2a;
    --dark-7: #333333;

    --gold: #d4a04a;
    --gold-light: #e8c97d;
    --gold-dark: #b8862d;
    --gold-bg: rgba(212, 160, 74, 0.1);
    --gold-border: rgba(212, 160, 74, 0.2);

    --emerald: #2ecc71;
    --emerald-bg: rgba(46, 204, 113, 0.12);
    --rose: #e74c3c;
    --rose-bg: rgba(231, 76, 60, 0.12);
    --amber: #f39c12;
    --amber-bg: rgba(243, 156, 18, 0.12);
    --blue: #3498db;
    --blue-bg: rgba(52, 152, 219, 0.12);

    --text: #f0f0f0;
    --text-secondary: #aaaaaa;
    --text-muted: #666666;
    --border: #2a2a2a;
    --surface: #141414;
    --bg: #0a0a0a;

    --sidebar-w: 250px;
    --topbar-h: 58px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 20px rgba(212, 160, 74, 0.15);
    --font: "Outfit", "DM Sans", -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

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

/* ============================================================ */
/* HOMEPAGE - NAVBAR                                             */
/* ============================================================ */
.navbar-home {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-home-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 70px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.home-brand i {
    color: var(--gold);
    font-size: 22px;
}

.home-nav-links {
    display: flex;
    gap: 28px;
}
.home-nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.home-nav-links a:hover {
    color: var(--gold);
}

.home-nav-actions {
    display: flex;
    gap: 10px;
}

.btn-home-outline {
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: 1.5px solid var(--dark-6);
    color: #fff;
}
.btn-home-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-home-filled {
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gold);
    border: none;
    color: #000;
}
.btn-home-filled:hover {
    background: var(--gold-dark);
}
.btn-lg {
    padding: 13px 28px;
    font-size: 14px;
}

/* ============================================================ */
/* HERO                                                          */
/* ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-bg);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gold-border);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 50px;
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -1.5px;
}
.hero-highlight {
    color: var(--gold);
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-stat {
    text-align: center;
}
.hero-stat-num {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--gold);
}
.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================ */
/* HOME SECTIONS                                                 */
/* ============================================================ */
.section-home {
    padding: 80px 0;
    background: var(--dark-1);
}
.section-alt {
    background: var(--black);
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}
.section-header-center h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 10px 0 8px;
    letter-spacing: -0.5px;
}
.section-header-center p {
    color: var(--text-secondary);
    font-size: 15px;
}

.section-badge {
    display: inline-block;
    background: var(--gold-bg);
    color: var(--gold);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--gold-border);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.split-img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.split-text h2 {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 12px 0 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.split-text p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}
.features-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.feature-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.feature-mini i {
    color: var(--gold);
    font-size: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: all 0.25s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow-gold);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-5);
    color: var(--gold);
    font-size: 22px;
}
.feature-icon.icon-green {
    background: var(--emerald-bg);
    color: var(--emerald);
}
.feature-icon.icon-amber {
    background: var(--amber-bg);
    color: var(--amber);
}
.feature-icon.icon-rose {
    background: var(--rose-bg);
    color: var(--rose);
}
.feature-icon.icon-blue {
    background: var(--blue-bg);
    color: var(--blue);
}
.feature-icon.icon-teal {
    background: var(--dark-5);
    color: var(--text-secondary);
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
}
.team-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-3px);
}
.team-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 3px solid var(--dark-5);
}
.team-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.team-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.contact-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.2s;
}
.contact-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}
.contact-card i {
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 12px;
}
.contact-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.contact-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.home-footer {
    background: var(--black);
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-inner .home-brand {
    font-size: 16px;
}
.footer-inner p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================================ */
/* AUTH OVERLAY                                                  */
/* ============================================================ */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 92%;
    max-width: 420px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: all 0.35s ease;
}
.auth-overlay.active .auth-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--dark-5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.auth-close:hover {
    background: var(--rose-bg);
    color: var(--rose);
}

.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--black);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
    border: 1px solid var(--gold-border);
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-align: center;
}
.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0 22px;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 18px;
}
.auth-switch a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-hint {
    background: var(--dark-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 16px;
    line-height: 1.6;
    text-align: center;
}
.auth-hint i {
    color: var(--gold);
    margin-right: 4px;
}

/* ============================================================ */
/* SIDEBAR                                                       */
/* ============================================================ */
#espacePrincipal {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--black);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 900;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand i {
    color: var(--gold);
    font-size: 20px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.sidebar-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.sidebar-role {
    font-size: 11px;
    color: var(--gold);
    text-transform: capitalize;
    background: var(--gold-bg);
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

.sidebar-label {
    padding: 18px 22px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 0 10px;
    flex: 1;
}
.sidebar-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
    margin-bottom: 2px;
}
.sidebar-menu li i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}
.sidebar-menu li:hover {
    background: var(--dark-4);
    color: var(--text);
}
.sidebar-menu li.active {
    background: var(--gold);
    color: #000;
    font-weight: 700;
}
.sidebar-menu li.active i {
    color: #000;
}

.sidebar-bottom {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--rose-bg);
    color: var(--rose);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.sidebar-logout:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* ============================================================ */
/* TOPBAR + MAIN                                                 */
/* ============================================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--dark-1);
}

.topbar {
    height: var(--topbar-h);
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text);
    cursor: pointer;
}
.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex: 1;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.topbar-user-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.content-area {
    padding: 28px;
    flex: 1;
}

/* ============================================================ */
/* STAT CARDS                                                    */
/* ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}
.stat-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.stat-card.gold {
    border-left-color: var(--gold);
}
.stat-card.green {
    border-left-color: var(--emerald);
}
.stat-card.amber {
    border-left-color: var(--amber);
}
.stat-card.rose {
    border-left-color: var(--rose);
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.stat-card.gold .stat-icon-wrap {
    background: var(--gold-bg);
    color: var(--gold);
}
.stat-card.green .stat-icon-wrap {
    background: var(--emerald-bg);
    color: var(--emerald);
}
.stat-card.amber .stat-icon-wrap {
    background: var(--amber-bg);
    color: var(--amber);
}
.stat-card.rose .stat-icon-wrap {
    background: var(--rose-bg);
    color: var(--rose);
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================ */
/* TOOLBAR                                                       */
/* ============================================================ */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--dark-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    gap: 8px;
    min-width: 260px;
    transition: all 0.2s;
}
.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.08);
}
.search-box i {
    color: var(--text-muted);
    font-size: 14px;
}
.search-box input {
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--font);
    flex: 1;
    color: var(--text);
    background: transparent;
}
.search-box input::placeholder {
    color: var(--text-muted);
}

/* ============================================================ */
/* BUTTONS                                                       */
/* ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn:hover {
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--gold);
    color: #000;
    box-shadow: var(--shadow-gold);
}
.btn-accent:hover {
    background: var(--gold-dark);
}
.btn-primary {
    background: var(--dark-5);
    color: #fff;
    border: 1px solid var(--border);
}
.btn-primary:hover {
    border-color: var(--gold-border);
}
.btn-success {
    background: var(--emerald);
    color: #fff;
}
.btn-danger {
    background: var(--rose);
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}
.btn-group {
    display: flex;
    gap: 6px;
}

/* ============================================================ */
/* TABLE                                                         */
/* ============================================================ */
.table-container {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background: var(--dark-4);
}
th {
    padding: 13px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 14px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-secondary);
}
tbody tr:last-child td {
    border-bottom: none;
}
tbody tr {
    transition: background 0.15s;
}
tbody tr:hover {
    background: var(--dark-4);
}

/* ============================================================ */
/* BADGES                                                        */
/* ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success {
    background: var(--emerald-bg);
    color: var(--emerald);
}
.badge-warning {
    background: var(--amber-bg);
    color: var(--amber);
}
.badge-danger {
    background: var(--rose-bg);
    color: var(--rose);
}

/* ============================================================ */
/* MODAL                                                         */
/* ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    transition: all 0.3s ease;
}
.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 0;
}
.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.modal-close {
    background: var(--dark-5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.modal-close:hover {
    background: var(--rose-bg);
    color: var(--rose);
}
#modalBody {
    padding: 20px 28px 28px;
}

/* ============================================================ */
/* FORMS                                                         */
/* ============================================================ */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.form-group label i {
    font-size: 11px;
    color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: var(--font);
    color: var(--text);
    background: var(--dark-4);
    transition: all 0.2s;
}
.form-group select option {
    background: var(--dark-4);
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.08);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ============================================================ */
/* TOAST                                                         */
/* ============================================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    padding: 14px 22px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(80px);
    opacity: 0;
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
    z-index: 4000;
    max-width: 380px;
    border-left: 4px solid var(--gold);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success {
    border-left-color: var(--emerald);
}
.toast.error {
    border-left-color: var(--rose);
}
.toast.success .toast-icon {
    color: var(--emerald);
}
.toast.error .toast-icon {
    color: var(--rose);
}
.toast-message {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* ============================================================ */
/* EMPTY STATE                                                   */
/* ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: 0.25;
    display: block;
}
.empty-state p {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================================ */
/* EMPLOYEE ELEMENTS                                             */
/* ============================================================ */
.employee-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.employee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.employee-name {
    font-weight: 600;
    color: #fff;
    font-size: 13.5px;
}
.employee-email {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================ */
/* SECTION / CARDS                                               */
/* ============================================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.section-title i {
    color: var(--gold);
}

.recent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}
.recent-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}
.recent-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.recent-card h3 i {
    color: var(--gold);
    font-size: 14px;
}
.recent-list {
    list-style: none;
}
.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.recent-list li:last-child {
    border-bottom: none;
}
.recent-list .name {
    font-weight: 500;
    color: var(--text-secondary);
}
.recent-list .amount {
    font-weight: 700;
    font-size: 13px;
}
.recent-list .amount.positive {
    color: var(--emerald);
}
.recent-list .amount.negative {
    color: var(--rose);
}

/* ============================================================ */
/* BULLETIN                                                      */
/* ============================================================ */
#bulletinContent {
    padding: 24px 28px;
}
.bulletin {
    font-family: var(--font);
    max-width: 650px;
    margin: 0 auto;
}
.bulletin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--gold);
}
.bulletin-company h2 {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 4px;
}
.bulletin-company p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.bulletin-title {
    text-align: right;
}
.bulletin-title h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}
.bulletin-title p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.bulletin-employee {
    background: var(--dark-4);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bulletin-employee p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.bulletin-employee strong {
    color: #fff;
}

.bulletin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.bulletin-table th {
    background: var(--black);
    color: var(--gold);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
}
.bulletin-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.bulletin-table .amount {
    text-align: right;
    font-weight: 600;
}

.bulletin-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 15px;
}
.bulletin-total.brut {
    background: var(--blue-bg);
    color: var(--blue);
}
.bulletin-total.net {
    background: var(--gold);
    color: #000;
    font-size: 17px;
}

.bulletin-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}
.bulletin-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px 24px;
    border-top: 1px solid var(--border);
}

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
/* Steps grid (comment obtenir un compte) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.step-card {
    background: var(--dark-3);
    border: 1px solid var(--dark-5);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}

.step-card:hover {
    border-color: var(--gold-border);
}

.step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    font-weight: 800;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 14px;
    display: block;
}

.step-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Badge warning */
.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recent-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .topbar-toggle {
        display: block;
    }
    .content-area {
        padding: 18px 16px;
    }
    .home-nav-links {
        display: none;
    }
    .navbar-home-inner {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 30px;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stat-num {
        font-size: 24px;
    }
    .split-section {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .bulletin-employee {
        grid-template-columns: 1fr;
    }
    .bulletin-header {
        flex-direction: column;
        gap: 12px;
    }
    .bulletin-title {
        text-align: left;
    }
    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        min-width: auto;
    }
    .hero-btns {
        flex-direction: column;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .home-nav-actions {
        gap: 6px;
    }
    .btn-home-outline,
    .btn-home-filled {
        padding: 7px 14px;
        font-size: 12px;
    }
}

@media print {
    .sidebar,
    .topbar,
    .modal-close,
    .modal-header,
    .bulletin-actions,
    .toast,
    #pageAccueil,
    .auth-overlay {
        display: none !important;
    }
    .main-content {
        margin-left: 0;
        background: #fff;
        color: #000;
    }
    .modal-overlay {
        position: static;
        background: none;
        backdrop-filter: none;
    }
    .modal {
        box-shadow: none;
        max-width: 100%;
        border-radius: 0;
        background: #fff;
        color: #000;
        border: none;
    }
    .bulletin-total.net {
        background: #000 !important;
        color: #d4a04a !important;
        -webkit-print-color-adjust: exact;
    }
    .bulletin-table th {
        background: #000 !important;
        color: #d4a04a !important;
        -webkit-print-color-adjust: exact;
    }
    .bulletin-table td {
        color: #333;
    }
    .bulletin-company h2 {
        color: #000;
    }
    .bulletin-employee {
        background: #f5f5f5;
    }
    .bulletin-employee p,
    .bulletin-employee strong {
        color: #000;
    }
}
