/* =====================================================
   FOOTER MODERNE
   ===================================================== */
.footer-modern {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    margin-top: auto;
    /* Transition fluide pour l'ajustement avec la sidebar */
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================
   ADAPTATION À LA SIDEBAR (Desktop uniquement)
   =========================================== */

/* Footer avec sidebar normale (desktop ≥ 1024px) */
@media (min-width: 1024px) {
    .footer-modern {
        margin-left: 280px;
    }
    
    /* Footer avec sidebar collapsed */
    .sidebar-modern.collapsed ~ * .footer-modern,
    body.sidebar-collapsed .footer-modern {
        margin-left: 80px;
    }
}

/* Mobile et tablette : pas de marge pour la sidebar */
@media (max-width: 1023.98px) {
    .footer-modern {
        margin-left: 0;
    }
}

.btn-cta:hover {
    background: #1e293b;
    transform: scale(1.02);
}

/* Section Principale */
.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: 2rem;
}

/* Brand Moderne */
.footer-brand {
    padding-right: 2rem;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.footer-logo-container:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.footer-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.15) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-logo-container:hover::before {
    opacity: 1;
}

.footer-logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.footer-logo-fallback {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.footer-logo-fallback:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.footer-logo-icon {
    font-size: 1.75rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all var(--transition-fast);
}

.footer-logo-fallback:hover .footer-logo-icon {
    transform: scale(1.1);
}

.footer-brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.footer-brand-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand-description {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.trust-badge i {
    color: var(--accent-color);
}

.social-links-modern {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e6683c;
    color: white;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Footer Links */
.footer-links {
    padding: 0 1rem;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-title i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

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

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.footer-list a i {
    font-size: 0.75rem;
    opacity: 0.6;
    width: 16px;
}

.footer-list a:hover {
    color: white;
    padding-left: 0.25rem;
}

.footer-list a:hover i {
    color: var(--primary-color);
    opacity: 1;
}

/* Contact */
.footer-contact {
    padding-left: 1rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.125rem;
}

.contact-info a,
.contact-info span:not(.contact-label) {
    /* color: #e2e8f0; */
    text-decoration: none;
    font-size: 0.9375rem;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Stats */
.footer-stats {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* Bottom */
.footer-bottom {
    padding: 1.5rem 0;
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.copyright p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.made-with {
    margin-top: 0.25rem !important;
}

.heart-beat {
    color: #ef4444;
    animation: heartBeat 1.5s infinite;
}

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

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.payment-icons i:hover {
    color: white;
}

.app-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.app-label {
    font-size: 0.75rem;
    color: #64748b;
}

.badges {
    display: flex;
    gap: 0.75rem;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.app-badge i {
    font-size: 1.5rem;
}

.app-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-badge small {
    font-size: 0.625rem;
    color: #94a3b8;
}

.app-badge span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(2, 1fr);
    }

    .footer-contact {
        grid-column: span 2;
        padding-left: 0;
        margin-top: 1rem;
    }

    .contact-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text h3 {
        font-size: 1.25rem;
    }

    .form-input-modern {
        min-width: 220px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }

    .brand-header {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .social-links-modern {
        justify-content: center;
    }

    .footer-contact {
        grid-column: span 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-links {
        padding: 0;
    }

    .footer-list a {
        justify-content: center;
    }

    .footer-contact {
        grid-column: span 1;
    }

    .contact-items {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .payment-methods {
        flex-direction: column;
        gap: 0.5rem;
    }

    .app-badges {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .badges {
        flex-direction: column;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===========================================
   ACCESSIBILITÉ FOOTER
   =========================================== */

/* Respecter les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .footer-modern {
        transition-duration: 0.01ms !important;
    }
}

/* Amélioration du contraste en mode high contrast */
@media (prefers-contrast: high) {
    .footer-modern {
        border-top: 2px solid var(--primary-color);
    }
    
    .footer-list a,
    .social-link {
        border: 1px solid currentColor;
    }
}

