/*Layout---------------------------------------------------------------------------------------------------------------------------*/
html, body
{
    width: 100vw;
    overflow-x: clip;
}

main 
{
    width: 80%;
    max-width: 1000px;
    margin: auto;
    padding: 0 10%;
    position: relative;
    /* overflow: visible;
    overflow-x: hidden; */
}

footer {margin-top: 0;}
section {margin-bottom: 80px;}

body::before
{
    content: '';
    display: block;
    width: 30px;
    height: 400px;
    background: repeating-linear-gradient(45deg, #ffd700 0px, #ffd700 20px, #000000 20px, #000000 40px);  
    box-shadow: 2px 6px 2px 0px rgb(0 0 0 / 18%); 
    position: absolute;
    rotate: 45deg;
    top: -40px;
    left: 0;
}
.from-app::before {top: -100px;}


/*Titrage---------------------------------------------------------------------------------------------------------------------------*/
h2 
{
    text-align: center;
    text-wrap-style: balance;
    margin: 0;

    /* display: flex; */
    align-items: center;
    justify-content: center;
    /* gap: 10px; */
}
.whatsnew h2{margin-bottom: 50px;}
h3 {text-align: left;}


/*Mise-en-page-------------------------------------------------------------------------------------------------------------------------*/

main p{ margin: 21pt 0;}
.text
{
    width: 100%;
    margin: 12pt 0;
}

ol 
{
    padding-left: 10%;
    margin: 12px 0;
}
ol li
{
    text-align: left;
    font-weight: 400;
    margin: 12px;
    display: list-item;
}
ul {margin: 0;}
li {position: relative;}
.whatsnew ul {padding: 0 0px 0;}
.whatsnew li
{
    font-weight: normal;
    display: list-item;
    text-align: justify;
    list-style-type: none;
    margin: 0 0 40px 0;
}

.handwritten
{
    font-family: AppleStorm;
    font-size: 25px;
    text-align: center;
    margin: 21pt auto;
    width: fit-content;
    display: block;
}

.visiblelink:link {color: var(--Apple-Blue);}
.visiblelink:visited {color: blue;}
.visiblelink:hover {text-decoration: underline;}
.handwritten .visiblelink{font-family: study;}

.highlight 
{
    animation: none;
    Margin: 0 -4px;
    Padding: 2px 7px;
    Background-position: 3px;
    position: relative;
    background: linear-gradient(104deg, 
        rgba(var(--c),0) .45%,
        rgba(var(--c), 1.25) 1.2%, 
        rgba(var(--c), 0.6) 2.9%, 
        rgba(var(--c), 0.3) 46.5%, 
        rgba(var(--c), 0.7) 48%, 
        rgba(var(--c), 0) 49%);
    background-size: 200% 100%;
}
.rose{--c: 251,160,227;}
.green{--c: 156,196,60;}
.blue{--c: 115,151,242;}
.yellow{--c: 255,228,53;}

.getBetaButton
{
    display: block;
    border: none;
    max-width: 350px;
    margin: 40px auto 0;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    background: var(--main-blue);
    box-shadow: 0 4px 0px 0 #0057c9;
    color: white;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    translate: 0 0;
    transition: box-shadow 0.05s ease-in, translate 0.05s ease-in;
}
.getBetaButton:hover {cursor: pointer;}
.getBetaButton:active 
{
    box-shadow: 0 0px 2px 0 #003f92;
    translate: 0px 4px;
}

/*Images-&-Vidéos-------------------------------------------------------------------------------------------------------------------------*/
.float-img
{
    margin: 30px auto;
    display: block;
    width: 80%;
    max-width: 350px;
    box-shadow: var(--shadow-ipad);
    border-radius: 8%;
}
.float-img-big
{
    max-width: 500px;
    margin: 23px auto;
    width: 100%;
    display: block;
    border-radius: 16pt;
    box-shadow: var(--shadow-ipad);
    position: relative;
    border: 8pt solid #3b3b3bff;
    box-sizing: border-box;
}
.float-video
{
    max-width: 500px;
    margin: 23px auto;
    width: 100%;
    display: block;
    border-radius: 16pt;
    box-shadow: var(--shadow-ipad);
    position: relative;
    border: 8pt solid #3b3b3bff;
    box-sizing: border-box;
}
.float-cat-video
{
    max-width: 400px;
    margin: 45px auto;
    width: 100%;
    display: block;
    box-shadow: var(--shadow-ipad);
    position: relative;
    border: 15pt solid white;
    box-sizing: border-box;
    rotate: 3deg;
}
.from-app .float-cat-video {margin: 30px auto;}

.img-container .canvas {display: none;}

/* Divs split in halves---------------------------------------------------------------------------------------------------------------------------*/
/* split in large screen sizes........................ */
.big-half
{
    display: flex;
    margin-bottom: 60px;
    position: relative;
    flex-direction: row;
}
.big-half img{width: 300px;}
.big-half p, .big-half h3 {width: 100%;}
.big-half .text-container {width: calc(100% - 200px);}
.big-half .img-container 
{
    position: absolute;
    right: -100px;
    top: -33px;
    width: auto;
}
.big-half .img-container::after
{
    content: '';
    display: block;
    background: url(resources/images/hand-writing.png);
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mask-image: linear-gradient(to left, transparent 0%, black 20%);
    width: 825px;
    height: 473px;
    rotate: 15deg;
    top: -93px;
    left: 99px;
}

/* split in small screen sizes........................ */
li:has(.small-half){margin-bottom:120px}
.small-half svg 
{
    right: calc(50% - 520px);
    bottom: -160px;
    z-index: -1;
    position: absolute;
    max-width: initial;
    margin: 0;
}

/* Warning---------------------------------------------------------------------------------------------------------------------------*/
.warning{position: relative;}
.warning::after, .warning::before  
{
    background: repeating-linear-gradient(45deg, #ffd700 0px, #ffd700 10px, #000000 10px, #000000 20px);
    box-shadow: var(--shadow-paper);
    content: "";
    display: block;
    height: 70%;
    position: absolute;
    margin: auto;
    width: 20px;
    mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10% 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10% 51% repeat-x;
    top: 15%;
    bottom: auto;
}
.warning::after{right: -10px;}
.warning::before{left: -10px;}

.target {
  min-width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 50%;
  background: conic-gradient(
    black 0deg 90deg,
    #ffd700 90deg 180deg,
    black 180deg 270deg,
    #ffd700 270deg 360deg
  );
  border: 2px solid black;
}

/*Post-its----------------------------------------------------------------------------------------------------------------------------*/
.post-it
{
    background-color: white;
    padding: 15px 20px;
    box-shadow: -1px 2px 1px rgba(202, 202, 202);
    box-sizing: border-box;
}
.post-it p{margin: 0;}

/* Doodles----------------------------------------------------------------------------------------------------------------------------*/
.wing-left, .wing-right
{
    position: absolute;
    width: 39px;
    top: 24px;
    height: auto;
}
.wing-right{left: 81px;}
.wing-left{left: -40px;}

.wing-left path, .wing-right path
{
    stroke-dasharray: 580;
    stroke-dashoffset: 580;
    stroke: var(--light-grey);
    stroke-width: 9px;
}
.wing-right path{animation-delay: 1s;}

.handwritten span{position: relative;}
.handwritten svg {display: none;}

.handwritten .visible-path
{
    position: absolute;
    stroke: grey;
    display: initial;
    rotate: -94deg;
    width: 40px;
    top: -15px;
    left: -40px;
    height: 24px;
}
.handwritten .visible-path path
{
    stroke-width: 4;
    animation: dash 0.8s ease-in forwards;
    stroke-dasharray: 580;
}

.getBetaButton svg
{
    position: absolute;
    transform: scaleX(-1);
    width: 58px;
    rotate: -71deg;
    left: -64px;
    top: 0px;
    transition: translate 0.05s ease-out;
}
.getBetaButton svg path 
{
    stroke-width: 3px;
    stroke-dasharray: 580;
    stroke-dashoffset: 580;
}
.getBetaButton:active svg{translate: 0px -4px;}

.animated-path path {animation: dash 0.8s ease-in forwards;}
@keyframes dash
{
  0% {stroke-dashoffset: 580;}
  100% {stroke-dashoffset: 1160;}
}

/* Bugfix section________________________________________________________________________________________________________________________________ */
.bugfix{position: relative;}
.bugfix h3::after, .bugfix h3::before{
    content: '';
    display: block;
    width: 100vw;
    height: 17px;
    background: url(resources/images/fourmis.png);   
    position: absolute;
    background-repeat: repeat-x;
    background-size: contain;
    top: calc(50% - 9px);
}
.bugfix h3::after{left: 100%;}
.bugfix h3::before
{
    right: 100%; 
    background-position-x: right;
}








.entermailtext {color: var(--main-text);}
.from-app input[type=submit] {
    height: 47px;
    border-radius: 12px;
    font-size: 14px;
    /* background-color: rgb(165, 195, 84); */
}
input[type=email].betaemail {
    margin: 12pt;
    margin: 0px;
    margin-right: 5px;
    border-radius: 15px;
    height: 50px;
    width: 300px;
    border-width: 2px;
    padding: 0 0 0 10px;
    width: 285px;
}
.from-app #mc_embed_signup {
    text-align: center;
}

/*Media-Sizes-------------------------------------------------------------------------------------------------------------------------*/
@media (min-width: 1100px) 
{
    body::before
    {
        top: -11px;
        left: 81px;
    }
    .from-app::before {top: -81px;}
}

@media (max-width: 800px){
    .wing-left{top: 40px;}
    .wing-right
    {
        top: 40px;
        left: 107px;
    }
    .wing-left path{animation-delay: 1s;}
    .wing-right path{animation-delay: 0s;}

    .big-half { display:block;}
    .big-half .text-container {width: 100%;}
    .big-half .img-container 
    {
        position: relative;
        top: auto;
        right: auto;
        width: 400px;
        margin: auto;
    }
    .big-half .img-container img {width: 100%;}
    .big-half .img-container::after
    {
        width: 500px;
        height: 500px;
        rotate: -17deg;
        transform: scaleX(-1);
        left: -520px;
        top: -110px;
    }

    .small-half
    {
        display: flex;
        margin-bottom: 60px;
        position: relative;
    }
    .small-half svg 
    {
        height: 244px;
        width: 268px;
        bottom: -90px;
        translate: 0;
        right: -114px;
    }
    .small-half p 
    {
        margin: 0;
        text-align: left;
        width: calc(100% - 35px);
    }
    li:has(.small-half){margin-bottom:40px}

    .bugfix h3 
    {
        position: relative; 
        width: fit-content;
    }
    .bugfix h3::after, .bugfix h3::before
    { 
        top: calc(50% - 7px);
        height: 15px;
        /* left: calc(100% + 20px);  */
    }
    .bugfix h3::after{left: calc(100% + 20px);}
    .bugfix h3::before{right: calc(100% + 20px);}
}

@media (max-width:500px) 
{
    body::before
    {
        width: 20px;  
        background: repeating-linear-gradient(45deg, #ffd700 0px, #ffd700 15px, #000000 15px, #000000 30px);
        top: -90px;
    }
    .from-app::before {top: -150px;}

    section {margin-bottom: 65px;}

    .big_title {margin-block-start: 0.67em;}
    .getBetaButton
    {
        font-size: 20px;
        margin-top: 25px;
    }
    .handwritten{font-size: 17px;}

    .bugfix h3::after, .bugfix h3::before {height: 12px;}

/* -----////////////-------- */
    input[type=email].betaemail
    {
        height: 45px;
        width: 220px;
        border-radius: 13px;
        border-width: 2px;
    }
    .from-app input[type=email]
    {
        margin-top: 40px;
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
    }
    .from-app input[type=submit]
    {
        height: 44px;
        border-radius: 10px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
/* -----////////////-------- */
    .float-img-big, .float-video {border: 6pt solid;}
    .float-cat-video{border: 12pt solid white;}

    .handwritten svg
    {
        position: absolute;
        stroke: grey;
        display: initial;
        rotate: -94deg;
        width: 27px;
        top: -10px;
        left: -25px;
        height: 17px;
    }
    .handwritten .visible-path{
        width: 27px;
        top: -10px;
        left: -25px;
        height: 17px;
    }
    .handwritten svg path
    {
        stroke-width: 4;
        animation: dash 0.8s ease-in forwards;
        stroke-dasharray: 580;
    }
    .getBetaButton svg {display: none;}

    .big-half .img-container .canvas{display: block;}
    .big-half .img-container .scale{display: none;}
    .big-half .img-container 
    {
        width: calc(100% - 100px);
        max-width: 120px;
    }
    .big-half .img-container::after {display: none;}

    .wing-right, .wing-left
    {
        height: 40%;
        top: 20%;
        max-width: 60px;
        width: auto;
    }
    .wing-left
    {
        right: 104%;
        left: auto;
    }
    .wing-right
    {
        left: 104%;
        right: auto;
    }
    .wing-left path{animation-delay: 0s;}
    .small-half svg{
        height: 177px;
        width: 180px;
        bottom: -70px;
        right: -70px;
    }
}

@media (max-width:400px) 
{
    section {margin-bottom: 55px;}

    .float-img-big, .float-video{border: 5pt solid;}
    .float-cat-video{border: 10pt solid white;}
}

@media (max-width: 320px)
{
    section {margin-bottom: 50px;}
}



@media (prefers-reduced-motion: reduce) {
    path {
        stroke-dashoffset: 0 !important;
    }
}