/* ===================================
   FOOTER - Pied de page
   =================================== */

.footer {
    padding: var(--space-12) 0;
    background: var(--bg-black);
    border-top: 1px solid var(--border-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-orange) 50%,
        transparent 100%
    );
}

.footer__container {
    position: relative;
    z-index: 10;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

/* ===== BRAND SECTION ===== */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.footer__brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
    width: fit-content;
    transition: transform var(--transition-fast);
}

.footer__brand-link:hover {
    transform: scale(1.05);
}

.footer__logo {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer__logo .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.footer__brand-text {
    display: flex;
    flex-direction: column;
}

.footer__brand-name {
    font-size: var(--font-lg);
    font-weight: 900;
    line-height: 1;
    color: var(--text-primary);
}

.footer__brand-tagline {
    font-size: var(--font-xs);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__description {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 24rem;
    margin-bottom: var(--space-6);
}

/* ===== RÉSEAUX SOCIAUX ===== */
.footer__social {
    display: flex;
    gap: var(--space-4);
}

.footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.footer__social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.footer__social-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer__social-link:hover::before {
    opacity: 1;
}

.footer__social-link .icon {
    position: relative;
    z-index: 10;
    width: 1.125rem;
    height: 1.125rem;
}

/* ===== LIENS FOOTER ===== */
.footer__links {
    display: flex;
    gap: var(--space-8);
}

.footer__links-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__links-title {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer__links-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__link {
    color: var(--text-muted);
    font-size: var(--font-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding-left: 0;
    transition: all var(--transition-fast);
}

.footer__link::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--primary-orange);
    transition: height var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary-orange);
    padding-left: var(--space-3);
}

.footer__link:hover::before {
    height: 100%;
}

/* ===== PIED DE FOOTER ===== */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-secondary);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.footer__love {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.footer__heart {
    width: 1rem;
    height: 1rem;
    color: var(--error);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

/* ===== EFFECTS ===== */
.footer__brand-link,
.footer__social-link,
.footer__link {
    position: relative;
}

/* Effet de brillance au survol */
.footer__brand-link::after,
.footer__social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.footer__brand-link:hover::after,
.footer__social-link:hover::after {
    left: 100%;
}

/* ===== ANIMATIONS D'ENTRÉE ===== */
@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer__brand {
    animation: footerFadeIn 0.8s ease-out;
}

.footer__links-section:nth-child(1) {
    animation: footerFadeIn 0.8s ease-out 0.1s both;
}

.footer__links-section:nth-child(2) {
    animation: footerFadeIn 0.8s ease-out 0.2s both;
}

.footer__bottom {
    animation: footerFadeIn 0.8s ease-out 0.3s both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        margin-bottom: var(--space-4);
    }
    
    .footer__links {
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-8) 0;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer__brand {
        align-items: center;
        margin-bottom: var(--space-6);
    }
    
    .footer__brand-link {
        align-self: center;
    }
    
    .footer__description {
        max-width: none;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__links {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .footer__links-title {
        text-align: center;
    }
    
    .footer__links-list {
        align-items: center;
    }
    
    .footer__link {
        text-align: center;
    }
    
    .footer__link::before {
        display: none;
    }
    
    .footer__link:hover {
        padding-left: 0;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--space-6) 0;
    }
    
    .footer__content {
        gap: var(--space-4);
    }
    
    .footer__brand {
        gap: var(--space-4);
    }
    
    .footer__brand-name {
        font-size: var(--font-base);
    }
    
    .footer__description {
        font-size: var(--font-sm);
        margin-bottom: var(--space-4);
    }
    
    .footer__social {
        gap: var(--space-3);
    }
    
    .footer__social-link {
        width: 2rem;
        height: 2rem;
    }
    
    .footer__social-link .icon {
        width: 1rem;
        height: 1rem;
    }
    
    .footer__links {
        gap: var(--space-4);
    }
    
    .footer__links-title {
        font-size: var(--font-sm);
        margin-bottom: var(--space-3);
    }
    
    .footer__link {
        font-size: var(--font-xs);
    }
    
    .footer__bottom {
        padding-top: var(--space-6);
    }
    
    .footer__copyright,
    .footer__love {
        font-size: var(--font-xs);
    }
}

/* ===== VARIANTES ===== */
.footer--minimal {
    padding: var(--space-8) 0;
}

.footer--minimal .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-4);
}

.footer--minimal .footer__links {
    justify-content: center;
    flex-wrap: wrap;
}

.footer--minimal .footer__links-section {
    flex-direction: row;
    gap: var(--space-6);
}

/* ===== DARK MODE ADJUSTMENTS ===== */
@media (prefers-color-scheme: dark) {
    .footer {
        background: var(--bg-black);
    }
}

/* ===== ACCESSIBILITÉ ===== */
@media (prefers-reduced-motion: reduce) {
    .footer__brand,
    .footer__links-section,
    .footer__bottom,
    .footer__heart {
        animation: none;
    }
    
    .footer__brand-link:hover,
    .footer__social-link:hover {
        transform: none;
    }
    
    .footer__brand-link::after,
    .footer__social-link::after {
        display: none;
    }
}

/* ===== FOCUS STATES ===== */
.footer__brand-link:focus,
.footer__social-link:focus,
.footer__link:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ===== PRINT STYLES ===== */
@media print {
    .footer {
        background: white;
        padding: var(--space-4) 0;
    }
    
    .footer::before {
        background: #ccc;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .footer__logo {
        background: #333;
    }
    
    .footer__brand-name {
        color: black;
    }
    
    .footer__brand-tagline {
        color: #666;
    }
    
    .footer__description {
        color: #333;
    }
    
    .footer__social {
        display: none;
    }
    
    .footer__links-title {
        color: black;
    }
    
    .footer__link {
        color: #333;
    }
    
    .footer__link::before {
        display: none;
    }
    
    .footer__copyright,
    .footer__love {
        color: #666;
    }
    
    .footer__heart {
        color: #333;
    }
    
    .footer__brand-link::after,
    .footer__social-link::after {
        display: none;
    }
}