/* Import de la police personnalisée */
@font-face {
  font-family: "Tron";
  src: url("font/Tron.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
/* Variables */
:root {
  --primary-color: #00ffff;
  --background-color: #0d0d0d;
  --text-color: #b3b3b3;
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Tron", sans-serif; /* Utilisation de la nouvelle police */
  --font-tertiary: "Orbitron", sans-serif;
  --glow-shadow: 0 0 5px var(--primary-color);
}

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

/* General Styles */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
  color: var(--primary-color);
  text-shadow: var(--glow-shadow);
}

h1 {
  font-size: 65px;
}
h2 {
  font-size: 55px;
}
h3 {
  font-size: 37px;
}
h4 {
  font-size: 24px;
  text-transform: uppercase;
}

/* Layout */
.wrapper {
  width: 940px;
  margin: 0 auto;
  padding: 0 10px;
}

.clear {
  clear: both;
}

/* Header */
header {
  height: 120px;
  background-color: rgba(13, 13, 13, 0.9);
  border-bottom: 1px solid var(--primary-color);
  box-shadow: var(--glow-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 30px;
}

header nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50px;
}

header nav ul {
  display: flex;
  gap: 40px;
  list-style-type: none;
  padding-left: 0;
}

header nav ul li a {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

header nav ul li a:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

/* Logo */
.logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Intro Section */
#intro-image {
  position: relative;
  height: 100vh;
  background: url("img/tron-affiche-main.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#intro-image h1 {
  font-size: 6.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color),
    0 0 20px var(--primary-color);
  letter-spacing: 0.1em;
}

.subtitle {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: white;
  text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color),
    0 0 20px var(--primary-color);
}
/* Style pour le bouton "Regardez la vidéo sur YouTube" */
.youtube-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ff0000; /* Rouge YouTube */
  color: white;
  font-family: var(--font-tertiary); /* Utilisation de la troisième police */
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px; /* Coins arrondis */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre légère */
  transition: all 0.3s ease;
}

.youtube-button:hover {
  background-color: #cc0000; /* Rouge plus foncé au survol */
  transform: translateY(-2px); /* Effet de levée */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée */
}

.youtube-button:active {
  transform: translateY(0); /* Retour à la position initiale */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre initiale */
}
/* Histoire Section */
#histoire {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  min-height: 100vh;
}

#histoire .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

#histoire .video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

#histoire .histoire-content {
  position: relative;
  z-index: 1;
  background-color: rgba(13, 13, 13, 0.7);
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

#histoire h2 {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
}

#histoire h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
}

#histoire ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin: 40px auto;
  padding: 20px;
  list-style-type: none;
  max-width: 1200px;
  justify-content: center;
}

#histoire .card {
  text-align: center;
  padding: 50px;
  min-width: 400px;
  margin: 20px auto;
  background-color: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

#histoire .card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  z-index: 0;
}

#histoire .card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
}

#histoire .card:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

#histoire .card * {
  position: relative;
  z-index: 1;
}

/* Produits Section */
#produits h2 {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
}

#produits h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.produit {
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 255, 255, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  animation: float 4s infinite ease-in-out, glow 3s infinite alternate;
  transform: scale(0.75);
  transform-origin: center;
  margin: 10px;
}

.produit:hover {
  animation: none;
  transform: scale(0.85) rotate(0deg);
  box-shadow: 0 0 20px #ff8000, 0 0 40px #ff8000;
  border-color: #ff8000;
}

.produit img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Effet de survol sur h3 */
.produit h3:hover {
  color: #ff8000; /* Orange */
  text-shadow: 0 0 5px #ff8000; /* Ombre orange légère */
  transform: none; /* Suppression de l'effet de transformation */
}

.produit:hover p,
.produit:hover .prix {
  color: #ff8000;
}

.prix {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 15px 0;
  font-weight: bold;
}
/* Style pour le lien Acheter */
.buy-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(0, 255, 255, 0.1);
  color: var(--primary-color);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.buy-button:hover {
  background-color: #ff8000; /* Orange */
  color: var(--background-color);
  border-color: #ff8000; /* Orange */
  box-shadow: 0 0 15px #ff8000, 0 0 30px #ff8000; /* Ombre orange */
  transform: translateY(-2px);
}

.buy-button:active {
  transform: translateY(0);
  box-shadow: 0 0 5px #ff8000, 0 0 10px #ff8000; /* Ombre orange */
}

/* Contact Section */
#contact {
  padding: 60px 0;
  background-color: rgba(13, 13, 13, 0.9);
}

#contact h2 {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
}

/* ... existing code ... */

#contact h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: var(--primary-color);
  box-shadow: var(--glow-shadow);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background-color: transparent;
  color: white;
}

.contact-info {
  padding: 20px;
  border-left: 2px solid var(--primary-color);
}

.contact-info p {
  margin: 15px 0;
  text-align: left;
}
/* Style pour le bouton Envoyer */
.button-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: rgba(0, 255, 255, 0.1); /* Fond semi-transparent */
  color: var(--primary-color); /* Couleur cyan Tron */
  font-family: var(--font-secondary); /* Police Tron */
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
}

.button-primary:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
  transform: translateY(-2px);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
}
/* Footer */
footer {
  padding: 40px 0;
  background-color: rgba(13, 13, 13, 0.9);
  border-top: 1px solid var(--primary-color);
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  /* Empêche le retour à la ligne */
}

.copyright {
  text-align: center;
  margin-top: 30px;
}

/* Animations */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
  }
  100% {
    box-shadow: 0 0 5px var(--primary-color);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-5px) rotate(1deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .wrapper {
    width: 90%;
  }
  #intro-image h1 {
    font-size: 3rem;
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 20px 0;
    display: block; /* Changé de flex à block */
    text-align: center;
  }

  header nav {
    position: static;
    transform: none;
    margin: 30px 0; /* Espace au-dessus et en dessous de la nav */
    width: 100%;
  }

  header nav ul {
    justify-content: center;
  }

  .logo {
    display: block;
    margin: 0 auto 20px auto; /* Espace en dessous du logo */
  }

  #intro-image {
    margin-top: 20px; /* Espace entre le header et l'image */
  }

  #histoire ul {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #intro-image {
    height: 500px;
  }
  #intro-image h1 {
    font-size: 4.5rem; /* Taille augmentée de 45% */
    line-height: 1.2; /* Meilleur espacement */
    padding: 0 15px; /* Padding latéral */
  }
  .button {
    width: 100%;
  }
  /* Modification pour les liens du header */
  header nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Augmentation de l'espace entre les liens */
  }
  header nav ul li {
    width: 90%; /* Largeur augmentée */
    margin-bottom: 15px; /* Marge supplémentaire entre les éléments */
  }
  header nav ul li a {
    width: 100%;
    padding: 10px 100px; /* Padding augmenté */
    text-align: center;
  }
  footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;

    /* Empêche le retour à la ligne */
  }
}

.button {
  width: 100%;
}
