/* ═══════════════════════════════════════════════════════
   SafeHome — Design System
   ═══════════════════════════════════════════════════════ */

:root {
    --primary: #FF385C;
    --text: #222222;
    --muted: #717171;
    --border: #EBEBEB;
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Scroll padding pour les ancres */
html { scroll-padding-top: 80px; }

/* ─── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Animation appliquée directement (hero) */
.animate-fade-up  { animation: fadeUp 0.6s ease both; }
.animate-slide-in { animation: slideIn 0.3s ease both; }

/* Éléments data-animate : visibles par défaut.
   Le JS ajoute .animate-fade-up quand ils scrollent en vue.
   Si le JS ne charge pas, tout reste visible. */
[data-animate].is-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Stagger enfants */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }

/* ─── Hero background ────────────────────────────────── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,56,92,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(255,179,71,0.06) 0%, transparent 60%),
        #FFFFFF;
}

/* ─── Texte dégradé ──────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #FF385C 0%, #FF8C42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Barre de recherche ─────────────────────────────── */
.search-bar {
    background: white;
    border: 1px solid var(--border);
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 200ms ease;
}
.search-bar:hover,
.search-bar:focus-within {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 28px rgba(0,0,0,0.12);
}

/* ─── Cards ──────────────────────────────────────────── */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ─── Offre mise en avant ────────────────────────────── */
.offer-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px rgba(255,56,92,0.15);
}

/* ─── Numéro d'étape (watermark) ─────────────────────── */
.step-watermark {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255,56,92,0.08) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Badge / Pill ───────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-primary {
    background: rgba(255,56,92,0.1);
    color: var(--primary);
}
.badge-success {
    background: rgba(0,138,5,0.1);
    color: #008A05;
}

/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }

/* ─── Mobile ajustements ─────────────────────────────── */
@media (max-width: 640px) {
    .search-bar { border-radius: 16px; }
}
