.anim {
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-delay: 1s;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
}
@keyframes fade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}
@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes disappear {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.shadow {
  -webkit-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
}
.shadow-off {
  -webkit-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0);
  -moz-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0);
  box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0);
}
body {
  font-family: "Figtree", serif;
  font-weight: 300;
}
.fw-n {
  font-family: "Figtree", serif;
  font-weight: 300;
}
.fw-b {
  font-family: "Figtree", serif;
  font-weight: 600;
}
a {
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
}
a .emoji {
  margin-right: 10px;
}
.btn {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  font-family: "Figtree", serif;
  font-weight: 600;
  font-size: 1.2em;
  text-align: center;
  color: #000;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0);
  -moz-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0);
  box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0);
  transition: all 0.1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  -webkit-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
}
.btn-rnd {
  display: block;
  padding: 16px 30px;
  border-radius: 30px;
  box-sizing: border-box;
  background-color: #fc0;
  text-decoration: none;
  font-family: "Figtree", serif;
  font-weight: 600;
  color: #000;
}
.btn-xs {
  padding: 14px 18px;
  font-size: .8em;
}
.btn-black {
  background-color: #000;
  color: #fff;
  opacity: 0.8;
  transition: all 0.2s ease-in-out;
}
.btn-black:hover {
  opacity: 1;
}
.loader {
  position: fixed;
  z-index: 100;
  top: 0%;
  opacity: 0;
  left: 50%;
  margin-left: -25px;
  margin-top: -25px;
  transition: all 0.6s ease-in-out;
}
.loader.on {
  top: 50%;
  opacity: 1;
}
.emoji {
  font-size: 1.4em;
}
.app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar {
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  opacity: 0;
  animation-name: appear;
  animation-duration: 4s;
  animation-delay: 1s;
}
.bg-yellow {
  background-color: #ffefb4;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-delay: 1s;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  opacity: 1;
  pointer-events: none;
  animation-name: disappear;
}
.bg-radial {
  background-image: url(/img/bg-radial.webp);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-delay: 1s;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-name: fade;
}
.hdr {
  position: fixed;
  top: 0;
  z-index: 99;
  width: 100%;
  padding: 10px 30px;
  box-sizing: border-box;
  background-color: rgba(252, 196, 25, 0.2);
  font-family: "Figtree", serif;
  font-weight: 600;
  color: #000;
  top: -100px;
  animation-delay: 2s;
  animation-name: header;
  animation-timing-function: ease-in-out;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
@keyframes header {
  0% {
    top: -100px;
  }
  100% {
    top: 0px;
  }
}
.avatar {
  position: relative;
  margin: 0 auto;
  width: 300px;
  height: 300px;
}
body[data-app-step="form"] .avatar {
  position: fixed;
  overflow: hidden;
  -webkit-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  box-shadow: 3px 3px 28px -6px rgba(0, 0, 0, 0.1);
  top: 10px;
  right: 30px;
  transform: scale(0.3);
  transform-origin: top right;
  border-radius: 200px;
  border: solid 10px #cb4f24;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 100;
}
.avatar > * {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.avatar-glasses {
  display: flex;
  height: 100%;
  position: relative;
  transition: all 0.4s ease-in-out;
}
.avatar-glass {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  cursor: pointer;
  opacity: 0.2;
  transition: all 0.2s ease-in-out;
}
.avatar-glass:hover {
  opacity: 1;
}
.avatar[data-avatar-glass="1"] .avatar-glasses {
  left: 0px;
}
.avatar[data-avatar-glass="1"] .avatar-glass:nth-child(1) {
  opacity: 1;
}
.avatar[data-avatar-glass="2"] .avatar-glasses {
  left: -300px;
}
.avatar[data-avatar-glass="2"] .avatar-glass:nth-child(2) {
  opacity: 1;
}
.avatar[data-avatar-glass="3"] .avatar-glasses {
  left: -600px;
}
.avatar[data-avatar-glass="3"] .avatar-glass:nth-child(3) {
  opacity: 1;
}
.avatar[data-avatar-glass="4"] .avatar-glasses {
  left: -900px;
}
.avatar[data-avatar-glass="4"] .avatar-glass:nth-child(4) {
  opacity: 1;
}
.avatar-controls {
  position: fixed;
  padding: 40px;
  width: 100%;
  z-index: 100;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  bottom: -100px;
  transition: all 0.4s ease-in-out;
}
body[data-app-step="avatar"] .avatar-controls {
  bottom: 20px;
}
.avatar-control {
  text-align: center;
  margin: 0 20px;
}
.avatar-control label,
.avatar-control input {
  display: block;
}
.avatar-control label {
  display: block;
  padding: 16px 30px;
  border-radius: 30px;
  box-sizing: border-box;
  background-color: #fc0;
  text-decoration: none;
  font-family: "Figtree", serif;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}
.avatar-buttons {
  display: flex;
}
.avatar-buttons > * {
  margin-right: 10px;
}
input[type="range"] {
  -webkit-appearance: none;
  /* Supprime le style par défaut */
  appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  /* Couleur de la piste */
  border-radius: 4px;
  outline: none;
  opacity: 0.9;
  transition: opacity 0.15s ease-in-out;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fcc419;
  border-radius: 50%;
  border: 2px solid #fcc419;
  /* Optionnel: une bordure */
  cursor: pointer;
  transition: background 0.2s;
}
.btn-start {
  position: absolute;
  bottom: 0;
  top: inherit;
  bottom: -400px;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}
body[data-app-step="start"] .btn-start {
  bottom: -60px;
  opacity: 1;
}
.qcm {
  position: absolute;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
}
.qcm-wrp {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.4s ease-in-out;
}
.qcm-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.qcm-question {
  text-align: center;
  margin-bottom: 30px;
  font-family: "Figtree", serif;
  font-weight: 600;
  font-size: 2em;
}
.qcm-helper {
  font-size: 0.6em;
  display: block;
  font-family: "Figtree", serif;
  font-weight: 300;
  opacity: 0.4;
}
.qcm-emoji {
  text-align: center;
  font-size: 3em;
}
body[data-app-step="form"] .qcm {
  opacity: 1;
  z-index: 98;
  pointer-events: all;
}
.qcm-status {
  position: absolute;
  top: 18px;
}
.qcm-pages {
  position: absolute;
  top: 80px;
  display: flex;
  justify-content: center;
  z-index: 90;
}
.qcm-page {
  margin: 0 10px;
  background-color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  transition: all 0.2s ease-in;
  font-family: "Figtree", serif;
  font-weight: 600;
  color: #000;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: all 0.2s ease-in-out;
  position: relative;
  cursor: pointer;
}
.qcm-page.on {
  pointer-events: all;
  background-color: #fcc419;
}
.qcm-page:hover {
  opacity: 1;
}
.qcm-page::after {
  content: "";
  width: 20px;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 50%;
  margin-top: -2px;
  right: -20px;
  transition: all 0.2s ease-in;
}
.qcm-page.on::after {
  background-color: #fcc419;
}
.qcm-answer {
  margin-bottom: 20px;
}
.qcm-answer.on {
  background-color: #fcc419;
  coolor: #fff;
}
textarea {
  border: 0;
  padding: 30px;
  border-radius: 30px;
  width: 100%;
  box-sizing: border-box;
}
