/**
 * Mobestate - Footer CSS Complet
 * Tous les styles pour le footer
 * - Footer principal
 * - Footer grid & colonnes
 * - Social links & Newsletter
 * - Certifications
 * - Footer bottom
 * - Responsive mobile
 */

/* ==================================================
   FOOTER PRINCIPAL
   ================================================== */

.footer-main { 
    background: var(--gray-900); 
    color: white; 
    padding-top: 80px; 
}

.footer-container { 
    max-width: 1440px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* ==================================================
   FOOTER TOP GRID
   ================================================== */

.footer-top { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; 
    gap: 48px; 
    padding-bottom: 48px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

/* ==================================================
   LOGO & DESCRIPTION
   ================================================== */

.footer-logo { 
    margin-bottom: 24px; 
}

.footer-logo svg { 
    height: 24px; 
    width: auto; 
}

.footer-description { 
    color: rgba(255,255,255,0.7); 
    line-height: 1.6; 
    margin-bottom: 24px; 
}

/* ==================================================
   SOCIAL LINKS
   ================================================== */

.footer-social { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 24px; 
}

.footer-social-link { 
    width: 40px; 
    height: 40px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    color: white; 
    transition: all 0.3s; 
}

.footer-social-link:hover { 
    background: var(--primary-teal); 
}

/* ==================================================
   NEWSLETTER
   ================================================== */

.footer-newsletter { 
    background: rgba(255,255,255,0.1); 
    padding: 16px; 
    border-radius: 8px; 
}

.footer-newsletter-label { 
    font-size: 12px; 
    color: rgba(255,255,255,0.6); 
    margin-bottom: 8px; 
}

.footer-newsletter-form { 
    display: flex; 
    gap: 8px; 
}

.footer-newsletter-input { 
    flex: 1; 
    padding: 8px 12px; 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 6px; 
    color: white; 
}

.footer-newsletter-button { 
    padding: 8px 16px; 
    background: var(--primary-teal); 
    border: none; 
    border-radius: 6px; 
    color: white; 
    font-weight: 600; 
    cursor: pointer; 
}

/* ==================================================
   COLUMN HEADERS & LINKS
   ================================================== */

.footer-column-title { 
    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: var(--primary-teal); 
    margin-bottom: 20px; 
}

.footer-links { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.footer-link { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    font-size: 14px; 
    transition: color 0.3s; 
}

.footer-link:hover { 
    color: var(--primary-teal); 
}

/* ==================================================
   CONTACT ITEMS
   ================================================== */

.footer-contact-item { 
    color: rgba(255,255,255,0.7); 
    font-size: 14px; 
}

.footer-contact-strong { 
    color: white; 
}

/* ==================================================
   CERTIFICATIONS
   ================================================== */

.footer-certifications { 
    padding: 40px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.footer-cert-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 32px; 
}

.footer-cert-group { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
}

.footer-cert-label { 
    font-size: 12px; 
    color: rgba(255,255,255,0.5); 
    margin-bottom: 8px; 
}

.footer-cert-badges { 
    display: flex; 
    gap: 24px; 
    align-items: center; 
}

.footer-cert-badge { 
    padding: 8px 16px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 6px; 
    font-size: 14px; 
}

.footer-payment-badges { 
    display: flex; 
    gap: 16px; 
}

.footer-payment-badge { 
    padding: 8px 12px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 6px; 
    font-size: 12px; 
}

/* ==================================================
   FOOTER BOTTOM
   ================================================== */

.footer-bottom { 
    padding: 32px 0; 
}

.footer-bottom-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 24px; 
}

.footer-copyright { 
    color: rgba(255,255,255,0.5); 
    font-size: 14px; 
}

.footer-bottom-links { 
    display: flex; 
    gap: 32px; 
}

.footer-bottom-link { 
    color: rgba(255,255,255,0.5); 
    text-decoration: none; 
    font-size: 14px; 
    transition: color 0.3s; 
}

.footer-bottom-link:hover { 
    color: white; 
}

/* ==================================================
   RESPONSIVE - TABLET (1024px et moins)
   ================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .footer-top > div:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

/* ==================================================
   RESPONSIVE - MOBILE (768px et moins)
   ================================================== */

@media (max-width: 768px) {
    /* Footer principal */
    .footer-main {
        padding-top: 48px !important;
    }
    
    /* MASQUER toutes les colonnes SAUF la première (brand) */
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding-bottom: 32px !important;
    }
    
    /* Masquer toutes les colonnes sauf la première */
    .footer-top > div:not(:first-child) {
        display: none !important;
    }
    
    /* Brand section mobile - centré */
    .footer-top > div:first-child {
        max-width: 100% !important;
        text-align: center !important;
    }
    
    /* Logo centré */
    .footer-logo {
        display: flex;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }
    
    /* Texte descriptif centré */
    .footer-description {
        text-align: center !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 32px !important;
    }
    
    /* Réseaux sociaux centrés */
    .footer-social {
        justify-content: center !important;
        margin-bottom: 40px !important;
    }
    
    .footer-social-link {
        width: 44px !important;
        height: 44px !important;
    }
    
    /* MASQUER Newsletter sur mobile */
    .footer-newsletter {
        display: none !important;
    }
    
    /* MASQUER la section certifications sur mobile */
    .footer-certifications {
        display: none !important;
    }
    
    /* Footer bottom - simplifié et centré */
    .footer-bottom {
        padding: 24px 0 !important;
    }
    
    .footer-bottom-flex {
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }
    
    .footer-copyright {
        font-size: 13px !important;
        order: 1 !important;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 16px 20px !important;
        order: 2 !important;
    }
    
    .footer-bottom-link {
        font-size: 14px !important;
    }
}

/* ==================================================
   ANIMATIONS & TRANSITIONS
   ================================================== */

/* Animations d'entrée pour le footer mobile */
@media (max-width: 768px) {
    .footer-column {
        animation: fadeInUp 0.5s ease;
        animation-fill-mode: both;
    }
    
    .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; }
    .footer-column:nth-child(5) { animation-delay: 0.5s; }
    .footer-column:nth-child(6) { animation-delay: 0.6s; }
}

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

/* Touch-friendly sur mobile */
@media (hover: none) and (pointer: coarse) {
    .footer-link,
    .footer-social-link,
    .footer-newsletter-button {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}