/* public/assets/footer.css 
-> In: app/includes/footer.php
*/
/* ===================================
   STYLES DU FOOTER - VERSION MODERNE
   =================================== */

/* --- Container Principal du Footer --- */
.main-footer {
    position: relative;
    background: linear-gradient(135deg, #1a365d 0%, #2c5aa0 50%, #3182ce 100%);
    color: var(--light-color);
    padding: var(--spacing-xxxl) 0 0 0;
    font-size: 0.95rem;
    overflow: hidden;
}

/* Effet de texture subtile en arrière-plan */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(83, 120, 149, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(42, 157, 143, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Ligne décorative supérieure */
.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-light) 25%, 
        var(--primary-color) 50%, 
        var(--primary-light) 75%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(42, 157, 143, 0.5);
}

.main-footer .container {
    position: relative;
    z-index: 1;
}

/* --- Grille du Footer --- */
.main-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
    padding: 0 var(--spacing-md);
}

/* --- Colonnes du Footer --- */
.main-footer .footer-col {
    animation: fadeInUp 0.6s ease-out backwards;
}

.main-footer .footer-col:nth-child(1) { animation-delay: 0.1s; }
.main-footer .footer-col:nth-child(2) { animation-delay: 0.2s; }
.main-footer .footer-col:nth-child(3) { animation-delay: 0.3s; }
.main-footer .footer-col:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Logo et Branding --- */
.main-footer .logo-col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.main-footer .footer-logo {
    display: inline-block;
    transition: all var(--transition-base);
}

.main-footer .footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(42, 157, 143, 0.3));
}

.main-footer .footer-logo img {
    height: 70px;
    width: auto;
}

.main-footer .tagline {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 280px;
}

/* --- Titres des Sections --- */
.main-footer h3 {
    position: relative;
    color: var(--white-color);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
    padding-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.main-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    border-radius: 2px;
}

/* --- Liens du Footer --- */
.main-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-links li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 0;
}

.main-footer .footer-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.75);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) 0;
}

.main-footer .footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
    color: var(--primary-light);
}

.main-footer .footer-links a:hover {
    color: var(--white-color);
    padding-left: var(--spacing-sm);
}

.main-footer .footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* --- Informations de Contact --- */
.main-footer address {
    font-style: normal;
}

.main-footer address p {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.main-footer address p:hover {
    color: var(--white-color);
}

.main-footer address i {
    margin-right: var(--spacing-sm);
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.main-footer address a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    position: relative;
}

.main-footer address a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.main-footer address a:hover {
    color: var(--primary-light);
}

.main-footer address a:hover::after {
    transform: scaleX(1);
}

/* --- Horaires d'Ouverture --- */
.main-footer .opening-hours {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .opening-hours h4 {
    color: var(--white-color);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-semibold);
}

.main-footer .opening-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .opening-hours li {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
}

/* --- Réseaux Sociaux --- */
.main-footer .social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.main-footer .social-links a {
    position: relative;
    color: var(--white-color);
    font-size: 1.3rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.main-footer .social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    opacity: 0;
}

.main-footer .social-links a:hover::before {
    width: 100px;
    height: 100px;
    opacity: 0.2;
}

.main-footer .social-links a:hover {
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.25);
}

.main-footer .social-links a i {
    position: relative;
    z-index: 1;
}

/* --- Barre Inférieure du Footer --- */
.footer-bottom {
    background: rgba(77, 150, 179, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-xl);
}

.footer-bottom p {
    margin: 0;
}

/* ===================================
   RESPONSIVE - FOOTER
   =================================== */

/* --- TABLETTES (768px+) --- */
@media (min-width: 768px) {
    .main-footer .footer-grid {
        gap: var(--spacing-xl);
    }
    
    .main-footer .opening-hours li {
        font-size: 0.95rem;
    }
}

/* --- ORDINATEURS (992px+) --- */
@media (min-width: 992px) {
    .main-footer .footer-grid {
        grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
        gap: var(--spacing-xxl);
    }
    
    .main-footer {
        padding: calc(var(--spacing-xxxl) + var(--spacing-md)) 0 0 0;
    }
}

/* --- GRANDS ÉCRANS (1200px+) --- */
@media (min-width: 1200px) {
    .main-footer {
        padding: calc(var(--spacing-xxxl) + var(--spacing-xl)) 0 0 0;
    }
    
    .main-footer .footer-grid {
        gap: calc(var(--spacing-xxl) + var(--spacing-md));
    }
    
    .main-footer h3 {
        font-size: 1.2rem;
    }
}

/* ===================================
   DARK MODE ENHANCEMENTS
   =================================== */
@media (prefers-color-scheme: dark) {
    .main-footer {
        background: linear-gradient(135deg, #0a0a12 0%, #12162e 50%, #0d2742 100%);
    }
}

/* ===================================
   IMPRESSION
   =================================== */
@media print {
    .main-footer {
        background: white !important;
        color: black !important;
        padding: var(--spacing-lg) 0 !important;
    }
    
    .main-footer::before,
    .main-footer::after {
        display: none !important;
    }
    
    .main-footer .social-links {
        display: none !important;
    }
    
    .main-footer h3,
    .main-footer address p,
    .main-footer .footer-links a {
        color: black !important;
    }
    
    .footer-bottom {
        background: none !important;
        border-top: 1px solid #ccc !important;
    }
}

/* ===================================
   ACCESSIBILITÉ
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .main-footer .footer-col {
        animation: none;
    }
    
    .main-footer *,
    .main-footer *::before,
    .main-footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité au clavier */
.main-footer a:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 2px;
}