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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #ffffff; /* <-- modifié ici */
}

/* NAVBAR */
.navbar {
  background: #1a1a1a;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left .menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

.site-name {
  font-size: 2.5em;  /* <-- augmenté depuis 1.8em */
  color: #ffffff;    /* <-- maintenant en blanc pur */
  text-align: center;
  font-weight: bold; /* optionnel mais accentue le titre */
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-right input {
  padding: 5px;
  border: none;
  border-radius: 4px;
}

.nav-button {
  background: #444;
  padding: 6px 12px;
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
}

.nav-button:hover {
  background: #444;
}

.welcome {
  margin-right: 10px;
  font-size: 0.9em;
}

/* HERO */
.hero {
  width: 100%;
}

.hero-image {
  width: 100%;
  display: block;
  height: auto;
}

/* GALLERY */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
}

.gallery img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.4);
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-around;
  padding: 30px;
  background: #1a1a1a;
  flex-wrap: wrap;
}

.footer h4 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin: 5px 0;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* FORMS (pour login/register aussi) */
.form-container {
  background: #1f1f1f;
  padding: 20px 30px;
  border-radius: 10px;
width: 80%;
  width: 900px;
  margin: 30px auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  background: #2c2c2c;
  color: white;
  border: 1px solid #444;
  border-radius: 5px;
}

input[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #ff6600;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

input[type="submit"]:hover {
  background: #e65c00;
}

.error {
  color: #f44336;
  text-align: center;
}

.success {
  color: #4caf50;
  text-align: center;
}

a {
  color: #ffffff;
  text-align: center;
  display: block;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .gallery {
    flex-direction: column;
    align-items: center;
  }
  .nav-right {
    flex-direction: column;
    align-items: flex-end;
  }
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.site-logo {
  height: 32px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 480px) {
  .site-name {
    font-size: 1.3em;
  }

  .site-logo {
    height: 24px;
  }
}
.search-icon {
  background: none;
  border: none;
  font-size: 1.3em;
  cursor: pointer;
  color: white;
  padding: 6px 8px;
  transition: transform 0.2s ease;
}

.search-icon:hover {
  transform: scale(1.2);
}
.unity-section {
;
  margin: 40px auto;
  max-width: 960px;
}

#unity-container {
;
  position: relative;
  margin: auto;
}

#unity-canvas {
  width: 100%;
  height: auto;
  max-width: 960px;
  background: #743177;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 20px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 6px;
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.dropdown-menu a:hover {
  background-color: #333;
}

.dropdown-menu.open {
  display: block;
}
