/**
 * Vitrine Yango — responsive
 * - Splits + header desktop (liens écrits, style Yango) : ≥ 900px
 * - Hamburger + drawer : < 900px uniquement
 */

/* ——— Splits empilés (téléphone / tablette portrait) ——— */
@media (max-width: 899px) {
    .vy-hero-split {
        grid-template-columns: 1fr !important;
    }
    .vy-hero-split__visual {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        min-height: min(48vw, 320px);
        aspect-ratio: 4 / 3;
    }
    .vy-hero-split__visual img {
        object-fit: cover;
        object-position: center center;
    }
    .vy-hero-split__copy {
        width: 100%;
        max-width: 100%;
        padding: 24px var(--vy-gutter) 32px;
        box-sizing: border-box;
    }
    .vy-hero-split--copy-first-mobile .vy-hero-split__copy { order: 1; }
    .vy-hero-split--copy-first-mobile .vy-hero-split__visual { order: 2; }

    .vy-driver-card {
        grid-template-columns: 1fr;
    }
    .vy-driver-card__intro {
        padding: 28px var(--vy-gutter);
        text-align: center;
        align-items: center;
    }
    .vy-driver-card__intro .vy-btn {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
    .vy-driver-card__img {
        width: 100%;
        min-height: min(56vw, 360px);
        aspect-ratio: 4 / 3;
    }
    .vy-driver-card__img img {
        object-fit: cover;
        object-position: center center;
    }
    .vy-driver-card__qr {
        padding: 24px var(--vy-gutter) 32px;
    }

    .vy-h1,
    .vy-lead--block,
    .vy-hero-mobile-cta {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .vy-about,
    .vy-driver-card,
    .vy-partner,
    .vy-routes,
    .vy-lite,
    .vy-cities {
        grid-template-columns: 1fr;
    }
    .vy-faq-grid { grid-template-columns: 1fr; }
    .vy-routes__list { grid-template-columns: 1fr; }

    .vy-dl-band {
        text-align: center;
        padding: 40px var(--vy-gutter);
        box-sizing: border-box;
    }

    .vy-prod-stack {
        width: 100%;
        margin-inline: 0;
        gap: 20px;
    }
    .vy-prod-card {
        border-radius: var(--vy-radius-card);
    }

    .vy-faq-card,
    .vy-icon-card,
    .vy-svc-card {
        border-radius: var(--vy-radius-card);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .vy-svc-card__img,
    .vy-about__img,
    .vy-routes__img,
    .vy-lite__img,
    .vy-driver-card__img {
        width: 100%;
        max-width: 100%;
    }
    .vy-svc-card__img img,
    .vy-about__img img,
    .vy-routes__img img,
    .vy-lite__img img,
    .vy-driver-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    /* Mid-page : pas de full-bleed hors wrap */
    .vy-about__img,
    .vy-lite__img,
    .vy-routes__img {
        margin-inline: 0;
        border-radius: var(--vy-radius-img);
    }

    .vy-driver-block .vy-wrap {
        max-width: 100%;
    }
    .vy-driver-card {
        width: 100%;
        max-width: 100%;
        border-radius: var(--vy-radius-card);
        box-shadow: 0 2px 16px rgba(13, 27, 42, 0.06);
        gap: 0;
    }

    .vy-svc-card__body,
    .vy-svc-card__title,
    .vy-svc-card__tag,
    .vy-svc-card__sub {
        overflow-wrap: anywhere;
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* ——— Header mobile uniquement (< 900px) ——— */
@media (max-width: 899px) {
    .vy-body {
        padding-top: var(--vy-header-h-mobile);
        padding-bottom: calc(var(--vy-sticky-h-mobile) + env(safe-area-inset-bottom, 0px) + 12px);
    }

    .vy-hide-mobile-dl { display: none !important; }

    .vy-nav--desktop,
    .vy-header__actions--desktop,
    .vy-header__spacer--desktop { display: none !important; }

    .vy-header__dl-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .vy-header .gx-brandv2--md .gx-brandv2__flame { width: 28px; height: 28px; }
    .vy-header .gx-brandv2--md .gx-brandv2__name { font-size: 16px; }
    .vy-header .gx-brandv2__body {
        min-width: 0;
        overflow: hidden;
    }
    .vy-header .gx-brandv2__name {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 42vw;
    }

    .vy-dl-mobile-long { display: none !important; }
    .vy-dl-mobile-short { display: inline !important; }

    .vy-burger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .vy-theme-btn--mobile {
        display: inline-grid !important;
        width: 38px;
        height: 38px;
    }

    .vy-hero-mobile-cta .vy-btn--hero-primary { display: none !important; }
    .vy-hero-desktop-cta .vy-qr-row { display: none !important; }

    .vy-sticky__order { display: none !important; }

    /* Footer compact mobile */
    .vy-foot {
        padding-top: 24px;
        margin-top: 24px;
    }
    .vy-foot__grid {
        gap: 18px;
        padding-bottom: 16px;
    }
    .vy-foot__stores {
        margin-top: 10px;
    }
    .vy-foot__stores--dual {
        gap: 12px;
    }
    .vy-foot__store-label {
        font-size: 11px;
        margin-bottom: 2px;
    }
    .vy-foot__store-row {
        gap: 6px;
    }
    .vy-store-badge {
        padding: 8px 10px;
        gap: 8px;
        max-width: none;
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
    .vy-store-badge small { font-size: 8px; }
    .vy-store-badge strong { font-size: 12px; }
    .vy-foot__col h4 {
        margin-bottom: 8px;
        font-size: 13px;
    }
    .vy-foot__col li { margin-bottom: 5px; }
    .vy-foot__col a { font-size: 13px; }
    .vy-foot__legal {
        padding: 12px 0 16px;
    }
    .vy-foot__disclaimer {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ——— Desktop header façon Yango (≥ 900px) : liens écrits, pas de hamburger ——— */
@media (min-width: 900px) {
    .vy-body {
        padding-top: var(--vy-header-h);
        padding-bottom: calc(var(--vy-sticky-h) + 24px);
    }
    .vy-body.vy-sticky-hidden {
        padding-bottom: 24px;
    }
    .vy-header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo nav actions";
        align-items: center;
        max-width: 1440px;
        min-height: var(--vy-header-h);
        gap: 10px 16px;
        padding: 0 20px;
        overflow: visible;
    }
    .vy-header__inner > .gx-brandv2 {
        grid-area: logo;
        justify-self: start;
    }
    .vy-header__spacer--desktop { display: none !important; }
    .vy-header__dl-mobile,
    .vy-burger,
    .vy-theme-btn--mobile { display: none !important; }
    .vy-nav--desktop {
        grid-area: nav;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        min-width: 0;
        overflow: visible;
    }
    .vy-header__actions--desktop {
        grid-area: actions;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 8px;
    }
    .vy-header .gx-brandv2,
    .vy-header .gx-brandv2__body,
    .vy-header .gx-brandv2__name {
        overflow: visible;
        text-overflow: unset;
        max-width: none;
    }
    .vy-header .gx-brandv2 { flex-shrink: 0; }
    .vy-header .gx-brandv2--md .gx-brandv2__flame { width: 44px; height: 44px; }
    .vy-header .gx-brandv2--md .gx-brandv2__name { font-size: 22px; max-width: none; }

    .vy-foot__grid {
        grid-template-columns: 1.4fr 1fr 1fr auto;
        align-items: start;
    }

    /* Compacter pour tenir logo + liens + CTA comme Yango */
    .vy-nav__link {
        padding: 8px 10px;
        font-size: 14px;
    }
    .vy-btn--header-dl {
        padding: 10px 16px;
        font-size: 13px;
    }
    .vy-header__hub--track { display: none; }
    .vy-dl-desktop-long { display: none; }
    .vy-dl-desktop-short { display: inline; }
}

/* Desktop moyen : un peu plus d’air */
@media (min-width: 1100px) {
    .vy-header__inner {
        gap: 12px 20px;
        padding: 0 28px;
    }
    .vy-nav__link {
        padding: 8px 12px;
        font-size: 15px;
    }
    .vy-header .gx-brandv2--md .gx-brandv2__flame { width: 48px; height: 48px; }
    .vy-header .gx-brandv2--md .gx-brandv2__name { font-size: 24px; }
}

/* Grand desktop : libellés longs + suivi */
@media (min-width: 1400px) {
    .vy-header__inner { padding: 0 32px; }
    .vy-nav__link {
        padding: 8px 14px;
        font-size: 15px;
    }
    .vy-btn--header-dl {
        padding: 11px 20px;
        font-size: 14px;
    }
    .vy-header__hub--track { display: inline-flex; }
    .vy-dl-desktop-long { display: inline; }
    .vy-dl-desktop-short { display: none; }
    .vy-header .gx-brandv2--md .gx-brandv2__name { font-size: 26px; }
}

@media (max-width: 480px) {
    .vy-header .gx-brandv2--md .gx-brandv2__flame { width: 42px; height: 42px; }
    .vy-header .gx-brandv2--md .gx-brandv2__name { font-size: 21px; }
    .vy-header__dl-mobile {
        font-size: 12px !important;
        padding: 10px 14px !important;
        max-width: 46vw;
    }
}

@media (max-width: 360px) {
    .vy-header .gx-brandv2--md .gx-brandv2__name { font-size: 19px; }
    .vy-header .gx-brandv2--md .gx-brandv2__flame { width: 38px; height: 38px; }
}

/* Motion — alléger sur petit mobile */
@media (max-width: 480px) {
    .vy-hero-split__visual--motion img {
        animation: none;
    }
    .vy-hero-float {
        font-size: 11px;
        padding: 8px 10px;
    }
    .vy-hero-float--eta { top: 10%; right: 4%; }
    .vy-hero-float--promo { bottom: 8%; left: 4%; }
}
