/* Extension du fond jusqu'en bas de page */
html {
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Min-height pour que le footer soit toujours en bas */
.page-content-wrapper {
    min-height: calc(100vh - 460px);
    flex: 1;
}

/* Fond fixe qui remplit l'espace en dessous du footer */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    z-index: -10;
    pointer-events: none;
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 50px 0 30px;
    margin-top: 60px;
    padding-bottom: 100px; /* Espace pour la barre fixe (58px) + marge (42px) */
    margin-bottom: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f3a103;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

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

.footer-link-list li {
    margin-bottom: 12px;
}

.footer-link-list a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link-list a:hover {
    color: #f3a103;
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #f3a103;
    transform: translateX(5px);
}

.social-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

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

.footer-copyright p,
.footer-made-with p {
    margin: 0;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-made-with p {
    font-size: 13px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #f3a103;
}

.footer-legal-links .separator {
    color: #666;
    font-size: 13px;
}

.heart {
    color: #e9575b;
    font-size: 16px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-logo-inline {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-left: 5px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-legal-links {
        justify-content: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 40px 0 90px; /* Espace pour la barre fixe */
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer-title {
        font-size: 16px;
    }

    .footer-link-list a,
    .social-link {
        font-size: 13px;
    }
}
