/*
 * Stylesheet pour L.Y.R.A version 2.
 * Inspiré de la mise en page du site d'ARK Survival Evolved : sections immersives,
 * grille de captures et navigation fixe.
 */

:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #151515;
  --text-light: #e0e0e0;
  --accent-color: #e65c32;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

/* Barre de navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
  letter-spacing: 0.1em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

#language-toggle {
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

#language-toggle:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Héro */
.hero {
  position: relative;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  text-align: center;
  max-width: 80%;
}

.hero-content h1 {
  margin: 0;
  font-size: 4rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.hero-content .hero-tagline {
  font-size: 1.5rem;
  margin: 1rem 0 2rem;
  color: #ddd;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #c94b25;
}

/* Sections */
.features-section,
.gallery-section,
.download-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: var(--bg-darker);
}

.trailer-section {
  padding: 4rem 1rem;
  text-align: center;
  background-color: var(--bg-dark);
}

.features-section h2,
.gallery-section h2,
.trailer-section h2,
.download-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.features-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
  text-align: left;
}

.features-list li {
  margin: 1rem 0;
  font-size: 1.2rem;
  padding-left: 1.2rem;
  position: relative;
}

.features-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.5rem;
  line-height: 1;
  top: 0.1rem;
}

.video-placeholder {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.video-placeholder img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.video-placeholder .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
}

.video-placeholder .play-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.download-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  background-color: var(--bg-dark);
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
  font-size: 0.9rem;
}

.footer .rating {
  margin-top: 0.5rem;
  color: #aaa;
}

#scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1001;
}

#scroll-top:hover {
  background-color: #c94b25;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content .hero-tagline {
    font-size: 1.1rem;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
}