/**
 * @file b5_itk — page voyage : en-tête pleine largeur (vue voyage_hero).
 * Ordinateur et tablette : photo au format 16:9 (recadrage de l'agence),
 * hauteur plafonnée à 70 % de l'écran, titre et étiquettes sur la photo.
 * Smartphone (< 576 px) : photo en 16:9 entière, puis titre et étiquettes dessous.
 */

.b5-itk-voyage-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: min(56.25vw, 70vh);
  min-height: 380px;
  overflow: hidden;
  background: var(--b5-itk-night, #1c3550);
  color: #fff;
}
.b5-itk-voyage-hero--sans-photo {
  height: auto;
  min-height: 300px;
  background: linear-gradient(135deg, var(--b5-itk-night, #1c3550) 0%, var(--b5-itk-primary, #3d6f9e) 100%);
}

/* Photo : remplit toute la surface, centrée (rognage réparti haut/bas). */
.b5-itk-voyage-hero__media,
.b5-itk-voyage-hero__media * {
  position: absolute;
  inset: 0;
}
.b5-itk-voyage-hero__media img,
.b5-itk-voyage-hero__media img.img-fluid {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

/* Voile de lisibilité, du bas vers le haut. */
.b5-itk-voyage-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 53, 80, .92) 0%, rgba(28, 53, 80, .55) 40%, rgba(28, 53, 80, 0) 75%);
}
.b5-itk-voyage-hero--sans-photo .b5-itk-voyage-hero__overlay {
  display: none;
}

/* Texte. */
.b5-itk-voyage-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px 2.5rem;
}
.b5-itk-voyage-hero__title,
main .b5-itk-voyage-hero__title {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  max-width: 18em;
  margin: 0 0 1rem;
  padding: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.b5-itk-voyage-hero__title::after {
  display: none;
}

/* Étiquettes. */
.b5-itk-voyage-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.b5-itk-fact {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}
.b5-itk-fact::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.b5-itk-fact--field-etat {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-4.5-7-11a7 7 0 0 1 14 0c0 6.5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}
.b5-itk-fact--field-voyage-duree {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.b5-itk-fact--field-voyage-periode {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}
.b5-itk-fact--field-voyage-type {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 8C8 10 5.9 16.2 3.8 21.3'/%3E%3Cpath d='M21 3c-1 9-6 15-15 15 0-9 6-14 15-15z'/%3E%3C/svg%3E");
}

/* ── Smartphone (< 576 px) : photo en 16:9 entière, texte dessous sur fond bleu nuit ── */
@media (max-width: 575.98px) {
  .b5-itk-voyage-hero {
    display: block;
    height: auto;
    min-height: 0;
  }
  .b5-itk-voyage-hero__media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
  }
  .b5-itk-voyage-hero__overlay {
    display: none;
  }
  .b5-itk-voyage-hero__content {
    padding: 1.25rem 16px 1.5rem;
  }
  .b5-itk-voyage-hero__title,
  main .b5-itk-voyage-hero__title {
    font-size: 1.6rem;
    margin-bottom: .85rem;
    text-shadow: none;
  }
  .b5-itk-fact {
    font-size: .82rem;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .b5-itk-voyage-hero--sans-photo {
    min-height: 0;
  }
}
