/* Modern Footer Styles - Alimane Invest App */
/* ============================================= */

/* Reset et base */
.footer-modern * {
    box-sizing: border-box;
}

/* Footer Container Principal */
footer {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.dark footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

/* Grille principale */
footer .grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    footer .grid {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    footer .grid {
        gap: 4rem;
    }
}

/* Section Logo et Info */
footer .lg\\:col-span-1:first-child {
    position: relative;
}

footer .lg\\:col-span-1:first-child::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

footer .lg\\:col-span-1:first-child:hover::before {
    opacity: 1;
}

/* Logo du footer */
footer img[alt="Alimane Logo"] {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

footer img[alt="Alimane Logo"]:hover {
    filter: drop-shadow(0 4px 8px rgba(34, 197, 94, 0.2));
    transform: scale(1.05);
}

/* Titres des sections */
footer h3 {
    position: relative;
    color: #111827;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.dark footer h3 {
    color: #ffffff;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 1px;
    transition: width 0.3s ease;
}

footer h3:hover::after {
    width: 3rem;
}

/* Liens du footer */
.footer-link {
    display: flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.dark .footer-link {
    color: #9ca3af;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.5s ease;
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link:hover {
    color: #22c55e;
    transform: translateX(0.5rem);
}

.dark .footer-link:hover {
    color: #4ade80;
}

.footer-link svg {
    transition: transform 0.3s ease;
}

.footer-link:hover svg {
    transform: scale(1.2);
    color: #22c55e;
}

.dark .footer-link:hover svg {
    color: #4ade80;
}

/* Liens sociaux */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #6b7280;
    background: rgba(229, 231, 235, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .social-link {
    color: #9ca3af;
    background: rgba(55, 65, 81, 0.5);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Section Newsletter */
footer .bg-gray-50 {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.dark footer .bg-gray-50 {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

footer .bg-gray-50:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark footer .bg-gray-50:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Formulaire newsletter */
footer form {
    position: relative;
}

footer input[type="email"] {
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

footer input[type="email"]:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.dark footer input[type="email"] {
    border-color: rgba(55, 65, 81, 0.8);
}

.dark footer input[type="email"]:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

footer button[type="submit"] {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

footer button[type="submit"]:hover::before {
    left: 100%;
}

footer button[type="submit"]:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Informations de contact */
footer .flex.items-center {
    transition: all 0.3s ease;
}

footer .flex.items-center:hover {
    transform: translateX(0.5rem);
}

footer .text-primary-600 {
    color: #22c55e;
}

.dark footer .text-primary-600 {
    color: #4ade80;
}

/* Footer inférieur */
footer .border-t {
    border-top: 1px solid rgba(229, 231, 235, 0.3);
}

.dark footer .border-t {
    border-top: 1px solid rgba(55, 65, 81, 0.3);
}

/* Liens du footer inférieur */
footer .bottom-footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer .bottom-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #22c55e;
    transition: width 0.3s ease;
}

footer .bottom-footer a:hover::after {
    width: 100%;
}

.dark footer .bottom-footer a::after {
    background: #4ade80;
}

/* Animations d'entrée */
@keyframes footerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer .grid > div {
    animation: footerFadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Responsive adjustments */
@media (max-width: 767px) {
    footer .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    footer .grid {
        gap: 1.5rem;
    }
    
    footer h3 {
        margin-bottom: 1rem;
    }
    
    footer .space-y-4 > li {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 639px) {
    footer .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    footer .py-12 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    footer .grid {
        gap: 1rem;
    }
}

/* Support du mode haute contraste */
@media (prefers-contrast: high) {
    footer {
        border-top-width: 2px;
    }
    
    footer .border-t {
        border-top-width: 2px;
    }
    
    footer a {
        text-decoration: underline;
    }
}

/* Support de la réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    footer * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    footer .footer-link:hover {
        transform: none;
    }
    
    footer .social-link:hover {
        transform: none;
    }
}

/* Styles d'impression */
@media print {
    footer {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
    }
    
    footer .social-link,
    footer form {
        display: none;
    }
}
