/* =================== Polices =================== */
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../fonts/regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Maison Neue Extended';
  src: url('../fonts/700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =================== Reset & Base =================== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif;}
html, body { height: 100%; }

:root{
  --bg: #181727;       /* fond unique */
  --text: #E7E9F1;
  --muted:#646470;
  --line:#2A2F45;      /* ligne des inputs */
  --link:#85A7FF;

  --btn-disabled:#355495; /* demandé */
  --btn-active:#5290ff;   /* demandé */

  --field-h:40px;
  --gutter:17px;
}

body{
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================== Layout =================== */
.screen{
  width:100%;
  max-width:640px;
  min-height:100svh;
  margin-inline:auto;
  padding:44px 40px 24px;
  display:flex;
  flex-direction:column;
}

.title{
  font-family:'Maison Neue Extended', sans-serif;
  font-weight:700;
  font-size:clamp(24px, 5vw, 40px);
  letter-spacing:.02em;
  margin:8px 0 10px;
}
.subtitle{
  color:var(--muted);
  font-size:clamp(15px, 2.3vw, 18px);
  margin-bottom:46px;
}

/* =================== Form =================== */
.form{
  display:grid;
  grid-template-columns: 25% 75%;   /* 25/75 demandé */
  column-gap: var(--gutter);
  row-gap:18px;
  max-width:calc(100% - 7px);
  width:calc(100% - 7px);
  margin:0 auto;
}

.field{ display:flex; flex-direction:column; }

.label{
  color:var(--muted);
  font-size:14px;
  margin-bottom:10px;
}

/* conteneur commun pour la baseline + underline */
.control{
  display:flex;
  align-items:center;
  height:var(--field-h);
  position:relative;
  padding-bottom:5px;  /* espace réduit avant la ligne */
}

/* ligne fine 1px */
.underline::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;                     /* 1px demandé */
  background:var(--line);
}
.underline:focus-within::after{ background: var(--btn-active); }

/* Country bouton (simule un select, même métriques que l'input) */
.country{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:none;
  color:var(--text);
  padding:0;
  height:calc(var(--field-h) - 5px);
  font-size:16px;
  cursor:default;
}
.country:focus{ outline:none; }

.country-code{ letter-spacing:.02em; }
.caret{
  width:auto; height:auto; display:inline-block; margin-left:2px;
  background: none;
  font-family: 'Outfit', sans-serif;
  color: var(--btn-active);
  font-size:16px;
  transform: rotate(90deg);
}

/* Phone input */
input[type="tel"]{
  width:100%;
  border:none;
  background:transparent;
  color:var(--text);
  font-size:16px;
  font-family:'Outfit', sans-serif;
  outline:none;
  height:calc(var(--field-h) - 5px);
}
input::placeholder{ color:#7F88A2; }

/* espace pour caler le bouton bas comme le design */
.spacer{ height:min(48vh, 420px); }

/* =================== Actions =================== */
.actions{ position:sticky; bottom:16px; margin-top:auto; }

.btn{
  width:100%;
  height:54px;
  border:none;
  border-radius:999px;
  background: var(--btn-active);  /* état disabled */
  color:#C8D2FF;
  font-size:16px;
  letter-spacing:.01em;
  cursor:not-allowed;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition: background .2s ease, transform .06s ease;
}

.btn.is-active{
  background: var(--btn-active);    /* état actif */
  cursor:pointer;
}
.btn.is-active:active{ transform: translateY(1px); }

.help{
  display:block;
  text-align:center;
  margin-top:16px;
  color:var(--link);
  text-decoration:none;
}
.help:hover{ text-decoration:underline; }

/* =================== Responsive =================== */
/* Les fields restent toujours sur la même ligne */
