/**
 * GRAPHICS.CSS - Éléments graphiques et illustrations
 * Volant d'Oc Vauréen - Thème sombre avec graphismes modernes
 */

/* ==================== FORMES DÉCORATIVES DE BASE ==================== */

.decorative-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Blobs organiques */
.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.05;
    filter: blur(40px);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #A8D963, #4DBFE5);
    top: -10%;
    right: -5%;
    animation: blob-float 15s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #FF6600, #FFD54F);
    bottom: -10%;
    left: -5%;
    animation: blob-float 18s ease-in-out infinite reverse;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4DBFE5, #A8D963);
    top: 30%;
    left: 10%;
    animation: blob-float 20s ease-in-out infinite;
}

/* Animation des blobs */
@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        transform: translate(60px, 20px) rotate(180deg);
        border-radius: 40% 60% 70% 30% / 40% 60% 30% 70%;
    }
    75% {
        transform: translate(-20px, 40px) rotate(270deg);
        border-radius: 70% 30% 40% 60% / 30% 70% 60% 40%;
    }
}

/* ==================== ILLUSTRATIONS BADMINTON ==================== */

/* Conteneur pour les illustrations */
.badminton-graphics {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Volants flottants */
.shuttlecock {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.08;
}

.shuttlecock-1 {
    top: 15%;
    right: 10%;
    animation: float-diagonal 12s ease-in-out infinite;
}

.shuttlecock-2 {
    top: 60%;
    left: 5%;
    animation: float-diagonal 15s ease-in-out infinite reverse;
    animation-delay: 2s;
}

.shuttlecock-3 {
    bottom: 20%;
    right: 20%;
    animation: float-diagonal 18s ease-in-out infinite;
    animation-delay: 4s;
}

/* Raquettes décoratives */
.racket {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.06;
}

.racket-1 {
    top: 25%;
    left: 15%;
    transform: rotate(-45deg);
    animation: rotate-slow 20s linear infinite;
}

.racket-2 {
    bottom: 30%;
    right: 15%;
    transform: rotate(45deg);
    animation: rotate-slow 25s linear infinite reverse;
}

/* Animations des illustrations */
@keyframes float-diagonal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(60px, 0) rotate(180deg);
    }
    75% {
        transform: translate(30px, 20px) rotate(270deg);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ==================== LIGNES ET PATTERNS ==================== */

/* Lignes diagonales subtiles */
.diagonal-lines {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(255, 102, 0, 0.02) 50px,
            rgba(255, 102, 0, 0.02) 51px
        );
    pointer-events: none;
    z-index: 0;
}

/* Pattern de terrain de badminton */
.court-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

/* ==================== CERCLES DÉCORATIFS ==================== */

.circle-decoration {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.05;
}

.circle-1 {
    width: 300px;
    height: 300px;
    border-color: #A8D963;
    top: 10%;
    right: 5%;
    animation: pulse-circle 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-color: #4DBFE5;
    bottom: 15%;
    left: 10%;
    animation: pulse-circle 10s ease-in-out infinite;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-color: #FF6600;
    top: 50%;
    right: 30%;
    animation: pulse-circle 12s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes pulse-circle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* ==================== EFFETS DE MOUVEMENT ==================== */

/* Traits de vitesse */
.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.3), transparent);
    opacity: 0;
}

.speed-line-1 {
    width: 200px;
    top: 20%;
    left: -200px;
    animation: speed-dash 5s ease-in-out infinite;
}

.speed-line-2 {
    width: 150px;
    top: 60%;
    right: -150px;
    animation: speed-dash 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes speed-dash {
    0% {
        left: -200px;
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* ==================== PARTICULES DYNAMIQUES ==================== */

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #FF6600;
    border-radius: 50%;
    opacity: 0;
}

/* Génération de particules avec positions aléatoires */
.particle:nth-child(1) { animation: particle-rise 10s ease-in infinite; animation-delay: 0s; left: 10%; }
.particle:nth-child(2) { animation: particle-rise 12s ease-in infinite; animation-delay: 2s; left: 30%; }
.particle:nth-child(3) { animation: particle-rise 11s ease-in infinite; animation-delay: 4s; left: 50%; }
.particle:nth-child(4) { animation: particle-rise 13s ease-in infinite; animation-delay: 1s; left: 70%; }
.particle:nth-child(5) { animation: particle-rise 14s ease-in infinite; animation-delay: 3s; left: 90%; }

@keyframes particle-rise {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(50px) scale(0.5);
    }
}

/* ==================== ICÔNES ILLUSTRÉES ==================== */

/* Conteneur pour icônes personnalisées */
.icon-illustrated {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Effet de glow sur les icônes */
.icon-illustrated::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.icon-illustrated:hover::before {
    opacity: 1;
}

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

@media (max-width: 768px) {
    /* Réduire les graphismes sur mobile pour les performances */
    .blob {
        display: none;
    }
    
    .shuttlecock,
    .racket {
        opacity: 0.04;
    }
    
    .speed-line,
    .particles-container {
        display: none;
    }
    
    .circle-decoration {
        opacity: 0.03;
    }
}

/* ==================== SECTIONS SPÉCIFIQUES ==================== */

/* Hero avec graphismes */
.hero-section .decorative-background {
    opacity: 0.8;
}

/* Stats strip avec effet */
.stats-strip {
    position: relative;
}

.stats-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        #A8D963 25%,
        #4DBFE5 50%,
        #FF6600 75%,
        transparent
    );
    animation: gradient-slide 3s ease-in-out infinite;
}

@keyframes gradient-slide {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Actualités - effet retiré */
.actualite-card {
    position: relative;
    overflow: hidden;
}

/* Team cards - effet retiré */

/* ==================== UTILITAIRES ==================== */

/* Ajouter des graphismes à n'importe quel élément */
.with-graphics {
    position: relative;
}

.with-graphics-subtle .decorative-background {
    opacity: 0.3;
}

.with-graphics-bold .decorative-background {
    opacity: 0.8;
}

/* Désactiver les graphismes */
.no-graphics .decorative-background,
.no-graphics .badminton-graphics {
    display: none;
}