@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2'); }

:root {
  --bg: #0d0d10;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ecebe8;
  --soft: #c4c1bb;
  --muted: #8f8d88;
  --accent: #e0a86b;
  --accent-ink: #1a140d;
  --danger: #e5786d;
  --ok: #9fcfae;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  /* Une seule lumière chaude, en haut à gauche, comme une lampe de chevet */
  background: radial-gradient(900px 600px at 15% -10%, rgba(224,168,107,.10), transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
::selection { background: rgba(224, 168, 107, 0.3); }
a { color: inherit; }

header, main, footer { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.lang { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

main { flex: 1; padding-top: clamp(28px, 6vh, 56px); padding-bottom: 72px; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 6.4vw, 46px); line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 28px;
}
h1 span { display: block; color: var(--soft); }
main p { color: var(--soft); margin: 0 0 16px; max-width: 32em; }
main p.last { margin-bottom: 32px; }

form { display: grid; gap: 12px; max-width: 460px; }
.field { display: flex; gap: 8px; }
input[type=email] {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.03);
  color: var(--text); font: inherit; outline: none;
}
input[type=email]:focus { border-color: rgba(224,168,107,.6); }
input[type=email]::placeholder { color: var(--muted); }
button {
  height: 46px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; white-space: nowrap;
}
button:hover { filter: brightness(1.06); }
button:disabled { opacity: .5; cursor: default; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-size: 14.5px; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

footer { padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 480px) {
  .field { flex-direction: column; }
  input[type=email] { flex: none; }
  button { width: 100%; }
}

.serrure { position: relative; aspect-ratio: 1264 / 848; border-radius: 14px; overflow: hidden; background: #0a090b; margin: 0 0 36px; }
/* La serrure du logo, allumée, qui s'efface quand la chambre apparaît */
.serrure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#f1c48f, #e0a86b 55%, #9a4f55);
  -webkit-mask: url('/masque.svg') 50% 34% / auto 20% no-repeat;
  mask: url('/masque.svg') 50% 34% / auto 20% no-repeat;
  animation: ouvre 5.5s cubic-bezier(.65, 0, .25, 1) .8s forwards, eteint 1.6s ease-in .9s forwards;
}
@keyframes eteint { to { opacity: 0; } }
/* La serrure du logo s'agrandit doucement et laisse voir la chambre derrière */
.serrure img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: url('/masque.svg') 50% 34% / auto 20% no-repeat;
  mask: url('/masque.svg') 50% 34% / auto 20% no-repeat;
  animation: ouvre 5.5s cubic-bezier(.65, 0, .25, 1) .8s forwards, recule 6.3s ease-out forwards;
}
/* Au départ, la serrure donne sur la fenêtre allumée, comme le logo */
@keyframes ouvre { to { -webkit-mask-size: auto 720%; mask-size: auto 720%; -webkit-mask-position: 50% 50%; mask-position: 50% 50%; } }
@keyframes recule { from { transform: scale(1.2); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .serrure img { animation: none; -webkit-mask: none; mask: none; }
  .serrure::after { display: none; }
}
