/* ===================================
   FOOTER SECTION
   =================================== */

/* Force footer container to be visible */
#footer-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-section {
    background: linear-gradient(180deg, #1a1d2e 0%, #0f1117 100%);
    color: #e5e7eb;
    padding: 80px 0 0 0;
    position: relative;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===================================
   FOOTER COLUMN
   =================================== */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.footer-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f97316 0%, #8b5cf6 100%);
    border-radius: 2px;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
    margin: 0;
}

/* ===================================
   SOCIAL MEDIA ICONS
   =================================== */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #8b5cf6;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   FOOTER LINKS
   =================================== */

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 16px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 20px;
}

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

/* ===================================
   ADDRESS INFORMATION
   =================================== */

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

.footer-icon {
    width: 18px;
    height: 18px;
    color: #8b5cf6;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-link-inline {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-inline:hover {
    color: #8b5cf6;
}

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

.newsletter-form {
    margin-top: 8px;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 8px;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #6b7280;
}

.newsletter-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.newsletter-submit {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.newsletter-submit:active {
    transform: translateY(0);
}

.newsletter-submit svg {
    width: 20px;
    height: 20px;
}

.newsletter-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-legal-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: #8b5cf6;
}

.footer-separator {
    color: #4b5563;
    font-size: 13px;
}

/* ===================================
   UTILITIES
   =================================== */

/* Rendre la classe .hidden spécifique au footer pour ne pas écraser Tailwind */
.footer-section .hidden,
.newsletter-message.hidden {
    display: none !important;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .footer-section {
        padding: 50px 0 0 0;
    }

    .footer-grid {
        margin-bottom: 30px;
        gap: 32px;
    }

    .footer-heading {
        font-size: 14px;
    }

    .footer-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-social {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg,
    .social-icon i {
        width: 16px;
        height: 16px;
    }

    .social-icon img {
        width: 100%;
        height: 100%;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-link {
        font-size: 13px;
        padding-left: 12px;
    }

    .footer-info-item {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 12px;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer-copyright,
    .footer-legal-link {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .footer-section {
        padding: 30px 0 0 0;
    }

    .footer-grid {
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-column {
        gap: 12px;
    }

    .footer-heading {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .footer-divider {
        width: 50px;
        height: 2px;
        margin-bottom: 6px;
    }

    .footer-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-social {
        gap: 8px;
        margin-top: 6px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg,
    .social-icon i {
        width: 14px;
        height: 14px;
    }

    .footer-links-grid {
        gap: 10px;
    }

    .footer-link {
        font-size: 12px;
        padding-left: 10px;
    }

    .footer-link:hover {
        padding-left: 14px;
    }

    .footer-info-item {
        font-size: 12px;
        gap: 10px;
    }

    .footer-icon {
        width: 16px;
        height: 16px;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 6px;
    }

    .newsletter-input {
        padding: 12px 14px;
        font-size: 13px;
    }

    .newsletter-input::placeholder {
        font-size: 12px;
    }

    .newsletter-submit {
        width: 100%;
        height: 44px;
    }

    .newsletter-message {
        margin-top: 8px;
        padding: 8px 12px;
        font-size: 12px;
    }

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

    .footer-legal {
        gap: 6px;
    }

    .footer-separator {
        font-size: 12px;
    }
}

/* Optimisation pour très petits écrans */
@media (max-width: 480px) {
    .footer-section {
        padding: 24px 0 0 0;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }

    .footer-legal-link {
        display: block;
    }
}
