@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Milonga&family=Mirza:wght@400;500;600;700&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&family=Nanum+Pen+Script&family=Nothing+You+Could+Do&family=Poiret+One&family=Timmana&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Milonga&family=Mirza:wght@400;500;600;700&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&family=Nanum+Pen+Script&family=Nothing+You+Could+Do&family=Poiret+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Milonga&family=Mirza:wght@400;500;600;700&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&family=Nanum+Pen+Script&family=Poiret+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Milonga&family=Mirza:wght@400;500;600;700&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&family=Nanum+Pen+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Milonga&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&family=Nanum+Pen+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Milonga&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Mitr:wght@200;300;400;500;600;700&family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&family=Mitr:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Medula+One&family=Megrim&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Megrim&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
    font-family: DaysOfType;
    src: url('../fonts/36DaysOfType.otf');
}
@font-face {
    font-family: Chaumont;
    src: url('../fonts/ChaumontScript-Regular.otf');
}
@font-face {
    font-family: ia-Writer-Mono;
    src: url('../fonts/ia-writer-mono-latin-400-normal.ttf');
}
@font-face {
    font-family: Faune;
    src: url('../fonts/Faune-TextRegular.otf');
}

body {
    font-family: "freight-sans-pro", sans-serif;
    height: 100vh;
    background: 
        url('../images/ellipse_1.svg') center left/100vw 100vw no-repeat,
        url('../images/ellipse_2.svg') bottom right/60vw 60vw no-repeat,
        url('../images/ellipse_3.svg') top right/50vw 50vw no-repeat,
        linear-gradient(to bottom, #ABD5E3, #E8DADD);
    background-position: -50vw 15vh, 50vw 80vh, 70vw 10vh, 0;
    overflow: hidden;
    margin: 0;
    padding: 0 20px;
    animation: animate-bulle 10s infinite;
}

/*animation bulle*/
@keyframes animate-bulle {
    0%, 100% {
        background-position: -50vw 15vh, 50vw 80vh, 70vw 10vh, 0;
    }
    50% {
        background-position: -55vw 20vh, 45vw 75vh, 65vw 15vh, 0;
    }
}

p{
    font-size: 20px;
    margin: 0;
}

h1{
    font-weight: normal;
    font-size: 47px;
    margin: 0;
}

h2{
    font-family: "ivypresto-display", serif;
    font-weight: normal;
    font-size: 36px;
    margin: 0;
}

h3{
    font-weight: normal;
    margin: 0;
}

.texte--citation{
    font-weight: normal;
}

small{
    font-size: 15px;
}

.img--affiche{
    max-width: 100%;
}

a{
    color: #000000;
}

.lien-style--none{
    text-decoration: none;
}

.style--burger{
    color: #ffffff;
}

.style--burger-transition{
    color: #ffffff;
    transition: color 0.4s ease;
}

.lien-style--active{
    font-weight: bold;
}

button{
    cursor: pointer;
}

button:active{
    transform: scale(1.05);
}

.button-style--none{
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.button-style--slider{
    font-size: 20px;
}

.button-style--suivant{
    margin-right: 6px;
}

.button-style--precedent{
    margin-left: 6px;
}

.list-style--none{
    list-style: none;
    padding: 0;
    margin: 0;
}

/*header*/
.logo{
    font-size: 36px;
    font-family: "bely-display", sans-serif;
    font-weight: normal;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.burger-menu{
    font-size: 27px;
}

.menu{
    display: none;
}

.navbar__liste{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.navbar__item{
    margin-bottom: 20px;
}

.navbar__item:last-child{
    margin-bottom: 0;
    margin-top: 63px;
}

.navigation__liste{
    display: flex;
}

.navigation__liste--reseau{
    justify-content: center;
}

.navigation__liste--page{
    margin-left: 84px;
}

.navigation__item{
    margin-right: 27px;
}

.navigation__item:last-child{
    margin-right: 0;
}

/*menu burger*/
.menu--open .navbar{
    transform: translateX(0);
    color: #ffffff;
}

.burger-menu__button {
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.61, 1, 0.88, 1);
}

/*main*/
.typo__item{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.typo__item:nth-child(2){
    margin-bottom: 47px;
}

.typo__item:nth-child(4){
    justify-content: end;
    margin-bottom: 0;
}

/*exemples*/
.typo--exemple-bely{
    font-family: "bely-display", sans-serif;
}

.typo--exemple-ivypresto{
    font-family: "ivypresto-display", serif;
}

.typo--exemple-bilo{
    font-family: "bilo", sans-serif;
}

.typo--exemple-atkinson{
    font-family: "Atkinson Hyperlegible", sans-serif;
}

.typo--exemple-days{
    font-family: DaysOfType;
}

.typo--exemple-chaumont{
    font-family: Chaumont;
}

.typo--exemple-ia{
    font-family: ia-Writer-Mono;
}

.typo--exemple-faune{
    font-family: Faune;
}

/*slider*/
.main--hide{
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: 0.3s ease-out;
}

.slider__control{
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 47px;
    left: 0;
    width: 100%;
}

.slider__btn:first-child{
    padding-left: 20px;
}

.slider__btn:last-child{
    padding-right: 20px;
}

.slider__item{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translatey(-50%);
    margin: 0 auto;
}

/*slider animation*/
.slider__item .typo__liste{
    pointer-events: none;
    visibility: hidden;
}

.slider__item--show .typo__liste{
    pointer-events: all;
    visibility: visible;
}

.slider__item--show-right .typo__liste{
    animation: animate-show-right 1s;
}

@keyframes animate-show-right {
    0%{
        opacity: 0;
        transform: translatex(20%);
    }
    100% {
        opacity: 1;
        transform: translatex(0);
    }
}

.slider__item--show-left .typo__liste{
    animation: animate-show-left 1s;
}

@keyframes animate-show-left {
    0%{
        opacity: 0;
        transform: translatex(-20%);
    }
    100% {
        opacity: 1;
        transform: translatex(0);
    }
}

/*design*/
.fyt{
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translateX(-50%) translatey(-50%);
    margin: 0 auto;
}

.fyt__liste{
    font-family: "Nothing You Could Do", cursive;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: animate-polices 40s infinite;
    animation-delay: 2s;
}

@keyframes animate-polices {
    0%, 100% {
        font-family: "Nothing You Could Do", cursive;
    }
    10% {
        font-family: "Megrim", system-ui;
    }
    20%{
        font-family: "Medula One", system-ui;
    }
    30%{
        font-family: "Mitr", sans-serif;
    }
    40%{
        font-family: "Monoton", sans-serif;
    }
    50%{
        font-family: "Milonga", serif;
    }
    60%{
        font-family:'Times New Roman', Times, serif;
    }
    70%{
        font-family: "Nanum Pen Script", cursive;
    }
    80%{
        font-family: "Mirza", serif;
    }
    90%{
        font-family: "Poiret One", sans-serif;
    }
}

.fyt__item{
    text-align: center;
    margin-bottom: 20px;
}

.fyt__item:last-child{
    margin-bottom: 0px;
}

.fyt__animation-mouv{
    transform: translatey(20%);
    opacity: 0;
    animation: animate-mouv 4s infinite;
}

@keyframes animate-mouv {
    0% {
        transform: translatey(20%);
        opacity: 0;
    }
    
    50%{
        transform: translatey(-20%);
        opacity: 1;
    }

    83%{
        transform: translatey(0);
        opacity: 0;
    }
}

.fyt__texte{
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translateX(-50%) translatey(-50%);
    margin: 0 auto;
}

.fyt__texte--gras{
    opacity: 100%;
    font-weight: bold;
}

/*projet*/
.projet{
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translatey(-50%);
    margin: 0 auto;
}

.projet__liste:first-child{
    display: none;
}

.projet__liste:nth-child(2){
    max-width: 380px;
}

.projet__item{
    margin-bottom: 36px;
}

.projet__item:last-child{
    margin-bottom: 0;
}

/*animation images*/
.projet__item {
    overflow: hidden;
}

.projet__item--end{
    display: flex;
    justify-content: end;
}

.img--animation-1, .img--animation-2 {
    animation: slideRightToLeft 1s ease-in-out forwards;
    transform: translatex(100%);
    opacity: 0;
}

.img--animation-1 {
    animation-delay: 0s; /* Aucun délai pour la première image */
}

.img--animation-2 {
    animation-delay: 1s; /* Délai de 1 seconde pour la deuxième image */
    max-width: 33%;
}

@keyframes slideRightToLeft {
    from {
        transform: translatex(100%);
    }
    to {
        transform: translatex(0);
        opacity: 1;
    }
}

.img--animation-3 {
    animation: slideLeftToRight 1s ease-in-out forwards;
    transform: translatey(100%);
    opacity: 0;
}

@keyframes slideLeftToRight {
    from {
        transform: translatey(-100%);
    }
    to {
        transform: translatey(0);
        opacity: 1;
    }
}


/*footer*/
.footer_copyright{
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    margin-bottom: 11px;
}

@media(min-width: 1200px){
    a:hover{
        opacity: 50%;
    }

    button:hover{
        opacity: 50%;
    }

    .btn__next:hover{
        transform: translatex(10%);
        transition: transform 0.4s;
    }
    
    .btn__prev:hover{
        transform: translatex(-10%);
        transition: transform 0.4s;
    }

    .logo:hover{
        opacity: 100%;
    }

    /*header*/
    .burger-menu{
        display: none;
    }

    .menu{
        font-size: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 20px;
    }

    /*body*/
    body {
        padding: 0 36px;
        background: 
            url('../images/ellipse_1.svg') center left/50vw 50vw no-repeat,
            url('../images/ellipse_2.svg') bottom right/40vw 40vw no-repeat,
            url('../images/ellipse_3.svg') top right/30vw 30vw no-repeat,
            linear-gradient(to bottom, #ABD5E3, #E8DADD);
        background-position: -20vw 20vh, 50vw 70vh, 80vw 10vh, 0;
    }

    @keyframes animate-bulle {
        0%, 100% {
            background-position: -20vw 20vh, 50vw 70vh, 80vw 10vh, 0;
        }
        50% {
            background-position: -25vw 20vh, 45vw 65vh, 75vw 15vh, 0;
        }
    }

    .slider__btn:first-child{
        padding-left: 36px;
    }
    
    .slider__btn:last-child{
        padding-right: 36px;
    }

    /*projet*/
    .projet{
        grid-template-columns: 1fr 1fr;
    }

    .projet__liste{
        min-width: 472px;
    }

    .projet__liste:first-child{
        display: block;
        padding-right: 63px;
    }
    
    .projet__liste:nth-child(2){
        max-width: none;
        padding-left: 63px;
        border-left: 1px solid rgba(0, 0, 0, 0.5);
    }

    .projet__item{
        margin-bottom: 47px;
    }

    /*animation images*/
    .img--animation-3 {
        animation: slideLeftToRight 2s ease-in-out forwards;
        transform: translatex(100%);
        opacity: 0;
    }
    
    @keyframes slideLeftToRight {
        from {
            transform: translatex(-100%);
        }
        to {
            transform: translatex(0);
            opacity: 1;
        }
    }
    
}

@media(min-width: 850px){
    .fyt__liste{
        flex-direction: row;
    }

    .fyt__item{
        margin-bottom: 0px;
        margin-right: 20px;
    }
    
    .fyt__item:last-child{
        margin-right: 0px;
    }

    .fyt__texte{
        top: 60%;
        width:max-content;
    }
}

@media(min-width: 850px) and (min-height: 600px){
    h1{
        font-size: 63px;
    }
    
    h3{
        font-size: 27px;
    }

    /*main*/
    .slider__item{
        width: 700px;
    }
}

@media(min-width: 1600px) and (min-height: 780px){
    p{
        font-size: 27px;
    }
    
    h1{
        font-size: 112px;
    }

    h2{
        font-size: 47px;
    }

    .texte--citation{
        font-size: 36px;
    }

    .texte--mention{
        font-size: 20px;
    }

    /*main*/
    .slider__item{
        width: 1300px;
    }

    /*projet*/
    .projet__liste{
        min-width: 629px;
    }
}

@media(min-width: 2200px) and (min-height: 900px){
    h1{
        font-size: 199px;
    }

    h2{
        font-size: 63px;
    }

    .texte--citation{
        font-size: 47px;
    }

    .texte--mention{
        font-size: 27px;
    }

    /*main*/
    .slider__item{
        width: 1700px;
    }

    /*projet*/
    .projet__liste{
        min-width: 839px;
    }
}

@media(max-height: 650px){
    .projet__item{
        margin-bottom: 20px;
    }
}