/* One'Bot · Page d'accueil
   Feuille propre à l'accueil, en complément de liquid-glass.css (base commune). */

/* ---------- Héros ---------- */
.hero-home {
    text-align: center;
    justify-items: center;
    padding: 40px 32px;
}
.hero-home h1 { max-width: 20ch; margin-top: 14px; }
.hero-home .lead { margin-inline: auto; }
.hero-home .actions { justify-content: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--pill);
    background: var(--glass-fill-strong);
    border: 1px solid var(--glass-stroke);
    font-size: 0.85rem;
    font-weight: 700;
}
.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s infinite;
}

.hero-logo.float { animation: float 6s ease-in-out infinite; }

/* Bannière : halo coloré derrière le verre */
.hero-banner { position: relative; isolation: isolate; }
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 10% 6%;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    filter: blur(40px);
    opacity: 0.35;
}

/* Boutons lumineux */
.glow-pill { animation: glow 3s ease-in-out infinite; }
.glow-btn { transition: box-shadow 0.3s var(--ease), transform 0.25s var(--ease); }
.glow-btn:hover { box-shadow: 0 12px 32px var(--accent-glow); }
.btn-icon { font-size: 1.1rem; line-height: 1; }

/* Compteur en direct */
.stat-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding: 10px 18px;
    border-radius: var(--pill);
    background: var(--glass-fill-strong);
    border: 1px solid var(--glass-stroke);
}
.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.home-section { display: grid; gap: 24px; }
.section-header {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}
.sub-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}
.home-section .section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    letter-spacing: -0.02em;
    margin: 0;
}
.section-desc { color: var(--muted); }

/* Cartes d'avantages */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.feature-card {
    display: grid;
    gap: 10px;
    justify-items: start;
    transition: transform 0.35s var(--ease);
}
.feature-card p,
.step-card p { color: var(--muted); }
.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--glass-fill-strong);
    border: 1px solid var(--glass-stroke);
    font-size: 1.6rem;
}

/* Étapes */
.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.step-card {
    display: grid;
    gap: 10px;
    justify-items: start;
    transition: transform 0.35s var(--ease);
}
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.step-icon { font-size: 1.5rem; }

/* Léger relief au survol (souris uniquement) */
@media (hover: hover) {
    .feature-card:hover,
    .step-card:hover { transform: translateY(-4px); }
}

/* ---------- Apparition au défilement (si JavaScript tourne) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
.features-grid .reveal:nth-child(2),
.steps-list .reveal:nth-child(2) { transition-delay: 0.12s; }
.features-grid .reveal:nth-child(3),
.steps-list .reveal:nth-child(3) { transition-delay: 0.24s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 22px 4px var(--accent-glow); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 184, 102, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(47, 184, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 184, 102, 0); }
}

/* Mouvement réduit : tout est visible, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
    .hero-logo.float,
    .glow-pill,
    .badge-pulse { animation: none; }
    .glow-btn,
    .feature-card,
    .step-card { transition: none; }
    .feature-card:hover,
    .step-card:hover { transform: none; }
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 760px) {
    .hero-home { padding: 28px 22px; }
}
