/* Effets Visuels Ésotériques et Animations Magiques */

/* Import de Google Fonts pour une typographie mystique */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* === ANIMATIONS MYSTIQUES === */

/* Animation de scintillement pour les étoiles */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3); 
    }
}

/* Animation de lueur mystique */
@keyframes mystic-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), 0 0 35px rgba(74, 103, 65, 0.3); 
    }
}

/* Animation de flottement */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-8px); 
    }
}

/* Animation de rotation douce pour les symboles */
@keyframes gentle-rotate {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

/* Animation de pulsation de lumière */
@keyframes light-pulse {
    0%, 100% { 
        opacity: 0.6; 
        filter: brightness(1); 
    }
    50% { 
        opacity: 1; 
        filter: brightness(1.4); 
    }
}

/* === ÉLÉMENTS DÉCORATIFS === */

/* Étoiles mystiques en arrière-plan */
.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(74, 103, 65, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(212, 175, 55, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(74, 103, 65, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Bordures mystiques avec motifs */
.mystic-border {
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--cream-mystic), var(--cream-mystic)) padding-box,
                linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--secondary-color)) border-box;
    border-radius: var(--border-radius-soft);
}

/* Effet de particules magiques */
.magic-particles::before {
    content: '✨ ⭐ ✨ ⭐ ✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 0.8rem;
    letter-spacing: 15px;
    opacity: 0.7;
    animation: light-pulse 3s ease-in-out infinite;
}

/* Cartes avec effet de lévitation */
.levitating-card {
    transition: var(--transition-medium);
    animation: float 6s ease-in-out infinite;
}

.levitating-card:hover {
    animation-play-state: paused;
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(74, 103, 65, 0.15),
        0 0 30px rgba(212, 175, 55, 0.2);
}

/* === BOUTONS MYSTIQUES === */

.btn-mystique {
    background: var(--gradient-primary);
    color: var(--cream-mystic);
    border: none;
    border-radius: var(--border-radius-soft);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-mystique);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 103, 65, 0.3);
}

.btn-mystique::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-medium);
}

.btn-mystique:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(74, 103, 65, 0.4),
        0 0 20px rgba(212, 175, 55, 0.3);
    animation: mystic-glow 2s ease-in-out infinite;
}

.btn-mystique:hover::before {
    left: 100%;
}

/* === DIVIDERS MYSTIQUES === */

.mystic-divider {
    width: 100%;
    height: 1px;
    background: var(--gradient-accent);
    margin: var(--spacing-xl) 0;
    position: relative;
}

.mystic-divider::before {
    content: '◆ ❋ ◆';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream-mystic);
    color: var(--accent-color);
    padding: 0 var(--spacing-md);
    font-size: 0.9rem;
}

/* === TOOLTIPS MYSTIQUES === */

.mystic-tooltip {
    position: relative;
    cursor: help;
}

.mystic-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-mystic);
    color: var(--cream-mystic);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.mystic-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* === CARTES TAROT/ORACLE === */

.oracle-card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-soft);
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
    color: var(--cream-mystic);
    box-shadow: 
        0 10px 30px rgba(74, 103, 65, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    border: 2px solid var(--accent-color);
}

.oracle-card::before {
    content: '✦';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    color: var(--accent-color);
    font-size: 1.2rem;
    animation: gentle-rotate 10s linear infinite;
}

.oracle-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 
        0 20px 50px rgba(74, 103, 65, 0.4),
        0 0 30px rgba(212, 175, 55, 0.3);
}

.oracle-card .card-title {
    font-family: var(--font-mystique);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    letter-spacing: 2px;
}

/* === EFFET CRISTAL === */

.crystal-effect {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(247, 245, 240, 0.8) 50%,
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(74, 103, 65, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* === LOADING MYSTIQUE === */

.mystic-loading {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 40px;
}

.mystic-loading::after {
    content: '☽';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 1.5rem;
    animation: gentle-rotate 2s linear infinite;
}

/* === RESPONSIVE MYSTIQUE === */

@media (max-width: 768px) {
    .magic-particles::before {
        letter-spacing: 8px;
        font-size: 0.7rem;
    }
    
    .oracle-card {
        margin: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .levitating-card {
        animation: none;
    }
    
    .levitating-card:hover {
        transform: translateY(-5px);
    }
}

/* === CLASSES UTILITAIRES MYSTIQUES === */

.text-mystique {
    font-family: var(--font-mystique);
    letter-spacing: 1px;
}

.text-glow {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.bg-mystique {
    background: var(--gradient-mystic);
    color: var(--cream-mystic);
}

.border-mystique {
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-soft);
}

.shadow-mystique {
    box-shadow: 
        0 10px 30px rgba(74, 103, 65, 0.2),
        0 0 20px rgba(212, 175, 55, 0.1);
}

/* Animation d'apparition mystique */
.fade-in-mystique {
    animation: fadeInMystique 1s ease-out;
}

@keyframes fadeInMystique {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}