/* ========================================
   FOOTER - STYLES DÉDIÉS
   ======================================== */

/* Variables spécifiques au footer */
:root {
    --footer-padding: 1.5rem 0;
    --footer-background: linear-gradient(135deg, rgba(23,27,32,0.9) 0%, rgba(28,33,39,0.9) 100%);
    --footer-border: 1px solid rgba(255,255,255,0.08);
    --footer-shadow: 0 -6px 24px rgba(0,0,0,0.25);
}

/* ========================================
   FOOTER PRINCIPAL
   ======================================== */
.footer {
    margin-top: auto;
    padding: 0;
    height: 70px;
    background: var(--footer-background);
    border-top: var(--footer-border);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: visible;
    box-shadow: var(--footer-shadow);
    animation: footerGlassmorphismFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    flex-grow: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

@keyframes footerGlassmorphismFadeIn {
    from {
        opacity: 0.8;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--dominant-rgb, 59, 130, 246), 0.08) 0%, 
        transparent 100%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 70px;
}

/* Logo central qui déborde du footer */
.footer-center-logo {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
    z-index: 10;
    pointer-events: none;
}

.footer-logo-image {
    height: 210px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-normal) ease-in-out;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55));
}

.footer-logo-icon {
    font-size: 1.25rem;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55));
    transition: transform var(--transition-fast) ease;
}

.footer-logo-icon:hover {
    transform: scale(1.1);
}

.footer-brand-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.footer-year {
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0.85;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-copyright, .footer-developer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast) ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-link:hover {
    color: var(--dominant-color, var(--primary));
    transform: translateY(-1px);
}

/* Pills compacts pour gagner de la place */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.pill iconify-icon {
    font-size: 1rem;
    color: #ffffff;
}

.pill .footer-link-text {
    color: #ffffff;
    text-decoration: none;
}

.pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.pill:hover::before {
    left: 100%;
}

.pill:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.footer-link-text { 
    white-space: nowrap; 
}

/* Footer avec glassmorphism dynamique */
.footer-glassmorphism .footer-brand-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-glassmorphism .footer-logo-icon {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-glassmorphism .footer-copyright,
.footer-glassmorphism .footer-developer,
.footer-glassmorphism .footer-separator,
.footer-glassmorphism .footer-link {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        min-height: 70px;
        justify-content: center;
    }
    .footer-info { gap: 0.4rem; }
    .pill { padding: 6px 8px; }
    .footer-link-text { display: none; } /* icônes seules sur mobile */
    
    .footer-logo-image {
        height: 165px;
    }
    
    .footer-info {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-icon {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .footer-brand-text {
        font-size: 0.8rem;
    }
    
    .footer-logo-icon {
        font-size: 1.125rem;
    }
    
    .footer-copyright, .footer-developer, .footer-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 0;
        height: 70px;
    }
    
    .footer-content {
        padding: 0 0.75rem;
        min-height: 70px;
        justify-content: center;
    }
    
    .footer-logo-image {
        height: 150px;
    }
    
    .footer-icon {
        width: 1rem;
        height: 1rem;
    }
    
    .footer-brand-text {
        font-size: 0.75rem;
    }
    
    .footer-logo-icon {
        font-size: 1rem;
    }
    
    .footer-copyright, .footer-developer, .footer-link {
        font-size: 0.75rem;
    }
    
    .footer-info {
        gap: 0.5rem;
    }
} 