/* ============================================================
   🔥 MASCOTTE FIREPROCESS
   ============================================================
   Styles de la mascotte 3D + animations + layouts associés.
   ============================================================ */


/* Base : la mascotte elle-même */
.fp-mascot {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}


/* Animation flottante subtile (comme Soro et Duolingo) */
@keyframes fp-mascot-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.fp-mascot--floating {
    animation: fp-mascot-float 4s ease-in-out infinite;
}

/* Respect des préférences utilisateur (accessibilité) */
@media (prefers-reduced-motion: reduce) {
    .fp-mascot--floating {
        animation: none;
    }
}


/* ============================================================
   LAYOUT HERO AVEC MASCOTTE (utilisé sur la home)
   ============================================================ */

.hero-with-mascot {
    padding: var(--space-20) 0 var(--space-12);
}

.hero-with-mascot .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-with-mascot .hero-text h1 {
    text-align: left;
    font-size: var(--text-5xl);
    line-height: var(--leading-5xl);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-6);
}

.hero-with-mascot .hero-text .lead {
    text-align: left;
    font-size: var(--text-xl);
    line-height: var(--leading-2xl);
    margin: 0 0 var(--space-8);
    max-width: none;
}

.hero-with-mascot .hero-cta {
    justify-content: flex-start;
}

.hero-with-mascot .hero-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-with-mascot .hero-mascot .fp-mascot {
    width: 100%;
    max-width: 420px;
    height: auto;
    /* Petit halo orange derrière pour faire ressortir la mascotte */
    filter: drop-shadow(0 20px 60px rgba(255, 87, 34, 0.25));
}

/* Responsive : sur mobile, mascotte au-dessus du texte */
@media (max-width: 900px) {
    .hero-with-mascot .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    .hero-with-mascot .hero-text {
        order: 2;
    }
    .hero-with-mascot .hero-mascot {
        order: 1;
    }
    .hero-with-mascot .hero-text h1,
    .hero-with-mascot .hero-text .lead {
        text-align: center;
    }
    .hero-with-mascot .hero-cta {
        justify-content: center;
    }
    .hero-with-mascot .hero-mascot .fp-mascot {
        max-width: 280px;
    }
}

@media (max-width: 640px) {
    .hero-with-mascot .hero-text h1 {
        font-size: var(--text-4xl);
        line-height: var(--leading-4xl);
    }
}


/* ============================================================
   LAYOUT 2-COLONNES AVEC MASCOTTE (pour pages auth, contact, etc.)
   ============================================================ */

.mascot-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.mascot-split .mascot-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-split .mascot-col .fp-mascot {
    width: 100%;
    max-width: 280px;
    filter: drop-shadow(0 12px 32px rgba(255, 87, 34, 0.2));
}

@media (max-width: 900px) {
    .mascot-split {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .mascot-split .mascot-col {
        order: -1;
    }
    .mascot-split .mascot-col .fp-mascot {
        max-width: 180px;
    }
}


/* ============================================================
   MASCOTTE INLINE POUR ÉTATS VIDES ou ENCADRÉS
   ============================================================ */

.empty-state-mascot {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.empty-state-mascot .fp-mascot {
    margin: 0 auto var(--space-6);
    max-width: 160px;
    filter: drop-shadow(0 8px 24px rgba(255, 87, 34, 0.15));
}

.empty-state-mascot h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.empty-state-mascot p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
