/* ====== HEADER & NAVBAR ====== */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

.links {
  display: flex;
  list-style: none;
}

.links a {
  margin-left: 1.2rem;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--accent);
}

/* ====== LANGUAGE SWITCHER ====== */
.lang-switcher {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-switcher button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-switcher button:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.lang-switcher button.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.35);
}

/* ====== HERO SECTION ====== */
.hero {
  max-width: 1000px;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 0 1.5rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
}

.hero p {
  margin-top: 1rem;
  color: var(--muted);
}

.hero img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.hero img:hover {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}

.clickable-hero {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.clickable-hero:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}


/* ====== SECTIONS ====== */
section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

section h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ====== FOOTER ====== */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-switcher {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-switcher button {
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

/* ====== BONUS ESTHÉTIQUE : effet translucide ====== */
.lang-switcher {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.6);
}