/* Variables */
:root {
  --primary-color: #37FF8B;
  --secondary-color: #FF5C00;
  --dark-bg: #242424;
  --light-bg: #f5f5f5;
  --text-light: #ffffff;
  --text-dark: #121212;
  --accent-color: #9000FF;
  --minecraft-font: 'Minecraft', 'VT323', monospace;
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  background-image: url('https://th.bing.com/th/id/R.8485a1cc2acb1ce57f1f5c75ce32cfc9?rik=ym21E%2b6TWr19tw&riu=http%3a%2f%2ffr-minecraft.net%2fupload%2fwallpapers%2fimages%2ffr-minecraft_wallpaper_HNHV.png&ehk=7DVAgS9%2fFhQbepcjnTIhFglXg2DaGtWJiRZaFMkGQtw%3d&risl=1&pid=ImgRaw&r=0');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Overlay pour améliorer la lisibilité du contenu sur l'image de fond */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.85);
  z-index: -1;
}

/* En-tête du site */
header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 40px;
  background-color: rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.logo-button {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  --border-right: 6px;
  --text-stroke-color: white;
  --animation-color: var(--primary-color);
  --fs-size: 2.3em;
  letter-spacing: 3px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: var(--minecraft-font);
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
  z-index: 2;
}

.hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}

.logo-button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color))
}

h1 {
  color: var(--text-light);
  font-family: var(--minecraft-font);
  text-align: center;
  font-size: 50px;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 0 10px rgba(55, 255, 139, 0.5);
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  margin-top: 20px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 4px;
  font-family: var(--minecraft-font);
  letter-spacing: 1px;
}

nav ul li a:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(55, 255, 139, 0.4);
}

/* Hero section */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  font-size: 60px;
  margin-bottom: 20px;
  font-family: var(--minecraft-font);
  color: var(--text-light);
  text-shadow: 0 0 15px rgba(55, 255, 139, 0.6);
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--dark-bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  font-size: 18px;
  transition: all 0.3s ease;
  font-family: var(--minecraft-font);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 10px;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(55, 255, 139, 0.5);
}

.secondary-cta {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.secondary-cta:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}

/* Section informations */
.info-section {
  padding: 80px 40px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  margin: 40px 0;
  border-top: 1px solid rgba(55, 255, 139, 0.3);
  border-bottom: 1px solid rgba(55, 255, 139, 0.3);
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: var(--text-light);
  font-family: var(--minecraft-font);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

.features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.feature-card {
  flex: 1 1 300px;
  margin: 15px;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 50px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-light);
  font-family: var(--minecraft-font);
}

.feature-card p {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
}

/* Galerie */
.gallery {
  padding: 80px 40px;
  background-color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(5px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  color: var(--text-light);
  font-family: var(--minecraft-font);
  font-size: 18px;
}

/* Pied de page */
footer {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 300px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--text-light);
  font-size: 22px;
  margin-bottom: 20px;
  font-family: var(--minecraft-font);
}

.footer-section p {
  color: #bbb;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-light);
  text-decoration: none;
  font-size: 20px;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  margin-top: 30px;
  color: #777;
  font-size: 14px;
}

/* Animation de particules pour effet Minecraft */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 0;
  opacity: 0.3;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-1000px) translateX(100px);
    opacity: 0;
  }
}

/* Adaptations mobiles */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
  }

  h1 {
    position: static;
    transform: none;
    margin-top: 15px;
    font-size: 36px;
  }

  .logo-button {
    --fs-size: 1.8em;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hero h2 {
    font-size: 40px;
  }

  .features {
    flex-direction: column;
  }

  .feature-card {
    margin-bottom: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }
}

/* Styles spécifiques pour l'animation de la torche Minecraft */
.torch-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  transform: scale(0.7);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.torch-light {
  width: 30px;
  height: 30px;
  background-color: #ffcc00;
  border-radius: 50%;
  box-shadow: 0 0 40px 20px rgba(255, 204, 0, 0.8);
  animation: flicker 0.5s infinite alternate;
}

.torch-handle {
  width: 10px;
  height: 40px;
  background-color: #8B4513;
  margin: 0 auto;
  transform: translateY(-5px);
}

@keyframes flicker {
  0% {
    box-shadow: 0 0 40px 20px rgba(255, 204, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 30px 15px rgba(255, 204, 0, 0.6);
  }
}

/* Lien en haut à droite */
.top-right-link {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 2000;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--minecraft-font);
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 15px;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(55, 255, 139, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-right-link i {
  font-size: 18px;
}

.top-right-link:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(55, 255, 139, 0.4);
}

/* Adaptations mobiles */
@media (max-width: 768px) {
  .top-right-link {
    top: auto;
    bottom: 70px;
    right: 15px;
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Bouton boutique */
.shop-button {
    position: fixed;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--minecraft-font);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    z-index: 2000;
    text-decoration: none;
    display: inline-block;
}

.shop-button:hover {
    color: var(--primary-color);
}

.shop-button i {
    margin-left: 0.5rem;
}