:root { 
    --clr--0: #000000;
    --clr--1: #261420;
    --clr--2: #cb3e35;
    --clr--3: #fce300;
    --clr--4: #dfe0e2;
    --clr--F: #ffffff;
    --clr--valid-bg: #fce300;
    --clr--valid-txt:#167941;
    --clr--valid:#fce300;
    --clr--indices: #b6fec7;
    --clr--error: #cc3030;

    --clr--placeholder:#bbbbbb; 

    --ff-main: 'Rubik', sans-serif;

    --border: 2px solid #000;
}

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

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

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--2);
    color: #000;
    font-family: var(--ff-main);
}

.body--info {
    background-color: var(--clr--1);
    color: var(--clr--F);
}

.info--text {
    margin: 10px auto;
    padding: 0 20px;
    text-align: justify;
}

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

.info--img > img, .info--poster > img {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.img--necro {
    border-radius: 10px;
    border: var(--border);
}

.info--hp--ctn {
    display: flex;
    width: 100%;
    padding: 10px 30px;
}

.info--hp--ctn > img {
    flex: 20%;
    width: 10%;
}


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

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

.hidden {
    display: none;
}

/* PAGE PRINCIPALE */
.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 */

.btn--validate {
    width: 100%;
}

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

.btn--validate, .menu--btn {
    height: 50px;
    font-weight: 600;
    border-radius: 10px;
    background-color: var(--clr--F);
    font-size: 16px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    border: var(--border);
    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;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

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

.btn--validate:active, .menu--btn:active {
    box-shadow: 0px 0px 0px 0px;
    top: 5px;
    left: 5px;
  }

.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);
}

/* input:disabled::placeholder {
    color: var(--clr--valid-txt);
} */

.btn--tech {
    margin: 0 auto;
    /* width: 100%; */
    height: 30px;
    font-size: 15px;
    /* background: rgb(212, 212, 212); */
    background: transparent;
    color: rgb(63, 63, 63);
    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;
}

/* GENERAL */

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