/* RESET léger */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* IMAGE DE FOND + BLUR */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../../images/fond-ferme.jpeg"); /* ➜ remplace par ton image */
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.06); /* évite les bords nets avec le blur */
  z-index: -2;
}

/* Overlay sombre au-dessus de l’image */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.9));
  z-index: -1;
}

/* BOUTON PASSER EN HAUT À DROITE */
#skip {
  position: fixed;
  top: 16px;
  right: 18px;
  padding: 8px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.45);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

#skip:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* STRUCTURE PAGE */
.page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px;
}

/* BLOC INTRO */
.intro {
  max-width: 700px;
  width: 100%;
  max-height: 70vh;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* LOGO */
.logo-intro {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
}

/* TEXTE QUI DÉFILE */
.story {
  max-width: 640px;
  max-height: 45vh; /* 🔥 clé du problème */
  overflow-y: auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 0 16px 10px;

  text-shadow:
    0 2px 12px rgba(0,0,0,0.85),
    0 1px 3px rgba(0,0,0,0.9);

  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.6) transparent;
}


/* Scrollbar Chrome / Edge */
.story::-webkit-scrollbar {
  width: 6px;
}

.story::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
}

.story::-webkit-scrollbar-track {
  background: transparent;
}

.story p + p {
  margin-top: 0.8em;
}

/* BOUTON ENTRER EN BAS */
.enter-wrapper {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9;
  pointer-events: none; /* seul le bouton est cliquable */
}

#enter {
  pointer-events: auto;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f8c96b, #f28b3a);
  color: #1b1308;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
  filter: brightness(1.03);
}

#enter:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(0,0,0,0.55);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .intro {
    padding: 20px 18px 18px;
    max-height: 72vh;
    border-radius: 18px;
  }

.logo-intro {
  width: 110px;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.7));
}

  #skip {
    font-size: 0.75rem;
    padding: 6px 13px;
  }

  #enter {
    width: calc(100% - 40px);
    justify-content: center;
  }
}
