/* ==========================================
   FOOTER RESPONSIVE - OPTIMISÉ
   ========================================== */

/* Tablettes - 1024px et moins */
@media (max-width: 1024px) {
    .footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-section:first-child .logo {
        justify-content: center;
    }
    
    .footer-section:first-child .footer-description {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-section:first-child > div[style*="display: flex"] {
        justify-content: center;
    }
}

/* Tablettes portrait - 768px et moins */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 0.25rem 0;
        display: inline-block;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 2rem;
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    /* Logo responsive */
    .footer-section .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .footer-section .logo-text {
        font-size: 1.15rem;
    }
    
    .footer-section .logo-slogan {
        font-size: 0.75rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 1rem 0;
    }
}

/* Smartphones - 480px et moins */
@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section:first-child {
        grid-column: 1;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-links {
        align-items: center;
        gap: 0.65rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        gap: 0.875rem;
    }
    
    .footer-bottom p {
        font-size: 0.825rem;
        line-height: 1.5;
    }
    
    /* Logo mobile */
    .footer-section .logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-section .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .footer-section .logo-text {
        font-size: 1.05rem;
    }
    
    .footer-section .logo-slogan {
        font-size: 0.7rem;
    }
    
    .footer-description {
        font-size: 0.875rem;
        line-height: 1.5;
        margin: 0.875rem 0;
    }
    
    /* Badges responsive */
    .footer-section > div[style*="display: flex"]:not(.logo) {
        justify-content: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .footer-section > div[style*="display: flex"]:not(.logo) span {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
    }
}

/* Très petits smartphones - 360px et moins */
@media (max-width: 360px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.75rem;
    }
    
    .footer-section h4 {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.825rem;
    }
    
    .footer-bottom p {
        font-size: 0.775rem;
    }
    
    .footer-section .logo-text {
        font-size: 1rem;
    }
    
    .footer-section .logo-slogan {
        font-size: 0.65rem;
    }
    
    .footer-description {
        font-size: 0.825rem;
    }
    
    /* Badges très petits écrans */
    .footer-section > div[style*="display: flex"]:not(.logo) span {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
    }
}

/* Fix overflow sur petits écrans */
@media (max-width: 768px) {
    .footer-content,
    .footer-section,
    .footer-links {
        overflow-x: hidden;
        max-width: 100%;
    }
}
