/* Annonce saisonnière : typographies VW existantes, photo et dates au premier plan. */
html.tyre-event-open,
html.tyre-event-open body {
  overflow: hidden !important;
}

html.tyre-event-open #cookieBanner {
  visibility: hidden;
}

.tyre-event {
  position: fixed;
  inset: 0;
  width: min(920px, calc(100% - 64px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #001e50;
  font-family: var(--font-vw-text, "VW Text", Arial, sans-serif);
  font-size-adjust: none;
  text-align: left;
  box-shadow: 0 24px 90px rgba(0, 15, 40, .3);
}

.tyre-event::backdrop {
  background: rgba(0, 14, 36, .72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.tyre-event,
.tyre-event * {
  box-sizing: border-box;
}

.tyre-event__surface {
  position: relative;
}

.tyre-event .tyre-event__close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #001e50;
  cursor: pointer;
  transition: background-color .18s;
}

.tyre-event__close svg {
  width: 22px;
  height: 22px;
}

.tyre-event__close:hover {
  background: #e8edf2;
}

.tyre-event__photo {
  height: 310px;
  overflow: hidden;
  background: #c6ced7;
}

.tyre-event__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.tyre-event__content {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 38px;
  padding: 32px 40px 28px;
}

.tyre-event__intro {
  align-self: center;
}

.tyre-event .tyre-event__title {
  margin: 0 0 14px;
  color: #001e50;
  font-family: var(--font-vw-head, "VW Head", Arial, sans-serif);
  font-size: 44px;
  font-size-adjust: none;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-transform: none;
}

.tyre-event__description {
  margin: 0;
  color: #465467;
  font-size: 17px;
  line-height: 1.5;
}

.tyre-event__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tyre-event__dates p {
  margin: 0;
}

.tyre-event__dates span {
  display: block;
  margin-bottom: 4px;
  color: #526174;
  font-size: 14px;
  line-height: 1.4;
}

.tyre-event__dates time {
  display: block;
  color: #001e50;
  font-family: var(--font-vw-head, "VW Head", Arial, sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.tyre-event__hours {
  margin: 16px 0 20px;
  color: #001e50;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.tyre-event__hours span {
  margin-left: 7px;
  font: inherit;
  color: inherit;
  white-space: nowrap;
}

.tyre-event .tyre-event__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #001e50;
  border-radius: 999px;
  background: #001e50;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s, border-color .18s, color .18s;
}

.tyre-event__call svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.tyre-event .tyre-event__call:hover {
  background: #ccbdab;
  border-color: #ccbdab;
  color: #1b2236;
}

.tyre-event .tyre-event__continue {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 2px 0 -8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #526174;
  font-size: 13px;
  font-size-adjust: none;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tyre-event__continue:hover {
  color: #001e50;
}

.tyre-event :focus-visible {
  outline: 3px solid #0070ba;
  outline-offset: 4px;
}

/* Le titre reçoit le focus de lecture à l'ouverture, sans cadre décoratif.
   Les boutons et liens gardent leur repère lors d'une navigation au clavier. */
.tyre-event .tyre-event__title:focus {
  outline: none;
}

@media (max-width: 700px) {
  .tyre-event {
    width: min(440px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }

  .tyre-event__photo {
    height: auto;
    aspect-ratio: 1.85;
  }

  .tyre-event__photo img {
    object-position: center;
  }

  .tyre-event .tyre-event__close {
    top: 10px;
    right: 10px;
  }

  .tyre-event__content {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 23px 24px 20px;
  }

  .tyre-event .tyre-event__title {
    margin-bottom: 8px;
    font-size: 37px;
  }

  .tyre-event__description {
    font-size: 15px;
  }

  .tyre-event__description br {
    display: none;
  }

  .tyre-event__dates {
    gap: 16px;
  }

  .tyre-event__dates time {
    font-size: 27px;
  }

  .tyre-event__hours {
    margin: 14px 0 18px;
  }

  .tyre-event .tyre-event__call {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .tyre-event__content {
    padding-inline: 20px;
  }

  .tyre-event .tyre-event__title {
    font-size: 33px;
  }

  .tyre-event__dates time {
    font-size: 23px;
  }

  .tyre-event__hours span {
    margin-left: 4px;
  }

}

@media (max-height: 730px) and (min-width: 701px) {
  .tyre-event__photo {
    height: 230px;
  }

  .tyre-event__content {
    padding-block: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tyre-event *,
  .tyre-event *::before,
  .tyre-event *::after {
    transition: none !important;
  }
}
