/**
 * Améliorations des icônes pour Golden Sky Home
 * Animations et effets visuels pour toutes les icônes du site
 */

/* Animation de rotation pour les icônes au survol */
@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation de pulsation */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Animation de brillance */
@keyframes iconShine {
    0% { 
        text-shadow: 0 0 10px rgba(156, 119, 25, 0.4);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 20px rgba(156, 119, 25, 0.8), 0 0 30px rgba(156, 119, 25, 0.4);
        filter: brightness(1.2);
    }
    100% { 
        text-shadow: 0 0 10px rgba(156, 119, 25, 0.4);
        filter: brightness(1);
    }
}

/* Animation de rebond */
@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Icônes de contact avec animations spécifiques */
.golden-sky-theme .contact-icon.ion-email:hover {
    animation: iconBounce 0.6s ease;
}

.golden-sky-theme .contact-icon.ion-ios-telephone:hover {
    animation: iconPulse 0.8s ease infinite;
}

.golden-sky-theme .contact-icon.ion-ios-location:hover {
    animation: iconBounce 0.5s ease;
}

.golden-sky-theme .contact-icon.ion-calendar:hover {
    animation: iconRotate 1s ease;
}

.golden-sky-theme .contact-icon.ion-wifi:hover {
    animation: iconPulse 1s ease infinite;
}

.golden-sky-theme .contact-icon.ion-card:hover {
    animation: iconShine 1.5s ease infinite;
}

/* Icônes sociales avec effets spéciaux */
.golden-sky-theme .socialnet a {
    position: relative;
    display: inline-block;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.golden-sky-theme .socialnet a::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent, rgba(156, 119, 25, 0.2), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.golden-sky-theme .socialnet a:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.golden-sky-theme .socialnet a:hover i {
    animation: iconRotate 0.8s ease;
    color: #9c7719;
    text-shadow: 0 0 20px rgba(156, 119, 25, 0.8);
}

/* Icônes de service avec effets de survol */
.golden-sky-theme .service-icon.ion-ios-home:hover {
    animation: iconBounce 0.6s ease;
}

.golden-sky-theme .service-icon.ion-fork:hover {
    animation: iconShine 1.2s ease infinite;
}

/* Icônes dans le contenu avec micro-animations */
.golden-sky-theme .contact p i.ion-at:hover {
    animation: iconBounce 0.4s ease;
}

.golden-sky-theme .contact p i.ion-ios-home:hover {
    animation: iconPulse 0.6s ease;
}

.golden-sky-theme .contact p i.ion-ios-world:hover {
    animation: iconRotate 1s ease;
}

.golden-sky-theme .contact p i.ion-ios-telephone-outline:hover {
    animation: iconPulse 0.8s ease infinite;
}

.golden-sky-theme .contact p i.ion-earth:hover {
    animation: iconRotate 1.5s ease;
}

.golden-sky-theme .contact p i.ion-clock:hover {
    animation: iconRotate 2s linear infinite;
}

.golden-sky-theme .contact p i.ion-flag:hover {
    animation: iconBounce 0.5s ease;
}

.golden-sky-theme .contact p i.ion-coffee:hover {
    animation: iconShine 1s ease infinite;
}

/* Effet de groupe pour les icônes de services */
.golden-sky-theme .contact p i.ion-home,
.golden-sky-theme .contact p i.ion-coffee,
.golden-sky-theme .contact p i.ion-fork {
    transition: all 0.3s ease;
}

.golden-sky-theme .contact p:hover i.ion-home,
.golden-sky-theme .contact p:hover i.ion-coffee,
.golden-sky-theme .contact p:hover i.ion-fork {
    color: #9c7719;
    text-shadow: 0 0 15px rgba(156, 119, 25, 0.6);
    transform: scale(1.2);
}

/* Animation séquentielle pour les icônes de services */
.golden-sky-theme .contact p:hover i.ion-home {
    animation-delay: 0s;
}

.golden-sky-theme .contact p:hover i.ion-coffee {
    animation-delay: 0.1s;
}

.golden-sky-theme .contact p:hover i.ion-fork {
    animation-delay: 0.2s;
}

/* Icônes du titre avec effets spéciaux */
.golden-sky-theme .p-title h3 i {
    color: #9c7719;
    margin-left: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(156, 119, 25, 0.5);
}

.golden-sky-theme .p-title h3:hover i {
    animation: iconShine 1.5s ease infinite;
    transform: scale(1.1);
}

/* Effet de halo pour les icônes importantes */
.golden-sky-theme .intro-icon,
.golden-sky-theme .service-icon,
.golden-sky-theme .contact-icon {
    position: relative;
}

.golden-sky-theme .intro-icon::after,
.golden-sky-theme .service-icon::after,
.golden-sky-theme .contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(156, 119, 25, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.golden-sky-theme .intro-icon-wrapper:hover .intro-icon::after,
.golden-sky-theme .service-icon-wrapper:hover .service-icon::after,
.golden-sky-theme .contact li:hover .contact-icon::after {
    opacity: 1;
    width: 150%;
    height: 150%;
}

/* Responsive pour les animations */
@media (max-width: 768px) {
    /* Réduire les animations sur mobile pour les performances */
    .golden-sky-theme .contact-icon:hover,
    .golden-sky-theme .service-icon:hover,
    .golden-sky-theme .intro-icon:hover {
        animation-duration: 0.3s;
    }
    
    /* Désactiver les animations infinies sur mobile */
    .golden-sky-theme .contact-icon.ion-ios-telephone:hover,
    .golden-sky-theme .contact-icon.ion-wifi:hover,
    .golden-sky-theme .service-icon.ion-fork:hover,
    .golden-sky-theme .contact p i.ion-ios-telephone-outline:hover,
    .golden-sky-theme .contact p i.ion-coffee:hover {
        animation: none;
        transform: scale(1.1);
    }
}

/* Effet de chargement pour les icônes */
.golden-sky-theme .contact-icon,
.golden-sky-theme .service-icon,
.golden-sky-theme .intro-icon {
    opacity: 0;
    animation: fadeInIcon 0.6s ease forwards;
}

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

/* Délais d'animation pour un effet séquentiel */
.golden-sky-theme .contact li:nth-child(1) .contact-icon { animation-delay: 0.1s; }
.golden-sky-theme .contact li:nth-child(2) .contact-icon { animation-delay: 0.2s; }
.golden-sky-theme .contact li:nth-child(3) .contact-icon { animation-delay: 0.3s; }
.golden-sky-theme .contact li:nth-child(4) .contact-icon { animation-delay: 0.4s; }
.golden-sky-theme .contact li:nth-child(5) .contact-icon { animation-delay: 0.5s; }
.golden-sky-theme .contact li:nth-child(6) .contact-icon { animation-delay: 0.6s; }

/* Effet de particules autour des icônes importantes */
.golden-sky-theme .contact-icon.ion-calendar::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    animation: sparkle 2s ease-in-out infinite;
}

.golden-sky-theme .contact li:hover .contact-icon.ion-calendar::before {
    opacity: 1;
}

@keyframes sparkle {
    0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}
