/**
 * Effets CSS avancés pour Skant Pro
 */

/* ============================================
   EFFETS INTERACTIFS AVANCÉS
============================================ */

/* Effet d'encre qui se propage */
.ink-effect {
    position: relative;
    overflow: hidden;
}

.ink-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ink-effect:hover::before {
    animation: ink-spread 0.6s ease-out;
}

@keyframes ink-spread {
    to {
        width: 400px;
        height: 400px;

    }
}

/* Effet de brillance mouvante */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.shine-effect:hover::after {
    left: 100%;
}

/* Effet de pulsation */
.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Effet de flottement */
.float-effect {
    animation: float 3s ease-in-out infinite;
}

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

/* Effet de dégradé animé */
.gradient-shift {
    background: linear-gradient(-45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Effet de bordure animée */
.animated-border {
    position: relative;
    padding: 20px;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
    background-size: 300% 300%;
    animation: border-rotate 3s linear infinite;
    border-radius: 10px;
    z-index: -1;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   EFFETS DE TEXTE
============================================ */

/* Texte avec effet de remplissage */
.fill-text {
    position: relative;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.fill-text:hover {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Texte avec ombre fluide */
.shadow-text {
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2),
        0 0 30px rgba(236, 72, 153, 0.1);
}

/* ============================================
   EFFETS DE CARTE/BOX
============================================ */

/* Carte avec bordure dégradée */
.gradient-card {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    background: white;
}

.gradient-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* Carte avec shadow étendue */
.elevated-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 15px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.elevated-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ============================================
   EFFETS DE BOUTONS AVANCÉS
============================================ */

/* Bouton avec animation de remplissage */
.fill-button {
    position: relative;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fill-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    transition: left 0.3s ease;
}

.fill-button:hover::before {
    left: 0;
}

.fill-button:hover {
    color: white;
    border-color: transparent;
}

/* Bouton avec icône animée */
.button-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-with-icon svg {
    transition: transform 0.3s ease;
}

.button-with-icon:hover svg {
    transform: translateX(5px);
}

/* ============================================
   BACKGROUND EFFECTS
============================================ */

/* Blob background */
.blob-background {
    position: relative;
    background: white;
    overflow: hidden;
}

.blob-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-animation 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes blob-animation {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0);
    }
    25% {
        border-radius: 58% 42% 38% 62% / 58% 58% 42% 42%;
        transform: translate(30px, -30px);
    }
    50% {
        border-radius: 35% 65% 42% 58% / 65% 35% 58% 42%;
        transform: translate(-20px, 30px);
    }
    75% {
        border-radius: 42% 58% 65% 35% / 35% 65% 35% 65%;
        transform: translate(30px, 20px);
    }
}

/* Grid background */
.grid-background {
    position: relative;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Dot background */
.dot-background {
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ============================================
   ANIMATIONS DE CHARGEMENT
============================================ */

/* Skeleton loader */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   CURSEUR PERSONNALISÉ
============================================ */

.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 30px;
    height: 30px;
    border-width: 3px;
    border-color: var(--secondary-color);
    background: rgba(139, 92, 246, 0.1);
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

.custom-cursor-follower.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(99, 102, 241, 0.05);
}

/* Masquer le curseur par défaut */

/* Afficher le curseur sur les inputs */
input,
textarea,
select {
    cursor: text;
}

button,
a {
    cursor: pointer;
}

/* ============================================
   MEDIA QUERIES
============================================ */

@media (max-width: 768px) {
    /* Désactiver les effets complexes sur mobile */
    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
    
    /* Animations simplifiées */
    .float-effect {
        animation: float 2s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    /* Réduire les tailles de blob */
    .blob-background::before {
        width: 200px;
        height: 200px;
    }
}