/* ==========================================================
   PETSCOMPARE - EMPTY STATES
   ==========================================================
   Style cohérent pour toutes les pages "vides" :
   wishlist vide, pas d'avis, pas d'économies, 404, etc.

   Pattern :
   ┌──────────────────────────┐
   │       [illustration]      │
   │                           │
   │       Titre clair          │
   │       Description          │
   │       [CTA principal]      │
   │       [Lien secondaire]    │
   └──────────────────────────┘
   ========================================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem 3.5rem;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #f3e8d0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin: 1.5rem 0;
}

/* Variante "carte sombre" (pour 404 etc.) */
.empty-state-dark {
    background: linear-gradient(135deg, #fefaf2 0%, #fff7ed 100%);
    border-color: #fde68a;
}

/* Illustration SVG en haut */
.empty-state-illustration {
    width: 200px;
    height: 200px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.empty-state-illustration svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Titre */
.empty-state-title {
    font-family: 'Fraunces', 'Georgia', serif;
    font-size: 1.65rem;
    color: #1f2937;
    margin: 0 0 .65rem;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
}

/* Description (sous-titre) */
.empty-state-desc {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 0 1.5rem;
}

.empty-state-desc strong { color: #1f2937; }

/* CTA principal */
.empty-state-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: #fff;
    padding: .85rem 1.85rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
    transition: transform .15s, box-shadow .15s;
}

.empty-state-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 120, 87, 0.35);
    text-decoration: none;
    color: #fff;
}

/* Lien secondaire (sous le CTA) */
.empty-state-link {
    display: block;
    margin-top: .85rem;
    color: #6b7280;
    font-size: .9rem;
    text-decoration: none;
}

.empty-state-link:hover {
    color: #047857;
    text-decoration: underline;
}

/* ============================================================
   ANIMATIONS doucement décalées pour donner vie aux illustrations
   ============================================================ */

@keyframes empty-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.empty-state-illustration .float-element {
    animation: empty-float 3.5s ease-in-out infinite;
}

.empty-state-illustration .float-element-delayed {
    animation: empty-float 3.5s ease-in-out infinite;
    animation-delay: .8s;
}

/* Wag (queue qui bouge) */
@keyframes wag {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}

.empty-state-illustration .wag-element {
    transform-origin: 30% 50%;
    animation: wag 1.5s ease-in-out infinite;
}

/* Sparkle (étoile qui scintille) */
@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.empty-state-illustration .sparkle-element {
    transform-origin: center;
    animation: sparkle 2s ease-in-out infinite;
}

.empty-state-illustration .sparkle-element-delayed {
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: .7s;
}

/* Bounce léger */
@keyframes empty-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(2px); }
}

.empty-state-illustration .bounce-element {
    animation: empty-bounce 2s ease-in-out infinite;
}

/* Désactivation pour reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .empty-state-illustration .float-element,
    .empty-state-illustration .float-element-delayed,
    .empty-state-illustration .wag-element,
    .empty-state-illustration .sparkle-element,
    .empty-state-illustration .sparkle-element-delayed,
    .empty-state-illustration .bounce-element {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .empty-state {
        padding: 2.5rem 1.25rem;
    }
    .empty-state-illustration {
        width: 160px;
        height: 160px;
    }
    .empty-state-title {
        font-size: 1.35rem;
    }
    .empty-state-desc {
        font-size: .95rem;
    }
    .empty-state-cta {
        padding: .75rem 1.5rem;
        font-size: .92rem;
    }
}
