/* ╔═══════════════════════════════════════════════════════════════════════╗
   ║  Cosmélyse V2 — cosmelyse_footer.css                                  ║
   ║  Style du footer sombre (pied de toutes les pages)                    ║
   ╚═══════════════════════════════════════════════════════════════════════╝

   Dépendance : cosmelyse.css (pour les :root vars).
   Compatible avec navbar Cosmélyse.

   Note : les nuances de gris (#2c2c2c, #1a1a1a) du gradient de fond
   ne sont volontairement PAS rapatriées en :root — elles n'apparaissent
   nulle part ailleurs. Si elles deviennent réutilisées, on les promeut.
*/


/* ============================================
   1. FOOTER PRINCIPAL
   ============================================ */

.footer-cosmelyse {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0 0 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Effets de fond subtils (taches lumineuses rose + verte diluées) */
.footer-cosmelyse::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    pointer-events: none;
}

.footer-cosmelyse::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(143, 181, 105, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    pointer-events: none;
}

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


/* ============================================
   2. SECTION PRINCIPALE
   ============================================ */

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


/* ============================================
   3. LOGO + DESCRIPTION
   ============================================ */

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    background: white;
    width: 200px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.footer-logo img,
.footer-logo .cosm-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 350px;
    margin-bottom: 1.5rem;
}


/* ============================================
   4. RÉSEAUX SOCIAUX
   ============================================ */

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}


/* ============================================
   5. COLONNES DE LIENS
   ============================================ */

.footer-links-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-pink), transparent);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-pink);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.85rem;
    opacity: 0.6;
}


/* ============================================
   6. NEWSLETTER
   ============================================ */

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: white;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-pink);
    outline: none;
}

.newsletter-form button {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.newsletter-form button i {
    margin-left: 0.25rem;
}


/* ============================================
   7. BADGES DE CONFIANCE
   ============================================ */

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge i {
    color: var(--primary-green);
    font-size: 1.1rem;
}


/* ============================================
   8. BARRE INFÉRIEURE
   ============================================ */

.footer-bottom {
    padding: 2rem 0;
    margin-top: 3rem;
    background: rgba(0, 0, 0, 0.2);
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-pink);
}


/* ============================================
   9. BOUTON RETOUR EN HAUT
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}


/* ============================================
   10. RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .footer-cosmelyse {
        padding: 3rem 0 0 0;
        margin-top: 3rem;
    }

    .footer-main {
        padding-bottom: 2rem;
    }

    .footer-description {
        max-width: 100%;
    }

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

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

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

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        width: 180px;
        height: 45px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links-title {
        text-align: center;
    }

    .footer-links-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }
}
