/* ================= BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #eef2f7, #dde6f0);
    min-height: 100vh;
    color: #1e293b;
}

/* ================= BACKGROUND ================= */
.background-fingerprints {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.background-fingerprints i {
    position: absolute;
    font-size: var(--size);
    left: var(--left);
    color: rgba(0, 64, 140, 0.05);
    animation: float 22s linear infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    from { transform: translateY(110vh) rotate(0deg); }
    to { transform: translateY(-120vh) rotate(360deg); }
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
}

.header-left { gap: 1rem; }

.header-center {
    flex-direction: column;
    text-align: center;
}

.header-right {
    gap: 0.6rem;
    position: relative;
    z-index: 1000;
}

/* Logo et brand */
.logo { width: 50px; border-radius: 10px; }
.brand { font-weight: 700; color: #003f88; }
.subtitle { font-size: 0.75rem; color: #64748b; }

/* Username */
.username { font-weight: 600; color: #003f88; }
.role-badge {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 999px;
    background: #e0ecff;
    color: #003f88;
}

/* Avatar */
.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #003f88;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Bouton Déconnexion */
.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: #dc2626;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    z-index: 1001;
}

.btn-logout:hover { background: #b91c1c; }

/* ================= MAIN ================= */
.main-content {
    max-width: 1150px;
    margin: auto;
    padding: 3rem 2rem;
}

/* ================= CARDS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    transition: transform 0.35s, box-shadow 0.35s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.15);
}

.icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #003f88;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card.secondary .icon-circle { background: #15803d; }

.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #64748b; margin-bottom: 1.8rem; }

/* Boutons cartes */
.btn-card {
    padding: 0.65rem 1.3rem;
    background: #003f88;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
}

.btn-card:hover { background: #002a5c; }

.btn-card.outline {
    background: transparent;
    border: 2px solid #003f88;
    color: #003f88;
}

.btn-card.outline:hover { background: #003f88; color: white; }

/* ================= RESPONSIVE ================= */
@media (max-width:768px) {
    .header { flex-direction: column; gap: 1rem; text-align: center; }
    .header-right { justify-content: center; }
}
