/* ═══════════════════════════════════════════════════════════════════
   Astral 360 Docs — Homepage (module tiles)
   Réutilise les variables de thème de style.css (clair + sombre).
   ═══════════════════════════════════════════════════════════════════ */

body.is-home {
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font-sans);
}

.home {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-5) var(--space-7);
}

/* ─── Hero ─────────────────────────────────────────────────────────── */

.home-hero {
    text-align: center;
    margin-bottom: var(--space-8);
}

.home-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-3);
    color: var(--text);
}

.home-tagline {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin: 0;
}

/* ─── Grille de tuiles ─────────────────────────────────────────────── */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.tile {
    --tile-accent: var(--brand);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--tile-accent);
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--tile-accent);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-2);
    line-height: 1;
}

.tile-icon img,
.tile-icon svg {
    width: 32px;
    height: 32px;
}

.tile-emoji {
    font-size: 1.8rem;
}

.tile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.tile-name {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text);
}

.tile-tagline {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.tile-cta {
    margin-top: var(--space-1);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tile-accent);
}

.home-empty {
    padding: var(--space-7) 0;
    text-align: center;
    color: var(--text-mute);
}

/* ─── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .home {
        padding: var(--space-6) var(--space-4);
    }
    .home-title {
        font-size: 1.8rem;
    }
    .tile-grid {
        grid-template-columns: 1fr;
    }
}
