@font-face {
  font-family: "Beausite Classic";
  src: url("./fonts/BeausiteClassic-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beausite Classic";
  src: url("./fonts/BeausiteClassic-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beausite Classic";
  src: url("./fonts/BeausiteClassic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beausite Classic";
  src: url("./fonts/BeausiteClassic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beausite Classic";
  src: url("./fonts/BeausiteClassic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beausite Fit";
  src: url("./fonts/BeausiteFit-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: #ffffff;
  --video-fallback: #1a1a1a;
  --font: "Beausite Classic", "Times New Roman", Times, serif;
  --font-fit: "Beausite Fit", "Beausite Classic", sans-serif;
  --pad-x: clamp(28px, 8vw, 48px);
  --form-max: 400px;
  --logo-w: 128px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 100;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "video"
    "form";
  min-height: 100dvh;
}

.panel-video {
  grid-area: video;
  position: relative;
  overflow: hidden;
  background: var(--video-fallback);
  height: min(42vh, 360px);
  min-height: 220px;
}

.demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Sur mobile : laisser le tap démarrer la lecture si l’autoplay est bloqué */
  pointer-events: auto;
}

@media (min-width: 900px) {
  .demo-video {
    pointer-events: none;
  }
}

.video-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    #000000 100%
  );
  pointer-events: none;
  z-index: 1;
}

.brand-on-video {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 2;
  display: block;
}

.brand-desktop {
  display: none;
}

.logo {
  display: block;
  height: auto;
}

.logo-mobile {
  width: var(--logo-w);
}

.panel-form {
  grid-area: form;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px var(--pad-x) 36px;
  min-height: 58dvh;
}

.form-block {
  width: min(100%, var(--form-max));
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
}

.title {
  margin: -12px 0 36px;
  text-align: center;
  font-family: var(--font-fit);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.title-break {
  display: block;
}

.form {
  width: 100%;
  display: grid;
  gap: 26px;
}

.field {
  display: grid;
  gap: 0;
  text-align: left;
}

.field label {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.field input {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 100;
  line-height: 1.2;
  padding: 0 0 6px;
  min-height: 22px;
}

.field input:focus {
  outline: none;
}

.hp {
  position: absolute;
  left: -5000px;
  height: 0;
  overflow: hidden;
}

.submit {
  margin: 32px auto 0;
  display: block;
  width: 100%;
  max-width: 168px;
  min-height: 40px;
  padding: 11px 18px;
  border: 0;
  border-radius: 0;
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit:hover {
  opacity: 0.92;
}

.submit:active {
  transform: translateY(1px);
}

.form-error {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  color: #ffb4b4;
}

.submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.site-footer {
  width: min(100%, var(--form-max));
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  order: 3;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: auto;
}

.social img {
  display: block;
  width: auto;
  height: 16px;
  object-fit: contain;
}

.icon-arch {
  width: auto !important;
  height: 16px !important;
  object-fit: contain;
}

.address {
  margin: 0;
  order: 2;
  font-size: 8px;
  font-weight: 100;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--fg);
}

.legal {
  margin: 0;
  order: 1;
  font-size: 8px;
  font-weight: 100;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
}

.legal-break {
  display: none;
}

@media (min-width: 900px) {
  :root {
    --pad-x: clamp(48px, 7vw, 88px);
    --form-max: 380px;
    --logo-w: 136px;
  }

  .layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "form video";
    min-height: 100dvh;
    height: 100dvh;
  }

  .panel-video {
    height: 100%;
    min-height: 100dvh;
  }

  .video-fade,
  .brand-on-video {
    display: none;
  }

  .panel-form {
    position: relative;
    align-items: stretch;
    justify-content: stretch;
    padding: 40px var(--pad-x) 36px;
    min-height: 100dvh;
    height: 100dvh;
  }

  .brand-desktop {
    display: block;
    position: absolute;
    top: 24px;
    left: 28px;
  }

  .logo-desktop {
    width: var(--logo-w);
  }

  .form-block {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    flex: 1;
    position: relative;
    justify-content: center;
    align-items: center;
    padding: 22vh 0 18vh;
    box-sizing: border-box;
  }

  .title {
    position: absolute;
    top: 12%;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    font-family: var(--font-fit);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-align: center;
    z-index: 1;
  }

  .title-break {
    display: none;
  }

  .form {
    width: min(100%, var(--form-max));
    gap: 28px;
    margin: 0;
  }

  .submit {
    position: static;
    display: block;
    max-width: 180px;
    width: 100%;
    margin: 64px auto 0;
    transform: none;
  }

  .site-footer {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    margin-top: 0;
    gap: 10px;
  }

  .social {
    order: 1;
    gap: 18px;
  }

  .address {
    order: 2;
  }

  .legal {
    order: 3;
    max-width: none;
    white-space: normal;
  }

  .legal-break {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-video {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "form";
  }

  .brand-on-video {
    display: none;
  }

  .brand-desktop {
    display: block;
    position: static;
    margin: 0 0 24px;
    align-self: flex-start;
  }

  .submit:active {
    transform: none;
  }
}

/* —— Merci —— */
.screen {
  width: min(100%, 360px);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screen-merci {
  justify-content: space-between;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 56px;
}

.merci-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
  padding-bottom: 48px;
}

.merci-title {
  margin: 0;
  width: 100%;
  font-family: var(--font-fit);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}

.merci-copy {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 100;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--fg);
  text-align: center;
}

.merci-copy a {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.merci-copy-line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
  /* Compense le letter-spacing (sinon le bloc paraît décalé à gauche) */
  padding-inline-start: 0.08em;
}

.merci-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.merci-address {
  margin: 0;
  font-size: 9px;
  font-weight: 100;
  line-height: 1.4;
  color: var(--fg);
  text-align: center;
}

.merci-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.merci-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  width: auto;
}

.merci-social img {
  display: block;
  width: auto;
  height: 18px;
  object-fit: contain;
}

.merci-arch {
  width: auto !important;
  height: 18px !important;
  object-fit: contain;
}
