/**
 * @file b5_itk — page voyage : barre latérale (fiche pratique, agence)
 * et barre fixe sur mobile.
 */

/* ── Cartes ─────────────────────────────────────────────────────────────── */
#block-b5-itk-views-voyage-fiche,
#block-b5-itk-views-voyage-qui-sommes-nous {
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: calc(var(--b5-itk-radius, .5rem) * 1.5);
  background: #fff;
  box-shadow: var(--b5-itk-shadow);
}
#block-b5-itk-views-voyage-fiche > h2 {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ── Fiche pratique ─────────────────────────────────────────────────────── */
.b5-itk-fiche__head {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--b5-itk-night, #1c3550);
  color: #fff;
}
.b5-itk-fiche__from {
  color: var(--b5-itk-night-link, #a9c6e6);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.b5-itk-fiche__price {
  color: var(--b5-itk-sun, #f2c94c);
  font-family: var(--b5-itk-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.15;
}
.b5-itk-fiche__price--devis {
  font-size: 1.5rem;
}
.b5-itk-fiche__precision {
  margin: .5rem 0 0;
  color: #c7d6e6;
  font-size: .85rem;
}
.b5-itk-fiche__body {
  padding: 1.1rem 1.25rem 1.25rem;
}
.b5-itk-fiche__list {
  display: grid;
  gap: .75rem;
  margin: 0 0 1.1rem;
}
.b5-itk-fiche__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: .65rem;
}
.b5-itk-fiche__item::before {
  content: "";
  grid-row: span 2;
  width: 20px;
  height: 20px;
  margin-top: .1rem;
  background: var(--b5-itk-primary, #3d6f9e);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.b5-itk-fiche__item dt {
  color: var(--b5-itk-muted, #5b6673);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.b5-itk-fiche__item dd {
  margin: 0;
  font-weight: 600;
}
.b5-itk-fiche__item--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-fiche__item--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-fiche__item--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-fiche__item--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");
}

/* Dates de départ. */
.b5-itk-fiche__dates {
  margin: 0 0 1.1rem;
}
.b5-itk-fiche__dates-title,
main .b5-itk-fiche__dates-title {
  margin: 0 0 .5rem;
  padding: 0;
  color: var(--b5-itk-muted, #5b6673);
  font-family: var(--b5-itk-font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.b5-itk-fiche__dates ul {
  display: grid;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.b5-itk-fiche__dates li,
.b5-itk-fiche__dates-libres {
  margin: 0;
  padding: .55rem .75rem;
  border: 1px solid #dde7f1;
  border-radius: var(--b5-itk-radius, .5rem);
  font-size: .9rem;
}
.b5-itk-fiche__dates ul + .b5-itk-fiche__dates-libres {
  margin-top: .4rem;
}

/* Boutons. */
.b5-itk-fiche__cta,
.b5-itk-fiche__cta-secondaire {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
}
.b5-itk-fiche__cta-secondaire {
  margin-top: .6rem;
}

/* ── Agence ─────────────────────────────────────────────────────────────── */
#block-b5-itk-views-voyage-qui-sommes-nous {
  padding: 1.25rem;
}
#block-b5-itk-views-voyage-qui-sommes-nous > h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.b5-itk-agence__who {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
}
.b5-itk-agence__logo {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid #dde7f1;
  border-radius: 12px;
  background: var(--b5-itk-tint, #eef4fa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5a4a' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E") center / 30px no-repeat;
}
.b5-itk-agence__name {
  display: block;
  font-family: var(--b5-itk-font-heading);
  font-size: 1.05rem;
}
.b5-itk-agence__role {
  color: var(--b5-itk-muted, #5b6673);
  font-size: .82rem;
}
.b5-itk-agence__presentation {
  color: #3a4652;
  font-size: .92rem;
}
.b5-itk-agence__presentation.is-collapsed {
  max-height: 9.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.b5-itk-agence__toggle {
  margin: .4rem 0 .9rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--b5-itk-primary, #3d6f9e);
  font-weight: 700;
  cursor: pointer;
}
.b5-itk-agence__toggle:hover,
.b5-itk-agence__toggle:focus-visible {
  text-decoration: underline;
}
.b5-itk-agence__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: #e3f1ea;
  color: #2d5a4a;
  font-size: .76rem;
  font-weight: 700;
}
.b5-itk-agence__badge::before {
  content: "✓";
}

/* ── Barre fixe (mobile et tablette) ────────────────────────────────────── */
.b5-itk-mobile-cta {
  display: none;
}
@media (max-width: 991.98px) {
  .b5-itk-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 16px;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(28, 53, 80, .15);
  }
  .b5-itk-mobile-cta__price {
    color: var(--b5-itk-primary-active, #264a6b);
    font-family: var(--b5-itk-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
  }
  body:has(.b5-itk-mobile-cta) {
    padding-bottom: 72px;
  }
}
