/* Animations et Styles pour le Favicon Animé */

/* Animation de rotation continue pour le favicon dans l'onglet */
@keyframes favicon-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation de pulsation pour les éléments brillants */
@keyframes favicon-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Animation de scintillement pour les gouttes d'huile */
@keyframes favicon-twinkle {
    0%, 100% {
        opacity: 0.7;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* Styles pour le favicon dans l'onglet (si supporté) */
.favicon-container {
    display: inline-block;
    animation: favicon-rotate 3s linear infinite;
}

/* Effet de survol pour les éléments interactifs liés au pétrole */
.oil-related-element {
    transition: all 0.3s ease;
}

.oil-related-element:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Animation spéciale pour les éléments de l'industrie pétrolière */
.petroleum-element {
    position: relative;
    overflow: hidden;
}

.petroleum-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    animation: favicon-shine 3s ease-in-out infinite;
}

@keyframes favicon-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Styles pour les icônes de baril dans le contenu */
.barrel-icon {
    display: inline-block;
    animation: favicon-rotate 4s linear infinite;
    color: #FFD700;
    font-size: 1.2em;
}

.barrel-icon:hover {
    animation-play-state: paused;
    transform: scale(1.2);
}

/* Animation pour les éléments de sécurité */
.security-icon {
    animation: favicon-pulse 2s ease-in-out infinite;
}

/* Animation pour les éléments de rendement */
.profit-icon {
    animation: favicon-twinkle 1.5s ease-in-out infinite;
}

/* Responsive design pour les animations */
@media (prefers-reduced-motion: reduce) {
    .favicon-container,
    .barrel-icon,
    .security-icon,
    .profit-icon,
    .petroleum-element::before {
        animation: none;
    }
    
    .oil-related-element:hover {
        transform: none;
    }
}

/* Styles pour les navigateurs qui supportent les favicons SVG animés */
@media (prefers-reduced-motion: no-preference) {
    /* Animation plus fluide pour les navigateurs modernes */
    .favicon-container {
        animation: favicon-rotate 2.5s linear infinite;
    }
}

/* Effet de profondeur pour les éléments 3D */
.depth-effect {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.depth-effect:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Animation de chargement avec thème pétrolier */
.oil-loading {
    position: relative;
    width: 40px;
    height: 40px;
}

.oil-loading::before,
.oil-loading::after {
    content: '';
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid #FFD700;
    border-radius: 50%;
    animation: favicon-rotate 1s linear infinite;
}

.oil-loading::before {
    width: 40px;
    height: 40px;
    animation-duration: 1s;
}

.oil-loading::after {
    width: 30px;
    height: 30px;
    top: 5px;
    left: 5px;
    animation-duration: 0.8s;
    animation-direction: reverse;
}
