:root {
    --bg: #081120;
    --bg-2: #0d1728;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(17, 24, 39, 0.92);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-2: #6366f1;
    --success: #22c55e;
    --warning: #f59e0b;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg), var(--bg-2));
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Arrière-plan décoratif */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.bg-blur-1 {
    width: 280px;
    height: 280px;
    background: var(--accent);
    top: 90px;
    left: -80px;
}

.bg-blur-2 {
    width: 320px;
    height: 320px;
    background: var(--accent-2);
    bottom: 60px;
    right: -100px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(8, 17, 32, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 80px;
    width: auto;
    border-radius: 22px;
    display: block;
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.18);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

/* Main */
.main {
    position: relative;
    z-index: 1;
}

/* Hero */
.hero {
    max-width: 980px;
    margin: 0 auto;
    padding: 84px 24px 56px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 10px 16px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.08);
    color: #dbeafe;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.10;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.40;
}

.hero-text {
    max-width: 820px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

/* Section apps */
.apps-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px 80px;
}

.section-heading {
    margin-bottom: 26px;
}

.section-kicker {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Cartes */
.app-card {
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 35%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.app-card:hover::before {
    opacity: 1;
}

.card-top,
.app-card h3,
.app-card p,
.card-link {
    position: relative;
    z-index: 1;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-dev {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.22);
}

.app-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.app-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7dd3fc;
    font-weight: 700;
    font-size: 0.95rem;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.app-card:hover .card-link::after {
    transform: translateX(4px);
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 26px 20px 34px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Responsive */
@media (max-width: 980px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 64px;
    }
}

@media (max-width: 720px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .top-nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        height: 68px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .apps-section {
        padding-bottom: 60px;
    }
}