/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 599px) {
    #video-shoul {
        border-radius: 12px;
    }
    .video-replay-btn {
        bottom: 12px;
        left: 12px;
    }
    .video-sound-btn  {
        bottom: 12px;
        right: 12px;
    }
    .rsvp-floating-btn {
        right: 12px;
        bottom: 12px;
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    #fete {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 16px;
        padding-right: 16px;
    }

    #fete>* {
        width: 100%;
        max-width: 520px;
    }

    #fete .hero-carousel {
        width: 100vw;
        max-width: none;
        margin-left: calc(-50vw + 50%);
    }

    .hero-dedication {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 10px auto 0;
        font-size: 0.82rem;
        line-height: 1.55;
        padding: 8px 40px;
        border-radius: 14px;
    }

    .hero-dedication::after {
        width: 56px;
        height: 3px;
        offset-path: inset(1px round 14px);
        animation-duration: 2.95s, 1.65s;
    }

    #video-shoul {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .video-band {
        min-height: auto;
        padding: 0;
    }

    main {
        padding-top: 0;
        /* hauteur du header */
    }

    .hero {
        padding-top: 0;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-sub {
        font-size: 30px;
    }

    .hero-carousel {
        height: 220px;
    }

    .hero-carousel.carousel-fete {
        height: 220px;
    }

    .video-band-inner {
        width: 100%;
        height: auto;
        padding: 172px 12px;
    }

    .video-band-video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .video-frame {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: min(100%, 460px);
    }

    .video-carousel-bg.two-lines {
        inset: 0;
    }

    .video-carousel-bg.two-lines .slides {
        height: 160px;
    }

    .video-carousel-bg.two-lines img {
        width: auto;
        height: 100%;
        object-fit: contain;
    }

    .video-carousel-bg.two-lines::before {
        height: 5px;
        background-size: 100% 2px, 130px 24px;
        box-shadow:
            0 0 12px rgba(214, 181, 108, 0.7),
            0 0 28px rgba(214, 181, 108, 0.4);
    }

    .video-band-inner {
        padding: 172px 12px;
    }

    .site-logo {
        height: 46px;
    }

    .nav-logo {
        height: 28px;
    }

}

/* RSVP summary override (loaded after base.css to avoid cache/cascade mismatch) */
.rsvp-existing-summary {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 300px !important;
    max-width: calc(100vw - 28px) !important;
    margin: 16px auto 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: rgba(18, 23, 33, 0.97) !important;
    border: 2px solid rgba(214, 181, 108, 0.78) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42) !important;
    padding: 14px 14px !important;
    z-index: auto !important;
}

.rsvp-existing-summary__content {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 768px) {
    .rsvp-existing-summary {
        width: calc(100vw - 16px) !important;
        margin: 12px auto 0 !important;
    }
}
