.intro {
  position: fixed;
  z-index: 9999;
 height: 100vh;
  width: 100%;
  pointer-events: none;
}

.intro section {
  background-color: var(--white);
  position: fixed;
   justify-content: center;
  align-items: center;
  display: flex;
 height: 100%;
  text-align: center;
  pointer-events: auto;
}

.intro section h2 {
  translate: 0 -6vh;
  pointer-events: none;
}

.intro .design {
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.intro .isnot {
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1;
}

.intro .create {
  width: 100%;
  left: 0;
  top: 0;
  line-height: 1;
       background-color: var(--black);
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  z-index: 1;
}

.create.animate {
background-image: url('./img/Texture.gif');
}

.intro .futur {
  width: 100%;
    background-color: var(--black);
  line-height: 1;
  color: var(--white);
  left: 0;
  top: 0;
  z-index: 1;
}

.intro .make {
  flex-direction: column;
  width: 100%;
  line-height: 1;
  left: 0;
  top: 0;
  z-index: 1;
}

.intro .possible {
  justify-content: start;
  align-items: start;
  position: relative;
  background-color: var(--white) !important;
top: 0vh;
  translate: 0 0;
  padding-left: 18%;
  width: 100%;
  height: 100%;
  text-align: left;
  line-height: 1;
  display:flex;
  font-size: clamp(3.5rem, 9vw, 6.25rem);
  letter-spacing: -0.05em;
  z-index: 1;
  /* overflow: hidden; */
}

@media (max-width: 780px) {
  .intro .possible {
    padding-left: 2rem;
  }
}

.possible-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.intro .possible h1 {
  padding-top: 30vh;
  z-index: 1;
}
/* @media (orientation: landscape){
.is-ipad .intro .possible h1 {
  padding-top: 17.2vh !important;
}
}

@media (orientation: portrait){
.is-ipad .intro .possible h1 {
  padding-top: 23.5vh !important;
}
} */

.intro .possible * {
  translate: 0 0;
}


.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  position: absolute;
  left: -0.3em;
  bottom: 0.03em;
  width: 112%;
  height: 0.15em;
  right: -.3em;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  background-image: url('./img/SVG/intro-underscore.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: clip-path 0.1s ease-in;
  will-change: clip-path;
  
}

.underline.animate::after {
  clip-path: polygon(-10% 0, 110% 0, 110% 100%, -10% 100%);
}

/* Bouton Skip */
.skip-intro-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 80px;
  height: 80px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  z-index: 100000; /* Augmenté pour être au-dessus de tout */
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
  filter: invert(1);
  opacity: 1;
  pointer-events: auto;
}

.skip-intro-btn:hover {
  transform: scale(1.1);
}

.skip-intro-btn:active {
  transform: scale(0.95);
}


.skip-intro-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .skip-intro-btn {
    width: 60px;
    height: 60px;
    font-size: 0.8rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.possible-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* webp animé sur mobile */
#possible-webp {
  /* Même comportement que la vidéo */
  display: none;
}

/* Optimisations pour l'webp */
img.possible-bg {
  /* Forcer le rendu hardware */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Améliorer le rendu */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .possible-bg {
    /* S'assurer que ça remplit bien l'écran */
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
  
  /* Cacher la vidéo sur mobile par défaut */
  #possible-video {
    display: none !important;
  }
}

/* Desktop */
#possible-video,
#possible-webp {
  display: none; /* Par défaut caché, JS décide lequel afficher */
}