/*généraliste*/

@font-face {
    font-family: 'Chelsea';
    src: url('./font/Chelsea.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*,
::before,
::after {
    box-sizing: border-box;
}

body {
    color: black;
    font-family: "Montserrat", sans-serif;
    overflow: hidden;
    margin: 0;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: white;
    text-decoration: none;
}

p {
    color: white;
    font-size: 1.15rem;
}

/*page d'introduction*/

.div-intro {
    background-color: rgb(69, 139, 219);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    gap: 1rem;
    padding: 1.5rem 0 1.5rem 0;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.div-intro img {
    width: 15%;
    margin: auto;
}

.div-intro h1 {
    text-align: center;
}

.timerDiv {
    display: flex;
    width: 200px;
    position: absolute;
    z-index: 3;
    display: none;
    justify-content: center;
    align-items: center;
    margin: 25px;
}

.timerDiv p {
    color: black;
    font-weight: bold;
    margin: 0;
    font-size: 2rem;
    position: absolute;
    z-index: 3;
}

.boutonChapitre2 {
    display: flex;
    width: 250px;
    position: absolute;
    z-index: 3;
    display: none;
    justify-content: center;
    align-items: center;
    margin: 25px;
    display: none;
    top: 0;
    left: auto;
}

.boutonChapitre2 button {
    color: black;
    font-weight: bold;
    margin: 0;
    font-size: 1.5rem;
    position: absolute;
    z-index: 3;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.boutonChapitre3 {
    display: flex;
    width: 250px;
    position: absolute;
    top: auto;
    left: auto;
    z-index: 3;
    display: none;
    justify-content: center;
    align-items: center;
    margin: 25px;
}

.boutonChapitre3 a {
    color: black;
    font-weight: bold;
    margin: 0;
    font-size: 1.5rem;
    position: absolute;
    z-index: 3;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}


/* classes utiltaires généralistes */
.grid {
    display: grid;

}

.grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
}

.grid-span-2 {
    grid-column: span 2;
}

.place-center {
    place-items: center;
}

.content-center {
    place-content: center;
}

.text-center {
    text-align: center;
}

.self-bottom {
    align-self: end;
}

.max-w-40 {
    max-width: 40rem;
}

.bg-black-50 {
    background: rgba(0, 0, 0, 0.5);
}

.bg-black-10 {
    background: rgba(0, 0, 0, 0.1);
}

.hidden {
    visibility: hidden;
}

.boutonDroite {
    position: absolute;
    right: 0;
    bottom: 50%;
    text-decoration: none;
    width: 80px;
    margin: 15px;
    z-index: 5;
}

.boutonGauche {
    position: absolute;
    left: 0;
    bottom: 50%;
    text-decoration: none;
    width: 80px;
    margin: 15px;
    z-index: 5;
}

.boutonBas {
    position: absolute;
    bottom: 0;
    left: auto;
    text-decoration: none;
    width: 80px;
    margin: 15px;
    z-index: 5;
}

.boutonHaut {
    position: absolute;
    top: 0;
    left: 50%;
    text-decoration: none;
    width: 80px;
    margin: 15px;
    z-index: 5;
}


.chapitre {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fond {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.portes {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    z-index: 3;
}

.porte {
    width: 280px;
    height: 550px;
}


.portesBains {
    z-index: 3;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    justify-content: space-evenly;

}

.porteBain {
    width: 400px;
    height: 100%;
}


/* classes composants */

.boutonSkip {
    text-decoration: none;
    width: 45px;
    margin: 15px;
}

.nav-link img {
    width: 100%;
}

.episode {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
}

.video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
}

.content {
    color: white;
    margin: 0 auto;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.accueil {
    background: black;
    height: 100vh;
}

/*page d'intro, avant la vidéo d'Isidore*/

.pop-up-effect{
    background-color:white;
    color:black;
    padding:2.2rem;
    background-image: url('./images/case-txt.svg');
    background-repeat:no-repeat;
    background-clip:border-box;
}

.pop-up-effect p{
    color:black;
}

.logo{
    display:flex;
    flex-direction:row;
    gap:2rem;
    justify-content:center;
    align-items:center;
}

.logo h1{
    font-size:5rem;
    font-family: 'Chelsea','cursive';
}

/*animation du bouton*/

.boutonintro {
    border: 2px solid white;
    color: white;
    font-family: "Roboto", sans-serif;
    font-size: 4rem;
    font-weight: 100;
    overflow: hidden;
    padding: 1rem 2rem;
    position: relative;
    text-decoration: none;
    transition: 0.2s transform ease-in-out, 0.2s color ease-in-out, 0.2s border ease-in-out;
    will-change: transform, color, border;
    z-index: 0;
    background: transparent;
    cursor: pointer;
}

/* Rideau jaune */
.boutonintro::after {
    background-color: #edbd56;
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-100%) rotate(0deg);
    transform-origin: bottom left;
    transition: 0.4s transform ease-out;
    will-change: transform;
    z-index: -1;
}

/* Effet de rideau au hover */
.boutonintro:hover::after {
    transform: translateX(0);
}

/* Effet de zoom et changement de couleur au hover */
.boutonintro:hover {
    border: 2px solid #edbd56;
}

.boutonintro:hover p {
    color:black;
}

.boutonintro p{
    font-size:3rem;
    font-family:  'Chelsea','cursive';
    margin:0.3rem;
}


.fauxbouton {
    display: none;
}

.boutonSkip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    cursor: pointer;
}

.boutonSkip i {
    color: white;
}

.boutonSkip i:hover {
    color: #ffdd42;
}

.gerant-button {
    width: 20vw;
    height: 30vh;
    position: absolute;
    top: auto;
    left: auto;
    cursor: pointer;
}

.gerant2-button {
    width: 20vw;
    height: 30vh;
    position: absolute;
    top: auto;
    cursor: pointer;
}

.dialogue-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    background-image: url('./images/tructext.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    padding-left: 45px;
    padding-right: 45px;
    padding-top: 35px;
    padding-bottom: 25px;
    z-index: 5;
}

.dialogue {
    flex-wrap: wrap;
    flex-direction: column;
    padding: 10px;
}

.profil img {
    width: 150px;
}

.dialogue p {
    color: black;
    margin-top: 0;
}

.enligne,
.reponses {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
    padding: 0 5px 0 5px;
}

.reponses button {
    background-color: #2A384D;
    border: solid rgb(70, 66, 66) 2px;
    color: white;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    max-width: 400px;
}

.hideButton {
        cursor: pointer;
        width: 50px;
        position: absolute;
        top: 40px;
        right: 50px;
}

.enfant-button {
    position: absolute;
    left: 18%;
    bottom: -50px;
    cursor: pointer;
    z-index: -1;
}

.enfant-button img {
    width: 140px;
}

.mission, .mission2, .mission3{
    display:none;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background-color: white;
    padding: 1rem;
    position: absolute;
    bottom: 60px;
    left: 40px;
    z-index: -1;
    
    /* Initially collapsed */
    width: fit-content;
    padding-right: 0; /* No padding on the right initially */
    overflow: hidden;
    transition: width 0.5s ease-in-out, padding 0.3s ease-in-out;
}

.mission img, .mission2 img,  .mission3 img {
    width: 70px;
    cursor: pointer;
    flex-shrink: 0; /* Prevents the image from resizing */
}

.mission p, .mission2 p,  .mission3 p {
    color: black;
    opacity: 0;
    white-space: nowrap; 
    width: 0; 
    overflow: hidden;
    transition: width 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

/* Expanded state */
.mission.active, .mission2.active,  .mission3.active {
    padding-right: 1rem; 
}

.mission.active p, .mission2.active p,  .mission3.active p {
    width: auto; 
    opacity: 1;
}

.affiche-button {
    width: 100px;
    position: absolute;
    left: 30%;
    top: auto;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.affiche-button img {
    width: 100%;
}

.affiche-popup {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

.affiche-image {
    width: 20%;
}

.fiche-button {
    width: 150px;
    position: absolute;
    right: 30px;
    top: 30px;
    display: none;
    cursor: pointer;
}

.fiche-button img {
    width: 100%;
}

.fiche-popup {
    display: none;
    flex-direction: column;
    position:absolute;
    top:0;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.9);
}

.fiche-image {
    width: 20%;
}

.croixPopup {
    width: 50px;
    cursor: pointer;
}

.croixPopupAffiche {
    width: 50px;
    cursor: pointer;
}

.leon-button {
    position: absolute;
    bottom: -50px;
    left: 25%;
    width: 18%;
    cursor: pointer;
    z-index: 4;
}

.leon-button img {
    width: 100%;
}

.vitrail {
    position: absolute;
    width: 400px;
    height: 250px;
    top: 0;
    left: auto;
    cursor: pointer;
    margin: 0;
    display: none;
}

.boutonChapitre3 {
    display: none;
    position: absolute;
    top: 0;
    left: auto;
}

.dupuis-button {
    position: absolute;
    width: 8%;
    bottom: -8%;
    left: 15%;
    cursor: pointer;
    z-index: 4;
}

.dupuis-button img {
    width: 100%;
}

.lefevre-button {
    position: absolute;
    bottom: -10%;
    right: 11%;
    width: 16%;
    cursor: pointer;
    z-index: 4;
}

.lefevre-button img {
    width: 100%;
}

.orne-button {
    position: absolute;
    width: 14%;
    bottom: -15%;
    cursor: pointer;
    z-index: 4;
}

.orne-button img {
    width: 100%;
}

.horaires-button {
    width: 120px;
    position: absolute;
    left: 19%;
    bottom: 33%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.horaires-button img {
    width: 100%;
}

.horaires-popup {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

.horaires-image {
    width: 50%;
}

.croixPopupHoraires {
    width: 50px;
    cursor: pointer;
}

.carte-button {
    width: 150px;
    height: 150px;
    position: absolute;
    right: 30px;
    top: 30px;
    display: none;
    z-index: 3;
    cursor: pointer;
}

.carte-button img {
    width: 100%;
}

.carte-popup {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.9);
}

.carte-image {
    width: 40%;
}

.croixPopupCarte {
    width: 50px;
    cursor: pointer;
}


/*PUZZLE VITRAIL*/
/*morceaux cachés dans les Bains*/

.piece1 {
    background-color:white;
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 12%;
    right: 32%;
}

.piece2 {
    background-color:white;
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 27%;
    left: 40%;
}

.piece3 {
    background-color:white;
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 32%;
    left: auto;
}

/*morceaux du puzzle*/

#makeMeDraggable {
    width: 164px;
    height: 62px;
}

#makeMeDraggable2 {
    width: 163px;
    height: 63px;
}

#makeMeDraggable3 {
    width: 109px;
    height: 84px;
}

#makeMeDraggable4 {
    width: 163px;
    height: 89px;
}

#makeMeDraggable5 {
    width: 164px;
    height: 89px;
}

#makeMeDraggable6 {
    width: 104px;
    height: 82px;
}

#makeMeDraggable7 {
    width: 107px;
    height: 53px;
}

#makeMeDraggable8 {
    width: 163px;
    height: 51px;
}

#makeMeDraggable9 {
    width: 165px;
    height: 50px;
}

#makeMeDraggable10 {
    width: 107px;
    height: 49px;
}

#makeMeDraggable11 {
    width: 107px;
    height: 71px;
}

#makeMeDraggable12 {
    width: 165px;
    height: 67px;
}

#makeMeDraggable13 {
    width: 163px;
    height: 67px;
}

#makeMeDraggable14 {
    width: 107px;
    height: 67px;
}

#makeMeDraggable15 {
    width: 84px;
    height: 77px;
}

#makeMeDraggable16 {
    width: 164px;
    height: 71px;
}

#makeMeDraggable17 {
    width: 163px;
    height: 71px;
}

#makeMeDraggable18 {
    width: 84px;
    height: 77px;
}

#makeMeDraggable19 {
    width: 163px;
    height: 43px;
}

#makeMeDraggable20 {
    width: 163px;
    height: 43px;
}


/*placement des cases droppable du puzzle*/

#dropBox {
    width: 164px;
    height: 62px;
    background: transparent;
    border: solid black 3px;
    grid-area: 6/2;
    justify-self: center;
    align-self: center;
}

#dropBox2 {
    width: 163px;
    height: 63px;
    background: transparent;
    border: solid black 3px;
    grid-area: 6/3;
    justify-self: center;
    align-self: center;
}

#dropBox3 {
    width: 109px;
    height: 84px;
    background: transparent;
    border: solid black 3px;
    grid-area: 5/4;
    justify-self: center;
    align-self: center;
}

#dropBox4 {
    width: 163px;
    height: 89px;
    background: transparent;
    border: solid black 3px;
    grid-area: 5/3;
    justify-self: center;
    align-self: center;
}

#dropBox5 {
    width: 164px;
    height: 89px;
    background: transparent;
    border: solid black 3px;
    grid-area: 5/2;
    justify-self: center;
    align-self: center;
}

#dropBox6 {
    width: 104px;
    height: 82px;
    background: transparent;
    border: solid black 3px;
    grid-area: 5/1;
    justify-self: center;
    align-self: center;
}

#dropBox7 {
    width: 107px;
    height: 53px;
    background: transparent;
    border: solid black 3px;
    grid-area: 4/4;
    justify-self: center;
    align-self: center;
}

#dropBox8 {
    width: 163px;
    height: 51px;
    background: transparent;
    border: solid black 3px;
    grid-area: 4/3;
    justify-self: center;
    align-self: center;
}

#dropBox9 {
    width: 165px;
    height: 50px;
    background: transparent;
    border: solid black 3px;
    grid-area: 4/2;
    justify-self: center;
    align-self: center;
}

#dropBox10 {
    width: 107px;
    height: 49px;
    background: transparent;
    border: solid black 3px;
    grid-area: 4/1;
    justify-self: center;
    align-self: center;
}

#dropBox11 {
    width: 170px;
    height: 71px;
    background: transparent;
    grid-area: 3/1;
    justify-self: center;
    align-self: center;
}

#dropBox12 {
    width: 165px;
    height: 67px;
    background: transparent;
    border: solid black 3px;
    grid-area: 3/2;
    justify-self: center;
    align-self: center;
}

#dropBox13 {
    width: 163px;
    height: 67px;
    background: transparent;
    border: solid black 3px;
    grid-area: 3/3;
    justify-self: center;
    align-self: center;
}

#dropBox14 {
    width: 160px;
    height: 71px;
    background: transparent;
    grid-area: 3/4;
    justify-self: center;
    align-self: center;
}

#dropBox15 {
    width: 160px;
    height: 77px;
    background: transparent;
    grid-area: 2/1;
    justify-self: center;
    align-self: center;
}

#dropBox16 {
    width: 164px;
    height: 71px;
    background: transparent;
    border: solid black 3px;
    grid-area: 2/2;
    justify-self: center;
    align-self: center;
}

#dropBox17 {
    width: 163px;
    height: 71px;
    background: transparent;
    border: solid black 3px;
    grid-area: 2/3;
    justify-self: center;
    align-self: center;
}

#dropBox18 {
    width: 160px;
    height: 77px;
    background: transparent;
    grid-area: 2/4;
    justify-self: center;
    align-self: center;
}

#dropBox19 {
    width: 163px;
    height: 43px;
    background: transparent;
    grid-area: 1/2;
    justify-self: center;
    align-self: center;
}

#dropBox20 {
    width: 163px;
    height: 43px;
    background: transparent;
    grid-area: 1/3;
    justify-self: center;
    align-self: center;
}

#makeMeDraggable.ui-draggable-dragging {
    background: rgb(153, 7, 7);
}

#draggableHelper {
    width: 300 px;
    height: 300px;
    background: rgb(145, 255, 0);
}

/*fond du puzzle et messages*/

.fondVitrail {
    z-index: -1;
    position: absolute;
    object-fit: fill;
    overflow: hidden;
    filter: brightness(120%);
}

.messageVitrail {
    display: block;
    width: 400px;
    position: absolute;
    flex-direction: column;
    bottom: auto;
    z-index: 3;
    display: none;
    justify-content: center;
    align-items: center;
    margin: 25px;
    gap: 10px;
}

.messageVitrail p {
    color: black;
    font-weight: bold;
    margin: 0;
    font-size: 1.2rem;
    z-index: 3;
}

.boutonVitrail {
    width: 50px;
    z-index: 3;
}

.boutonVitrail img {
    width: 100%;
}

.fondBoutonVitrail {
    position: absolute;
}

/*input de réponse*/

.complete {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

#submitGuess {
    background-color: #77a8f0;
    border: solid rgb(79, 126, 213) 2px;
    color: black;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
}

#guessInput {
    background-color: #77a8f0;
    border: solid rgb(79, 126, 213) 2px;
    color: black;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    width: 45%;
}

.texte {
    width: 100%;
}

/*affichage pop-up de fin quand on perd*/

.fin-perdu-popup, .fin-reussi-popup {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3;
    justify-content: center;
}

.fin-perdu, .fin-reussi{
    text-align: center;
    background-image: url('./audio/cadre-fin.svg');
    background-repeat: no-repeat;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
    z-index: 15;
    width: 50%;
    height: 50vh;
    background-color: white;
    align-self: center;
}

.fin-perdu p {
    color: black;
}

.fin-perdu a {
    text-decoration: underline;
    color: black;
}

.logos{
    display:flex; 
    flex-direction:row;
    justify-content:space-between;
}

.fin-reussi h3{
    text-decoration: underline;
}

.boutonFin {
    width: 35%;
    height: 35%;
    clip-path: circle(30%);
    position: absolute;
    top: 30px;
}

.boutonFin button {
    width: 100%;
    height: 100%;
    background: none;
    cursor: pointer;
}

.fin-reussi-popup p {
    color: black;
}

.fin-reussi-popup a {
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    transition: 150ms;
}

.fin-reussi-popup a:hover {
    color: #77a8f0;
    transition: 150ms;
}

.ferme-fin {
    margin-top: 30px;
}

.fin-perdu-popup p {
    color: black;
}

.fin-perdu-popup a {
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    transition: 150ms;
}