/* ==========================================================================
   Pied de page public — refonte « vitrine de nuit »
   Chargé après app.css : toutes les règles sont préfixées .site-footer,
   .footer-* pour ne pas dépendre de l'ordre de chargement.
   Aucune couleur en dur hors dégradés de marque définis ici.
   ========================================================================== */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
    color: #CBD5E1;
    font-size: var(--step--1);
    background:
        radial-gradient(1000px 380px at 10% -20%, rgba(79, 70, 229, 0.38), transparent 62%),
        radial-gradient(800px 320px at 92% 0%, rgba(245, 158, 11, 0.14), transparent 60%),
        linear-gradient(180deg, #0B1220 0%, #0F172A 58%, #121A2C 100%);
    border-top: 1px solid rgba(129, 140, 248, 0.20);
}

/* Halo décoratif : respiration visuelle, aucun impact sur la lecture. */
.footer-orbit {
    position: absolute;
    z-index: -1;
    top: -220px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0) 68%);
    pointer-events: none;
}

.site-footer a {
    color: #CBD5E1;
    text-decoration: none;
}

.site-footer a:focus-visible {
    outline: 2px solid #FDE68A;
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-shell {
    position: relative;
}

/* --------------------------------------------------------------------------
   1. Bandeau d'appel (WhatsApp / contact)
   -------------------------------------------------------------------------- */

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    border: 1px solid rgba(129, 140, 248, 0.28);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(79, 70, 229, 0.20) 0%, rgba(15, 23, 42, 0.55) 60%),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.footer-cta__copy {
    max-width: 38rem;
}

.footer-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #A5B4FC;
}

.footer-cta__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F59E0B;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    animation: footer-pulse 2.6s ease-out infinite;
}

.footer-cta__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.05rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-cta__text {
    margin: 0;
    max-width: 34rem;
    line-height: 1.55;
    color: #C7D2FE;
}

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

.footer-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: #0F172A;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

/* Plus spécifique que « .site-footer a » (app.css) : le bouton ambre garde
   un texte sombre, le bouton fantôme un texte clair. */
.site-footer .footer-cta__btn {
    color: #0F172A;
}

.site-footer .footer-cta__btn--ghost {
    color: #E2E8F0;
}

.footer-cta__btn:hover {
    transform: translateY(-2px);
}

.footer-cta__btn svg {
    flex: none;
}

.footer-cta__btn--ghost {
    color: #E2E8F0;
    border: 1px solid rgba(226, 232, 240, 0.32);
    background: rgba(255, 255, 255, 0.04);
}

.footer-cta__btn--ghost:hover {
    color: #FFFFFF;
    border-color: rgba(226, 232, 240, 0.6);
    background: rgba(255, 255, 255, 0.10);
}

/* --------------------------------------------------------------------------
   2. Colonnes
   -------------------------------------------------------------------------- */

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.75rem);
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.footer-brand__mark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: #FFFFFF;
    font-weight: 800;
    font-size: var(--step-1);
    letter-spacing: -0.02em;
}

.footer-brand__mark img {
    border-radius: 8px;
    background: #FFFFFF;
    padding: 2px;
}

.footer-brand__tagline {
    margin: 0 0 1.15rem;
    max-width: 22rem;
    line-height: 1.55;
    color: #94A3B8;
}

.footer-col h2 {
    margin: 0 0 0.9rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94A3B8;
}

.footer-col ul:not(.payment-icons) {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul:not(.payment-icons) a {
    display: inline-block;
    padding: 0.18rem 0;
    color: #CBD5E1;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color var(--transition), background-size 200ms ease;
}

.footer-col ul:not(.payment-icons) a:hover,
.footer-col ul:not(.payment-icons) a:focus-visible {
    color: #FFFFFF;
    background-size: 100% 1px;
}

.footer-col__meta {
    display: block;
    margin-top: 0.1rem;
    color: #94A3B8;
    font-size: 0.92em;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   3. Réseaux sociaux
   -------------------------------------------------------------------------- */

.footer-social {
    display: flex;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #E2E8F0;
    border: 1px solid rgba(226, 232, 240, 0.16);
    background: rgba(255, 255, 255, 0.04);
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.footer-social a:hover,
.footer-social a:focus-visible {
    transform: translateY(-2px);
    color: #FDE68A;
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.12);
}

/* --------------------------------------------------------------------------
   4. Paiements et devise
   -------------------------------------------------------------------------- */

.footer-col--payments .payment-icons {
    margin: 0 0 0.75rem;
}

.footer-col--payments .payment-icons img {
    background: #FFFFFF;
    border-color: rgba(226, 232, 240, 0.25);
}

.footer-payments__note {
    margin: 0 0 0.35rem;
    color: #94A3B8;
    line-height: 1.45;
}

.footer-payments__currency {
    margin: 0;
    color: #94A3B8;
}

.footer-payments__currency strong {
    color: #E2E8F0;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Barre inférieure
   -------------------------------------------------------------------------- */

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.5rem;
    margin: 0;
    padding-top: clamp(1rem, 2vw, 1.35rem);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94A3B8;
}

.footer-bottom p {
    margin: 0;
}

.footer-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(226, 232, 240, 0.20);
    color: #E2E8F0;
    font-weight: 600;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.footer-top:hover,
.footer-top:focus-visible {
    transform: translateY(-2px);
    color: #FFFFFF;
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.10);
}

.footer-top svg {
    transition: transform var(--transition);
}

.footer-top:hover svg {
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. Adaptations
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-cta__actions {
        width: 100%;
    }

    .footer-cta__btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .footer-bottom {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-cta__pulse {
        animation: none;
    }

    .footer-cta__btn,
    .footer-social a,
    .footer-top,
    .footer-top svg {
        transition: none;
    }

    .footer-cta__btn:hover,
    .footer-social a:hover,
    .footer-top:hover,
    .footer-top:hover svg {
        transform: none;
    }
}

@keyframes footer-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    }
    70% {
        box-shadow: 0 0 0 9px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Mode sombre : le pied de page reste la surface la plus profonde. */
[data-theme="dark"] .site-footer {
    background:
        radial-gradient(1000px 380px at 10% -20%, rgba(79, 70, 229, 0.30), transparent 62%),
        radial-gradient(800px 320px at 92% 0%, rgba(245, 158, 11, 0.10), transparent 60%),
        linear-gradient(180deg, #05080F 0%, #080D18 60%, #0A1120 100%);
}
