/* ── Menu principal élégant ────────────────────────────────── */
#masthead {
    background: #ffffff !important;
    border-bottom: 2px solid #f0fdf4;
    box-shadow: 0 2px 12px rgba(26, 92, 42, 0.08);
}
#masthead .main-header-menu a,
#masthead .ast-builder-menu a {
    color: #374151 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
}
#masthead .main-header-menu a:hover,
#masthead .ast-builder-menu a:hover {
    background: #f0fdf4 !important;
    color: #1a5c2a !important;
}
#masthead .main-header-menu .current-menu-item > a,
#masthead .ast-builder-menu .current-menu-item > a {
    background: #f0fdf4 !important;
    color: #1a5c2a !important;
}
#masthead .main-header-menu .menu-item:last-child > a,
#masthead .ast-builder-menu .menu-item:last-child > a {
    background: #1a5c2a !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 8px 18px !important;
}
#masthead .main-header-menu .menu-item:last-child > a:hover,
#masthead .ast-builder-menu .menu-item:last-child > a:hover {
    background: #22c55e !important;
    color: #ffffff !important;
}
.home #masthead { display: none !important; }
.ast-theme-transparent-header .site-content { margin-top: 0 !important; padding-top: 0 !important; }
.ast-theme-transparent-header #masthead { position: relative !important; }
#page { padding-top: 0 !important; margin-top: 0 !important; }

/* ── Grille fonctionnalités ────────────────────────────────── */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Masquer le header Astra sur toutes les pages sauf l'accueil ── */
.page:not(.home) #masthead {
    display: none !important;
}