:root {
  --login-bg: #2563eb;
  --login-bg-hover: #1d4ed8;
  --landing-native-w: 1024px;
  --landing-native-h: 576px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

/* Plein écran sans scroll ni débordement */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  background: #fff;
}

/*
 * Cadre 16:9 — tient dans la fenêtre (largeur ET hauteur).
 * min(100vw, 100dvh × ratio)
 */
.landing__frame {
  position: relative;
  width: min(100vw, calc(100dvh * 1024 / 576), var(--landing-native-w));
  max-height: 100dvh;
  line-height: 0;
}

.landing__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100dvh;
  aspect-ratio: 1024 / 576;
  object-fit: contain;
}

/* Connexion — coin supérieur droit (hors maquette, accès rapide) */
.hotspot-login {
  position: absolute;
  top: 2%;
  right: 2%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(28px, 4dvh, 40px);
  padding: 0.35em 1em;
  border: none;
  border-radius: 999px;
  background: var(--login-bg);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.65rem, 1.4dvh, 0.95rem);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: background 0.2s, transform 0.15s;
}

.hotspot-login:hover {
  background: var(--login-bg-hover);
  transform: translateY(-1px);
}

.hotspot-login:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}

/* Bouton « Accéder à la version web » sur la maquette */
.hotspot-web {
  position: absolute;
  left: 12%;
  top: 52%;
  width: 34%;
  height: 9%;
  z-index: 2;
  border-radius: 12px;
  text-indent: -9999px;
  overflow: hidden;
}

.hotspot-web:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hotspot-login {
    top: 1.5%;
    right: 1.5%;
    font-size: clamp(0.6rem, 1.2dvh, 0.75rem);
  }

  .hotspot-web {
    left: 8%;
    top: 50%;
    width: 42%;
    height: 10%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .landing__frame {
    width: min(100vw, calc(100dvh * 1024 / 576));
    height: min(100dvh, calc(100vw * 576 / 1024));
  }
}
