@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* === GLOBAL === */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: url(../images/MyEscape_PDV.webp) center/cover no-repeat fixed;
  color: #fff;
  text-align: center;
}

/* === HEADER / NAVIGATION === */
header {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid #ff6a00;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: #ffb74d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

nav a:hover {
  color: #ff9100;
}

/* === CONTENU PRINCIPAL === */
main {
  width: 90%;
  max-width: 850px;
  margin: 70px auto;
  padding: 35px 25px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(40, 20, 0, 0.95) 0%, rgba(10, 5, 0, 0.95) 100%);
  box-shadow: 0 0 40px rgba(255, 110, 0, 0.25), inset 0 0 20px rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.4);
  backdrop-filter: blur(6px);
  animation: fadeIn 1.2s ease;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ff7b00;
  text-shadow: 0 0 25px rgba(255, 120, 0, 0.6), 0 0 8px rgba(255, 180, 100, 0.4);
  margin-bottom: 35px;
}

/* === VIDÉO === */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 30px;
}

.video-embed {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 0, 0.3);
  box-shadow: 0 0 35px rgba(255, 110, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.video-embed:hover {
  box-shadow: 0 0 50px rgba(255, 130, 0, 0.5);
}

.alt-video {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ffb74d;
}

.alt-video a {
  color: #ffa726;
  text-decoration: underline;
}

/* === FORMULAIRE === */
form {
  background: linear-gradient(180deg, rgba(10, 5, 0, 0.9) 0%, rgba(25, 10, 0, 0.85) 100%);
  padding: 35px 25px;
  border-radius: 14px;
  box-shadow: inset 0 0 15px rgba(255, 90, 0, 0.2);
  border: 1px solid rgba(255, 120, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

h2 {
  color: #ffa947;
  text-align: center;
  text-shadow: 0 0 8px rgba(255, 130, 0, 0.6);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

label {
  display: block;
  font-weight: 600;
  color: #ffc46b;
  margin: 12px 0 6px;
}

/* === CHAMPS TEXTE === */
input[type="text"],
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 130, 0, 0.6);
  color: #fff;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #ff7b00;
  box-shadow: 0 0 15px rgba(255, 100, 0, 0.5);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* === BOUTONS === */
button {
  width: 100%;
  margin-top: 25px;
  padding: 14px 0;
  background: linear-gradient(90deg, #ff8000, #ff4500);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 110, 0, 0.3);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 130, 0, 0.6);
}

/* === CHECKLIST (Page 3) === */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 20px;
  padding: 10px 0;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffc46b;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.checklist label:hover {
  color: #ff9100;
}

input[type="checkbox"] {
  accent-color: #ff7b00;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* === TIMER === */
#timer {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: bold;
  color: #ff3c00;
  text-shadow:
    0 0 25px rgba(255, 80, 0, 0.8),
    0 0 60px rgba(255, 0, 0, 0.6);
  letter-spacing: 2px;
  z-index: 9999;
  user-select: none;
  animation: pulseTimer 1.2s infinite alternate ease-in-out;
}

/* Animation pulsée du chrono */
@keyframes pulseTimer {
  0% { transform: translateY(-50%) scale(1); opacity: 1; }
  100% { transform: translateY(-50%) scale(1.05); opacity: 0.8; }
}

/* Version mobile : plus petit et décalé en bas */
@media (max-width: 900px) {
  #timer {
    font-size: clamp(1.8rem, 9vw, 3rem);
    top: auto;
    bottom: 15px;
    right: 15px;
    transform: none;
  }
}

/* === ÉCRAN DE TRANSITION === */
#transition-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #000 60%, #1a0a00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.4s ease;
}

#transition-screen.active {
  opacity: 1;
  pointer-events: all;
}

.transition-content {
  text-align: center;
  animation: fadeIn 0.6s ease forwards;
}

#transition-timer {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px;
  color: #ff3c00;
  text-shadow: 0 0 25px rgba(255, 80, 0, 0.9);
}

#transition-screen p {
  font-size: 28px;
  color: #ffb74d;
  margin-top: 10px;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 100, 0, 0.6);
}

/* === RESPONSIVE OPTIMISATIONS === */
@media (max-width: 900px) {
  main {
    width: 94%;
    margin: 60px auto;
    padding: 25px 18px;
  }

  .checklist {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px 15px;
  }

  h1 {
    font-size: 36px;
  }

  .video-embed {
    height: auto;
  }

  form {
    padding: 20px 15px;
  }

  button {
    padding: 12px;
  }

  #timer {
    font-size: clamp(1.8rem, 9vw, 3rem);
    top: auto;
    bottom: 15px;
    right: 15px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

html, body {
  height: auto;
  overflow-y: auto !important;
}