/* ============================================================
   SECTION RÉFÉRENCES IMPAAKT — SLIDER
   ============================================================ */

.ipk-refs {

  --ipk-accent: #D4FF46;
  --ipk-on-accent: #1a1d0a;

  --ipk-dark: #1A1A1A;

  --ipk-text: #1a1a1a;
  --ipk-text-soft: #555;

  --ipk-gap: 20px;

  --per-view: 1;


  font-family: 'Jost', system-ui, sans-serif;

  font-size: 17px;
  line-height: 28px;

  letter-spacing: 0.5px;

  font-weight: 400;

  color: var(--ipk-text);

  max-width: 1200px;

  box-sizing: border-box;
}


/* ============================================================
   GLOBAL
   ============================================================ */

[type=button]:focus,
[type=button]:hover,
[type=submit]:focus,
[type=submit]:hover,
button:focus,
button:hover {

  background-color: #d4ff46;
  color: #fff;
  text-decoration: none;
}


.ipk-refs *,
.ipk-refs *::before,
.ipk-refs *::after {

  box-sizing: border-box;
}


/* ============================================================
   TITRE
   ============================================================ */

.ipk-refs__title {

  font-family: 'Krona One', system-ui, sans-serif;

  font-size: 35px;

  line-height: 25px;

  font-weight: 400;

  letter-spacing: 0;

  text-transform: uppercase;

  margin: 0 0 20px;
}


.ipk-refs__intro {

  color: var(--ipk-text-soft);

  margin: 0 0 40px;

  max-width: 65ch;
}


/* ============================================================
   SLIDER
   ============================================================ */

.ipk-slider__viewport {

  overflow: hidden;

  touch-action: pan-y;
}


.ipk-slider__track {

  display: flex;

  gap: var(--ipk-gap);

  will-change: transform;
}


.ipk-slider__track > .ipk-card {

  flex: 0 0 calc(
    (100% - var(--ipk-gap) * (var(--per-view) - 1))
    / var(--per-view)
  );
}


/* ============================================================
   CARTES
   ============================================================ */

.ipk-card {

  --ipk-text-soft: #c4c4c4;
  --ipk-text-muted: #8f8f8f;


  color: #f5f5f5;

  background: var(--ipk-dark);

  border-radius: 14px;

  padding: 26px;

  display: flex;

  flex-direction: column;
}


.ipk-card__name {

  font-family: 'Krona One', system-ui, sans-serif;

  font-size: 15px;

  line-height: 22px;

  font-weight: 400;

  letter-spacing: 0;

  text-transform: uppercase;

  margin: 0;
}


.ipk-card__num {

  display: inline-block;

  align-self: flex-start;

  font-family: 'Krona One', system-ui, sans-serif;

  font-size: 26px;

  line-height: 1.3;

  font-weight: 400;

  letter-spacing: 0;

  font-variant-numeric: tabular-nums;

  background: var(--ipk-accent);

  color: var(--ipk-on-accent);

  padding: 3px 10px;

  border-radius: 5px;

  margin: 12px 0 2px;

  white-space: nowrap;
}


.ipk-card__label {

  color: var(--ipk-text-soft);

  margin: 0;
}


.ipk-card p {

  text-align: justify;

  hyphens: auto;

  -webkit-hyphens: auto;
}


.ipk-card__text {

  margin: 14px 0 0;
}


.ipk-card__result {

  font-size: 22px;

  line-height: 32px;

  color: #f5f5f5;

  margin: 18px 0 0;
}


.ipk-card__source {

  margin: 14px 0 0;
}


/* ============================================================
   BARRES
   ============================================================ */

.ipk-bar {

  height: 4px;

  background: rgba(255,255,255,.14);

  border-radius: 2px;

  overflow: hidden;

  margin-top: 14px;
}


.ipk-bar > span {

  display: block;

  height: 100%;

  width: var(--w, 100%);

  background: var(--ipk-accent);
}


/* ============================================================
   CSGV — ICÔNE TÉLÉPHONE
   ============================================================ */

.ipk-phone {

  position: relative;

  width: 84px;
  height: 84px;

  margin: 0 0 14px;

  display: flex;

  align-items: center;
  justify-content: center;
}


.ipk-phone__ring {

  position: absolute;

  inset: 0;

  border-radius: 50%;

  border: 2px solid var(--ipk-accent);

  opacity: 0;
}


.ipk-phone__body {

  position: relative;

  width: 46px;
  height: 72px;

  border: 1.5px solid rgba(255,255,255,.3);

  border-radius: 9px;

  background: var(--ipk-dark);

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 7px;
}


.ipk-phone__pin {

  width: 26px;
  height: 26px;

  border-radius: 50%;

  background: var(--ipk-accent);

  color: var(--ipk-on-accent);

  display: flex;

  align-items: center;
  justify-content: center;
}


.ipk-phone svg {

  display: block;
}


.ipk-phone__cloud {

  color: var(--ipk-text-soft);
}


/* ============================================================
   CHAMPAGNE MARINA D.
   ============================================================ */

.ipk-years {

  display: flex;

  align-items: baseline;

  flex-wrap: wrap;

  gap: 4px 12px;
}


.ipk-chips {

  list-style: none;

  padding: 0;

  margin: 16px 0 0;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


.ipk-chips li {

  font-size: 14px;

  line-height: 20px;

  padding: 5px 12px;

  border-radius: 6px;

  background: var(--ipk-accent);

  color: var(--ipk-on-accent);
}


/* ============================================================
   CONTRÔLES
   ============================================================ */

.ipk-slider__controls {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  margin-top: 28px;
}


.ipk-dots {

  display: flex;

  gap: 8px;
}


.ipk-dots button {

  width: 10px;
  height: 10px;

  padding: 0;

  border: 0;

  border-radius: 5px;

  background: var(--ipk-dark);

  cursor: pointer;

  transition:
    width .35s,
    background .35s;
}


.ipk-dots button[aria-current="true"] {

  width: 30px;

  background: var(--ipk-accent);
}


.ipk-btns {

  display: flex;

  gap: 8px;
}


.ipk-btn {

  width: 44px;
  height: 44px;

  border-radius: 50%;

  border: 1px solid var(--ipk-dark);

  background: transparent;

  color: var(--ipk-dark);

  display: flex;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    background .2s,
    color .2s;
}


.ipk-btn:hover {

  background: var(--ipk-dark);

  color: var(--ipk-accent);
}


.ipk-refs button:focus-visible {

  outline: 2px solid var(--ipk-dark);

  outline-offset: 3px;
}


.ipk-btn .ipk-ico-play {

  display: none;
}


.ipk-btn[aria-pressed="true"] .ipk-ico-play {

  display: block;
}


.ipk-btn[aria-pressed="true"] .ipk-ico-pause {

  display: none;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

.ipk-anim .ipk-card {

  opacity: 0;

  transform: translateY(20px);

  transition:
    opacity .6s ease,
    transform .6s ease;
}


.ipk-anim .ipk-card.is-in {

  opacity: 1;

  transform: none;
}


.ipk-anim .ipk-bar > span {

  width: 0;

  transition:
    width 1.6s cubic-bezier(.2,.8,.2,1) .2s;
}


.ipk-anim .is-in .ipk-bar > span {

  width: var(--w, 100%);
}


.ipk-anim .ipk-phone__pin,
.ipk-anim .ipk-phone__cloud {

  opacity: 0;

  transform: translateY(6px);

  transition:
    opacity .5s,
    transform .5s;
}


.ipk-anim .is-in .ipk-phone__pin {

  opacity: 1;

  transform: none;

  transition-delay: .3s;
}


.ipk-anim .is-in .ipk-phone__cloud {

  opacity: 1;

  transform: none;

  transition-delay: .6s;
}


.ipk-anim .is-in .ipk-phone__ring {

  animation:
    ipk-pulse 2.2s ease-out .9s infinite;
}


.ipk-anim .is-in .ipk-phone__ring:nth-child(2) {

  animation-delay: 1.6s;
}


.ipk-anim .ipk-chips li {

  opacity: 0;

  transform: scale(.85);

  transition:
    opacity .35s,
    transform .35s;
}


.ipk-anim .ipk-chips li.is-in {

  opacity: 1;

  transform: none;
}


.ipk-static,
.ipk-static * {

  transition: none !important;
}


@keyframes ipk-pulse {

  0% {
    transform: scale(.4);
    opacity: .9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }

}


/* ============================================================
   RESPONSIVE — TABLET / DESKTOP
   ============================================================ */

@media (min-width: 768px) {

  .ipk-card {

    padding: 44px 52px;

    min-height: 380px;

    justify-content: center;
  }


  .ipk-card__name {

    font-size: 20px;

    line-height: 28px;
  }


  .ipk-card__num {

    font-size: 38px;

    padding: 6px 14px;

    margin-top: 18px;
  }


  .ipk-bar {

    max-width: 520px;
  }


  .ipk-card__text,
  .ipk-card__source,
  .ipk-chips {

    max-width: 68ch;
  }


  .ipk-card__result {

    font-size: 26px;

    line-height: 36px;

    max-width: 34ch;
  }

}


/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 640px) {

  .ipk-refs {

    --ipk-gap: 14px;
  }


  .ipk-refs__title {

    font-size: 26px;

    line-height: 25px;
  }


  .ipk-card {

    padding: 22px;
  }


  .ipk-card__num {

    font-size: 22px;
  }


  .ipk-card__result {

    font-size: 19px;

    line-height: 28px;
  }

  .ipk-slider__controls {
    display: none;
}

}