/* Footer Styles - Neumorphique */
.np-footer {
    background: var(--np-bg-color);
    border-top: 1px solid var(--np-border-color);
    padding: var(--np-spacing-xl) 0 var(--np-spacing-lg);
    position: relative;
    overflow: hidden;
}

.np-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--np-primary-color), transparent);
    opacity: 0.3;
}

.np-footer > * {
    position: relative;
    z-index: 1;
}

/* Footer Main Content */
.np-footer-main {
    margin-bottom: var(--np-spacing-xl);
}

/* Footer Row avec espacement */
.np-footer-main .row {
    margin: 0 calc(-1 * var(--np-spacing-md));
}

.np-footer-main .row > [class*="col-"] {
    padding: 0 var(--np-spacing-md);
    margin-bottom: var(--np-spacing-lg);
}

/* Footer Widgets avec hauteur égale */
.np-footer-widget {
    background: var(--np-card-bg);
    border-radius: var(--np-border-radius-lg);
    box-shadow: var(--np-shadow-light);
    padding: var(--np-spacing-lg);
    height: 100%;
    transition: all .3s ease;
    border: 1px solid var(--np-border-color);
    display: flex;
    flex-direction: column;
}

.np-footer-widget:hover {
    box-shadow: var(--np-shadow-hover);
    transform: translateY(-2px);
}

.np-footer-widget-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Footer Widget Titles */
.np-footer-widget-title {
    color: var(--np-text-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--np-spacing-md);
    position: relative;
    padding-bottom: var(--np-spacing-sm);
    flex-shrink: 0;
}

.np-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    border-radius: 2px;
}

/* Company Description */
.np-footer-company-description {
    color: var(--np-text-muted);
    line-height: 1.6;
    margin-bottom: var(--np-spacing-md);
    font-size: 0.95rem;
    flex: 1;
}

/* Contact Info */
.np-footer-contact-info {
    margin-bottom: var(--np-spacing-md);
    flex: 1;
}

.np-contact-item {
    display: flex;
    align-items: center;
    gap: var(--np-spacing-sm);
    margin-bottom: var(--np-spacing-sm);
    color: var(--np-text-muted);
    font-size: 0.9rem;
}

.np-contact-item i {
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.np-contact-item a {
    color: var(--np-text-muted);
    text-decoration: none;
    transition: color .3s ease;
}

.np-contact-item a:hover {
    color: var(--np-primary-color);
}

/* Social Media */
.np-footer-social {
    margin-top: auto;
}

.np-social-title {
    color: var(--np-text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--np-spacing-sm);
    flex-shrink: 0;
}

.np-social-links {
    display: flex;
    gap: var(--np-spacing-sm);
    flex-wrap: wrap;
}

.np-social-link {
    background: var(--np-card-bg);
    border: 1px solid var(--np-border-color);
    border-radius: 50%;
    box-shadow: var(--np-shadow-light);
    color: var(--np-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.np-social-link::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 .5s ease;
}

.np-social-link:hover {
    box-shadow: var(--np-shadow-hover);
    transform: translateY(-2px);
    color: var(--np-primary-color);
}

.np-social-link:hover::before {
    left: 100%;
}

.np-social-link i {
    font-size: 1rem;
    z-index: 1;
}

/* Footer Menu */
.np-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.np-footer-menu li {
    margin-bottom: var(--np-spacing-sm);
}

.np-footer-menu li a {
    color: var(--np-text-muted);
    text-decoration: none;
    padding: var(--np-spacing-xs) 0;
    display: block;
    position: relative;
    transition: all .3s ease;
    border-radius: var(--np-border-radius-sm);
}

.np-footer-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    transition: width .3s ease;
    transform: translateY(-50%);
}

.np-footer-menu li a:hover {
    color: var(--np-primary-color);
    padding-left: var(--np-spacing-sm);
}

.np-footer-menu li a:hover::before {
    width: 20px;
}

/* Newsletter */
.np-newsletter-description {
    color: var(--np-text-muted);
    line-height: 1.6;
    margin-bottom: var(--np-spacing-md);
    font-size: 0.95rem;
    flex: 1;
}

.np-newsletter-form {
    margin-top: auto;
    position: relative;
}

.np-newsletter-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--np-card-bg);
    border: 1px solid var(--np-border-color);
    border-radius: var(--np-border-radius);
    box-shadow: var(--np-shadow-light);
    z-index: 0;
}

.np-newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

.np-newsletter-input-group .np-form-control {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--np-spacing-md);
    color: var(--np-text-color);
    font-size: 0.95rem;
    outline: none;
}

.np-newsletter-input-group .np-form-control::placeholder {
    color: var(--np-text-muted);
}

.np-newsletter-input-group .np-form-control:focus {
    box-shadow: none;
}

.np-newsletter-input-group .np-btn {
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    border: none;
    border-radius: 0 var(--np-border-radius) var(--np-border-radius) 0;
    color: #fff;
    padding: var(--np-spacing-md);
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: var(--np-shadow-light);
}

.np-newsletter-input-group .np-btn:hover {
    box-shadow: var(--np-shadow-hover);
    transform: translateY(-1px);
}

.np-newsletter-input-group .np-btn:active {
    transform: translateY(0);
}

/* About Us */
.np-about-us-content {
    color: var(--np-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
}

.np-about-us-content p {
    margin-bottom: var(--np-spacing-sm);
}

.np-about-us-content p:last-child {
    margin-bottom: 0;
}

/* Footer Bottom */
.np-footer-bottom {
    border-top: 1px solid var(--np-border-color);
    padding-top: var(--np-spacing-lg);
    margin-top: var(--np-spacing-lg);
}

.np-copyright,
.np-theme-credit {
    color: var(--np-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.np-copyright a,
.np-theme-credit a {
    color: var(--np-primary-color);
    text-decoration: none;
    transition: color .3s ease;
}

.np-copyright a:hover,
.np-theme-credit a:hover {
    color: var(--np-secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .np-footer {
        padding: var(--np-spacing-lg) 0 var(--np-spacing-md);
    }
    
    /* Ajuster l'espacement des colonnes sur mobile */
    .np-footer-main .row {
        margin: 0 calc(-1 * var(--np-spacing-sm));
    }
    
    .np-footer-main .row > [class*="col-"] {
        padding: 0 var(--np-spacing-sm);
        margin-bottom: var(--np-spacing-md);
    }
    
    .np-footer-widget {
        padding: var(--np-spacing-md);
        height: auto;
        min-height: 200px;
    }
    
    .np-footer-widget-title {
        font-size: 1.3rem;
    }
    
    .np-social-links {
        justify-content: center;
    }
    
    .np-newsletter-input-group {
        flex-direction: column;
        gap: var(--np-spacing-sm);
    }
    
    .np-newsletter-input-group .np-btn {
        width: 100%;
        border-radius: var(--np-border-radius);
    }
    
    .np-footer-bottom .row {
        flex-direction: column;
        gap: var(--np-spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .np-footer {
        padding: var(--np-spacing-md) 0 var(--np-spacing-sm);
    }
    
    /* Réduire encore l'espacement sur très petit écran */
    .np-footer-main .row {
        margin: 0 calc(-1 * var(--np-spacing-xs));
    }
    
    .np-footer-main .row > [class*="col-"] {
        padding: 0 var(--np-spacing-xs);
        margin-bottom: var(--np-spacing-sm);
    }
    
    .np-footer-widget {
        padding: var(--np-spacing-sm);
        height: auto;
        min-height: 180px;
    }
    
    .np-footer-widget-title {
        font-size: 1.2rem;
    }
    
    .np-social-link {
        width: 35px;
        height: 35px;
    }
    
    .np-social-link i {
        font-size: 0.9rem;
    }
    
    .np-contact-item {
        font-size: 0.85rem;
    }
    
    .np-contact-item i {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* Animation d'entrée */
.np-footer {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les widgets dynamiques */
.np-footer-widget .widget {
    margin-bottom: 0;
}

.np-footer-widget .widget-title {
    color: var(--np-text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--np-spacing-md);
}

.np-footer-widget .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-footer-widget .widget ul li {
    margin-bottom: var(--np-spacing-xs);
}

.np-footer-widget .widget ul li a {
    color: var(--np-text-muted);
    text-decoration: none;
    transition: color .3s ease;
}

.np-footer-widget .widget ul li a:hover {
    color: var(--np-primary-color);
}

/* Styles pour le mode sombre */
[data-theme="dark"] .np-footer {
    background: var(--np-bg-color-dark, #1a202c);
    border-color: var(--np-border-color-dark, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .np-footer-widget {
    background: var(--np-card-bg-dark, rgba(255, 255, 255, 0.05));
    border-color: var(--np-border-color-dark, rgba(255, 255, 255, 0.1));
}

[data-theme="dark"] .np-footer-widget:hover {
    background: var(--np-card-bg-dark-hover, rgba(255, 255, 255, 0.08));
}

/* Styles pour les liens de navigation du footer */
.np-footer-menu {
    display: flex;
    flex-direction: column;
    gap: var(--np-spacing-xs);
}

.np-footer-menu li {
    border-bottom: 1px solid var(--np-border-color);
    padding-bottom: var(--np-spacing-xs);
}

.np-footer-menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Styles pour les icônes de contact */
.np-contact-item i {
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    font-size: 0.8rem;
}

/* Styles pour les liens sociaux avec effets */
.np-social-link {
    position: relative;
    overflow: hidden;
}

.np-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    opacity: 0;
    transition: opacity .3s ease;
}

.np-social-link:hover::before {
    opacity: 1;
}

/* Newsletter form avec effet de profondeur */
.np-newsletter-form {
    position: relative;
}

.np-newsletter-form::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    border-radius: var(--np-border-radius-lg);
    opacity: 0.1;
    z-index: -1;
}

/* Styles pour les widgets spécifiques */
.np-footer-widget .widget_recent_entries ul li {
    border-bottom: 1px solid var(--np-border-color);
    padding-bottom: var(--np-spacing-xs);
}

.np-footer-widget .widget_recent_entries ul li a {
    color: var(--np-text-color);
    font-weight: 500;
}

.np-footer-widget .widget_recent_entries ul li .post-date {
    color: var(--np-text-muted);
    font-size: 0.8rem;
    display: block;
    margin-top: var(--np-spacing-xs);
}

/* Styles pour les catégories */
.np-footer-widget .widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.np-footer-widget .widget_categories ul li a {
    color: var(--np-text-color);
    flex: 1;
}

.np-footer-widget .widget_categories ul li .count {
    background: var(--np-primary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
} 