/* Site-wide mobile adaptation — home + ticketing (sfref CSS is desktop-first) */

/* ── Marketing home ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Desktop mega-menu off; mobile chrome on */
  .ct--menu-d {
    display: none !important;
  }

  .alr-mbar {
    display: flex;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0.65rem 1rem;
    background: #0d1829;
    box-sizing: border-box;
  }

  .alr-mbar__logo {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .alr-mbar__logo img {
    display: block;
    height: 22px;
    width: auto;
    max-width: 100%;
  }

  .alr-mbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .alr-mbar__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: #0e8afe;
    color: #fff;
    font-family: "Din Pro", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(14, 138, 254, 0.3);
  }

  .alr-mbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .alr-mbar__menu svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .alr-mdrawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: #0d1829;
    color: #fff;
    padding: 1rem 1.25rem 1.5rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .alr-mdrawer[hidden] {
    display: none !important;
  }

  .alr-mdrawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .alr-mdrawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
  }

  .alr-mdrawer__close svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .alr-mdrawer__lang {
    display: flex;
    gap: 0.75rem;
    font-family: "Din Pro", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .alr-mdrawer__lang button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
  }

  .alr-mdrawer__lang button[aria-current="true"] {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .alr-mdrawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .alr-mdrawer__nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: "Din Pro", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .alr-mdrawer__cta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .alr-mdrawer__cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 20rem;
    padding: 0.95rem 1.25rem;
    border-radius: 999px;
    background: #0e8afe;
    color: #fff;
    font-family: "Din Pro", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
  }

  /* Page content clears fixed mobile bar */
  #main,
  main#main {
    padding-top: 64px;
  }

  /* Hero background video full-bleed */
  .homepage-index__header .ct--header-1,
  .ct--header-1 {
    min-height: 80vh !important;
  }

  .ct--header-1__container-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    left: 0 !important;
    bottom: 0 !important;
  }

  .ct--header-1__container-video:before {
    display: none !important;
  }

  .ct--header-1__container-video__content {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  .ct--header-1__container-video__content__video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
  }

  .ct--header-1__container__content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5.5rem 1.25rem 2rem !important;
    box-sizing: border-box;
  }

  .ct--header-1__container__content__title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.1 !important;
    max-width: 16ch;
  }

  .ct--header-1__container__content__informations {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .ct--header-1-push,
  .ct--header-1-push__card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .ct--header-1-push__card__image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  /* Reset layout columns and wrappers */
  .c-wrapper,
  .c-7,
  .m-2 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .c-full,
  .c-1, .c-2, .c-3, .c-4, .c-5, .c-6, .c-7, .c-8, .c-9, .c-10, .c-11, .c-12, .c-13, .c-14, .c-15, .c-16 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Prepare Immersion 2x2 Grid */
  .homepage-index__trip__container__content__links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .homepage-index__trip__container__content__links__block-left,
  .homepage-index__trip__container__content__links__block-right {
    grid-column: span 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .homepage-index__trip__container__content__links__square {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1.15 / 1 !important;
    box-sizing: border-box !important;
  }

  /* Key figures (Stats) section */
  .ct--key-figures__container__content__list-key-figure,
  .ct--key-figures__container__content__list-key-figure > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  .ct--key-figures__container__content__list-key-figure {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  /* Commitment section */
  .homepage-index__commitment__container__content__list-commitment {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .homepage-index__commitment__container__content__list-commitment__item {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Social networks section */
  .homepage-index__social-networks__container__content__list-social-network {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .homepage-index__social-networks__container__content__list-social-network__item {
    width: calc(50% - 0.4rem) !important;
    max-width: calc(50% - 0.4rem) !important;
  }

  /* Highlighted, Newsletter, Social links, Footer */
  .ct--highlighted__container,
  .ct--newsletter,
  .ct--social-networks,
  .ct--footer__container__content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
  }

  .ct--footer__container__content__column {
    width: 100% !important;
    max-width: 100% !important;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .alr-mbar,
  .alr-mdrawer {
    display: none !important;
  }
}

/* ── Ticketing flow ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .TwoColumnsLayout_page-body__k7yHV {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .LogoHeader_title-content__miZDN img {
    width: auto !important;
    max-width: min(200px, 55vw);
    height: auto !important;
  }

  .Breadcrumb_description__OBCW8 {
    display: none !important;
  }

  .Breadcrumb_breadcrumb__fK4dG {
    gap: 0.35rem;
  }

  .LogoHeader_container-breadcrumb___cXd4 {
    overflow-x: auto;
    max-width: 100%;
  }

  /* Mobile cart: bottom bar when collapsed, side drawer when expanded */
  .TwoColumnsLayout_page-cart-column__TiJ1p .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    background: #0d1829 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25) !important;
    z-index: 995 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important;
    box-sizing: border-box !important;
  }

  /* Hide bottom bar completely when empty */
  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-empty {
    display: none !important;
  }

  .TwoColumnsLayout_page-cart-column__TiJ1p .TwoColumnsLayout_cart__KGfsV {
    border-radius: 12px 12px 0 0 !important;
    max-height: none !important;
    width: 100% !important;
  }

  /* Mobile toggle bar when collapsed */
  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .alr-cart-mobile-toggle {
    flex: 1 1 auto !important;
    width: auto !important;
    border: 0 !important;
    padding: 0.25rem 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    color: #fff !important;
    cursor: pointer !important;
  }

  /* Mobile toggle bar when expanded (Drawer Header) */
  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .alr-cart-mobile-toggle {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #102438 !important;
    color: #fff !important;
    font: inherit !important;
    text-align: left !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
  }

  .alr-cart-mobile-toggle__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
  }

  .alr-cart-mobile-toggle__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .alr-cart-mobile-toggle__total {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00fff6;
  }

  .alr-cart-mobile-toggle__chev {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .alr-cart-mobile-toggle__chev {
    transform: rotate(180deg);
  }

  /* Collapsed: only toggle + next CTA */
  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .Countdown_countdown-wrapper__L4SiK,
  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .CartVariants_full-cart__FmjBJ > header,
  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .CartVariants_scrollable-content__1GirZ,
  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .CartVariants_full-cart__FmjBJ > footer {
    display: none !important;
  }

  /* Collapsed container resets */
  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .CartVariants_full-cart__FmjBJ {
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO:not(.is-cart-expanded) .CartVariants_full-cart__FmjBJ > button.Button_button__8B4nB {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 7rem !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    padding: 0 1.25rem !important;
    margin: 0 0 0 1rem !important;
  }

  /* Expanded side drawer */
  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    background: #0d1829 !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4) !important;
    border-radius: 16px 0 0 16px !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Drawer Backdrop */
  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    right: min(85%, 320px) !important;
    background: rgba(13, 24, 41, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    z-index: -1 !important;
    pointer-events: none !important;
    animation: fadeIn 0.3s ease-out both;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .Countdown_countdown-wrapper__L4SiK {
    padding: 0.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .CartVariants_scrollable-content__1GirZ {
    flex: 1 1 auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 1rem !important;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .CartVariants_full-cart__FmjBJ {
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .CartVariants_full-cart__FmjBJ > header {
    padding: 1rem 1rem 0.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .CartVariants_full-cart__FmjBJ > footer {
    padding: 0.75rem 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #0d1829 !important;
    margin-top: auto !important;
  }

  .TwoColumnsLayout_wrapper-fixed__kPupO.is-cart-expanded .CartVariants_full-cart__FmjBJ > button.Button_button__8B4nB {
    border-radius: 0 !important;
    min-height: 56px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* CartItem row layout */
  .CartItem_cart-item__wvGxg {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    padding: 0.65rem 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
  }
  
  .CartItem_quantity-wrapper__3_aQA {
    flex: 0 0 3.5rem !important;
    width: 3.5rem !important;
    max-width: 3.5rem !important;
    flex-shrink: 0 !important;
  }

  .CartItem_input-quantity__rLv07 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .CartItem_input-quantity__rLv07 .MuiSelect-select {
    padding-left: 0.5rem !important;
    padding-right: 1.25rem !important;
    text-align: center !important;
  }

  .CartItem_cart-item__wvGxg > span {
    flex-grow: 1 !important;
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    padding: 0 0.25rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff !important;
  }

  .CartItem_price__KLDHE {
    flex-shrink: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #00fff6 !important;
  }

  .CartItem_cart-item__wvGxg > button {
    flex-shrink: 0 !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  /* Fluid Calendar */
  .react-datepicker {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
  }
  
  .react-datepicker__month-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }

  .react-datepicker__month {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .react-datepicker__week {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .react-datepicker__day-names {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .react-datepicker__day-name,
  .react-datepicker__day {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 2px !important;
    box-sizing: border-box !important;
  }

  .SellItemCalendarDay_box-day__MVAvP {
    min-height: 48px !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
  }

  .SellItemCalendarDay_top-box__YHCNX {
    font-size: 0.85rem !important;
  }

  .SellItemCalendarDay_bottom-box__aeRyx {
    font-size: 0.65rem !important;
  }

  /* Time slots grid */
  .AccessTime_container-access-time__ZdBZG {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0 !important;
  }

  .AccessTime_container-access-time__ZdBZG .AccessTime_item-container__1E2Op {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.65rem 0.25rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }

  /* Prevent iOS auto-zoom on form inputs */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Payment and Form tweaks */
  .TicketingForm_panel__root,
  .TicketingForm_panel__payment {
    max-width: 100% !important;
  }

  .TicketingForm_payment__card .rccs {
    transform: scale(0.92);
    transform-origin: top center;
  }

  .TicketingForm_row__2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

@media (min-width: 769px) {
  .alr-cart-mobile-toggle {
    display: none !important;
  }
}
