/**
 * Social Media Section Styles
 * "Suivez-nous" - Enhanced styling with animations and hover effects
 */

/* Social media icon wrapper base styles */
.social-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backface-visibility: hidden;
    will-change: transform;
}

/* Hover effect: scale and color transition */
.social-icon-wrapper:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(232, 148, 30, 0.3));
}

/* Alternative subtle animation: slight lift on hover */
@media (prefers-reduced-motion: no-preference) {
    .social-icon-wrapper {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .social-icon-wrapper:hover {
        transform: scale(1.15) translateY(-2px);
        filter: drop-shadow(0 6px 16px rgba(232, 148, 30, 0.4));
    }

    .social-icon-wrapper:active {
        transform: scale(0.95) translateY(0);
    }
}

/* Ensure SVG icons scale smoothly */
.social-icon-wrapper svg {
    transition: transform 0.2s ease;
    display: block;
}

.social-icon-wrapper:hover svg {
    transform: scale(1.2);
}

/* Footer-specific social media styling */
.footer-suivez-nous {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-suivez-nous-title {
    color: #e8941e;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-suivez-nous-subtitle {
    color: #d1d5db;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Social icons grid - responsive */
.social-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.social-icons-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4b5563;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icons-grid a:hover {
    background-color: #e8941e;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 148, 30, 0.35);
}

.social-icons-grid a:focus {
    outline: 2px solid #e8941e;
    outline-offset: 2px;
}

/* Header-specific social media styling */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.header-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.header-social-icons a:hover {
    color: white;
    background-color: #e8941e;
    transform: scale(1.1) translateY(-1px);
}

.header-social-icons a:focus {
    outline: 2px solid #e8941e;
    outline-offset: 2px;
}

.header-social-icons svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.header-social-icons a:hover svg {
    transform: scale(1.2);
}

/* WhatsApp button styling */
.whatsapp-vibrate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #25d366;
    width: 32px;
    height: 32px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
}

.whatsapp-vibrate:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(37, 211, 102, 0.35));
}

/* Ensure icon visibility */
.social-icon-wrapper svg,
.header-social-icons svg,
.whatsapp-vibrate svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .social-icons-grid {
        gap: 0.5rem;
    }

    .social-icons-grid a {
        width: 36px;
        height: 36px;
    }

    .social-icons-grid a svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .header-social-icons {
        gap: 0.25rem;
    }

    .header-social-icons a {
        padding: 0.25rem;
    }

    .header-social-icons svg {
        width: 1.125rem;
        height: 1.125rem;
    }
}

/* Accessibility: focus visible styles */
a:focus-visible {
    outline: 2px solid #e8941e;
    outline-offset: 2px;
    border-radius: 50%;
}

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
    .social-icon-wrapper,
    .social-icons-grid a,
    .header-social-icons a,
    .whatsapp-vibrate {
        transition: none;
        animation: none;
    }

    .social-icon-wrapper:hover,
    .social-icons-grid a:hover,
    .header-social-icons a:hover,
    .whatsapp-vibrate:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .social-icons-grid a {
        border: 2px solid currentColor;
    }

    .header-social-icons a {
        border: 1px solid currentColor;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .footer-suivez-nous-subtitle {
        color: #d1d5db;
    }
}

/* Animation: entrance effect */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icons-grid a {
    animation: slideInUp 0.4s ease-out backwards;
}

.social-icons-grid a:nth-child(1) { animation-delay: 0.05s; }
.social-icons-grid a:nth-child(2) { animation-delay: 0.1s; }
.social-icons-grid a:nth-child(3) { animation-delay: 0.15s; }
.social-icons-grid a:nth-child(4) { animation-delay: 0.2s; }
