html {
  font-size: 10px;
  --purple: #704885;
  --green: #8faf78;
  --btn-selected: #c3e4e2;
}

body,
html {
  padding: 0;
  margin: 0;
  background: #eeeeee;
  font-family: Buffon, sans-serif;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  background-color: #f5f5f5;
  border-radius: 10px;
}

::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

@font-face {
  font-family: "Buffon";
  src:
    url("BuffonStandard-Bold.woff2") format("woff2"),
    url("BuffonStandard-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Buffon";
  src:
    url("BuffonStandard-BoldItalic.woff2") format("woff2"),
    url("BuffonStandard-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Buffon";
  src:
    url("BuffonStandard-Light.woff2") format("woff2"),
    url("BuffonStandard-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Buffon";
  src:
    url("BuffonStandard-Regular.woff2") format("woff2"),
    url("BuffonStandard-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Buffon";
  src:
    url("BuffonStandard-LightItalic.woff2") format("woff2"),
    url("BuffonStandard-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Buffon";
  src:
    url("BuffonStandard-RegularItalic.woff2") format("woff2"),
    url("BuffonStandard-RegularItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

.transition-fade {
  transition: 0.4s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
}

.is-next-container {
  z-index: 0;
}

#aventure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  background: #cccccc;
  opacity: 0;
  transition: opacity 0.5s;
  display: grid;
  overflow: hidden;
  grid-template-areas: "main";
}

#aventure > main {
  grid-area: main;
}

.transition-slide {
  transform: none;
  opacity: 1;
}

/* Parallel animation timing */
.transition-slide {
  transition: all 0.5s;
}

/* Style of previous container after leaving */
.transition-slide.is-previous-container {
  opacity: 0;
}

/* Style of next container before entering */
.transition-slide.is-next-container {
  opacity: 0;
}

.is-next-container #aventure_top {
  transform: translateY(-100%);
}

/*#aventure > main {*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/

#aventure_top.phylactere::after {
  content: "";
  position: absolute;
  left: 440px;
  bottom: -63px;
  height: 64px;
  width: 64px;
  background: url(../img/phylactere.svg) no-repeat top left;
  filter: drop-shadow(-6px 10px 5px rgba(0, 0, 0, 0.2));
}

#aventure[style*="transform"] {
  opacity: 1;
}

#aventure_top > div {
  align-self: center;
}

#aventure_top {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #ffffff;
  display: flex;
  min-height: 14rem;
  align-items: stretch;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.5s;
}

#aventure_top .top-left {
  width: 36.8rem;
  display: flex;
  align-self: stretch;
  position: relative;
}

#aventure_top .top-left-out span {
  font-size: 2.1rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  padding-left: 10px;
}

#aventure_top .top-left-out {
  border-right: 1px solid;
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#aventure_top.bandeau-green {
  background: var(--green);
}

#aventure_top.bandeau-purple {
  background: var(--purple);
  color: #ffffff;
}

#aventure_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aventure_bottom__accueil {
  display: block;
  padding: 10px;
}

.top-left,
.top-right {
  min-width: 36.8rem;
  display: flex;
}

.top-right {
  justify-content: center;
}

.top-center {
  flex-grow: 1;
  text-align: center;
  font-size: 2.8rem;
  padding-left: 30px;
  padding-right: 30px;
}

#aventure_bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -10px 10px rgba(0, 0, 0, 0.2);
  min-height: 8.5rem;
}

.aventure_bottom_etapes {
  display: flex;
}

.aventure_bottom_etapes span {
  font-size: 1.8rem;
  display: inline-block;
  text-align: center;
  color: #d8d8d8;
  min-width: 30px;
  height: 30px;
  border-radius: 15px;
  border: 2px solid;
  justify-content: center;
  align-items: center;
  line-height: 23px;
  background: #ffffff;
  vertical-align: middle;
  position: relative;
}
.aventure_bottom_etapes__etape.intermediaire span {
  text-indent: -9999px;
  border-radius: 50%;
  height: 10px;
  min-width: auto;
  width: 10px;
  background: #d8d8d8;
  border-color: #d8d8d8;
}

.aventure_bottom_etapes__etape {
  display: flex;
  align-items: center;
  color: #d8d8d8;
  text-decoration: none;
}

.aventure_bottom_etapes__etape::after {
  content: "";
  display: block;
  width: 115px;
  margin-left: 10px;
  margin-right: 10px;
  border-top: 1px dotted;
}

.aventure_bottom_etapes__etape.pre-intermediaire::after,
.aventure_bottom_etapes__etape.intermediaire::after {
  width: 43px;
}

.aventure_bottom_etapes__etape:last-child::after {
  display: none;
}

.aventure_bottom_etapes__etape:first-child span {
  padding: 0 20px;
}
.aventure_bottom_etapes__etape:last-child span {
  min-width: 80px;
}

.aventure_bottom_etapes__etape.active span::after {
  content: "";
  width: 27px;
  height: 27px;
  position: absolute;
  top: -10px;
  right: -10px;
  background: url(../img/couronne.svg) no-repeat;
}

.aventure_bottom_etapes__etape.active {
  color: #000000;
}

.aventure_bottom_etapes__etape.active span {
  font-size: 3.6rem;
  min-width: 60px;
  height: 60px;
  color: #000000;
  border-radius: 30px;
  line-height: 48px;
}

.aventure_bottom_etapes__etape.active.intermediaire span {
  min-width: auto;
  width: 20px;
  height: 20px;
}
.aventure_bottom_etapes__etape.active.intermediaire span:after {
  display: none;
}

.aventure_bottom_etapes__etape.past {
  color: #000000;
}

.aventure_bottom_etapes__etape.past span {
  color: #000000;
}

.aventure_bottom_etapes__etape.intermediaire.active span,
.aventure_bottom_etapes__etape.intermediaire.past span {
  background: #000000;
  border-color: #000000;
}

.aventure-menu--items {
  position: absolute;
  left: 1325px;
  top: 280px;
  width: 460px;
  padding: 0px;
  height: 560px;
  display: flex;
  align-content: space-evenly;
  flex-wrap: wrap;
}

.aventure-menu--items a {
  position: relative;
  width: 100%;
  text-align: center !important;
  justify-content: center;
  margin-bottom: 45px;
}

.aventure-menu--items a:last-child {
  margin-bottom: 0;
}

.modal-footer {
  border: 0;
  justify-content: space-evenly;
}

.btn {
  background: #5d7b84;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
  min-height: 8rem;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0 50px;
  font-weight: bold;
  border: 0;
  transition: all 0.3s;
}

.btn-continuer::after {
  content: "►";
  display: inline-block;
  padding-left: 10px;
  position: relative;
  right: -10px;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
  opacity: 1;
  background: #000;
  color: #ffffff;
  filter: contrast(0.1);
}

.btn:hover {
  background: #000;
  color: #ffffff;
}

.btn-centre {
  position: absolute;
  left: 50%;
  bottom: 5.7rem;
  transform: translateX(-50%);
  z-index: 5;
}

.largeur-inside > .btn-centre {
  bottom: 14.5rem;
}

.img-relative {
  position: relative;
  /*display: inline-block;*/
}

.popup-image-out .img-relative img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.img-copyright,
.largeur-inside .modal .img-copyright {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 30px;
  text-align: left;
  font-size: 1.4rem;
  line-height: 1em;
  max-width: 100%;
}

.aventure-mot-space {
  display: inline-block;
  width: 30px;
}

.largeur-inside .img-copyright {
  bottom: 100px;
  z-index: 5;
}

.img-copyright * {
  margin-bottom: 0;
}

.btn-centre--off-right:after {
  content: "☰";
  padding-left: 20px;
  font-size: 4rem;
}

.btn-centre--off-right {
  line-height: 1em;
  padding-right: 30px;
  left: 60%;
  white-space: pre-line;
  transform: scale(0.8);
}

.btn-secondary {
  background-color: #555;
}

.modal-content {
  padding: 25px;
}

.modal-xxl {
  width: 90%;
  max-width: 73%;
}

.aventure-img-fond {
  width: 1920px;
  height: 857px;
}

.round-items-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 32rem;
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

.round-items-right--item {
  border-radius: 100%;
  background: #000000;
  overflow: hidden;
  width: 11.7rem;
  height: 11.7rem;
  margin: 1rem;
}

.ClickToFind-item > img {
  opacity: 0;
  transform: scale(0) rotateY(10deg);
  transition: all 0.3s cubic-bezier(0.395, -0.6, 0.695, 1.65);
}

.ClickToFind-item.active img {
  transform: none;
  opacity: 1;
}

.aventure-zone-utile {
  position: relative;
  width: 1920px;
  height: 857px;
}

.DragToZone-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 160rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.DragToZone--drops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3rem;
  padding: 5rem 10rem;
  height: 100%;
}

.DragToZone--submit {
  text-align: center;
  padding-bottom: 50px;
  justify-content: center;
  display: flex;
}

.DragToZone--submit a {
  width: fit-content;
}

.DragToZone-left .DragToZone--drop {
  background: #1c786e;
  text-align: center;
  border-radius: 10px;
  position: relative;
}

/* Pour 4 éléments : 2 colonnes sur 2 lignes, chaque élément prend toute la largeur */
.DragToZone--drops:has(.DragToZone--drop:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* Pour 5 éléments : 2 sur la 1ère ligne, 3 sur la 2ème */
.DragToZone--drops:has(.DragToZone--drop:nth-child(5):last-child) {
  grid-template-columns: repeat(6, 1fr);
}

.DragToZone--drops:has(.DragToZone--drop:nth-child(5):last-child)
  .DragToZone--drop:nth-child(1),
.DragToZone--drops:has(.DragToZone--drop:nth-child(5):last-child)
  .DragToZone--drop:nth-child(2) {
  grid-column: span 3;
}

.DragToZone--drops:has(.DragToZone--drop:nth-child(5):last-child)
  .DragToZone--drop:nth-child(3),
.DragToZone--drops:has(.DragToZone--drop:nth-child(5):last-child)
  .DragToZone--drop:nth-child(4),
.DragToZone--drops:has(.DragToZone--drop:nth-child(5):last-child)
  .DragToZone--drop:nth-child(5) {
  grid-column: span 2;
}

.DragToZone-left .DragToZone--drop h2 {
  color: #ffffff;
  font-weight: bold;
  font-size: 2.6rem;
  padding-top: 15px;
}

.DragToZone-left .DragToZone--drop .bravo {
  bottom: 0;
  right: 0;
  transform: translateX(30%) translateY(30%) scale(0) rotateY(90deg);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.395, -0.6, 0.695, 1.65);
  position: absolute;
}

.DragToZone-left .DragToZone--drop.done .bravo {
  opacity: 1;
  transform: translateX(30%) translateY(30%) scale(1) rotateY(0deg);
}

.DragToZone-left .DragToZone--drop .drop {
  display: inline-flex;
}

.aventure-choixniveau a.btn {
  display: inline-flex;
}

.aventure-choixniveau {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
}

.aventure-quiz-simple > img {
  filter: brightness(50%);
}

.aventure-quiz-simple-content {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  text-align: center;
  max-width: 50%;
  transform: translateX(-50%);
}

.aventure-quiz-simple-content {
}

.btn.btn-quizsimple {
  background: #ffffff;
  display: inline-block;
  min-width: 50%;
  color: #000000;
  text-transform: none;
}

.btn.btn-quizsimple.disabled {
  color: #000000;
  background: var(--btn-selected);
  filter: none;
}

.aventure-quiz-simple-content h2 {
  padding-top: 50px;
  font-size: 2.6rem;
  color: #ffffff;
  padding-bottom: 50px;
}

.aventure-quiz-simple-content-reponses > div {
  padding-bottom: 20px;
}

.aventure-quiz-simple-valider {
  margin-top: 50px;
}

.modal h1 {
  font-size: 2.6rem;
  text-align: center;
  font-weight: bold;
}

.modal-body {
  font-size: 1.8rem;
}

.modal {
  background: rgba(0, 0, 0, 0.5);
}

.btn-close {
  font-size: 2.6rem;
  border-radius: 50%;
  color: #ffffff;
  background-color: #999;
  padding: 20px !important;
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #fff;
  opacity: 1;
  filter: invert();
  z-index: 5;
  box-shadow: 0 0 0px 10px rgb(0, 0, 0);
}

.transition-video {
}

.modal-content {
  border-radius: 50px;
  padding: 25px 20px;
}

.modal-content audio {
  width: 100%;
}

.modal-content video,
.modal-content iframe {
  aspect-ratio: 16 / 9;
  height: 100%;
  width: 100%;
  border-radius: 20px;
}

.modal-header {
  border: 0;
}

.modal-header + .modal-body,
.modal-title + p {
  padding-top: 25px;
  position: relative;
}

.modal-header + .modal-body::before,
.modal-title + p::before {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  border-top: 3px solid;
}

h1.modal-title {
  text-align: left;
}

.modal-body .row {
  align-items: center;
}

.aventure-quiz-simple-nb {
  font-size: 3.2rem;
  text-align: center;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: -90px;
  right: 100px;
  padding: 80px;
  padding-top: 95px;
  padding-bottom: 35px;
}

.aventure-quiz-multiple-nb {
  display: none;
}

.aventure-quiz-simple-imggauche {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aventure-quiz-simple-imggauche img {
  border-radius: 50%;
  overflow: hidden;
}

.tablette {
  position: absolute;
  width: 1920px;
  height: 857px;
  background: url(../img/tablette.svg);
}

.tablette-zone {
  position: absolute;
  width: 811px;
  height: 530px;
  left: 556px;
  top: 130px;
  overflow: hidden;
}

.tablette-embed,
.tablette-embed iframe,
.tablette-video,
.tablette-video video {
  width: 100%;
  height: 100%;
}

.tablette-texte {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 50%;
  padding: 20px;
  background: #ffffff;
  border-radius: 30px;
  font-size: 2.8rem;
  text-align: center;
}

.tablette-texte p {
  line-height: 1em;
}

.aretenir-titre {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 400px;
  text-transform: uppercase;
  background: var(--purple);
  padding: 20px;
  border-radius: 30px;
  transform: rotate(-10deg) translateX(-50%) translateY(-50%);
  color: #ffffff;
  font-size: 4rem;
}

.aretenir-texte,
.aventure-fin-texte {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 300px;
  right: 300px;
  display: flex;
  align-content: center;
  background: #ffffff;
  padding: 50px;
  font-size: 3rem;
  text-align: center;
  border-radius: 30px;
  justify-content: center;
}

.aventure-fin-img {
  position: absolute;
  top: 0;
  left: 0;
}

.aventure-choixniveau--items {
  position: absolute;
  top: 0;
  width: 100%;
}

.aventure-quiz-multiple-content-reponses {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 50%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  height: 680px;
}

.aventure-quiz-multiple-content-reponses button.btn-quizmultiple {
  background: #ffffff;
  text-align: left;
  color: #000000;
  text-transform: none;
  line-height: 2rem;
  width: 100%;
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
}

.aventure-quiz-multiple-content-reponses button.btn-quizmultiple.selected {
  background: var(--btn-selected);
}

.aventure-quiz-multiple-content-reponses > div {
  width: 45%;
}

.modal-body {
  border: 0;
}

.modal-body img {
  max-width: 100%;
  border-radius: 20px;
}

.popup-image-out {
  text-align: center;
}

.aventure-puzzle--items {
  position: relative;
  z-index: 0;
}

.aventure-puzzle--item {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0px 20px 0px rgba(0, 0, 0, 0.2));
}

.aventure-puzzle--item.done {
  filter: none;
  pointer-events: none;
}

.aventure-puzzle > img {
  position: absolute;
}

.aventure-puzzle--img-fin {
  opacity: 0;
  visibility: hidden;
  transition: all 1s;
  z-index: 4;
}

.aventure-puzzle.done .aventure-puzzle--img-fin {
  opacity: 1;
  visibility: visible;
}
