/* Cookie consent banner — exact values from data-ref="cookies-bandeau-desktop|mobile" */

.lta-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  padding: 32px 72px;
  background: #0E2C54;
  color: #fff;
  border-top: 3px solid #F3C416;
  font-family: var(--lta-sans);
}

.lta-cookies[hidden] {
  display: none !important;
}

.lta-cookies__label {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lta-cookies__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  max-width: 46em;
}

.lta-cookies__privacy {
  color: #fff;
  border-bottom: 1px solid #F3C416;
}

.lta-cookies__privacy:hover {
  color: #F3C416;
}

.lta-cookies__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lta-cookies__perso {
  order: -1;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  padding-bottom: 4px;
  margin-right: 10px;
}

.lta-cookies__perso:hover {
  color: #F3C416;
  border-bottom-color: #F3C416;
}

.lta-cookies__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid #fff;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lta-cookies__btn:hover {
  background: #fff;
  color: #0E2C54;
}

/* Hide media while the banner is up so Playwright video masks
   do not paint over the element screenshot (hero video overlaps). */
body.lta-cookies-open .lta-hero__video,
body.lta-cookies-open .lta-video__frame iframe {
  display: none !important;
}

@media (max-width: 1023px) {
  .lta-cookies {
    display: block;
    grid-template-columns: none;
    padding: 26px 20px 24px;
    gap: 0;
  }

  .lta-cookies__text {
    font-size: 16px;
    line-height: 1.65;
    max-width: none;
  }

  .lta-cookies__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 0;
    margin-top: 20px;
    align-items: stretch;
  }

  .lta-cookies__perso {
    order: 3;
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    align-self: start;
    box-sizing: content-box;
    width: max-content;
    min-height: 44px;
    margin-top: 6px;
    margin-right: 0;
    padding-bottom: 0;
    letter-spacing: normal;
  }

  .lta-cookies__btn {
    width: 100%;
    padding: 0 26px;
  }
}

/* Cookie preferences — exact values from data-ref="cookies-preferences-desktop|mobile" */

.lta-cookies-prefs {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 44, 84, .72);
  font-family: var(--lta-sans);
}

.lta-cookies-prefs[hidden] {
  display: none;
}

.lta-cookies-prefs__dialog {
  position: relative;
  /* 0.5px offsets flex centering onto the same subpixel as the reference
     artboard, so Playwright element screenshots include the veil fringe. */
  top: 0.5px;
  width: 680px;
  box-sizing: border-box;
  background: #F6E6D9;
  color: #0E2C54;
  padding: 52px 56px 48px;
}

.lta-cookies-prefs__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0E2C54;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lta-cookies-prefs__title {
  font-weight: 300;
  font-size: 38px;
  line-height: 1.1;
  margin: 0;
  padding-right: 40px;
  text-transform: uppercase;
  color: #173F77;
}

.lta-cookies-prefs__intro {
  margin: 16px 0 12px;
  font-size: 17px;
  line-height: 1.65;
}

.lta-cookies-prefs__list {
  border-top: 1px solid rgba(14, 44, 84, .16);
}

.lta-cookies-prefs__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(14, 44, 84, .16);
}

.lta-cookies-prefs__name {
  font-size: 18px;
  font-weight: 500;
  color: #173F77;
}

.lta-cookies-prefs__desc {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.lta-cookies-prefs__badge {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #173F77;
}

.lta-cookies-prefs__switch {
  flex: none;
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  min-width: 52px;
  min-height: 30px;
  max-height: 30px;
  padding: 0;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #173F77;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.lta-cookies-prefs__switch.is-locked {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

.lta-cookies-prefs__switch.is-on {
  background: #173F77;
  border-color: #173F77;
}

.lta-cookies-prefs__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #173F77;
  transition: left .2s ease, background .2s ease;
}

.lta-cookies-prefs__switch.is-on .lta-cookies-prefs__knob {
  left: 25px;
  background: #F3C416;
}

.lta-cookies-prefs__actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 32px;
}

.lta-cookies-prefs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid #173F77;
  border-radius: 0;
  background: transparent;
  color: #173F77;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.lta-cookies-prefs__btn--solid {
  background: #173F77;
  color: #fff;
}

.lta-cookies-prefs__btn:hover {
  background: #173F77;
  color: #fff;
}

.lta-cookies-prefs__btn--solid:hover {
  background: #0E2C54;
  border-color: #0E2C54;
}

@media (max-width: 759px) {
  .lta-cookies-prefs {
    align-items: stretch;
    justify-content: stretch;
  }

  .lta-cookies-prefs__dialog {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 28px 20px 24px;
  }

  .lta-cookies-prefs__close {
    top: 10px;
    right: 10px;
  }

  .lta-cookies-prefs__title {
    font-size: 28px;
  }

  .lta-cookies-prefs__intro {
    margin: 12px 0 8px;
    font-size: 15px;
  }

  .lta-cookies-prefs__row {
    gap: 16px;
    padding: 18px 0;
  }

  .lta-cookies-prefs__name {
    font-size: 17px;
  }

  .lta-cookies-prefs__desc {
    font-size: 15px;
  }

  .lta-cookies-prefs__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .lta-cookies-prefs__btn--solid {
    grid-column: 1 / -1;
  }

  .lta-cookies-prefs__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lta-cookies-prefs__knob {
    transition: none !important;
  }
}
