/* Fond */
body {
  margin: 0;
  color: #f0f0f0;
  background: url('./images/kingdom.png') no-repeat center center fixed; /* <- sans slash au début */
  background-size: cover;
  font-size: large;
  font-family: 'Merriweather', serif;
  background-color: #1b1b1b;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(0, 20, 0, 0.5);
  z-index: -1;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(30, 30, 30, 0.8);
  padding: 15px 30px;
}
nav a {
  color: #dcdcdc;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover { color: #a2d149; }

/* Cacher le bouton hamburger sur desktop */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #dcdcdc;
  cursor: pointer;
}

/* Nav en mode desktop */
header nav {
  display: flex;
  gap: 15px;
}

/* Media query pour mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block; /* afficher le hamburger */
  }
  header nav {
    display: none;      /* cacher le menu par défaut */
    flex-direction: column;
    background: rgba(30, 30, 30, 0.95);
    position: absolute;
    top: 60px;          /* sous le header */
    right: 0;
    width: 200px;
    padding: 10px;
    border-radius: 0 0 8px 8px;
  }
  header nav.show {
    display: flex;      /* afficher quand ouvert */
  }
}


/* Sections */
.section {
  padding: 60px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  margin: 30px;
  border-radius: 12px;
}
/* Roadmap */
.roadmap { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; }
.roadmap .item {
  background: rgba(20, 20, 20, 0.7);
  padding: 20px;
  border-radius: 8px;
  width: 220px; text-align: left;
}
.roadmap h3 { color: #ffd66b; }
.roadmap li { margin: 8px 0; }

/* CTA */
.hero { padding: 60px 20px; text-align: center; }
.btn {
  background: #a2d149; border: none; padding: 12px 30px;
  font-size: 1.2em; color: #002200; border-radius: 8px; cursor: pointer;
  transition: background 0.3s;
}
.btn:hover { background: #c4f472; }

/* Image de mascotte (10 fichiers JPG) */
.mascotte-img {
  width: 220px;
  max-width: 80vw;
  margin-top: 20px;
  border-radius: 18px;          /* carré arrondi, change si tu veux un cercle */
  box-shadow: 0 0 20px #a2d149;
  display: block;
  margin-left: auto; margin-right: auto;
}

/* Footer */
footer { text-align: center; background: rgba(30, 30, 30, 0.8); padding: 25px; }
footer a { color: #a2d149; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  overflow-x: auto; /* Scroll si trop large */
  padding: 30px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin-top: 20px;
}

.stage {
  text-align: center;
  width: 140px;
  flex-shrink: 0; /* évite que les cases se compressent */
}

.stage img {
  width: 100px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.stage img:hover {
  transform: scale(1.1);
}

.stage p {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
}

.stage img {
  height: 160px;   /* même hauteur pour tout le monde */
  width: auto;     /* largeur auto pour respecter le ratio */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}
.explication-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* espace entre les éléments */
}

.coin {
  width: 100px;   /* ajuste la taille */
  height: auto;
}

.explication-text {
  text-align: center;
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
}

h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  color: #d4af37; /* or doré */
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
  letter-spacing: 2px;
}

p {
  font-family: 'Merriweather', serif;
  color: #f5f2e7;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Cinzel Decorative', serif;
  color: #d4af37;
}

/* Section About */
#about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

@media (max-width: 768px) {
  #about {
    flex-direction: column; /* empile texte et image */
    padding: 20px;
  }
  .about-text {
    padding-right: 0;
    margin-bottom: 20px;
    text-align: center; /* optionnel pour mobile */
  }
  .about-image img {
    max-width: 80%; /* image plus flexible */
    height: auto;
  }
}


.about-text {
  flex: 1;
  padding-right: 20px;
  color: #fff; /* pour garder lisible sur fond sombre */
}

.about-text h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ffd700; /* doré pour rappeler le thème */
}

.about-text p {
  line-height: 1.6;
  font-size: 1.1em;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.6);
}

#mascotte {
  display: flex;            /* active le flexbox */
  flex-direction: column;   /* empile les éléments verticalement */
  align-items: center;      /* centre horizontalement */
  text-align: center;       /* centre le texte */
  margin-top: 50px;         /* espace au-dessus */
  margin-bottom: 50px;
  gap: 20px;                /* espace entre le titre et le bouton */
}

button {
  background: linear-gradient(135deg, #ff7f50, #ff6347); /* dégradé du bouton */
  color: #fff;               /* texte blanc */
  font-size: 1.2rem;         /* taille du texte */
  font-weight: bold;
  padding: 12px 30px;        /* espace interne du bouton */
  border: none;              /* supprime le contour par défaut */
  border-radius: 12px;       /* coins arrondis */
  cursor: pointer;           /* main au survol */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* ombre douce */
  transition: all 0.3s ease; /* transition pour hover */
}

button:hover {
  transform: translateY(-2px); /* léger mouvement vers le haut */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* ombre plus forte */
  background: linear-gradient(135deg, #ff6347, #ff4500); /* changement couleur */
}
