:root{
  --bg1:#0f1941;
  --card:#16244b;
  --field:#0e2248;
  --stroke:#2b63ff;
  --soft:#3b4772;
  --txt:#e6f0ff;
  --muted:#a8b7d6;
  --tile:#2a3458;
  --tileHover:#374268;
  --green:#19c36b;
  --red:#ef3a52;
  --cta:#f0ab2b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #162a64 0%, #0e1840 40%, #0c1436 100%);
  color: var(--txt);
}

/* ====== Conteneur principal ====== */
.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
}
.card{
  width:760px;
  max-width:calc(100vw - 96px);
  background: rgba(22,36,75,.96);
  border-radius:28px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  padding:36px 48px 44px;
}

/* ====== Titre ====== */
h1{
  margin:0;
  text-align:center;
  font-weight:700;
  font-size:32px;
  letter-spacing:.2px;
}
.h1-underline{
  width:88px;
  height:2px;
  background:#56a0ff;
  border-radius:2px;
  margin:14px auto 26px;
  opacity:.85;
}

/* ====== Formulaire ====== */
.form{ width:540px; margin:0 auto; }
.form-row{ margin-bottom:18px; }
label{ display:block; font-size:14px; color:var(--muted); margin:0 0 8px; }

/* ====== Champs (Input + Select) ====== */
input[type="number"], select{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--field);
  color:var(--txt);
  font-size:15px;
  padding:0 14px;
  outline:none;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.select-wrap{ position:relative; }
.select-wrap .chev{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:18px; height:18px;
  background:conic-gradient(from 315deg at 50% 60%, transparent 0 62%, #8fb3ff 0 100%);
  mask:radial-gradient(7px at 50% 60%, #000 99%, transparent 100%) top/100% 100% no-repeat;
  opacity:.9; pointer-events:none;
}

/* Deux colonnes (Level + Speed) */
.row-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:8px;
}

/* ====== Discussion Mode ====== */
.block-label{ 
  color:var(--muted); 
  font-size:14px; 
  margin:14px 0 10px; 
  text-align:center; 
}
.tiles{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-bottom:18px;
}
.tiles input[type="radio"]{ position:absolute; opacity:0; pointer-events:none; }

.tile{
  position:relative;
  height:74px;
  border-radius:12px;
  background:#354166;
  color:#d9e4ff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px;
  font-weight:500;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 1px 0 rgba(255,255,255,.04), 0 10px 20px rgba(0,0,0,.18) inset;
  transition:background .15s ease, transform .1s ease;
}
.tile:hover{ background:var(--tileHover); }
.tick{
  width:16px;
  height:16px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.2);
  margin-bottom:6px;
}
input[type="radio"]:checked + .tile{
  background:var(--green);
  color:#071f15;
}
input[type="radio"]:checked + .tile .tick{
  background:#fff;
  box-shadow:none;
}

/* ====== Voice ====== */
.mt24{ margin-top:24px; }
.pills{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.pills input[type="radio"]{ position:absolute; opacity:0; pointer-events:none; }

.pill{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  height:54px;
  border-radius:14px;
  background:#27335e;
  border:1px solid rgba(255,255,255,.06);
  font-weight:600;
  color:#e6f0ff;
  transition:background .15s ease, transform .1s ease;
}
.pill:hover{ background:#323d6a; }

/* ====== Icônes buste Homme / Femme (tête + épaules uniquement) ====== */
.pill .ico-person{
  width:30px;
  height:30px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  flex:0 0 30px;
}

/* 👨 Homme (buste) */
#v1 + .pill .ico-person{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.2' r='3.2' fill='%23FFFFFF'/%3E%3Cpath d='M5.5 17.5c1.3-2.8 4-4.6 6.5-4.6s5.2 1.8 6.5 4.6c.2.4-.1.8-.6.8H6.1c-.5 0-.8-.4-.6-.8z' fill='%23FFFFFF'/%3E%3Cpath d='M8.3 8.6c.7-1.1 2.1-1.9 3.7-1.9s3 .8 3.7 1.9c.2.3-.1.7-.5.7H8.8c-.4 0-.7-.4-.5-.7z' fill='%23FFFFFF' opacity='.35'/%3E%3C/svg%3E");
}

/* 👩 Femme (buste avec cheveux) */
#v2 + .pill .ico-person{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.8c2.8 0 4.6 1.9 4.6 4.7s-1.8 4.7-4.6 4.7-4.6-1.9-4.6-4.7S9.2 3.8 12 3.8z' fill='%23FFFFFF'/%3E%3Cpath d='M4.9 17.9c1.5-3.1 4.3-4.8 7.1-4.8s5.6 1.6 7.1 4.8c.2.4-.1.8-.6.8H5.4c-.5 0-.8-.4-.5-.8z' fill='%23FFFFFF'/%3E%3Cpath d='M15.8 6.2c1.6.4 2.8 1.7 3 3.4l.1.6c.1.5.5.7.9.7.5-.1.8-.6.7-1.1l-.1-.6c-.5-2.6-2.6-4.5-5.2-4.9v1.9z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

/* Sélectionné */
#v1:checked + .pill,
#v2:checked + .pill{
  background:var(--red);
  color:#fff;
}

/* ====== Bouton principal ====== */
.cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:220px;
  height:44px;
  margin:28px auto 0;
  border:0;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  color:#1f2450;
  background:linear-gradient(180deg, #f6b647 0%, #eea72a 100%);
  box-shadow:0 10px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35);
  cursor:pointer;
}
.cta .arrow{ width:20px; height:20px; }
.cta:hover{ filter:brightness(1.05); }
.cta:active{ transform:translateY(1px); }

/* ====== Focus ====== */
:focus-visible{
  outline:2px solid #8cc6ff;
  outline-offset:2px;
  border-radius:12px;
}

/* ====== Mobile ====== */
@media (max-width:480px){
  .page{ padding:24px 12px; }
  .card{
    width:360px;
    max-width:calc(100vw - 24px);
    padding:28px 20px 24px;
    border-radius:24px;
  }
  h1{ font-size:24px; }
  .h1-underline{ width:64px; margin:10px auto 18px; }

  .form{ width:100%; }
  .form-row{ margin-bottom:14px; }
  label{ font-size:13px; margin-bottom:6px; }

  input[type="number"], select{
    height:42px;
    padding:0 12px;
    border-radius:12px;
    font-size:15px;
  }
  .row-2{ gap:12px; margin-bottom:6px; }
  .block-label{ margin:12px 0 8px; }

  .tiles{ gap:10px; margin-bottom:16px; }
  .tile{ height:72px; font-size:13px; }

  .pills{ gap:12px; }
  .pill{ height:52px; font-size:14px; }
  .pill .ico-person{ width:28px; height:28px; flex-basis:28px; }

  .cta{
    width:62%;
    height:44px;
    margin-top:24px;
    border-radius:12px;
  }
}
