/* ===== BASE ===== */

body {
  height: 100vh;
  overflow: hidden;
  color: #222221;
  font-family: "Inter Tight", Arial, sans-serif;
  font-weight: 700;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* background-color: #edf6fc; */
  background-image: url("grain.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ===== LE TITRE 3D ===== */
model-viewer {
  width: 100vw;
  height: 100vh;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  /* Halo lumineux */
  filter: drop-shadow(0 0 14px rgba(200, 210, 255, 0.45)) drop-shadow(0 0 60px rgba(130, 140, 255, 0.4));
}

/* ===== LES SCINTILLEMENTS ===== */
.point {
  width: 0;
  height: 0;
  transition: opacity 0.3s;
}

.point:not([data-visible]) {
  opacity: 0;
}

.etoile {
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  /* centre l'étoile sur le point */
  background: #fff;
  /* On découpe le carré blanc en étoile à 4 branches avec 8 points (en %) */
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
  animation: scintille 3s ease-in-out infinite;
  animation-delay: var(--delai);
}

/* L'etoile grossit, tourne un peu, puis disparaît */
@keyframes scintille {

  0%,
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }

  50% {
    transform: scale(1) rotate(45deg);
    opacity: 1;
  }
}



/* ===== TEXTES ===== */
.infos p,
.infos a {
  position: fixed;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
}

/* le lien s'eclaire au survol */
.infos a:hover {
  color: #ff23cf;
}


/* position texte  */

.haut-gauche {
  top: 6%;
  left: 6%;
}

.haut-droite {
  top: 8.5%;
  right: 6%;
}

.bas-gauche {
  bottom: 8.5%;
  left: 6%;
}

.bas-droite {
  bottom: 6%;
  right: 6%;
}

.haut-centre {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #d9d9e4;
}

/*responsive pour telephone le texte disparait */
@media (max-width: 640px) {
  .haut-centre {
    display: none;
  }
}