*{
  box-sizing: border-box;
}


/* Fonts */
.minecraft-font {
  font-family: 'Minecraft', sans-serif;
}
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background-color: #111;
  color: #fff;
  
}



/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #091623; /* couleur demandée */
  padding: 20px 40px;  /* plus de padding */
  z-index: 1000;
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* centre logo et menus */
  gap: 40px; /* plus d'espace entre menus et logo */
  position: relative;
}

/* =========================
   BURGER MENU
========================= */

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 30px;
  height: 3px;
  background: #0f0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animation burger -> croix */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 768px) {

  .main-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .burger {
    display: flex;
    position: absolute;
    top: 30px;
    right: 30px;
  }


  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: #091623;

    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);

    transition:
      max-height 0.45s ease,
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-menu.active {
    max-height: 400px; /* doit être assez grand */
    opacity: 1;
    transform: translateY(0);
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    gap: 15px;
  }



  .nav-left a,
  .nav-right a {
    font-size: 1.6rem;
  }
}


/* Nav-menu par défaut */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 80px;
}

#logo-pc{
  display: block;
}

#logo-phone{
  display: none;
}

/* Responsive mobile */
@media (max-width: 768px) {
  #logo-pc{
    display: none;
  }

  #logo-phone{
  display: block;
}
  .burger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100px;
    width: 100vw;
    background-color: #091623;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
  }

  .nav-menu.active {
    display: flex; /* visible quand burger cliqué */
  }

  .nav-left li,
  .nav-right li {
    margin: 10px 0;
  }

  .nav-left a,
  .nav-right a {
    font-size: 1.5rem;
  }

  .main-nav {
    justify-content: space-between;
    position: relative;
  }
}

@media (max-width: 768px) {

  .main-nav {
    flex-direction: column;   /* empile les éléments */
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .logo {
    order: 1;                 /* logo en premier */
  }

  .nav-left {
    order: 2;
  }

  .nav-right {
    order: 3;
  }

  .nav-left,
  .nav-right {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
}



/* Logo */
.logo-img {
  height: 100px; /* logo plus grand */
  width: auto;
}

/* Menus autour du logo */
.nav-left, .nav-right {
  display: flex;
  list-style: none;
  gap: 80px; /* augmente l'espace entre les liens */
  margin: 0;
  padding: 0;
}

.nav-left a, .nav-right a {
  font-family: 'Minecraft', sans-serif;
  font-size: 2.5rem; /* texte plus gros */
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-left a:hover, .nav-right a:hover {
  color: #0f0;
}

/* Sélecteur de langue */
.language-selector {
  position: absolute;
  top: 10px;
  right: 20px;
}

.language-selector select {
  background: #0f0;
  color: #000;
  border: none;
  padding: 7px 10px; /* plus grand padding */
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .nav-left, .nav-right {
    justify-content: center;
    margin: 5px 0;
    gap: 15px;
  }
  .logo-img {
    height: 80px; /* logo un peu plus petit sur mobile */
  }
  .nav-left a, .nav-right a {
    font-size: 1.5rem;
  }
  .language-selector {
    position: static;
    margin-top: 5px;
  }
}





/* HERO PARALLAX */
.hero {
  position: relative; /* pour l’overlay */
  height: 100vh;
  background: url('../elements/screenshots/2024/WEAPONSS/W3.webp') center/cover fixed no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4); /* baisse de luminosité */
  z-index: 1;
}

h1 {
  position: relative; /* pour être au-dessus de l’overlay */
  z-index: 2;
  font-size: 12rem; /* titre principal plus gros */
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}



/* SECTION */
.section {
  padding: 80px 20px;
  text-align: center;
}
.section h2 {
  font-size: 4rem; /* augmente la taille, ajuste selon ton goût */
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .section h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 2rem;
  }
}

/* TRAILERS GRID */
.trailers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px; /* augmente l'espace entre les cartes */
}

.trailer-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform: scale(0.9);
  filter: brightness(0.9);
  aspect-ratio: 16/9; /* force ratio 16:9 pour la miniature */
}

/* Image prend toute la div, sans bandes noires */
.trailer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* recouvre toute la div, crop si besoin */
  display: block;
  transition: transform 0.3s ease;
}

/* Overlay pour le titre */
.trailer-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'Minecraft', sans-serif;
  font-size: 2rem;           
  color: #fff;
  background: rgba(0, 0, 0, 0); 
  opacity: 0;                
  transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  padding: 0 10px;
}

/* Apparition au hover */
.trailer-card:hover .overlay {
  opacity: 1;                         /* texte visible */
  background: rgba(0, 0, 0, 0.5);     /* overlay semi-transparent */
}

.trailer-card:hover img {
  transform: scale(1.05);             /* léger zoom de l'image au hover */
}



/* POPUP VIDEO */
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.video-popup-content {
  position: relative;
  width: 98%;
  max-width: 1400px; /* popup plus large */
  padding: 20px;
}
.video-popup-inner {
  display: flex;
  gap: 40px;
  align-items: stretch; /* important pour égaler la hauteur */
  background: #111;
  padding: 40px;
  border-radius: 10px;
}

.video-popup iframe {
  width: 70%;
  height: 600px;  /* vidéo plus grande */
  border-radius: 10px;
}

.video-info {
  width: 35%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* espace entre titre, image et bouton */
  align-items: center;
  padding: 30px;
  background: #1a1a1a;
  border-radius: 8px;
  height: 600px; /* même hauteur que la vidéo */
  box-sizing: border-box; /* inclut padding dans la hauteur */
}
/* Faire en sorte que la colonne texte/image ait la même hauteur que l'iframe */
.video-info,
.popup-image-container img#video-image {
  height: auto;
  max-height: 100%;
}

.popup-image-container img#video-image {
  width: 100%;
  aspect-ratio: 16/9;     /* taille identique à la miniature */
  object-fit: cover;
  border-radius: 8px;
}
.video-info h3 {
  margin-top: 0;
  font-size: 2rem;
}

.video-info h4 {
  margin-top: 10px;
  font-size: 1.4rem;
  opacity: 0.8;
}

.video-info p {
  margin-top: 15px;
  line-height: 1.6;
}

.video-info img {
  margin-top: 25px;
  max-width: 100%;
  border-radius: 8px;
}

.create-trailer-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 18px 35px;
  background: #2A2359;
  font-size: 1.5rem;
  color: #fff;
  font-family: 'Minecraft', sans-serif;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, background 0.3s;
}

.create-trailer-btn:hover {
  transform: scale(1.05);
  background: #191535;
}

/* Responsive pour mobile */
@media (max-width: 900px) {
  .video-popup-inner {
    flex-direction: column;
  }

  .video-popup iframe {
    width: 100%;
    height: 450px;
  }

  .video-info {
    width: 100%;
    height: auto; /* laisse s’adapter au contenu */
    padding: 20px;
  }
}



/* Bouton Minecraft noir sur vert */
.create-trailer-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 15px 30px;
  background: #2A2359;
  color: #fff;
  font-family: 'Minecraft', sans-serif;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, background 0.3s;
}

.create-trailer-btn:hover {
  transform: scale(1.05);
  background: #1b1638;
}

/* Responsive pour mobile */
@media (max-width: 900px) {
  .video-popup-inner {
    flex-direction: column;
  }

  .video-popup iframe {
    width: 100%;
    height: 400px;
  }

  .video-info {
    width: 100%;
  }
}


.video-popup-content .close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2.5rem;
  font-family: 'Minecraft', sans-serif; /* typographie Minecraft */
  font-weight: bold;
  color: #fff; /* texte blanc */
  background: #2A2359; /* fond vert */
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  z-index: 2100;
}

.video-popup-content .close:hover {
  transform: scale(1.1);
  background: #1e1941;
}







#screenshots{
  background-color: #091623;
}

.screenshots-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  height: 320px; /* double hauteur pour deux lignes */
}

.screenshots-track {
  display: flex;
  gap: 10px;
  animation: scroll 120s linear infinite; /* plus lent */
}

.track1 img, .track2 img {
  height: 150px;
  width: auto;
  object-fit: cover;
  border-radius: 5px;
}

/* Position des lignes */
.track1 {
  margin-bottom: 20px; /* espace entre les lignes */
}

.track2 {
  margin-top: 20px; /* espace entre les lignes */
  animation-duration: 140s; /* vitesse légèrement différente */
}

/* Animation défilement horizontal infini */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* défilement infini */
}


/* ===============================
   SECTION TARIFS
================================ */

.tarifs-section {
  background-color: #0f0f0f; /* ou #111 selon ton style */
  padding: clamp(6rem, 10vw, 8rem) 5vw;
}

.tarifs-container-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 6vw, 5rem); /* espace entre image et texte */
  max-width: 1200px;
  margin: 0 auto;
}

.tarifs-image {
  flex: 1 1 45%;
}

.tarifs-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

.tarifs-info {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.tarifs-info h2 {
  font-family: 'Minecraft', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0;
}

.tarifs-info p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.6;
}

/* Bouton centré sous le texte */
.tarifs-info .voir-tarifs-btn {
  align-self: flex-start; /* ou center si tu veux centré le bouton sous le texte */
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .tarifs-container-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .tarifs-image, .tarifs-info {
    flex: 1 1 100%;
  }
  .tarifs-info .voir-tarifs-btn {
    align-self: center;
  }
}



.tarif-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 30px;
  background: #2A2359;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, background 0.3s;
}

.tarif-btn:hover {
  transform: scale(1.05);
  background: #14112b;
}


/* CLIENTS GRID */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.clients-grid img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}



/* Boutons "Voir plus" */
.voir-plus-btn {
  display: inline-flex;            /* flex pour centrer */
  justify-content: center;         /* centre horizontalement */
  align-items: center;             /* centre verticalement */
  padding: 15px 30px;              /* taille du bouton */
  font-size: 1.8rem;               /* taille de la typo */
  font-family: 'Minecraft', sans-serif;
  color: #fff;                     /* texte blanc */
  background-color: #2A2359;       /* vert foncé */
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s, background-color 0.3s;
  margin-top: 50px;
  text-align: center;
}

.voir-plus-btn:hover {
  background-color: #1b173a;       /* vert plus clair au hover */
  transform: scale(1.05);
}




/* Le bouton tarif reste identique */
.tarif-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 15px 35px;
  background: #2A2359;
  color: #000;
  font-family: 'Minecraft', sans-serif;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, background 0.3s;
}

.tarif-btn:hover {
  transform: scale(1.05);
  background: #1b1638;
}




/* RESPONSIVE */
@media (max-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .header {
    flex-direction: column;
  }
  .header ul {
    flex-direction: column;
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
/* Conteneur centré */
.tarifs-container {
  text-align: center;  /* centre horizontalement */
  margin: 40px 0;      /* espace au-dessus et en-dessous */
}

/* Style du bouton */
.voir-tarifs-btn {
  display: inline-block;
  padding: 20px 40px;      /* augmente la taille */
  font-size: 1.8rem;       /* typo plus grosse */
  font-family: 'Minecraft', sans-serif;
  background-color: #2A2359;  /* fond vert foncé */
  color: #fff;               /* texte blanc */
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
}

.voir-tarifs-btn:hover {
  background-color: #1c173b;  /* vert plus foncé au hover */
  transform: scale(1.05);      /* léger effet zoom */
}


/* FOOTER */
footer {
  background: #000;
  padding: 20px;
  color: white;
}

.footer-content {
  position: relative;
  display: flex;
  align-items: center;
}

/* Centre absolu */
.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
}

/* Bloc à droite */
.footer-right {
  margin-left: auto;
  display: flex;
  gap: 25px;
  align-items: center;
}

/* Élément discord / X */
.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.footer-item img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-item:hover {
  opacity: 0.8;
}

