/**
 * FOOTER ULTRA-MODERNE
 * Design professionnel avec fonctionnalités intelligentes
 */

/* ==========================================
   NEWSLETTER PREMIUM SECTION
   ========================================== */

.newsletter-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.newsletter-title {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin: 0;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.input-group-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.input-icon {
    padding-left: 1rem;
    color: #94a3b8;
    font-size: 1.25rem;
}

.form-control-modern {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: transparent;
}

.form-control-modern::placeholder {
    color: #94a3b8;
}

.btn-modern-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-modern-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* ==========================================
   MAIN FOOTER
   ========================================== */

.modern-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-main {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.brand-logo-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-icon-footer {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.brand-text-footer {
    display: flex;
    flex-direction: column;
}

.brand-name-footer {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.brand-tagline-footer {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 600;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #94a3b8;
}

/* Social Media */
.social-modern {
    display: flex;
    gap: 0.75rem;
}

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

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

/* Footer Links */
.footer-heading {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.trust-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

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

.trust-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.trust-value {
    font-size: 0.875rem;
    color: white;
    font-weight: 600;
}

/* ==========================================
   STATS BAR
   ========================================== */

.footer-stats {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

/* ==========================================
   BOTTOM BAR
   ========================================== */

.footer-bottom {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.copyright {
    color: #94a3b8;
    margin: 0;
    font-size: 0.875rem;
}

.copyright strong {
    color: white;
    font-weight: 600;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal li {
    position: relative;
}

.footer-legal li:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -0.875rem;
    color: #475569;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

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

@media (max-width: 992px) {
    .newsletter-title {
        font-size: 2rem;
    }
    
    .footer-main {
        padding: 4rem 0 2.5rem;
    }
    
    .footer-brand {
        margin-bottom: 3rem;
    }
}

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

    .newsletter-title {
        font-size: 1.75rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
    }

    .input-group-modern {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .input-icon {
        display: none;
    }

    .btn-modern-gradient {
        width: 100%;
        padding: 1rem;
        min-height: 48px;
    }

    .footer-main {
        padding: 3rem 0 2rem;
    }

    .footer-brand {
        padding-right: 0;
        margin-bottom: 2.5rem;
    }
    
    .footer-heading {
        font-size: 1rem;
        margin-top: 2rem;
    }

    .footer-stats {
        padding: 2rem 0;
    }

    .stat-item {
        margin-bottom: 1.5rem;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .stat-content {
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-legal li::after {
        display: none;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .social-modern {
        justify-content: center;
    }
    
    .trust-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .trust-item {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .newsletter-premium {
        padding: 2.5rem 0;
    }
    
    .newsletter-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .newsletter-subtitle {
        font-size: 0.95rem;
    }
    
    .form-control-modern {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-modern-gradient {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }
    
    .brand-logo-footer {
        justify-content: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-content {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .footer-legal {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.875rem;
    }
    
    .newsletter-privacy {
        font-size: 0.75rem;
    }
    
    .brand-name-footer {
        font-size: 1.5rem;
    }
    
    .brand-tagline-footer {
        font-size: 0.75rem;
    }
    
    .logo-icon-footer {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .footer-heading {
        font-size: 0.95rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .trust-item {
        min-width: 100%;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .newsletter-premium {
        padding: 2rem 0;
    }
    
    .newsletter-title {
        font-size: 1.125rem;
    }
    
    .input-group-modern {
        padding: 0.5rem;
    }
    
    .form-control-modern {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-modern-gradient {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .footer-links a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn-modern-gradient {
        min-height: 48px;
    }
    
    .back-to-top {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .newsletter-premium {
        padding: 1.5rem 0;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.875rem;
    }
    
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-stats {
        padding: 1.5rem 0;
    }
}
