/* Drops — open composition, no card chrome */

/*
 * Fixed full-viewport alpha decoration (WebM alpha only).
 * Stack: flower bg (z:-1) → deco (z:0) → page content (z:1+).
 */
.drops-deco-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

html.drops-deco-enabled .drops-deco-layer {
    display: block;
}

html.no-drops-deco .drops-deco-layer {
    display: none !important;
    visibility: hidden !important;
}

.drops-deco__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    background: transparent;
}

body.page-drops {
    overflow-x: hidden;
}

body.page-drops .shop_content {
    overflow-x: hidden;
    overflow-y: visible;
    max-height: none;
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 74%;
    margin-left: auto;
    margin-right: auto;
}

/* Keep UI above the background decoration layer */
body.page-drops .shop_content > .menu,
body.page-drops .shop_content > .page-flower-bg,
body.page-drops .shop_content > .footer {
    position: relative;
    z-index: 1;
}

/*
 * First screen = banner + menu + drop content.
 * Footer starts at the fold: walkers (absolutely above the footer line) stay visible,
 * footer links need a short scroll.
 * --drops-chrome ≈ site banner + gradient line + menu block.
 */
body.page-drops .shop_content > .page-flower-bg {
    --drops-chrome: 9rem;
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(100vh - var(--drops-chrome));
    min-height: calc(100dvh - var(--drops-chrome));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
}

body.page-drops .menu {
    align-self: stretch !important;
    width: 100%;
    box-sizing: border-box;
}

body.page-drops .footer {
    margin-top: 0;
    width: 100%;
    align-self: stretch;
}

.drops-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem) 0;
    box-sizing: border-box;
    overflow-x: clip;
}

/* ── Open split layout ── */

.drops-hero {
    --drop-accent: #7AB95D;
    --drop-accent-deep: #5A9440;
    --drop-accent-light: #CEF0BE;
    --drop-glow: rgba(122, 185, 93, 0.35);

    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    grid-template-rows: 1fr auto auto 1fr;
    align-items: center;
    column-gap: clamp(1rem, 3vw, 2.5rem);
    row-gap: 1rem;
    min-height: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
}

.drops-anim {
    opacity: 0;
    animation: drops-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--drops-delay, 0s);
}

@keyframes drops-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Copy ── */

.drops-hero__intro,
.drops-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.drops-hero__intro {
    grid-column: 1 / -1;
    grid-row: 2;
    z-index: 1;
    max-width: none;
    width: 100%;
    /* Room for the sticker sitting past the title end */
    padding-right: 2.5rem;
    box-sizing: border-box;
}

.drops-hero__actions {
    grid-column: 1;
    grid-row: 3;
    z-index: 2;
    max-width: 26rem;
}

.drops-hero__title-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-top: 0.35rem;
    padding-right: 1.35rem;
}

.drops-badge {
    --badge-tilt: 11deg;

    position: absolute;
    top: -0.15rem;
    right: -0.35rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.72rem;
    border-radius: 6px;
    color: #fff;
    background: var(--drop-accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    transform: rotate(var(--badge-tilt));
    box-shadow:
        0 2px 0 color-mix(in srgb, var(--drop-accent) 72%, black),
        0 6px 14px rgba(44, 18, 59, 0.22);
    animation: drops-badge-idle 3.4s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes drops-badge-idle {
    0%,
    100% {
        transform: rotate(var(--badge-tilt)) translateY(0);
    }
    40% {
        transform: rotate(calc(var(--badge-tilt) + 2.5deg)) translateY(-3px);
    }
    70% {
        transform: rotate(calc(var(--badge-tilt) - 1.5deg)) translateY(-1px);
    }
}

.drops-hero__title {
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.03em;
    position: relative;
    white-space: nowrap;
}

.drops-hero__title::after {
    content: '';
    display: block;
    width: 3.25rem;
    height: 4px;
    margin-top: 0.7rem;
    border-radius: 999px;
    background: var(--drop-accent);
}

.drops-hero__subtitle {
    margin: 0;
    max-width: min(38rem, 100%);
    line-height: 1.45;
    opacity: 0.85;
}

.drops-hero__cast {
    margin: 0;
    opacity: 0.7;
    letter-spacing: 0.01em;
}

.drops-hero__cta.save-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    text-decoration: none;
    background: var(--drop-accent);
    border: none;
    --btn-3d-shadow: color-mix(in srgb, var(--drop-accent) 76%, black);
}

.drops-hero__cta.save-settings-btn:hover {
    background: var(--drop-accent-deep);
}

/* ── Stage: 3-character lineup, vertically centered with copy ── */

.drops-hero__stage {
    grid-column: 2;
    grid-row: 1 / -1;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    height: clamp(340px, 42vw, 520px);
    min-height: 340px;
    align-self: center;
    overflow: visible;
}

.drops-stage__glow {
    position: absolute;
    left: 54%;
    top: 58%;
    width: 72%;
    height: 48%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--drop-glow) 0%, transparent 70%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.drops-char {
    --char-w: 48%;
    --char-z: 2;
    --char-float-dur: 4.6s;

    position: absolute;
    top: 52%;
    left: 50%;
    width: var(--char-w);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    z-index: var(--char-z);
    opacity: 0;
    transform: translate(-50%, -50%) translateY(28px);
    animation: drops-char-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--char-delay, 0.2s);
    filter: drop-shadow(0 18px 22px rgba(44, 18, 59, 0.18));
    will-change: transform, opacity;
}

@keyframes drops-char-in {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes drops-char-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.drops-char__media {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: drops-char-float var(--char-float-dur) ease-in-out infinite;
    animation-delay: calc(var(--char-delay, 0.2s) + 0.65s);
}

.drops-char__media video,
.drops-char__media .video-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
    pointer-events: none;
    user-select: none;
}

/*
 * Trio — shared vertical center with copy.
 * Group nudged right; spacing intentionally uneven (tighter on the right).
 */
.drops-char--left {
    --char-w: 41.6%;
    --char-z: 2;
    --char-float-dur: 4.5s;
    left: 22%;
    top: 52%;
}

.drops-char--front {
    --char-w: 72%;
    --char-z: 3;
    --char-float-dur: 4.3s;
    left: 52%;
    top: 50%;
}

.drops-char--right {
    --char-w: 52%;
    --char-z: 2;
    --char-float-dur: 4.7s;
    left: 80%;
    top: 52%;
}

@media (prefers-reduced-motion: reduce) {
    .drops-anim {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .drops-badge {
        animation: none;
        transform: rotate(var(--badge-tilt));
    }

    .drops-char {
        opacity: 1;
        animation: none;
        transform: translate(-50%, -50%);
    }

    .drops-char__media {
        animation: none;
    }
}

/* ── Responsive ── */

@media (max-width: 980px) {
    .drops-hero {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas: none;
        min-height: 0;
        row-gap: 0.75rem;
        column-gap: 0;
    }

    .drops-hero__intro,
    .drops-hero__actions,
    .drops-hero__stage {
        grid-column: 1;
        grid-row: auto;
    }

    .drops-hero__intro {
        order: 1;
        z-index: 1;
        padding-right: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .drops-hero__stage {
        order: 2;
        z-index: 3;
        height: clamp(300px, 78vw, 440px);
        min-height: 300px;
    }

    .drops-hero__actions {
        order: 3;
        z-index: 2;
        max-width: none;
        align-items: center;
        text-align: center;
        align-self: stretch;
    }

    .drops-hero__title {
        white-space: normal;
    }

    .drops-hero__cast {
        justify-content: center;
    }

    .drops-hero__title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .drops-hero__subtitle {
        max-width: 32rem;
    }
}

/* Gutters déjà gérés par .shop_content */
@media (max-width: 1024px) {
    .drops-page {
        padding-inline: 0;
    }
}

@media (max-width: 560px) {
    .drops-hero__title {
        font-size: 3.25rem;
    }

    .drops-char--left {
        left: 22%;
        --char-w: 43.2%;
    }

    .drops-char--front {
        left: 54%;
        --char-w: 82%;
    }

    .drops-char--right {
        left: 86%;
        --char-w: 54%;
    }
}
