.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 50px;
}

.badge {
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  margin-bottom: 28px;
  background: var(--white);
}

h1.headline {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1.headline .accent {
  color: var(--accent);
}

/* Le conteneur de la galerie */

.fan-gallery-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  margin-top: 75px;
}

.fan-gallery {
  display: flex;
}

/* Chaque carte */
.fan-card {
  width: clamp(90px, 15vw, 200px);
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;

  /* Le chevauchement : chaque carte "mange" sur la précédente */
  margin-left: -55px;

  /* Le point de rotation en bas de la carte = effet éventail */
  transform-origin: bottom center;

  /* Transition douce pour le hover */
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    z-index 0s;
}

.fan-card:first-child {
  margin-left: 0;
}

.fan-card img {
  cursor: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fan-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La rotation individuelle de chaque carte, définie inline avec --r */
.fan-card {
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px));
}

/* Au survol : la carte se redresse et passe au-dessus des autres */
.fan-card:hover {
  transform: rotate(0deg) translateY(-25px) scale(1.05);
  z-index: 10;
}

/* on cache le curseur natif uniquement sur ces images */

/* La bulle qui va suivre la souris */
.cursor-bubble {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none; /* important : la bulle ne doit jamais intercepter les clics/hover */
  transform: translate(-50%, -140%); /* elle apparaît au-dessus du pointeur */

  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* la petite pointe en bas de la bulle, façon bulle de BD */
.cursor-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}

.cursor-bubble.visible {
  opacity: 1;
}
