/* Footer SaaS Moderne - Styles pour toutes les pages */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a3a5f 100%) !important;
    color: #ffffff !important;
    padding: 50px 0 25px 0 !important;
    margin-top: auto !important;
    position: relative !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    display: block !important;
    min-height: 360px !important;
    border-top: none !important;
    text-align: left !important;
    font-size: 14px !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #6dd5fa, #a6ffcb, #3498db);
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 35px !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    justify-items: start !important;
}

.footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.footer-logo img {
    height: 35px;
    margin-right: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    padding: 0 !important;
}

.footer-made-in-france {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.footer-social {
    display: flex;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 !important;
    padding: 0 !important;
}

.social-link i {
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.social-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    color: #ffffff !important;
}

.footer-section h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    position: relative;
    padding-bottom: 6px !important;
    padding-top: 0 !important;
    line-height: 1.2 !important;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #6dd5fa);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0px !important;
    margin-top: 0px !important;
    padding: 0 !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0 !important;
    margin: 0 !important;
    display: block;
    line-height: 1.3 !important;
}

.footer-links a:hover {
    color: #3498db !important;
    transform: translateX(8px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #3498db;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px !important;
    margin-top: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px !important;
}

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

.footer-legal {
    display: flex;
    gap: 15px !important;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 14px !important;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 3px 0 !important;
    line-height: 1.3 !important;
}

.footer-legal a:hover {
    color: #3498db !important;
}

/* Styles de réinitialisation pour éviter les interférences */
footer * {
    box-sizing: border-box !important;
}

footer p, footer h1, footer h2, footer h3, footer h5, footer h6 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Exception pour les titres h4 du footer qui ont besoin de leur padding */
footer .footer-section h4 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

footer ul, footer ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Exception pour les li des footer-links qui ont besoin de leur marge */
footer .footer-links li {
    list-style: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

footer a {
    text-decoration: none !important;
}

/* Exception pour les liens du footer qui ont besoin de leur padding */
footer .footer-links a {
    margin: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Forcer la taille et l'espacement des éléments du footer */
.footer-brand, .footer-section {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.footer-bottom .footer-copyright {
    margin: 0 !important;
    padding: 5px 0 !important;
}

/* Styles pour assurer le bon affichage du body et main */
html {
    height: 100%;
}

body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
}

main {
    flex: 1 !important;
    min-height: auto !important;
    padding-bottom: 20px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
        text-align: center !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 25px 0 12px 0 !important;
        margin-top: 30px !important;
    }

    .footer-container {
        padding: 0 20px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        text-align: center !important;
    }

    .footer-brand {
        grid-column: auto !important;
        text-align: center !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
    }

    .footer-legal {
        justify-content: center !important;
        gap: 12px !important;
    }

    .footer-section {
        text-align: center !important;
        align-items: center !important;
    }

    .footer-section h4 {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .footer-section h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-links {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links li {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 0px !important;
    }

    .footer-links a {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        padding: 3px 0 !important;
    }

    .footer-legal a {
        padding: 3px 0 !important;
    }

    .footer-bottom .footer-copyright {
        padding: 3px 0 !important;
    }

    .footer-links a:hover {
        padding-left: 0 !important;
        transform: translateX(5px) !important;
    }

    .footer-links a::before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px 0 8px 0 !important;
        min-height: 280px !important;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        gap: 12px !important;
    }

    .footer-section {
        text-align: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer-section h4 {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        position: relative !important;
        margin-bottom: 6px !important;
    }

    .footer-section h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-links {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-links li {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 0px !important;
    }

    .footer-links a {
        text-align: center !important;
        display: inline-block !important;
        width: auto !important;
        padding: 2px 0 !important;
    }

    .footer-links a:hover {
        padding-left: 0 !important;
        transform: scale(1.05) !important;
    }

    .footer-links a::before {
        display: none !important;
    }

    .footer-legal {
        gap: 10px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .footer-legal a {
        font-size: 13px !important;
        padding: 2px 0 !important;
    }

    .footer-bottom .footer-copyright {
        padding: 2px 0 !important;
        font-size: 13px !important;
    }
}

/* Style anti-conflit pour garantir l'affichage du footer */
footer, footer * {
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-container {
    visibility: visible !important;
}

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

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

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