/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.newsletter-text {
    flex: 1;
    color: white;
}

.newsletter-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-text h3 i {
    color: #ffd700;
    font-size: 1.5rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-input {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 24px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 40px;
    padding: 16px 32px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.newsletter-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.newsletter-note {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-note i {
    color: #4ade80;
}

/* ==========================================================================
   FOOTER PRINCIPAL
   ========================================================================== */

.footer {
    background: #1a1a1a;
    color: #e5e5e5;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.footer-main {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ==========================================================================
   FOOTER BRAND SECTION
   ========================================================================== */

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo .logo:hover {
    color: #667eea;
}

.footer-logo .logo i {
    color: #667eea;
    font-size: 1.8rem;
}

.logo-badge {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(74, 222, 128, 0.3);
}

.footer-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #b3b3b3;
    margin-bottom: 32px;
}

.footer-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-stat {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 120px;
}

.footer-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
    transition: all 0.5s ease;
}

.footer-stat .stat-number.animate-number {
    transform: scale(1.1);
}

.footer-stat .stat-label {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.footer-certifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.certification {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #b3b3b3;
}

.certification i {
    color: #4ade80;
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER SECTIONS
   ========================================================================== */

.footer-section {
    /* Styles de base pour toutes les sections */
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 1px;
}

.footer-title i {
    color: #667eea;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 16px;
}

.footer-links a:hover i {
    color: #667eea;
    transform: scale(1.1);
}

.footer-links a.view-all {
    color: #667eea;
    font-weight: 600;
    margin-top: 8px;
}

.footer-links a.view-all:hover {
    color: #764ba2;
}

/* ==========================================================================
   CONTACT RAPIDE
   ========================================================================== */

.quick-contact {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-contact h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

.contact-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
}

.contact-hours i {
    color: #ffd700;
}

/* ==========================================================================
   APPLICATION MOBILE
   ========================================================================== */

.app-description {
    font-size: 0.95rem;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 24px;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.app-store-btn,
.google-play-btn {
    display: block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover,
.google-play-btn:hover {
    transform: translateY(-2px);
}

.app-store-btn img,
.google-play-btn img {
    width: 140px;
    height: auto;
    border-radius: 8px;
}

.qr-section {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.qr-code {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    width: 70px;
    height: 70px;
}

.qr-section p {
    font-size: 0.85rem;
    color: #b3b3b3;
    margin: 0;
}

/* ==========================================================================
   RÉSEAUX SOCIAUX
   ========================================================================== */

.social-section h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.social-link.facebook:hover {
    background: rgba(59, 89, 152, 0.2);
    border-color: #3b5998;
}

.social-link.facebook:hover i {
    color: #3b5998;
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.social-link.twitter:hover i {
    color: #1da1f2;
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
}

.social-link.instagram:hover i {
    color: #e1306c;
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
}

.social-link.linkedin:hover i {
    color: #0077b5;
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.social-link.youtube:hover i {
    color: #ff0000;
}

.social-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   SECTION LÉGALE
   ========================================================================== */

.footer-legal {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.legal-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
}

.legal-links a:hover {
    color: #667eea;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.legal-links a:hover::after {
    width: 100%;
}

.legal-info {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

.company-info {
    line-height: 1.4;
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
}

.made-with {
    margin-left: 8px;
    font-size: 0.85rem;
}

.made-with i {
    color: #ff6b6b;
    margin: 0 4px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.security-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.security-badges img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.security-badges img:hover {
    opacity: 1;
}

/* ==========================================================================
   BOUTON RETOUR EN HAUT
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.back-to-top i {
    font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 20px;
    }
}

@media (max-width: 968px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
        padding-right: 0;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .legal-grid {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .legal-info {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-text h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-input {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        border-radius: 16px;
    }
    
    .newsletter-input input {
        padding: 16px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .newsletter-input button {
        border-radius: 12px;
        justify-content: center;
    }
    
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-stat {
        min-width: auto;
    }
    
    .quick-contact {
        margin-top: 24px;
        padding: 20px;
    }
    
    .app-buttons {
        align-items: center;
    }
    
    .social-icons {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .back-to-top span {
        display: none;
    }
}

@media (max-width: 480px) {
    .newsletter-text h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-logo .logo {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .logo-badge {
        font-size: 0.75rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   ANIMATIONS SUPPLÉMENTAIRES
   ========================================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.footer-section {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

.footer-stat {
    animation: fadeInScale 0.5s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

/* ==========================================================================
   MODES SOMBRES ET CLAIRS
   ========================================================================== */

@media (prefers-color-scheme: light) {
    .footer {
        background: #f8f9fa;
        color: #333;
    }
    
    .footer-title {
        color: #333;
    }
    
    .footer-links a {
        color: #666;
    }
    
    .footer-links a:hover {
        color: #333;
    }
    
    .footer-description {
        color: #666;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .newsletter-section,
    .footer,
    .back-to-top {
        display: none;
    }
}