:root{
  --purple:#4d2079;
  --accent:#0094d4;
  --danger:#ef4444;
  --white:#fff;
}

*{ box-sizing:border-box; }

html, body{
  margin:0;
  padding:0;
  height:100%;
}

body{
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; 
  color:white;
  background: #69a0c6 url("assets/fond_demarche.jpg") center no-repeat;
  background-size: cover;
}

.app{
  width:100%;
  height:100vh;
  height:100dvh;
  padding:40px;
}

.screen{
  width:100%;
  height:100%;
  display:none;
  position:relative;
}
.screen.active{
  display:flex;
  align-items:center;
  justify-content:center;
}

#home.screen.active{
  align-items:stretch;
  justify-content:flex-start;
}
#home{
  padding-top:80px;
  padding-left:0;
  padding-right:0;
  padding-bottom:0;
}

.stack{
  width:100%;
  height:100%;
  max-width:1000px;
  margin:0 auto;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
}

.centerFlex{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}

.home-title{
  margin:0;
  font-size:clamp(28px, 4.8vw, 64px);
  line-height:1.05;
  font-weight:500;
  text-align:center;
  text-wrap:balance;
}
.subtitle{
  margin:0;
  text-align:center;
  font-weight:500;
  opacity:.96;
  font-size:clamp(14px, 2vw, 22px);
  line-height:1.2;
}

button{
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:16px 18px;
  font-weight:500;
  font-size:16px;
  transition: transform .12s ease, background .12s ease, opacity .12s ease, color .12s ease, border-color .12s ease;
}
button:active{ transform:scale(.98); }

.btnWhite{
  background:#fff;
  color:var(--purple);
  min-width:420px;
  padding:20px 24px;
  font-size:16px;
}
.btnWhite:hover{ background:#f3f4f6; }

.btnRow{
  width:100%;
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
}

.homeCta{
  display:flex;
  flex-direction:column;
  align-items:center;
	gap: 100px;
}

.home-logo{
  width:170px;
  height:auto;
}

.history-link{
  position:absolute;
  right:40px;
  bottom:40px;

  background:transparent;
  color:#fff;

  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight:500;
  font-size:14px;

  text-decoration:none;
  padding:0;
  opacity:.9;
}
.history-link:hover{
  opacity:1;
  text-decoration:none;
}

.inputWrap{ width:100%; }

label{
  display:block;
  font-weight:500;
  margin-bottom:8px;
  text-align:left;
  font-size:16px;
}

input{
  width:100%;
  border:none;
  outline:none;
  border-radius:999px;
  padding:16px 18px;
  font-size:16px;
  background:rgba(255,255,255,.55);
  color:var(--purple);
  font-weight:500;
}
input::placeholder{ color:rgba(74,41,119,.55); }
input:focus{ background:rgba(255,255,255,.7); }

.quizWrap{
  width:100%;
  height:100%;
  max-width:900px;
  margin:0 auto;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
}

.questionTop{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}

.questionPill{
  text-align:center;
  font-weight:500;
  color:#fff;
  background:transparent;
  font-size:16px;
  width:100%;
}

.progressOuter{
  width:100%;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.35);
}
.progressInner{
  height:100%;
  width:0%;
  background:rgba(255,255,255,1);
  border-radius:999px;
  transition:width .2s ease;
}

.questionBlock{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}

.question{
  width:100%;
  font-size:clamp(18px, 2.2vw, 26px);
  font-weight:500;
  margin:0;
  text-align:center;
  color:#fff;
  line-height:1.15;
  text-wrap:balance;
}

.answerBtn{
  width:100%;
  background:#fff;
  color:var(--purple);
  padding:18px 18px;
  border-radius:22px;
  font-weight:500;
  min-height:74px;
  display:flex;
  align-items:center;
  gap:10px;
  border:2px solid transparent;
  text-align:center;
  justify-content:center;
}
.answerBtn:hover{ background:#f3f4f6; }

.answerBtn.selected{
  background:var(--purple);
  color:#fff;
  border-color:rgba(255,255,255,.55);
  transform:scale(1.01);
}

.answerLabel{ font-weight:500; min-width:28px; }
.answerText{ font-weight:500; line-height:1.25; }

.resultHighlight{
  width:100%;
  border-radius:22px;
  padding:18px;
  background:rgba(255,255,255,.95);
  color:var(--purple);
  text-align:center;
  border:3px solid rgba(124,77,255,.35);
}
.resultType{
  font-size:clamp(20px, 2.4vw, 30px);
  font-weight:500;
  margin:0 0 6px;
  color:var(--purple);
}
.resultPersonal{
  margin:0;
  font-weight:500;
  color:var(--accent);
  font-size:18px;
}
.resultDesc{
  margin:10px 0 0;
  font-weight:500;
  color:var(--purple);
  opacity:.95;
  line-height:1.25;
}

.thanks{
  margin:0;
  text-align:center;
  font-weight:500;
  opacity:.95;
}

.resultScore{
  margin:8px 0 0;
  text-align:center;
  font-weight:500;
  color:#fff;
  opacity:.95;
}

@media (max-width:520px){
  .app{ padding:20px; }
  #home{ padding-top:48px; }

  .btnRow{
    width:100%;
    gap:12px;
    flex-wrap:nowrap;
  }
  .btnRow > *{
    min-width:0;
  }
  .btnRow .btnWhite{
    min-width:0 !important;
    flex:1 1 0;
    max-width:100%;
  }

  .home-logo{ width:120px; }

  .history-link{
    right:24px;
    bottom:20px;
    font-size:12px;
  }
}
