/**
 * AIDA Footer Styles
 * Version: 1.0.2
 * 
 * Footer 4 colonnes avec réseaux sociaux néon
 */

/* ==========================================================================
   CSS VARIABLES FALLBACK (if aida-core not loaded)
   ========================================================================== */
:root {
    --aida-dark: #08080c;
    --aida-dark-lighter: #0f0f19;
    --aida-dark-card: rgba(15, 15, 25, 0.95);
    --aida-primary: #A855F7;
    --aida-cyan: #00fff5;
    --aida-magenta: #ff00ff;
    --aida-green: #39FF14;
    --aida-yellow: #ffae00;
    --aida-text: #F1F5F9;
    --aida-text-muted: #94A3B8;
    --aida-text-dim: #64748B;
    --aida-border: rgba(255, 255, 255, 0.1);
    
    /* Social colors */
    --aida-linkedin: #0A66C2;
    --aida-instagram: #E1306C;
    --aida-x-twitter: #FFFFFF;
    --aida-whatsapp: #25D366;
}

/* ==========================================================================
   FOOTER BASE
   ========================================================================== */
.aida-footer {
    background: var(--aida-dark-lighter);
    border-top: 1px solid var(--aida-border);
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Gradient line at top */
.aida-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--aida-yellow), var(--aida-primary), var(--aida-magenta));
}

/* Subtle glow */
.aida-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.aida-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   FOOTER MAIN - 4 COLUMNS GRID
   ========================================================================== */
.aida-footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--aida-border);
}

/* Brand Column */
.aida-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.aida-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.aida-footer-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--aida-yellow), var(--aida-primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.aida-footer-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--aida-text);
}

.aida-footer-logo-text span {
    background: linear-gradient(135deg, var(--aida-yellow), var(--aida-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aida-footer-description {
    color: var(--aida-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    margin: 0;
}

/* Link Columns */
.aida-footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.aida-footer-column-title {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--aida-yellow);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

.aida-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.aida-footer-links a {
    color: var(--aida-yellow);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.aida-footer-links a:hover {
    color: var(--aida-text-muted);
    transform: translateX(4px);
}

.aida-footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--aida-yellow);
    transition: width 0.3s ease;
}

.aida-footer-links a:hover::before {
    width: 12px;
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */
.aida-social-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.aida-social-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--aida-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.aida-social-link-item:hover {
    transform: translateX(4px);
}

/* Social icons */
.aida-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.aida-social-icon svg {
    width: 16px;
    height: 16px;
}

/* LinkedIn */
.aida-social-icon.linkedin {
    background: rgba(10, 102, 194, 0.15);
    border: 1px solid rgba(10, 102, 194, 0.3);
    color: var(--aida-linkedin);
}
.aida-social-link-item:hover .aida-social-icon.linkedin {
    background: rgba(10, 102, 194, 0.25);
    box-shadow: 0 0 15px rgba(10, 102, 194, 0.4);
}

/* Instagram */
.aida-social-icon.instagram {
    background: rgba(225, 48, 108, 0.15);
    border: 1px solid rgba(225, 48, 108, 0.3);
    color: var(--aida-instagram);
}
.aida-social-link-item:hover .aida-social-icon.instagram {
    background: rgba(225, 48, 108, 0.25);
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
}

/* X (Twitter) */
.aida-social-icon.x-twitter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--aida-x-twitter);
}
.aida-social-link-item:hover .aida-social-icon.x-twitter {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* WhatsApp */
.aida-social-icon.whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: var(--aida-whatsapp);
}
.aida-social-link-item:hover .aida-social-icon.whatsapp {
    background: rgba(37, 211, 102, 0.25);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.aida-social-name {
    color: var(--aida-text-muted);
    transition: color 0.3s ease;
}

.aida-social-link-item:hover .aida-social-name {
    color: var(--aida-text);
}

/* ==========================================================================
   TOOLTIPS "BIENTÔT DISPONIBLE" - Positioned ABOVE icons
   ========================================================================== */
.aida-social-link-item[data-tooltip] {
    cursor: not-allowed;
}

/* Tooltip text - positioned above */
.aida-social-link-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--aida-dark);
    border: 1px solid var(--aida-yellow);
    color: var(--aida-yellow);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(255, 174, 0, 0.2);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Arrow pointing down */
.aida-social-link-item[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--aida-yellow);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show on hover with auto-hide after 2s */
.aida-social-link-item[data-tooltip]:hover::after,
.aida-social-link-item[data-tooltip]:hover::before {
    animation: aida-tooltip-show-hide 2.5s ease forwards;
}

@keyframes aida-tooltip-show-hide {
    0% { 
        opacity: 0; 
        visibility: hidden; 
    }
    10% { 
        opacity: 1; 
        visibility: visible; 
    }
    80% { 
        opacity: 1; 
        visibility: visible; 
    }
    100% { 
        opacity: 0; 
        visibility: hidden; 
    }
}

.aida-social-link-item[data-tooltip]:hover {
    transform: translateX(0);
}

.aida-social-link-item[data-tooltip] .aida-social-icon {
    opacity: 0.5;
}

.aida-social-link-item[data-tooltip] .aida-social-name {
    opacity: 0.5;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */
.aida-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.aida-footer-copyright {
    color: var(--aida-text-dim);
    font-size: 0.85rem;
    margin: 0;
}

.aida-footer-copyright a {
    color: var(--aida-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.aida-footer-copyright a:hover {
    color: var(--aida-yellow);
}

.aida-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.aida-footer-legal a {
    color: var(--aida-text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.aida-footer-legal a:hover {
    color: var(--aida-text-muted);
}

/* ==========================================================================
   BADGE "FAIT AVEC" - HUMAIN + ROBOT
   ========================================================================== */
.aida-footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--aida-text-dim);
}

.aida-badge-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Human icon */
.aida-badge-human {
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(255, 174, 0, 0.6));
}

/* Robot AI icon */
.aida-badge-robot {
    font-size: 1rem;
    color: var(--aida-primary);
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
    animation: aida-pulse-robot 2s ease-in-out infinite;
}

@keyframes aida-pulse-robot {
    0%, 100% { 
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(168, 85, 247, 1));
        transform: scale(1.1);
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */
@media (max-width: 900px) {
    .aida-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .aida-footer-brand {
        grid-column: span 2;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 600px) {
    .aida-footer-container {
        padding: 2rem 1rem 1rem;
    }

    .aida-footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .aida-footer-brand {
        grid-column: span 1;
        align-items: center;
        gap: 1rem;
    }

    .aida-footer-description {
        text-align: center;
        max-width: 100%;
        font-size: 0.9rem;
    }

    /* Hide Navigation and Services on mobile */
    .aida-footer-column.aida-footer-nav,
    .aida-footer-column.aida-footer-services {
        display: none;
    }

    /* Social links in row on mobile */
    .aida-social-links-list {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .aida-social-name {
        display: none;
    }

    .aida-social-icon {
        width: 44px;
        height: 44px;
    }

    .aida-social-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Hide tooltip on mobile */
    .aida-social-link-item[data-tooltip]::after,
    .aida-social-link-item[data-tooltip]::before {
        display: none;
    }

    .aida-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .aida-footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .aida-footer-legal a {
        font-size: 0.8rem;
    }
    
    .aida-footer-copyright {
        font-size: 0.8rem;
    }

    /* Hide badge on mobile */
    .aida-footer-badge {
        display: none;
    }
}

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .aida-badge-robot {
        animation: none;
    }
    
    .aida-footer-links a,
    .aida-social-link-item,
    .aida-social-icon {
        transition: none;
    }
}
