:root { 
    --clr--0: #000000;
    --clr--1: #29245e;
    --clr--2: #E94E1B;
    --clr--3: #f5d15b;
    --clr--4: #dfe0e2;
    --clr--F: #ffffff;
    --clr--valid-bg: #fce300;
    --clr--valid-txt:#2c6444;
    --clr--valid:#fce300;
    --clr--indices: #b6fec7;
    --clr--error: #E94E1B;

    --clr--placeholder:#bbbbbb; 

    /* --ff-main: 'Rubik', sans-serif; */
    --ff-main: 'Quicksand', sans-serif;
    --ff-title: 'Dosis', sans-serif;

    --border: 2px solid #000;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--clr--placeholder);
    opacity: 0.8; /* Firefox */
    font-size: 16px;
    font-family: var(--ff-title);
}
  
:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--clr--placeholder);
    font-size: 16px;
    font-family: var(--ff-title);
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--clr--placeholder);
    font-size: 16px;
    font-family: var(--ff-title);
}

html {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    font-size: 100%;
    margin: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
    /* -webkit-tap-highlight-color:  rgba(255, 255, 255, 0);   /* Rend le blue highligt transparent sur tout le site (ouf!) */
}

body {
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--clr--1);
    color: var(--clr--F);
    font-family: var(--ff-main);
}

a {
    text-decoration: var(--clr--2);
    color: var(--clr--2);
/*     cursor: pointer; */
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
}

/* ////////////// */


/* BTN */

.btn--link, .btn--challenge {
    height: 80px;
    /* font-weight: 600; */
    border-radius: 10px;
    background-color: var(--clr--2);
    font-size: 16px;
    /* letter-spacing: 2px; */
    text-decoration: none;
    /* text-transform: uppercase; */
    color: var(--clr--F);
    cursor: pointer;
    border: var(--border);
    margin: 10px 20px 10px 20px;
    padding: 0.25em 0.5em;
    /* box-shadow: 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px, 5px 5px 0px 0px; */
    box-shadow: 0px 11px 0px -7px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.btn--ctn {
    display: flex;
    flex-direction: column;
}

.btn--link:active, .btn--challenge:active, .btn--validate:active {
    /* background: var(--clr--F); */
    /* color: var(--clr--1); */
    box-shadow: 0px 0px 0px 0px;
    top: 5px;
    /* left: 5px; */
  }
  
.noshadow:active {
    box-shadow: 0px 11px 0px -7px;
    top: 0px;
}

.btn--challenge {
    font-weight: 600;
    letter-spacing: 2px;
    font-family: var(--ff-title);
}


.btn--challenge--round--ctn {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-items: center;
}

.btn--challenge--round {
    display: flex;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 5px;
    margin: 2px;
    background: var(--clr--F);
    color: var(--clr--1);
    justify-content: center;
    align-items: center;
}

/* INFO PAGE */

.photowall {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 180px;
}

.photowall > img {
    max-height: 250px;
    border-radius: 10px;
    margin: 5px;
    height: 100%;
}

.master--ctn {
    margin: 0 10px;
}

.info--text, .info--title, .info--pitch {
    margin: 10px auto;
    padding: 0 20px;
    text-align: center;
}

.info--pitch {
    padding: 25px;
    border-radius: 20px;
    text-align: justify;
    background-color: var(--clr--F);
    color: var(--clr--1);
}

.info--title {
    font-weight: bold;
    color: #E94E1B;
}

.info--img, .info--text {
    text-align: center;
}

.info--illustration {
    text-align: center;
    padding: 20px;
}

.info--illustration > img {
    width: 40%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0px 0px 0px 2px var(--clr--F), 0px 0px 0px 6px var(--clr--1), 0px 0px 0px 8px var(--clr--F), 0px 0px 0px 12px var(--clr--1), 0px 0px 0px 14px var(--clr--F);
}

.footer {
    padding: 0 0 30px 0;
}

.info--icons--ctn {
    display: flex;
    width: 100%;
    padding: 20px 0;
    justify-content: space-around;
}

.info--icons--ctn > img {
    /* flex: 20%; */
    width: 16%;
    /* border: solid 5px var(--clr--2); */
}

.info--illustration > img, .info--icons--ctn > img  {   
    box-shadow: 0px 0px 0px 2px var(--clr--F), 0px 0px 0px 6px var(--clr--1), 0px 0px 0px 8px var(--clr--F), 0px 0px 0px 12px var(--clr--1), 0px 0px 0px 14px var(--clr--F);
    border-radius: 50%;
}

/* MAIN */

/* HEADER */

.header--ctn {
    width: 100%;
    background: var(--clr--1);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    padding: 15px 0 0 0;
}

.header--img {
    width: 100%;
    border-radius: 10px;
}
.header--app--img {
    width: 40%;
    border-radius: 10px;
}

.header--score--ctn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header--score-text, .header--score-value {
    text-align: center;
    color: var(--clr--F);
}

.header--score-text {
    font-size: 12px;
}

.header--score-value {
    font-size: 30px;
    font-weight: bold;
}

/* BTN */

.btn--challenge {
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    height: 50px;
    background: var(--clr--2);
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
    
}

/* MENU */


.challenge--ctn {
    display: flex;
    flex-direction: column;
}

.challenge--title-img {
    width: 100%;
}

.challenge--instructions-img {
    
}

.challenge--text-brief {
    padding: 20px;
    background: var(--clr--F);
    color: var(--clr--0);
    border-radius: 10px;
    /* margin: 10px 0px; */
}

.input--box--ctn {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.input--ctn > input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    padding: 10px;
    color: var(--clr--1);
    font-size: 20px;
    font-family: var(--ff-title);
}

.btn--validate {
    background: var(--clr--2);
    width: 70px;
    margin-left: 10px;
    height: 50px;
    border-radius: 10px;
    border: none;
    padding: 10px;
    color: var(--clr--F);
    font-size: 20px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;

    border: var(--border);
    box-shadow: 0px 11px 0px -7px;
    position: relative;
}

.error {
    color: white;
    background-color: var(--clr--error);
    border-radius: 5px;
    padding: 5px;
    text-align: center;
}

.bottom--menu--ctn {
    position: fixed;
    display: flex;
    bottom: 10px;
    width: 96%;
    margin: 0 auto;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 600px;
}

.page--ctn {
    padding: 20px;
}

.welcome--text, .page--txt {
    margin: 10px auto;
    padding: 10px;
    border: var(--border);
    background-color: var(--clr--F);
    color: #000;
    border-radius: 10px;
    text-align: center;
}

.welcome--text {
    font-size: x-large;
}

.page--txt {
    font-size: medium;
}

.page--hint {
    text-align: center;
    color: var(--clr--0);
    margin: 10px auto;
    background-color: var(--clr--3);
    padding: 10px;
    border-radius: 10px;
    border: var(--border);
}

.bloc--ctn {
    width: 100%;
    color: var(--clr--F);    
    height: 60px;
    background-color: var(--clr--5);
    border-radius: 10px;
    margin: 10px auto;
    height: 100%;
}

.indice--final--txt {
    display: block;
    font-weight: 800;
    font-size: large;
    margin-top: 5px;
}

/* TOGGLE BTN */

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
    border-radius: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr--F); /* Fond FALSE */
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
    border: var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: var(--clr--2); /* Fond Petit Carré */
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--clr--valid-bg); /* Fond TRUE */
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--clr--2);
}

input:checked + .slider:before {
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(30px);
    transform: translateX(30px);
}

/* PAGE FIGURES */
.box--ctn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 10px auto;
}

.figures--ctn {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.box--img--ctn {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px 20px 10px;
}

.box--img--ctn > img {
    width: 70px;
    margin: 0 0 10px 0;
}

/* BOUTTONS */

.menu--btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 5px;
}


.btn--final {
    background-image: url('../img/bg-btn-final.jpg') !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: transparent;
}



.menu--ctn {
    /* position: fixed; */
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 60px;
    padding: 10px;
}

/* INPUT ET BOUTONS */  
.input--ctn {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    margin: 10px auto;
    caret-color: var(--clr--0); /* Couleur du curseur */
}

.input--field--ctn {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

input {
    text-align: center;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    padding: 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    border: var(--border);
    color: var(--clr--0);
}

input:focus-visible {
    outline-offset: 0px;
    outline: none; /* Enlève la bordure blanche de l'input inFocus */
}

input:disabled {
    background-color: var(--clr--valid-bg);
}



/* ERREURS & TECHNIQUE */

.btn--tech {
    margin: 20px auto;
    /* width: 100%; */
    height: 30px;
    font-size: 15px;
    /* background: rgb(212, 212, 212); */
    background: transparent;
    color: rgb(177, 177, 177);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    text-align: center;
    cursor: pointer;
    -webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Likely future */
    border: none;
    border-radius: 5px;
    padding: 8px;
}

.hidden {
    display: none;
}
