﻿@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    margin: 0;
    background-color: #dcccc0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
}

html.scrolled-snap {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}
  
html.scrolled-snap body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.app_minHeight {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vbp-header-menu-button__svg {
    width: 25px;
    height: 20px;
    cursor: pointer;
    transform: scaleX(-1);
}
  
.vbp-header-menu-button__svg line {
    stroke: #fff;
    stroke-dasharray: 100%;
    stroke-dashoffset: 0%;
    transition: transform 0.3s, stroke-dashoffset .4s;
    transform-origin: center;
    stroke-width: 2px;
}
  
.vbp-header-menu-button__svg .top {
    transform: translateY(-35%);
    -webkit-transform: translateY(-35%);
    -moz-transform: translateY(35%);
    -ms-transform: translateY(35%);
    -o-transform: translateY(35%);
}
  
.vbp-header-menu-button__svg .middle {
    transform: scaleX(1);
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -ms-transform: scaleX(1);
    -o-transform: scaleX(1);
    transition: opacity .3s, transform .3s;
    -webkit-transition: opacity .3s, transform .3s;
    -moz-transition: opacity .3s, transform .3s;
    -ms-transition: opacity .3s, transform .3s;
    -o-transition: opacity .3s, transform .3s;
}
  
.vbp-header-menu-button__svg .bottom {
    transform: translateY(33%);
    -webkit-transform: translateY(33%);
    -moz-transform: translateY(33%);
    -ms-transform: translateY(33%);
    -o-transform: translateY(33%);
    stroke-dasharray: 100%;
    stroke-dashoffset: 9px;
}

.vbp-header-menu-button__svg:hover .bottom {
    stroke-dashoffset: 0%;
}

.naviationBook.menu-open .vbp-header-menu-button__svg .top {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    stroke-linecap: round;
}
  
.naviationBook.menu-open .vbp-header-menu-button__svg .middle {
    transform: scaleX(0.1);
    -webkit-transform: scaleX(0.1);
    -moz-transform: scaleX(0.1);
    -ms-transform: scaleX(0.1);
    -o-transform: scaleX(0.1);
    opacity: 0;
}
  
.naviationBook.menu-open .vbp-header-menu-button__svg line.bottom {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    stroke-linecap: round;
}
  
.naviationBook.menu-open .vbp-header-menu-button__svg .bottom {
    stroke-dashoffset: 0%;
}

.scrolled-snap div#page {
    width: 100%;
}

.naviationBook {
    position: absolute;
    z-index: 2;
    top: 25px;
    right: 25px;
    transition: .3s;
}

.interactiveBook-Menu {
    position: fixed;
    top: 0;
    left: -100%; /* caché */
    width: 100%;
    height: 100%;
    background: #dcccc0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease;
    z-index: 1;
}
  
/* Quand menu est ouvert */
.interactiveBook-Menu.menu-open {
    left: 0;
}

.interactiveBook-Menu a {
    color: white;
    font-size: 25px;
    line-height: 40px;
    text-decoration: none;
    cursor: pointer;
    font-family: "Playfair Display", serif;
}

.interactiveBook {
    position: relative;
}

.interactiveBook.lust-found {
    background-color: #dcccc0;
}

.interactiveBook_intro {
    background-color: #dcccc0;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interactiveBook_introContent {
    position: relative;
    padding: 0 40px;
}

.interactiveBook_introContent h1 {
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    color: white;
    font-size: 45px;
    margin: 0 0 20px;
}

.interactiveBook_introContent p {
    color: white;
    font-size: 22px;
    line-height: 22px;
}

.interactiveBook_introContent .introElement p {
    text-align: center;
}

buttom.startReading {
    display: block;
    width: fit-content;
    margin: auto;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 3px;
    border-bottom: 2px solid black;
}

.interactiveBook_chapter {
    position: relative;
    width: calc(100%);
    height: calc(100dvh);
}

.interactiveBook_noBackground {
    position: relative;
    background-color: #dcccc0;
    z-index: 3;
    width: calc(100% - 50px);
    height: calc(100% - 100px);
    padding: 50px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interactiveBook_noBackground h2 {
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: white;
    font-size: 45px;
    margin: 0 0 20px;
}

.interactiveBook_noBackground p {
    text-align: right;
    color: white;
    font-size: 22px;
    line-height: 25px;
    margin: 0;
}

.interactiveBook_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
}

.interactiveBook_backgroundFilter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.25;
}

.interactiveBook_pages {
    width: 100%;
    height: 100dvh;
}

.interactiveBook_page {
    position: relative;
    margin-bottom: 250px;
}

.interactiveBook_page.scroll > .interactiveBook_page:last-child {
    margin-bottom: 50px;
}

.interactiveBook_page.intro {
    position: relative;
    background-color: #dcccc0;
    z-index: 3;
    width: calc(100% - 50px);
    height: calc(100% - 100px);
    padding: 50px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interactiveBook_page.intro h2 {
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: white;
    font-size: 43px;
    margin: 0 0 20px;
}

.interactiveBook_page.intro p {
    text-align: right;
    color: white;
    font-size: 22px;
    line-height: 25px;
    margin: 0;
}

.interactiveBook_page.scroll {
    overflow: scroll;
    height: 100dvh;
    width: calc(100% - 50px);
    padding: 0 25px;
}

.interactiveBook_page h2 {
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: white;
    font-size: 30px;
    margin: 0px 0 25px;
}

.interactiveBook_page.scroll h2 {
    text-shadow: -5px 5px 5px rgb(255 255 255 / 40%);
}

.interactiveBook_page p {
    color: white;
    font-size: 23px;
    line-height: 28px;
    font-weight: 500;
    margin: 0;
}

.interactiveBook_page.scroll p {
    text-shadow: -5px 5px 5px rgb(255 255 255 / 40%);
}

.interactiveBook_page.scroll > .interactiveBook_page:first-child {
    margin-top: 25px;
}

.interactiveBook_chapterAudio {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
}

.interactiveBook_page.titleChapter {
    position: absolute;
    width: 100%;
    margin: 0;
    height: 100%;
}

.interactiveBook_page.titleChapter > div  {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.interactiveBook_page.titleChapter h3 {
    color: #dcccc0;
    font-size: 25px;
    line-height: 25px;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    text-align: center;
}

.lastContainer {
    margin-top: 100px;
}

.lastContainer .nextChapter {
    display: block;
    width: fit-content;
    margin: auto;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background-color: unset;
    color: white;
    padding-bottom: 3px;
    border-bottom: 2px solid white;
    font-family: "Cormorant Garamond", serif;
    text-shadow: -5px 5px 5px rgb(255 255 255 / 40%);
}

.firstContainer .prevChapter {
    display: block;
    width: fit-content;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background-color: unset;
    color: white;
    padding-bottom: 3px;
    border-bottom: 2px solid white;
    font-family: "Cormorant Garamond", serif;
    text-shadow: -5px 5px 5px rgb(255 255 255 / 40%);
}

.svgBook {
    display: block;
    width: 100%;
    height: 100dvh; /* viewport height */
    max-width: 1080px;
}
  
@media screen and (min-width: 1024px) {
    html.scrolled-snap body {
        max-width: 500px;
        margin: 0 auto;
    }
}
  
/* Style bouton */
#playBtn {
    position: absolute;
    margin: 10px 0;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 5px;
    user-select: none;
    transition: background-color 0.3s;
}
#playBtn:hover {
    background: #0056b3;
}

image.windows {
    animation: scaleLoop 12s ease-in-out infinite;
}

/* Animations on scroll */
.animated {
    position: relative;
    transition: all 0s ease-in-out;
}

.animated.fade {
    opacity: 0;
}

.animated.fade-left {
    opacity: 0;
    transform: translateX(-50px);
}

.animated.fade-right {
    opacity: 0;
    transform: translateX(50px);
}

.animated.fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.animated.fade-down {
    opacity: 0;
    transform: translateY(-50px);
}

.animated.zoom-out {
    transform: scale(1.05);
}

.animated.visible {
    transition-timing-function: ease;
}

.animated.visible.fade {
    opacity: 1;
    transition-duration: 0.3s;
}

.animated.visible.fade-right,
.animated.visible.fade-left,
.animated.visible.fade-up,
.animated.visible.fade-down {
    opacity: 1;
    transform: none;
    transition-duration: 0.5s;
}

.animated.visible.zoom-out {
    transform: scale(1);
    transition-duration: 0.3s;
}

.animated.visible.delay--1 { transition-delay: 0.4s; }
.animated.visible.delay--2 { transition-delay: 0.5s; }
.animated.visible.delay--3 { transition-delay: 0.6s; }
.animated.visible.delay--4 { transition-delay: 0.7s; }
.animated.visible.delay--5 { transition-delay: 0.8s; }
.animated.visible.delay--6 { transition-delay: 0.9s; }
.animated.visible.delay--7 { transition-delay: 1s; }
.animated.visible.delay--8 { transition-delay: 1.1s; }
.animated.visible.delay--9 { transition-delay: 1.2s; }
.animated.visible.delay--10 { transition-delay: 1.3s; }


@keyframes scaleLoop {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); /* Grossit de 3% */ }
    100% { transform: scale(1); }
}

/* All sprites */
.sprite image {
    animation: none;
}

@keyframes spriteLoop {
    to { transform: translateX(-600px); }
}

/* Plant */
#plant-0.animate image {
    animation: spriteLoopPlant 2s steps(3) infinite alternate;
}
@keyframes spriteLoopPlant {
    to { transform: translateX(-2100px); }
}

/* Plant */
#plant-1.animate image {
    animation: spriteLoopPlant 2s steps(3) infinite alternate;
}
@keyframes spriteLoopPlant {
    to { transform: translateX(-2100px); }
}

/* Plant */
#plant-2.animate image {
    animation: spriteLoopPlant 2s steps(3) infinite alternate;
}
@keyframes spriteLoopPlant {
    to { transform: translateX(-2100px); }
}

/* Plant */
#plant-3.animate image {
    animation: spriteLoopPlant 2s steps(3) infinite alternate;
}
@keyframes spriteLoopPlant {
    to { transform: translateX(-2100px); }
}

/* Plant */
#plant-4.animate image {
    animation: spriteLoopPlant 2s steps(3) infinite alternate;
}
@keyframes spriteLoopPlant {
    to { transform: translateX(-2100px); }
}

/* Wine */
#wine.animate image {
    animation: spriteLoop 4s steps(3) infinite;
}

/* Shell Lamp */
#shell_lamp.animate image {
    animation: spriteLoop 2s steps(3) infinite alternate;
}
  
/* Old Phone */
#old_phone.animate image {
    animation: spriteLoopOld_phone 2s steps(3) infinite;
}
@keyframes spriteLoopOld_phone {
    to { transform: translateX(-900px); }
}
  
/* Record Player */
#record_player.animate image {
    animation: spriteLoopRecord_player 2s steps(3) infinite;
}
@keyframes spriteLoopRecord_player {
    to { transform: translateX(-1200px); }
}
  
/* Pizza */
#pizza.animate image {
    animation: spriteLoopPizza 3s steps(3) infinite;
}
@keyframes spriteLoopPizza {
    to { transform: translateX(-1500px); }
}

/* Trophy */
#trophy.animate image {
    animation: spriteLoopTrophy 2s steps(3) infinite alternate;
}
@keyframes spriteLoopTrophy {
    to { transform: translateX(-900px); }
}
  
/* Ferris wheel */
#ferris_wheel.animate image {
    animation: spriteLoop 2s steps(3) infinite;
}

/* Disco */
#disco.animate image {
    animation: spriteLoopDisco 3s steps(3) infinite;
}
@keyframes spriteLoopDisco {
    to { transform: translateX(-900px); }
}
  
/* Broken bottle */
#broken_bottle.animate image {
    animation: spriteLoopBrokenBottle 3s steps(3) infinite;
}
@keyframes spriteLoopBrokenBottle {
    to { transform: translateX(-1500px); }
}

/* Umbrella */
#umbrella.animate image {
    animation: spriteLoopUmbrella 3s steps(3) infinite;
}
@keyframes spriteLoopUmbrella {
    to { transform: translateX(-1500px); }
}
  
/* Snow globe */
#snow_globe.animate image {
    animation: spriteLoop 3s steps(3) infinite;
}

/* Cigs */
#cigs.animate image {
    animation: spriteLoop 3s steps(3) infinite;
}
  
/* Fusee */
#fusee.animate image {
    animation: spriteLoopFusee 3s steps(3) infinite;
}
@keyframes spriteLoopFusee {
    to { transform: translateX(-700px); }
}
  
/* Scarf */
#scarf.animate image {
    animation: spriteLoopScarf 3s steps(3) infinite;
}
@keyframes spriteLoopScarf {
    to { transform: translateX(-1500px); }
}
  
/* Coffee */
#coffee.animate image {
    animation: spriteLoop 3s steps(3) infinite;
}

/* Hourglass */
#hourglass.animate image {
    animation: spriteLoopHourglass 3s steps(3) infinite;
}
@keyframes spriteLoopHourglass {
    to { transform: translateX(-720px); }
}
  
/* Lighthouse */
#lighthouse.animate image {
    animation: spriteLoopLighthouse 4s steps(2) infinite;
}
@keyframes spriteLoopLighthouse {
    to { transform: translateX(-400px); }
}

/* Rainbow */
#rainbow.animate image {
    animation: spriteLoop 3s steps(3) infinite;
}
  
/* Bowl of Citrus */
#bowl_of_citrus.animate image {
    animation: spriteLoopBowlofCitrus 3s steps(3) infinite;
}
@keyframes spriteLoopBowlofCitrus {
    to { transform: translateX(-900px); }
}

/* Incense */
#incense.animate image {
    animation: spriteLoopIncense 3s steps(3) infinite;
}
@keyframes spriteLoopIncense {
    to { transform: translateX(-900px); }
}


/* SPECIAL ONE AIMATION */

#wine.animateWhen.animate image{
    animation: spriteBasic 3s steps(2) forwards !important;
}
@keyframes spriteBasic {
    to { transform: translateX(-400px); }
}

#old_phone.animateWhen.animate image {
    animation: spriteLoopOld_phone_ONE 3s steps(2) forwards !important;
}
@keyframes spriteLoopOld_phone_ONE {
    to { transform: translateX(-600px); }
}

#trophy.animateWhen.animate image {
    animation: spriteLoopTrophy_ONE 3s steps(2) forwards !important;
}
@keyframes spriteLoopTrophy_ONE {
    to { transform: translateX(-600px); }
}

#pizza.animateWhen.animate image {
    animation: spriteLoopPizza_ONE 3s steps(2) forwards !important;
}
@keyframes spriteLoopPizza_ONE {
    to { transform: translateX(-1000px); }
}

#broken_bottle.animateWhen.animate image {
    animation: spriteLoopBrokenBottle_ONE 4s steps(2) forwards !important;
}
@keyframes spriteLoopBrokenBottle_ONE {
    to { transform: translateX(-1000px); }
}

#umbrella.animateWhen.animate image {
    animation: spriteLoopUmbrella_ONE 3s steps(2) forwards !important;
}
@keyframes spriteLoopUmbrella_ONE {
    to { transform: translateX(-1000px); }
}

#fusee.animateWhen.animate image {
    animation: spriteLoopFusee_ONE 4s steps(2) forwards !important;
}
@keyframes spriteLoopFusee_ONE {
    to { transform: translateX(-466.666667px); }
}

#hourglass.animateWhen.animate image {
    animation: spriteLoopHourglass_ONE 3s steps(2) forwards !important;
}
@keyframes spriteLoopHourglass_ONE {
    to { transform: translateX(-480px); }
}

#bowl_of_citrus.animateWhen.animate image {
    animation: spriteLoopBowlofCitrus_ONE 4s steps(2) forwards !important;
}
@keyframes spriteLoopBowlofCitrus_ONE {
    to { transform: translateX(-600px); }
}

.onlyLogo {
    position: absolute;
    z-index: 99;
    display: flex;
    justify-content: center;
    width: 100%;
    left: 0;
    right: 0;
}

.onlyLogo img {
    width: auto;
    height: 20px;
    padding: 15px 0px;
}

.onlyLogo a {
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    color: #545454;
    font-size: 20px;
    text-decoration: unset;
}

/*--------------------------------------------------------------
    LOGIN
--------------------------------------------------------------*/
.tml {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.tml-action h1 {
    text-align: center;
}

.tml .tml-field {
    background: #FFF;
    margin-top: 10px;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: unset;
}

.tml .tml-label {
    margin: 0;
    font-size: 16px;
}

button.tml-button {
    padding: 15px 50px;
    background-color: #545454;
    color: white;
    border: none;
    cursor: pointer;
    transition: .3s;
    font-weight: 700;
}

.tml .tml-submit-wrap {
    margin-top: 40px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

ul.tml-links {
    display: none;
}

.login_hero .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div#login_heroTitle {
    margin: 0 50px;
}

#login_heroTitle h1,
.tml-action h1 {
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    color: white;
    font-size: 45px;
    margin: 0 0 20px;
}

.form-group.full {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

div#login_heroForm {
    width: 100%;
    max-width: 500px;
    margin: 0;
}

div#login_heroNoAccount {
    width: 100%;
    max-width: 500px;
    margin: 0;
    text-align: center;
}

.form-group input {
    background: #FFF;
    margin-top: 10px;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: unset;
}

section.login_hero {
    font-size: 16px;
}

.form-group-full.submit {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.form-group-full.submit button {
    padding: 15px 50px;
    background-color: #545454;
    color: white;
    border: none;
    cursor: pointer;
    transition: .3s;
    font-weight: 700;
}

.form-group-full.submit button:hover {
    background-color: white;
    color: #545454;
}

.registration-error {
    font-size: 12px;
}

.registration-error a {
    display: block;
    color: #545454;
    text-decoration: none;
}

div#login_heroNoAccount a {
    color: #545454;
    text-decoration: none;
}
