/* ===== FOOTER CSS - MARTIGNY-LES-BAINS ===== */

/* Variables CSS pour la cohérence */
:root {
    --footer-primary: #1e5f8c;
    --footer-secondary: #2e8b57;
    --footer-accent: #10b981;
    --footer-dark: #1a1a1a;
    --footer-text: #e5e5e5;
    --footer-text-muted: #a0a0a0;
    --footer-border: #333;
    --footer-hover: #3498db;
}

/* Footer principal */
.footer-scroll-effect {
    background: linear-gradient(135deg, 
        var(--footer-primary) 0%, 
        var(--footer-secondary) 50%, 
        var(--footer-accent) 100%);
    color: var(--footer-text);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Effet de texture subtile */
.footer-scroll-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="70" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    opacity: 0.6;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Grille du footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Titres des colonnes */
.footer-column h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--footer-accent);
    display: inline-block;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--footer-hover);
    transition: width 0.3s ease;
}

.footer-column:hover h4::after {
    width: 60px;
}

/* Paragraphes */
.footer-column p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--footer-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-column p i {
    color: var(--footer-accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 18px;
}

/* Listes */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column ul li a {
    color: var(--footer-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-column ul li a:hover {
    color: var(--footer-accent);
}

.footer-column ul li a i {
    color: var(--footer-accent);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.footer-column ul li a:hover i {
    transform: translateX(3px);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--footer-accent);
    border-color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Effet de typing pour le texte highlight */
.footer-typing {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-highlight {
    background: linear-gradient(45deg, var(--footer-accent), #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* Copyright */
.footer-copyright {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--footer-text-muted);
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-copyright a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--footer-accent);
}

.footer-copyright a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Effets au scroll */
.footer-scroll-effect.in-view {
    animation: slideInFromBottom 0.8s ease-out;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-scroll-effect {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-column h4 {
        font-size: 1.2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-copyright {
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-column h4 {
        font-size: 1.1rem;
    }
    
    .footer-column p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Améliorations d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .footer-column,
    .social-links a,
    .footer-column ul li {
        animation: none;
        transition: none;
    }
}

/* Mode sombre forcé */
@media (prefers-color-scheme: dark) {
    .footer-scroll-effect {
        background: linear-gradient(135deg, 
            #0f172a 0%, 
            #1e293b 50%, 
            #334155 100%);
    }
}

/* Focus states pour l'accessibilité */
.footer-column a:focus,
.social-links a:focus {
    outline: 2px solid var(--footer-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

/* États hover pour améliorer l'UX */
.footer-column:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Effet de brillance sur les icônes */
.footer-column i {
    transition: all 0.3s ease;
}

.footer-column:hover i {
    text-shadow: 0 0 8px var(--footer-accent);
}

/* Séparateurs visuels */
.footer-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--footer-border) 20%, 
        var(--footer-border) 80%, 
        transparent 100%);
}

@media (max-width: 768px) {
    .footer-column::after {
        display: none;
    }
}

/* Animation de chargement du footer */
.footer-loading {
    opacity: 0;
    animation: footerFadeIn 1s ease-out 0.5s forwards;
}

@keyframes footerFadeIn {
    to {
        opacity: 1;
    }
}

/* Styling pour les liens de navigation spécifiques */
.footer-column a[href*="village.php"]::before { content: "🏘️ "; }
.footer-column a[href*="histoire.php"]::before { content: "📚 "; }
.footer-column a[href*="tourisme.php"]::before { content: "🌿 "; }
.footer-column a[href*="contact.php"]::before { content: "📧 "; }
.footer-column a[href*="services.php"]::before { content: "🏛️ "; }