/* Adaptation tablette, notamment iPad Mini (761px à 1024px). */
@media (min-width: 761px) and (max-width: 1024px) {
  .hero {
    min-height: 0 !important;
    padding: 72px 0 40px !important;
  }

  .hero .hero__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .hero .hero__copy {
    max-width: 760px !important;
    padding: 0 48px !important;
    width: 100% !important;
  }

  .hero .hero__location {
    font-size: clamp(14px, 1.8vw, 18px) !important;
    margin-bottom: 24px !important;
  }

  .hero .hero__title {
    font-size: clamp(32px, 4.4vw, 44px) !important;
    line-height: 1.04 !important;
    margin-bottom: 20px !important;
  }

  .hero .hero-question-before {
    font-size: clamp(18px, 2.4vw, 24px) !important;
    line-height: 1.2 !important;
  }

  .hero .hero__event-before {
    font-size: clamp(18px, 2.4vw, 24px) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
  }

  .hero .hero__event-soiree {
    font-size: clamp(30px, 4.8vw, 48px) !important;
    line-height: 1.05 !important;
  }

  .hero .fav-pitch__text {
    font-size: clamp(15px, 1.8vw, 17px) !important;
    line-height: 1.5 !important;
  }

  .hero .details li {
    font-size: clamp(14px, 1.7vw, 16px) !important;
  }

  .hero .hero__actions .btn {
    font-size: clamp(15px, 1.8vw, 18px) !important;
  }

  .hero .hero__art {
    display: block !important;
    height: clamp(300px, 48vw, 460px) !important;
    inset: auto !important;
    margin-top: 40px !important;
    min-height: 0 !important;
    position: relative !important;
    width: 100% !important;
  }

  .hero .hero__art img {
    display: block !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
  }

  .hero .hero__art::after {
    display: block !important;
    background: linear-gradient(180deg, rgba(7, 27, 51, 0.08), rgba(7, 27, 51, 0.28)) !important;
  }
}

/* Surface Pro 10 en paysage : même diagonale, sans cibler l'iPad Pro 13. */
@media (min-width: 1025px) and (max-width: 1368px) and (hover: hover) and (pointer: fine) {
  #root .hero .hero__art {
    clip-path: polygon(72% 0, 100% 0, 100% 100%, 39% 100%) !important;
    grid-column: 1 / -1 !important;
    inset: 0 !important;
    width: 100% !important;
  }

  #root .hero .hero__art img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
  }
}

/* La photo remplit tout l'espace situé à droite de la diagonale sur tablette. */
@media (min-width: 761px) and (max-width: 1368px) {
  #root .hero .hero__art {
    clip-path: polygon(72% 0, 100% 0, 100% 100%, 39% 100%) !important;
    grid-column: 1 / -1 !important;
    inset: 0 !important;
    width: 100% !important;
  }

  #root .hero .hero__art img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
  }
}

html.lb-tablet-reference #root .hero .hero__art {
  clip-path: polygon(72% 0, 100% 0, 100% 100%, 39% 100%) !important;
  grid-column: 1 / -1 !important;
  inset: 0 !important;
  width: 100% !important;
}

html.lb-tablet-reference #root .hero .hero__art img {
  display: block !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

html.lb-tablet-reference #root .hero .hero__grid {
  grid-template-columns: 1fr !important;
}

html.lb-tablet-reference #root .hero .hero__copy {
  grid-column: 1 !important;
  max-width: 760px !important;
  width: 100% !important;
}

html.lb-tablet-reference #root .hero .hero__art {
  display: none !important;
}

@media (min-width: 761px) and (max-width: 1024px) and (max-height: 1024px),
       (min-width: 1025px) and (max-width: 1368px) and (hover: hover) and (pointer: fine),
       (min-width: 1025px) and (max-width: 1368px) and (max-height: 1023px) {
  #root .hero .hero__grid { grid-template-columns: 1fr !important; }
  #root .hero .hero__copy { grid-column: 1 !important; max-width: 760px !important; width: 100% !important; }
   #root .hero .hero__art,
   #root .hero .hero__art img { display: none !important; }
}

@media (min-width: 761px) {
  #root .hero .hero__title {
    font-size: 52px !important;
  }
}

@media (min-width: 1025px) {
  #root .hero .hero-question-before {
    margin-bottom: 32px !important;
  }

  #root .hero .hero__event-before,
  #root .hero .hero__event-soiree {
    transform: translateY(15px) !important;
  }
}

#root .hero .hero-question-before {
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

@media (max-width: 760px) {
  #root .hero .hero__title {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 0.98 !important;
  }

  #root .hero .hero-question-before {
    font-size: clamp(14px, 4vw, 18px) !important;
    line-height: 1.3 !important;
  }

  #root .hero .hero__event-before,
  #root .hero .hero__event-soiree {
    transform: translateY(10px) !important;
  }
}

html.lb-tablet-reference #root .hero .hero__title .hero-title-line {
  display: block !important;
  white-space: nowrap !important;
}

html.lb-tablet-reference #root .hero .hero-question-before {
  white-space: nowrap !important;
}

/* iPad Mini et Surface Pro 10 : même structure que l'iPad Pro 13. */
@media (min-width: 761px) and (max-width: 1024px) {
  .hero {
    background: var(--navy) !important;
    color: #fff !important;
    min-height: 0 !important;
    padding: clamp(72px, 8vw, 112px) 0 24px !important;
  }

  .hero .hero__grid {
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    position: relative !important;
    width: 100% !important;
  }

  .hero .hero__copy {
    grid-column: 1 !important;
    max-width: none !important;
    padding: 0 48px !important;
    width: auto !important;
  }

  .hero .hero__art {
    align-self: stretch !important;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%) !important;
    display: block !important;
    grid-column: 2 !important;
    height: 100% !important;
    inset: 0 0 0 auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    width: 50% !important;
    z-index: 0 !important;
  }

  .hero .hero__art img {
    aspect-ratio: auto !important;
    display: block !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    width: 100% !important;
  }

  .hero .hero__art::after {
    display: block !important;
    background: linear-gradient(90deg, rgba(7, 27, 51, 0.12), rgba(7, 27, 51, 0.05)) !important;
  }

  .hero .details {
    align-items: center !important;
    display: grid !important;
    grid-template-columns: auto auto !important;
    gap: 10px 0 !important;
  }

  .hero .details li:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .hero .details li.details__time {
    border-left: 2px solid rgba(255, 255, 255, 0.6) !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-left: 22px !important;
    padding-left: 22px !important;
  }

  .hero .details li:last-child {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  .reasons__grid {
    align-items: stretch !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 32px !important;
  }

  .reasons .reason {
    height: 290px !important;
    min-height: 290px !important;
  }

  .reasons .reason:nth-child(odd) {
    margin-top: 0 !important;
  }

  .reasons .reason:nth-child(even) {
    margin-top: 20px !important;
  }
}

@media (min-width: 761px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  .reasons__grid {
    align-items: stretch !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 32px !important;
  }

  .reasons .reason {
    height: 290px !important;
    min-height: 290px !important;
  }

  .reasons .reason:nth-child(even) {
    margin-top: 20px !important;
  }

  .reasons .reason:nth-child(odd) {
    margin-top: 0 !important;
  }
}

/* Priorité tablette : neutralise les règles desktop appliquées à 1024px. */
@media (min-width: 761px) and (max-width: 1024px) {
  #root .hero .hero__grid {
    display: grid !important;
    grid-template-columns: 44% 56% !important;
    position: relative !important;
    width: 100% !important;
  }

  #root .hero .hero__copy {
    grid-column: 1 !important;
    max-width: none !important;
    padding: 0 0 0 48px !important;
    width: auto !important;
  }

  #root .hero .hero__art {
    align-self: stretch !important;
    clip-path: polygon(72% 0, 100% 0, 100% 100%, 39% 100%) !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    height: 100% !important;
    inset: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    width: 100% !important;
    z-index: 0 !important;
  }

  #root .hero .hero__art img {
    aspect-ratio: auto !important;
    display: block !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    width: 100% !important;
  }

  #root .hero .details {
    align-items: center !important;
    display: grid !important;
    grid-template-columns: auto auto !important;
    gap: 10px 0 !important;
  }

  #root .hero .details li:nth-child(1) { grid-column: 1 !important; grid-row: 1 !important; }
  #root .hero .details li.details__time {
    border-left: 2px solid rgba(255, 255, 255, 0.6) !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-left: 22px !important;
    padding-left: 22px !important;
  }
  #root .hero .details li:last-child { grid-column: 1 / -1 !important; grid-row: 2 !important; }
}

/* Priorité finale pour neutraliser les variantes tablette précédentes. */
@media (min-width: 761px) and (max-width: 1024px) and (max-height: 1024px),
       (min-width: 1025px) and (max-width: 1368px) and (hover: hover) and (pointer: fine),
       (min-width: 1025px) and (max-width: 1368px) and (max-height: 1023px) {
  #root .hero .hero__grid { grid-template-columns: 1fr !important; }
  #root .hero .hero__copy { grid-column: 1 !important; max-width: 760px !important; width: 100% !important; }
  #root .hero .hero__art,
  #root .hero .hero__art img { display: none !important; }
}
