
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Helvetica, sans-serif;
  color: #fff;
  background: #303030;
  line-height: 1.6;
}


header {
  position: sticky;
  top: 0;
  z-index: 10;
  opacity: 0.7;
  background: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
 
}

/* --- Logo --- */
.logo {
  height: 65px;       
}

.titre {
  display: flex;
  align-items: center;
}

/*  Titre principal du header  */
header div h1 {
  color: #ffffff;
  font-size: 1.6rem;
  text-shadow: 0 0 6px black;
  margin-left: 10px;
}

/* --- Navigation --- */
nav {
  display: flex;
  gap: 0.8rem;
}

nav a {
  
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff4500;
}

/*  Burger Menu (mobile) */
#menu-toggle {
  display: none;
}

.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}


.hero {
  height: 1200px;
  background-image: url(./img/imagefhTOM.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
  box-shadow: 0 0 50px #ffffff;
}

.hero h2 {
  color:#ff4500;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px #000;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 0px 0px 3px #000;
}

/*  Bouton principal */
.btn {
  display: inline-block;
  background: #ff4500;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #ff4500;
  transform: scale(1.05);
}


section {
  padding: 10rem 2rem;
  text-align: center;
}

#multijoueur, #dlc, #carte{
  background-image: url("./img/BgRose.png");
  background-repeat: no-repeat;
  background-size: cover;
}

h2 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-shadow: 0 0 10px #000;
}

p {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.grille{
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}


.carte {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255,255, 255, 0.7);
  transition: 0.3s;
  padding: 1rem; 
  display: flex;
  flex-direction: column;
  align-items: center; 
  height: 100%;
}

.carte:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px #ffffff;
}

.carte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid #ff4500;
  margin-bottom: 0.8rem; 
  border-radius: 10px;
}

.carte h3 {
  margin: 0.5rem 0; 
  color: #ff4500;
}

.carte p {
  color: #000;
  font-size: 0.95rem;
  margin: 0.3rem 0 0.5rem; 
  text-align: center;
}


footer {
  color: #ffffff;
  text-align: center;
  padding: 2rem;
  font-weight: bold;
}

footer a {
  color: #ffffff;
}

footer a:hover {
  color: #E90079;
}



/* ---- MOBILE ---- */
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
  }

  .burger {
    display: block;
  }

  nav {
    width: 100%;
    flex-direction: column;
    background: rgba(25, 25, 25, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 2px solid #ff4500;
  }

  #menu-toggle:checked + nav {
    max-height: 500px;
  }

  nav a {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ff4500;
    margin: 0;
  }

  .grille {
    grid-template-columns: 1fr;
  }

  .carte img {
    height: 160px;
  }

  #multijoueur, #carte, #dlc {
    padding: 18rem 1.5rem;
    align-items: center;
  }
}

/* ---- TABLETTE ---- */
@media (min-width: 701px) and (max-width: 1024px) {
  header {
    padding: 1rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero {
    height: 80vh;
    background-position: center;
    padding: 3rem 1rem;
  }

  .hero h2 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
    max-width: 500px;
  }

  #multijoueur, #carte, #dlc {
    padding: 15rem 1.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .grille {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 1.5rem;
  }

  .grille .carte:nth-child(3) {
    grid-column: 1 / 3;
    justify-self: center;
    max-width: 70%;
  }

  .carte img {
    height: 160px;
  }

  footer {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}
