/* doc-project | paiement/assets/css/payment-pickup-scene.css | Définit la scène animée et accessible de retrait sur la page de paiement, avec camion pour Lançon, magasin pour Pélissanne surmonté d’une grande enseigne centrée à cheval entre le ciel et la toiture, voiture, client, boîtes, oiseaux et nuages synchronisés dans une boucle responsive. | Expose: classes pickupScene, pickupScene--lancon, pickupScene--pelissanne et éléments pickupScene__* | Dépend de: paiement/timeline.php, paiement/assets/css/payment-experience.css, paiement/logo.png, Font Awesome | Impacte: animation de retrait multi-PDV, identité visuelle et enseigne du magasin de Pélissanne, responsive, performances CSS et prise en charge de prefers-reduced-motion | Tables: aucune */

.pickupScene {
    --pickup-cycle: 18s;
    position: relative;
    height: 220px;
    margin: 0.7rem 0 1rem;
    overflow: hidden;
    border-radius: var(--payment-radius-md);
    background:
        linear-gradient(
            to bottom,
            #dff3ff 0,
            #dff3ff 67%,
            #d7c3a2 67%,
            #d7c3a2 79%,
            #55514e 79%,
            #45413f 100%
        );
    isolation: isolate;
}

.pickupScene__estimate {
    position: absolute;
    z-index: 20;
    top: 12px;
    right: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.2rem 0.8rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(44, 67, 78, 0.13);
    backdrop-filter: blur(7px);
}

.pickupScene__estimateLabel {
    color: var(--payment-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pickupScene__estimateTime {
    grid-row: span 2;
    color: var(--payment-text);
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 900;
    line-height: 1;
}

.pickupScene__estimateLocation {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
    color: var(--payment-primary);
    font-size: 0.77rem;
    font-weight: 800;
    line-height: 1.2;
}

.pickupScene__decor {
    position: absolute;
    inset: 0;
}

.pickupScene__parking {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46px;
    background:
        linear-gradient(
            90deg,
            transparent 0 12%,
            rgba(255, 255, 255, 0.75) 12% 12.8%,
            transparent 12.8% 32%,
            rgba(255, 255, 255, 0.75) 32% 32.8%,
            transparent 32.8% 100%
        );
}

.pickupScene__cloud {
    position: absolute;
    z-index: 2;
    width: 62px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        16px -9px 0 -2px rgba(255, 255, 255, 0.86),
        35px -4px 0 -5px rgba(255, 255, 255, 0.86);
    animation: pickupCloudDrift 22s linear infinite;
}

.pickupScene__cloud--one {
    top: 78px;
    left: -90px;
}

.pickupScene__cloud--two {
    top: 105px;
    left: -150px;
    opacity: 0.72;
    transform: scale(0.72);
    animation-duration: 28s;
    animation-delay: -10s;
}

.pickupScene__bird {
    position: absolute;
    z-index: 3;
    top: 90px;
    left: -40px;
    color: rgba(52, 62, 68, 0.7);
    font-size: 0.75rem;
    animation: pickupBirdFlight 13s linear infinite;
}

.pickupScene__bird--two {
    top: 112px;
    font-size: 0.58rem;
    animation-delay: -6s;
    animation-duration: 16s;
}

.pickupScene__location {
    position: absolute;
    z-index: 4;
    right: clamp(18px, 7vw, 72px);
    bottom: 43px;
    width: 150px;
    height: 88px;
}

.pickupScene__store {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 144px;
    height: 78px;
    border: 3px solid #8e1e26;
    border-radius: 7px 7px 2px 2px;
    background: #fff5e8;
    box-shadow: 0 7px 12px rgba(44, 31, 24, 0.18);
}

.pickupScene__storeRoof {
    position: absolute;
    top: -12px;
    right: -7px;
    left: -7px;
    height: 15px;
    border-radius: 6px 6px 2px 2px;
    background: var(--payment-primary);
    transform: skewX(-8deg);
}

.pickupScene__storeWindow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 35px;
    border: 3px solid #654f42;
    background: linear-gradient(135deg, #bce2ed, #eefaff);
}

.pickupScene__storeDoor {
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 30px;
    height: 47px;
    border: 3px solid #654f42;
    background: #b8dbe5;
}

.pickupScene__truck {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 150px;
    height: 68px;
    border-radius: 8px 5px 5px 5px;
    background: linear-gradient(135deg, #fff8ef, #ebdfd1);
    box-shadow: 0 7px 12px rgba(44, 31, 24, 0.2);
}

.pickupScene__truck::after {
    position: absolute;
    right: -28px;
    bottom: 0;
    width: 42px;
    height: 50px;
    border-radius: 4px 11px 5px 3px;
    background: var(--payment-primary);
    content: "";
}

.pickupScene__truckCab {
    position: absolute;
    z-index: 2;
    right: -21px;
    bottom: 24px;
    width: 27px;
    height: 19px;
    border-radius: 3px 8px 2px 2px;
    background: #bfe4ee;
}

.pickupScene__truckWindow {
    position: absolute;
    top: 10px;
    right: 15px;
    left: 15px;
    height: 27px;
    border: 3px solid #705246;
    border-radius: 3px;
    background: #f5c36a;
}

.pickupScene__truckWheel {
    position: absolute;
    z-index: 3;
    bottom: -8px;
    width: 21px;
    height: 21px;
    border: 5px solid #292725;
    border-radius: 50%;
    background: #aaa39d;
}

.pickupScene__truckWheel--front {
    right: -19px;
}

.pickupScene__truckWheel--rear {
    left: 18px;
}

.pickupScene__logo {
    position: absolute;
    z-index: 4;
    object-fit: contain;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12));
}

.pickupScene__logo--store {
    /*
     * Enseigne centrée sur les 144px du magasin et posée à cheval
     * entre le ciel, la toiture et le haut du mur.
     */
    top: -34px;
    left: 50%;
    width: 96px;
    height: 40px;
    padding: 3px 7px;
    border: 2px solid rgba(142, 30, 38, 0.8);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    box-sizing: border-box;
    filter: drop-shadow(0 4px 3px rgba(44, 31, 24, 0.24));
    transform: translateX(-50%);
}

.pickupScene__logo--truck {
    top: 39px;
    left: 44px;
    width: 74px;
    height: 24px;
}

.pickupScene__car {
    position: absolute;
    z-index: 8;
    bottom: 22px;
    left: -105px;
    color: #236998;
    font-size: 3.25rem;
    line-height: 1;
    filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.22));
    animation: pickupCarCycle var(--pickup-cycle) ease-in-out infinite;
}

.pickupScene__customer {
    position: absolute;
    z-index: 9;
    right: calc(clamp(18px, 7vw, 72px) + 135px);
    bottom: 43px;
    color: #40332b;
    font-size: 2.2rem;
    line-height: 1;
    opacity: 0;
    transform-origin: bottom center;
    animation: pickupCustomerCycle var(--pickup-cycle) ease-in-out infinite;
}

.pickupScene__boxes {
    position: absolute;
    right: -18px;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    color: #d08a32;
    font-size: 0.76rem;
    opacity: 0;
    animation: pickupBoxesCycle var(--pickup-cycle) linear infinite;
}

@keyframes pickupCloudDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw + 260px));
    }
}

@keyframes pickupBirdFlight {
    0% {
        transform: translateX(0) translateY(0);
    }

    45% {
        transform: translateX(55vw) translateY(-12px);
    }

    100% {
        transform: translateX(calc(100vw + 90px)) translateY(5px);
    }
}

@keyframes pickupCarCycle {
    0%,
    5% {
        left: -105px;
        transform: translateX(0);
    }

    20%,
    72% {
        left: 22%;
        transform: translateX(0);
    }

    78% {
        left: 22%;
        transform: translateX(0);
    }

    95%,
    100% {
        left: calc(100% + 110px);
        transform: translateX(0);
    }
}

@keyframes pickupCustomerCycle {
    0%,
    21%,
    79%,
    100% {
        opacity: 0;
        transform: translateX(-38vw) scale(0.92);
    }

    25% {
        opacity: 1;
        transform: translateX(-38vw) scale(1);
    }

    39%,
    50% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    66%,
    73% {
        opacity: 1;
        transform: translateX(-38vw) scale(1);
    }

    77% {
        opacity: 0;
        transform: translateX(-38vw) scale(0.92);
    }
}

@keyframes pickupBoxesCycle {
    0%,
    48%,
    100% {
        opacity: 0;
    }

    51%,
    75% {
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .pickupScene {
        height: 210px;
    }

    .pickupScene__estimate {
        top: 9px;
        right: 9px;
        left: 9px;
        padding: 0.58rem 0.65rem;
    }

    .pickupScene__estimateLabel {
        font-size: 0.58rem;
    }

    .pickupScene__estimateLocation {
        font-size: 0.68rem;
    }

    .pickupScene__location {
        right: 18px;
        transform: scale(0.88);
        transform-origin: right bottom;
    }

    .pickupScene__customer {
        right: 138px;
    }

    .pickupScene__car {
        font-size: 2.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pickupScene__cloud,
    .pickupScene__bird,
    .pickupScene__car,
    .pickupScene__customer,
    .pickupScene__boxes {
        animation: none !important;
    }

    .pickupScene__cloud--one {
        left: 14%;
    }

    .pickupScene__cloud--two {
        left: 58%;
    }

    .pickupScene__bird {
        display: none;
    }

    .pickupScene__car {
        left: 22%;
    }

    .pickupScene__customer {
        display: none;
    }
}