/* Imagilire Footer Promo - Styles pour les messages promotionnels discrets */

/* ========================================
   FOOTER PRINCIPAL
   ======================================== */

footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

footer p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
}

footer a {
    color: var(--primary-color, #36B1B3);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color, #D4542D);
    text-decoration: underline;
}

/* ========================================
   MESSAGE PROMOTIONNEL
   ======================================== */

#footerPromo {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.footer-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(54, 177, 179, 0.05);
    border: 1px solid rgba(54, 177, 179, 0.15);
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    max-width: 600px;
}

.footer-promo-link:hover {
    background: rgba(54, 177, 179, 0.1);
    border-color: rgba(54, 177, 179, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(54, 177, 179, 0.15);
    text-decoration: none;
}

.footer-promo-link i:first-child {
    color: var(--primary-color, #36B1B3);
    font-size: 0.9rem;
}

.footer-promo-link i:last-child {
    color: #6c757d;
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-promo-text {
    color: #495057;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 768px) {
    footer {
        padding: 1.25rem 0.75rem;
        margin-top: 2rem;
    }

    footer p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    #footerPromo {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .footer-promo-link {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
        padding: 0.75rem;
        font-size: 0.8rem;
        max-width: 100%;
    }

    .footer-promo-link i:first-child {
        font-size: 1rem;
    }

    .footer-promo-link i:last-child {
        display: none; /* Masquer l'icône externe sur mobile pour plus de clarté */
    }

    .footer-promo-text {
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1rem 0.5rem;
    }

    .footer-promo-link {
        padding: 0.65rem 0.5rem;
        font-size: 0.75rem;
    }

    .footer-promo-text {
        font-size: 0.75rem;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

.footer-promo-link:focus {
    outline: 2px solid var(--primary-color, #36B1B3);
    outline-offset: 2px;
}

/* Respecter les préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .footer-promo-link {
        transition: none;
    }

    .footer-promo-link:hover {
        transform: none;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    footer {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-top-color: #34495e;
    }

    footer p {
        color: #95a5a6;
    }

    #footerPromo {
        border-top-color: #34495e;
    }

    .footer-promo-link {
        background: rgba(54, 177, 179, 0.1);
        border-color: rgba(54, 177, 179, 0.2);
        color: #bdc3c7;
    }

    .footer-promo-link:hover {
        background: rgba(54, 177, 179, 0.15);
        border-color: rgba(54, 177, 179, 0.35);
    }

    .footer-promo-text {
        color: #ecf0f1;
    }
}
