:root {
  --font: 'Arial Rounded MT Bold', 'Comic Sans MS', sans-serif; /*On définit 3 polices, le système prend la première qu'il connaît*/
  --pink: #ff758c; /*On définit les couleurs qu'on va utiliser*/
  --blue: #4facfe;
  --yellow: #ffdb58;
  --bg-gradient: linear-gradient(180deg, #ff7eb3, #ff758c, #ffdb58, #4facfe); /*Pour avoir l'effet de dégradé*/
}



html {
  scroll-behavior: smooth; /*Pour avoir un aspect cohérent et que la page défile correctement sur l'écran*/
}

body {
  margin: 0;
  font-family: var(--font); /*On utilise pour tout le site la même police définie dans root*/
  background: #ff7eb3; /*Le fond est par défaut rose*/
}


.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
}

.bg-gradient {
  background: var(--bg-gradient); /*on utilise le dégradé*/
  padding-bottom: 60px;
}

.section-padding {
  padding-top: 80px;
}

/* Navbar */

.navbar {
  position: fixed;/*On veut qu'elle suive même quand on descend dans la page*/
  inset: 0 0 auto 0; /*On veut pas de marge sur les côtés et en haut*/
  
  height: 60px;
  padding: 0 5%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,255,255,.2);

  z-index: 1000;
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.nav-links button,
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  transition: var(--transition);
}

/* Boutons navbar */

.nav-links button {
  padding: 8px 16px;
  margin-left: 10px;

  border-radius: 20px;
  border: 2px solid white;

  background: transparent;
  color: white;
}

.nav-links button:hover {
  background: white;
  color: var(--pink);
}

/* Hero */

.hero {
  position: relative;

  min-height: 85vh;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;

  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)),
    url('fond1.png') center/cover;
}

.hero-content {
  animation: fadeUp .8s ease;
}

.hero-subtitle {
  letter-spacing: 4px;
  margin-bottom: 5px;
}

.hero-title {
  margin: 0 0 15px;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.hero-description {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 30px;
}

/* Boutons */

.btn {
  padding: 16px 40px;

  border-radius: 50px;

  background: white;
  color: var(--pink);

  font-size: 1.1rem;

  box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--blue);
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--blue);
}

/* Titres */

.main-title,
.section-title {
  text-align: center;
  color: white;
}

.main-title {
  padding-top: 60px;

  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;

  font-size: clamp(2rem, 5vw, 3rem);
}

.section-title {
  padding: 40px 20px 20px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}

.badge {
  padding: 4px 12px;

  border-radius: 20px;

  background: var(--yellow);
  color: #444;

  font-size: 1rem;

  animation: pulse 1.5s infinite;
}

/* Cards */

.univers-container {
  width: min(1200px, 90%);
  margin: auto;
  padding: 40px 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.card {
  padding: 20px;

  text-align: center;
  color: white;

  border-radius: 20px;

  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);

  backdrop-filter: blur(5px);

  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.img-wrapper {
  aspect-ratio: 4/5;
  overflow: hidden;

  margin-bottom: 20px;
  border-radius: 15px;
}

.img-placeholder,
.shop-img,
.map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover .img-placeholder {
  transform: scale(1.05);
}

.card-info {
  font-size: .9rem;
  line-height: 1.5;
  opacity: .9;
}

/* Infos */

.info-section {
  width: min(1100px, 90%);
  margin: 50px auto 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.mascotte {
  width: 180px;
  animation: float 3s ease-in-out infinite;
}

.map-wrapper {
  width: min(100%, 400px);
  aspect-ratio: 4/3;
}

.map-img,
.plan-parc {
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.map-img {
  border: 6px solid white;
}

.adresse-text {
  max-width: 300px;
  color: white;
  font-size: 1.2rem;
}
/* --- Styles pour le Plan du Parc --- */

.game-section {
  text-align: center;
  padding: 20px;
  color: white;
}

.game-instruction {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.plan-wrapper {
  width: min(900px, 90%); /* Limite la largeur à 900px max */
  margin: 0 auto 40px auto; /* Centre le wrapper */
  
  /* Ajout d'un effet de cadre pour le plan */
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.plan-parc {
  width: 100%;
  height: auto; /* Maintient le ratio de l'image */
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* Boutique */

.shop-section {
  margin-top: 60px;
}

.boutique {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.boutique-card {
  width: min(850px, 100%);
  padding: 25px;

  border-radius: 25px;

  background: rgba(255,255,255,.15);

  box-shadow: var(--shadow);
}

.shop-img-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 15px;
}

.prix-container {
  margin-top: 25px;

  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.prix-tag {
  padding: 12px 25px;

  border-radius: 50px;

  background: white;
  color: #444;

  font-weight: bold;
}

.footer-actions {
  margin-top: 50px;
  text-align: center;
}

/* Responsive */

@media (max-width: 768px) {

  .navbar {
    padding: 0 20px;
  }

  .info-section {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}
