/*FONT HANKEN GROTESK POUR H5P*/

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;600;700&display=swap');

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/ton-theme/fonts/HankenGrotesk-Regular.woff2') format('woff2'),
       url('/wp-content/themes/ton-theme/fonts/HankenGrotesk-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/ton-theme/fonts/HankenGrotesk-SemiBold.woff2') format('woff2'),
       url('/wp-content/themes/ton-theme/fonts/HankenGrotesk-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/ton-theme/fonts/HankenGrotesk-Bold.woff2') format('woff2'),
       url('/wp-content/themes/ton-theme/fonts/HankenGrotesk-Bold.woff') format('woff');
}

/* GENERAL */

body.h5p-iframe,
.h5p-content {
  font-family: 'Hanken Grotesk', sans-serif !important;
}

.h5p-content {
    position: relative;
    background: none;
    border: 0px;
    border-bottom: none;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.h5p-content ul.h5p-actions {
    display: none;
}

.h5p-question {
    background: transparent;
}

.h5p-question-introduction {
    font-size: 1em;
color: #854aff;
}

.h5p-question-content {
    margin: 2em;
}

.h5p-question-feedback {
    font-weight: bold;
    color: #9fb6ff;
}

/* BOUTONS */

.h5peditor .ui-dialog .h5p-joubelui-button, .h5peditor .h5p-joubelui-button, .h5p-joubelui-button
 {
    font-size: 0.9em;
    line-height: 1.2;
    margin: 0 0.5em 1em;
    padding: 0.5em 1.25em;
    border-radius: 0em;
    background: #854aff;
    color: #dbff67;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.h5peditor .ui-dialog .h5p-joubelui-button:hover, 
.h5peditor .h5p-joubelui-button:hover, 
.h5p-joubelui-button:hover {
    background: #dbff67;
    color: #854aff;
    box-shadow: none;
    transform: translateY(-1px);
}

.h5peditor .ui-dialog .h5p-joubelui-button:active, 
.h5peditor .h5p-joubelui-button:active, 
.h5p-joubelui-button:active {
    box-shadow: none;
    transform: translateY(0);
}

/* RESULTATS */

.questionset-results
{
    background: transparent;
}

.questionset-results .greeting {
    margin-top: 1em;
    margin-bottom: 0.2em;
    color: #777;
    font-size: 1em;
}

.h5p-joubelui-score-bar
 {
    border: none;
}

.h5p-joubelui-score-numeric {
    font-size: 1.2em;
}

.h5p-joubelui-score-bar-progress-wrapper {
    position: relative;
    margin-right: 0.3;
    height: 0.917em;
    border-radius: 1.5em;
    background: #f2f2f2;
}

.h5p-joubelui-score-bar-progress {
    background: linear-gradient(to right, #ffe0f7, #854aff);
    -webkit-transition: width 0.4s ease-in-out;
    -moz-transition: width 0.4s ease-in-out;
    -o-transition: width 0.4s ease-in-out;
    transition: width 0.4s ease-in-out;
    -webkit-backface-visibility: hidden;
    border-radius: 1.5em;
}

.h5p-joubelui-score-bar-star {
    display: none;
}

.h5p-joubelui-score-bar-star {
    display: none;
}

.h5p-joubelui-score-bar .joubel-tip-container {
    color: #ff682b;
}

.h5p-joubelui-score-number {
    color: #854aff;
font-size: 0.8em;
}

.joubel-speech-bubble-inner {
    background: #ffe0f7;
    box-shadow: none;
    border-radius: 1em;
    padding: 1em 1em;
    color: #ff682b;
}

.joubel-speech-bubble-inner-tail, .joubel-speech-bubble-tail
 {
    background: #ffe0f7;
    box-shadow: none;
}

/* POINTS DE PROGRESSION */

.progress-dot {
    border: none;
    background: #854aff;
 transition: all 0.3s ease;
}

.progress-dot.current:before {
    border-color: #854aff;
}

.progress-dot.answered {
    background: #e5e5e5;
}


/* MULTICHOICE QUESTIONS */

.h5p-multichoice .h5p-alternative-container {
    position: relative;
    text-align: left;
    display: block;
    padding: 0.25em 0.75em 0.25em 2.1em;
    border-radius: 0em;
    border: 0.1em solid transparent;
    font-weight: normal;
    background: transparent;
    box-shadow: 0 0.08em 0 #854aff;
transition: all 0.3s ease;
}

.h5p-multichoice .h5p-answer[aria-checked="true"]:not(.h5p-wrong):not(.h5p-correct):not([aria-disabled="true"]):hover .h5p-alternative-container {
    background-color: transparent;
    box-shadow: 0 0.08em 0 #854aff;
}

.h5p-multichoice .h5p-answer:not([aria-disabled="true"]):hover .h5p-alternative-container {
    background-color: transparent;
}

.h5p-multichoice .h5p-answerlaria-checked="true"]:not (.h5p-wrong) :not(.h5p-correct):not (laria-disabled="true"] ):hover .h5p-alternative-container {
background-color: none;
}

.h5p-multichoice .h5p-answer[aria-checked="true"] .h5p-alternative-container {
    color: #854aff;
    background: none;
    border: none;
    box-shadow: 0 0.08em 0 #854aff;
}

.h5p-multichoice .h5p-answer .h5p-alternative-container:before
 {
    font-family: icomoon-multichoice;
    border: medium none;
    display: block;
    height: 1em;
    width: 1em;
    position: absolute;
    left: 2.5em;
    top: 0.25em;
    margin: auto;
    text-decoration: none;
    color: #854aff;
}

.h5p-multichoice .h5p-answer:not([aria-disabled="true"]):focus .h5p-alternative-container {
    outline-style: none;
}

.h5p-multichoice .h5p-answer.h5p-wrong .h5p-alternative-container, .h5p-multichoice .h5p-answer.h5p-wrong:hover .h5p-alternative-container {
    background: none;
    border: none;
    border-bottom: 0.08em solid #ff3115;
    color: #ff3115;
    box-shadow: none;
}

.h5p-multichoice .h5p-wrong .h5p-answer-icon:before {
    color: #ff3115;
}

.h5p-multichoice .h5p-answer.h5p-correct .h5p-alternative-container, 
.h5p-multichoice .h5p-answer.h5p-correct:hover .h5p-alternative-container {
    background: none;
    border: none;
    border-bottom: 0.08em solid #3ad600;
    color: #3ad600;
    box-shadow: none;
}

.h5p-multichoice .h5p-correct .h5p-answer-icon:before {
    color: #3ad600;
}

.h5p-multichoice .h5p-answer .h5p-feedback-inner {
    background: #fbfbfb;
    border: 1px solid #854aff;
    padding: 0.5em 1.25em;
    color: #854aff;
}

.h5p-multichoice .h5p-answer.h5p-selected .h5p-feedback-inner {
border-bottom: 1px solid #854aff;
border-left: 1px solid #854aff;
border-right: 1px solid #854aff;
}

.h5p-multichoice .h5p-feedback-inner:before {
    background: #fbfbfb;
    box-shadow: inset 1px 1px 0px 0px #854aff;
}

/* DRAG & DROP */

.h5p-dragquestion .h5p-dragquestion-introduction {
    display: none;
}

.h5p-static.h5p-advanced-text h3 {
    display: block;
    font-size: 2.2em;
    color:#854aff;
    font-weight: bold;
}

.h5p-dragquestion {
    display: block;
    background: transparent;
}

.h5p-dragquestion .h5p-draggable {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #ff682b;
    color: #ffe0f7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: grab;
    padding: 0.5em 1em;
}


.h5p-dragquestion .h5p-draggable:not(.ui-state-disabled).h5p-draggable-hover:not(.h5p-correct):not(.h5p-wrong) {
    border: none;
    background: #9fb6ff;
    color: #dbff67;
    box-shadow: none;
}


/* Texte statique */

.h5p-dragquestion .h5p-static {
    background: transparent;
    position: absolute;
    z-index: 1;
}

.h5p-dragquestion .h5p-static > p {
    font-size: 1.2em;
    line-height: 1.25em;
    color: #854aff;
}

.h5p-dragquestion .h5p-static > p a {
    color: #ff682b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.h5p-dragquestion .h5p-static > p a:hover {
    color: #9fb6ff;
    text-decoration: none;
}

/* Zones de drop */

.h5p-dragquestion .h5p-label {
    line-height: 2em;
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 0em; 
    background-color: #ff682b;
    color: #ffe0f7;
}

.h5p-dragquestion .h5p-dq-highlight-dz .h5p-dropzone > .h5p-inner.h5p-active, 
.h5p-dragquestion .h5p-dq-highlight-dz-always .h5p-dropzone > .h5p-inner {
    padding: 0em;
    border: none;
    border-radius: 0em;
    background: #f2f2f2;
}

.h5p-dragquestion .h5p-dropzone > .h5p-inner.h5p-over {
    border: 1px solid #f9f9f9;
    border-radius: none;
    background: #f2f2f2;
}

.h5p-dragquestion .h5p-draggable.h5p-dropped {
    color: #ffe0f7;
    border: none;
    background: #854aff;
    border-color: none;
    box-shadow: none;
}


/* Réponses */

.h5p-dragquestion .h5p-dropped.h5p-wrong { 
    border: none;
    color: #b71c1c;
    background: #f7d0d0; 
}

.h5p-dragquestion .h5p-dropped.h5p-correct, .h5p-dragquestion .h5p-dropzone.h5p-correct-answer { 
    color: #255c41;
    border: none; 
    box-shadow: none; 
    background: #9dd8bb; 
}


/* DRAG THE WORDS */


.h5p-drag-text [aria-dropeffect] {
    background-color: #FF682B!important;
    border-radius: 1em!important;
}

.h5p-drag-text .h5p-drag-droppable-words {
		
    line-height: 1.75;
    Color: #FF682B!important;
}


.h5p-drag-text [aria-grabbed] {
    line-height: 1.25;
    border-radius: 1em;
    padding: 0.2em 0.8em;
    margin: 0.5em;
    vertical-align: top;
    text-align: center;
    display: inline-block;
    border: none;
    overflow: hidden;
    background: #854AFF;
    box-shadow: none;
    font-size: 0.9em;
    color: #fff;
    z-index: 3;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.h5p-drag-text [aria-grabbed='true'], .h5p-drag-text [aria-grabbed].h5p-drag-dropped:not(.ui-draggable-disabled):hover, .h5p-drag-text [aria-grabbed]:not(.ui-draggable-disabled):hover {
    border: none;
    color: #fff;
    background: #FF682B;
}

.h5p-drag-text [aria-grabbed].h5p-drag-dropped {
    width: 100%;
    margin: -0.1em 0 0 0;
    padding: 0.1em 0.825em;
    white-space: nowrap;
    color: #fff;
    background: #FF682B;
    border: 0.1em solid #FF682B;
}
