:root {
  --bleu: #004b87;
  --bleu-fonce: #00345f;
  --fond: #f4f7fa;
  --texte: #1f2933;
  --gris: #667085;
  --blanc: #ffffff;
  --erreur: #c0392b;
}

/* BASE */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--fond);
  color: var(--texte);
}

/* LANGUE */

.lang-switch {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 20;
}

.lang-switch img {
  width: 34px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* HEADER */

.topbar {
  background: var(--blanc);
  padding: 24px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.logo-group {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
}

.logo-main {
  display: block;
  height: 76px;
  max-width: 260px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-main:hover {
  transform: scale(1.04);
}

.logo-geovisit {
  height: 70px;
}

/* CONTENU */

.container {
  max-width: 780px;
  margin: 36px auto;
  padding: 0 20px;
}

.intro-card,
.code-box,
.ot-block {
  background: var(--blanc);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 18px;
  color: var(--bleu);
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* FORMULAIRE */

.code-box form {
  display: flex;
  flex-direction: column;
}

.code-box label {
  font-weight: 700;
  margin-bottom: 8px;
}

.code-box input {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  border: 1px solid #ccd3dc;
  border-radius: 8px;
}

.code-box input:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.15);
}

.code-box button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.code-box button:hover {
  background: var(--bleu-fonce);
}

.error {
  color: var(--erreur);
  font-weight: 700;
  margin-bottom: 14px;
}

/* OFFICE DE TOURISME */

.ot-block {
  text-align: center;
}

.ot-block h2 {
  margin: 0 0 10px;
  color: var(--bleu);
  font-size: 1.4rem;
}

.ot-block p {
  margin: 0 auto 18px;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.5;
}

.ot-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ot-logo-link img {
  height: 88px;
  max-width: 260px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.ot-logo-link img:hover {
  transform: scale(1.04);
}

/* MOBILE */

@media (max-width: 600px) {
  .lang-switch {
    top: 12px;
    right: 12px;
  }

  .lang-switch img {
    width: 30px;
  }

  .topbar {
    padding: 24px 16px 18px;
  }

  .logo-group {
    gap: 22px;
  }

  .logo-main {
    height: 58px;
    max-width: 210px;
  }

  .logo-geovisit {
    height: 54px;
  }

  .container {
    margin: 24px auto;
    padding: 0 14px;
  }

  .intro-card,
  .code-box,
  .ot-block {
    padding: 22px;
    border-radius: 12px;
  }

  h1 {
    font-size: 1.65rem;
  }

  .ot-logo-link img {
    height: 70px;
  }
}