:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at top right, #312e81, transparent),
                radial-gradient(circle at bottom left, #1e1b4b, transparent),
                #0f172a;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    animation: move 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: var(--primary); }
.blob-2 { bottom: -10%; right: -10%; background: var(--secondary); animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; background: var(--accent); animation-delay: -10s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(10%, 10%) scale(1.1); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #818cf8, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

header {
    text-align: center;
    margin-bottom: 5rem;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

h1 span {
    display: block;
    color: #94a3b8;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.card.mairie .icon { background: linear-gradient(135deg, #4f46e5, #3730a3); }
.card.commercant .icon { background: linear-gradient(135deg, #10b981, #059669); }
.card.agent .icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.card.admin .icon { background: linear-gradient(135deg, #6366f1, #4338ca); }

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card p {
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--dark);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--light);
    transform: scale(1.02);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.footer {
    text-align: center;
    padding: 4rem 5%;
    color: #64748b;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr; }
}
