/* =========================
   Styles globaux
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fef9e7;
  color: #003366;
}

/* =========================
   Barre de navigation
========================= */
nav {
  background-color: #003366;
  color: white;
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 10px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0;
  padding: 0 20px;
}

.logo {
  height: 30px;
  margin-right: 30px;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #fee440;
}

/* Bouton changement de langue */
.nav-wrapper ul li a.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-wrapper ul li a.lang-switch svg {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* =========================
   En-tête
========================= */
header {
  background-color: #006699;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.highlight {
  color: #ff9900;
}

.header-text h1 {
  margin: 0;
  font-size: 3em;
  color: #ffa500;
}

.header-text p {
  margin: 5px 0 0;
  font-size: 1.2em;
  color: #06d6a0;
}

/* =========================
   Sections communes
========================= */
.intro, .screenshots, .purchase, .faq, .legal {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

/* =========================
   Carrousel
========================= */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 750px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  width: 100%;
  max-width: 750px;
  flex: 0 0 auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.prev, .next {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  z-index: 2;
}

.prev { left: 7px; }
.next { right: 7px; }

.prev:disabled, .next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* =========================
   Boutons
========================= */
.btn {
  display: inline-block;
  max-width: 300px;
  padding: 12px 24px;
  margin: 10px;
  background-color: #ff9900;
  color: #003366;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #ff9900;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  background-color: #004d73;
  color: white;
}

/* =========================
   FAQ
========================= */
.faq {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.faq h2 {
  margin-bottom: 20px;
  color: #bc3908;
}

.faq-item {
  text-align: left;
  margin-bottom: 20px;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #003366;
}

.faq-item p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95em;
}

/* =========================
   Contact
========================= */
.contact h2 {
  color: #bc3908;
}

#contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

#contact p,
#contact a {
  text-align: center;
  display: block;
  margin-bottom: 10px;
}

.contact a {
  color: #003366;
  font-weight: bold;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* =========================
   Pied de page
========================= */
footer {
  text-align: center;
  padding: 20px;
  background-color: #eee;
  font-size: 14px;
}

footer strong {
  font-weight: bold;
}

/* =========================
   Responsive mobile
========================= */
@media (max-width: 768px) {
  .header-wrapper {
    background-color: #003366;
    width: 100%;
    max-width: none;
  }
  
  .nav-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 10px;
    flex-wrap: wrap;
  }

  .version-switch {
    display: inline-block;
    margin-top: 5px;
  }

  .btn {
    display: block;
    margin: 10px auto;
    width: 90%;
    max-width: 300px;
  }

  .logo {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .carousel-track {
    width: 100%;
  }
}