@font-face {
  font-family: 'Blanka';
  src: url('./Blanka-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 1. Pleine largeur (Full-bleed 100vw même à l'intérieur d'un conteneur WPBakery) */
.pnt-home-slider {
  --pnt-slider-height: 700px;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--pnt-slider-height);
  background-color: #080808;
  color: #ffffff;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  .pnt-home-slider {
    height: 480px;
  }
}

.pnt-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pnt-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pnt-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* 2. Image de fond lumineuse avec effet de mouvement lent (Ken Burns) */
.pnt-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.pnt-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.06);
  transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pnt-slide.is-active .pnt-slide-img {
  transform: scale(1);
}

/* Très légère baisse de luminosité sur les images non passées par le Studio */
.pnt-slide.is-fallback-image .pnt-slide-img {
  filter: brightness(0.94);
}

/* Halo radial doux uniquement derrière la zone centrale de texte pour faire ressortir les éléments sans éteindre l'image */
.pnt-slide-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 58% 52% at 50% 50%,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.12) 60%,
    rgba(0, 0, 0, 0.04) 100%
  );
  pointer-events: none;
}

/* 3. Contenu central très aéré avec animations en cascade (Auteur -> Titre -> Bouton) */
.pnt-slide-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pnt-slide-content {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 112px;
}

@media (max-width: 768px) {
  .pnt-slide-content {
    gap: 54px;
  }
}

/* --- A. AUTEUR EN HAUT : Filets lumineux animés + ombre profonde --- */
.pnt-slide-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.44em;
  color: #ffffff;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(-16px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.pnt-slide-author::before,
.pnt-slide-author::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.pnt-slide.is-active .pnt-slide-author {
  opacity: 1;
  transform: translateY(0);
}

.pnt-slide.is-active .pnt-slide-author::before,
.pnt-slide.is-active .pnt-slide-author::after {
  width: 26px;
}

/* --- B. TITRE AU CENTRE : Relief multi-couches, lueur subtile & micro-interaction au survol --- */
.pnt-slide-title {
  margin: 0;
  padding: 0;
  font-size: clamp(2rem, 4.3vw, 3.65rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.14;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.72),
    0 12px 36px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s,
    text-shadow 0.3s ease;
}

.pnt-slide.is-active .pnt-slide-title {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pnt-slide-title a {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.3s ease;
}

.pnt-slide-title a:hover,
.pnt-slide-title a:focus-visible {
  color: #ffffff !important;
  transform: translateY(-2px);
  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 16px 44px rgba(0, 0, 0, 0.7),
    0 0 32px rgba(255, 255, 255, 0.38);
}

/* --- C. BOUTON CATÉGORIE EN BAS : Glassmorphism, ombre portée 3D & reflet lumineux au survol --- */
.pnt-slide-actions {
  margin-top: 0;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.36s,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.36s;
}

.pnt-slide.is-active .pnt-slide-actions {
  opacity: 1;
  transform: translateY(0);
}

.pnt-slide-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  padding: 14px 36px;
  background-color: rgba(12, 12, 12, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.52),
    0 2px 8px rgba(0, 0, 0, 0.38),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-decoration: none !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease;
}

/* Reflet diagonal animé au survol */
.pnt-slide-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 100%
  );
  transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.pnt-slide-btn:hover::before,
.pnt-slide-btn:focus-visible::before {
  left: 140%;
}

.pnt-slide-btn:hover,
.pnt-slide-btn:focus-visible {
  background-color: #ffffff;
  color: #080808 !important;
  border-color: #ffffff;
  text-shadow: none;
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(255, 255, 255, 0.38);
}

/* 5. Contrôles de navigation réduits et discrets en bas */
.pnt-slider-controls {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  pointer-events: none;
}

.pnt-slider-arrow {
  pointer-events: auto;
  position: relative;
  z-index: 21;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pnt-slider-arrow svg {
  width: 13px;
  height: 13px;
}

.pnt-slider-arrow:hover,
.pnt-slider-arrow:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: #080808;
  transform: scale(1.08);
  outline: none;
}

.pnt-slider-dots {
  pointer-events: auto;
  position: relative;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pnt-slider-dot {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: color 0.2s ease;
}

.pnt-slider-dot:hover,
.pnt-slider-dot.is-active {
  color: #ffffff;
}

.pnt-dot-number {
  font-family: 'Blanka', sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.pnt-dot-bar {
  width: 18px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: background-color 0.25s ease, width 0.25s ease;
}

.pnt-slider-dot.is-active .pnt-dot-bar {
  background: #ffffff;
  width: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .pnt-slide,
  .pnt-slide-img,
  .pnt-slide-author,
  .pnt-slide-author::before,
  .pnt-slide-author::after,
  .pnt-slide-title,
  .pnt-slide-actions,
  .pnt-slide-btn,
  .pnt-slide-btn::before {
    transition: none !important;
  }
}
