/* --- Global --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  color: #F5F3F5;
  background: #141414;
}

.sections {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* --- Nav --- */
.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border-bottom-left-radius: 12px;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.top-nav a {
  color: #F5F3F5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.top-nav a:hover {
  color: #D7263D;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: #F5F3F5;
  color: #D7263D;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  margin: 0.5rem;
  font-weight: 600;
  transition: background 0.3s;
}

.btn:hover {
  background: #D7263D;
  color: #F5F3F5;
}

/* --- Download buttons --- */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-buttons .btn {
  background: #F5F3F5;
  color: #D7263D;
}

.download-buttons .btn:hover {
  background: #D7263D;
  color: #F5F3F5;
}

/* --- Contact buttons --- */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  background: #F5F3F5;
  color: #D7263D;
}

.contact-buttons .btn:hover {
  background: #D7263D;
  color: #F5F3F5;
}

/* --- Sections --- */
.home {
  background: linear-gradient(135deg, #141e30, #243b55);
}

.download {
  background: linear-gradient(135deg, #1d976c, #93f9b9);
}

.contact {
  background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
}

.legal {
  background: linear-gradient(135deg, #283048, #859398);
  overflow-y: auto;
}

h1, h2, h3 {
  margin: 0.5rem 0;
}

@media (max-width: 700px) {
  .top-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .top-nav {
    border-bottom-left-radius: 0;
    width: 100%;
    text-align: center;
  }
}

/* --- Page Légale --- */
.legalPage-content {
  max-width: 800px;
  margin: 5rem auto;
  padding: 1.5rem;
  line-height: 1.6;
  color: #141414;
  background: #F5F3F5;
  border-radius: 18px;
  font-size: 1rem;
}

.legalPage-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #D7263D;
  text-align: center;
}

.legalPage-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  color: #141414;
}

.legalPage-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legalPage-content section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #F5F3F5;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #F5F3F5;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
