.logo-top {
    position: relative;
    height: 44px;
    width: 14.5px;
    padding: 0;
    z-index: 100;
    fill: #48484A;
}

.logo-top:hover {
    animation: filllogo .32s forwards;
}

.logo-top:not(:hover){
    animation: nofilllogo .32s forwards;
}

.wrapper-nav {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.wrapper-subnav {
    display: flex;
    width: 100%;
    max-width: 9999px;
    align-items: flex-start;
    margin-top: -48px;
    position: sticky;
    top: 0px;
    z-index: 10;
}

.nav-subtop-background::after{
    content: '';
    display: block;
    height: 1px;
    width: 980px;
    background-color: #d2d2d2;
    margin:-4px auto 0 auto
}

.nav-top {
    display: flex;
    width: 100%;
    max-width: 980px;
    height: 48px;
    margin: 0 auto 0 auto;
    padding: 0 22px 0 22px;
}

.nav-subtop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto 0 auto;
    padding: 0 22px 0 22px;
}

.nav-subtop-content {
    font-family: 'SF Pro Display Regular';
    font-size: 1.31rem;
    font-weight: 600;
    line-height: 3.15rem;
    max-width:max-content;
    letter-spacing: 0.053rem;
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    margin: -5px 0 0 0;
    color: #F2F2F7;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.nav-background {
    position: sticky;
    top: -48px;
    z-index: 10;
    background-color: #161617CC;
    backdrop-filter: saturate(1.8) blur(20px);
    width: 100%;
    max-width: 100vw;
    height: 96px;
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-height: 100%;
    max-width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    height: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    text-align: center;
    overflow-y: hidden;
    overflow-x: hidden;
    flex-grow: 1;
}

header {
    z-index: 1;
    width: 100%;
}

/*header {
    z-index: 1;
    background-color: rgb(0, 0, 0, 0.75);
    width: 100%;
} */

.bouton-commencer {
    width: fit-content;
    height: fit-content;
    padding: 5px 10px 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 200;
    letter-spacing: .01em;
    line-height: 1.3333733333;
    font-family: 'SF Pro Display Light';
    border: 0px;
    background-color: #0071E3;
    transition: all 0.24s ease-in-out;
    color: #F2F2F7;
    z-index: 0;
    cursor: pointer;

}

.bouton-commencer:hover {
    background-color: #0076DF ;
}

.container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: scroll;
}

.container2{
    display: flex;
    margin: 0 ;
    padding: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 125px 0 0 0;
    gap: 10px;
}

/* .video {
    position: relative;
    width: 100%; 
    margin: 0 auto;
    z-index: 0;
}

.video video {
    position: absolute;
    top: 0;
    left: 0;
    z-index:  0x;
    width: 100%;
} */

video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}


.nav-subtop-background {
    display: none;
}

.navtop-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
    gap: 32px;
    margin: 0 0 7px 30px;
    color: #D8D8DC;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

.a-navtop{
    font-family: 'SF Pro';
    font-size: .77em;
    color: #C7C7CC;
    text-decoration: none;
    transition: all 0.24s ease-in-out;
}

.a-navtop:hover{
    color: #EBEBF0;
}

.search {
    cursor: pointer;
}

.search-navtop{
    margin: 7px 0 0 0;
    fill: #D8D8DC;
}

.search-navtop:hover{
    fill: #EBEBF0;
}

#search-bar {
    display: inline-block;
    width: 0;
    overflow: hidden;
    margin: 0 -30px 0 0;
    opacity: 0;
    transition: width 0.3s ease-in-out;
    border-radius: 10px;
}

#search-bar.active {
    animation: searchbarin 0.3s forwards;
    width: 200px;
    border-radius: 10px;
}

#search-bar.inactive {
    animation: searchbarout 0.3s forwards;
}

.hidden {
    display: none;
}

.search-input {
    width: 100%;
    padding: 5px;
    border: 0px;
    border-radius: 10px;
    color: white;
    background-color: #161617CC;
    backdrop-filter: blur(30px);
}

/*#search-bar {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}*/
.big-logo {
    color: white;
    font-family: "SF Pro Display Medium";
    font-size: 10em;
    line-height: .875em;
}

.big-title {
    font-family: 'SF Pro Display Medium';
    font-size: 12em;
    /* color: #D8D8DC; */
    color: white;
    letter-spacing: .003em;
    line-height: 0.7em;
}

.big-title-container {
    height: 50vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 0;
    position: sticky;
    margin: 0 0 75px 0;
}

.container3, .container4, .container5, .container6, .container7{
    height: 50vh;
    width: 100%;
    opacity: 0;
    animation: revealall 3s forwards;
    z-index: 0;
}

.logo-plans {
    display: flex;
    margin: 100px 0 0 0;
    z-index: 0;
}

.logos {
    margin: 0 0 10px 0;
}

.text-container{
    font-size: 116px;
    font-family: 'SF Pro Display Medium';
    font-weight: 700;
    line-height: 1.0348027586;
    letter-spacing: -0.015em;
}

.text-container2{
    font-size: 80px;
    font-family: 'SF Pro Display Medium';
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.image-jour {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    z-index: 1;
}

.image-jour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
}

.title-cards {
    font-size: 6em;
    font-family: 'SF Pro Display Medium';
    z-index: 1;
    height: fit-content;
    margin: 10% 0 3% 0;
}

.cards{
        display: flex;
        flex-direction: column;
        position: absolute;
        align-items: center;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        z-index: 1;
        gap: 125px;
}

.card1,.card2,.card4,.card5{
    display: flex;
    background-color: white;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    max-width: 980px;
    max-height: 500px;
    border-radius: 20px;
    transition: all .75s ease;
    box-sizing: border-box;
}

.card3 {
    display: flex;
    background-color: white;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 980px;
    max-height: 500px;
    border-radius: 20px;
    transition: all .75s ease;
}

.card5 {
    margin: 0 0 50px 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.video-container {
    width: 100%;
    max-width: 276px;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video {
    width: 100%;        
    height: 100%;
    display: flex;
    border-radius: 20px 0 0 20px;
}

.text-card-container {
    width: 100%;
    max-width: 684px;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.card-title {
    font-size: 2em;
    font-family: 'SF Pro Display Medium';
    transition: all .75s ease;
}

.card-text {
    overflow: hidden;
    font-size: 1.25em;
    font-family: 'SF Pro Text Medium';
}

.important{
    font-family: 'SF Pro Text Medium';
    transition: all .75s ease;
}

.text-card-container2 {
    width: 100%;
    max-width: 684px;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 50px 0 0 0;
}

.image-covoiturage {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 276px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 2px 20px 20px 2px;
}

.important2 {
    transition: all .75s ease;
}

.invisible {
    opacity: 0;
    transition: opacity 1s ease, transform 3.5s ease, position .75s ease;
}

.highlight-text {
    transition: all .75s ease;
    font-family: 'SF Pro Text Medium';
}

.card2:hover {
    .invisible {
        opacity: 1;
        transform: rotate(360deg);
    }

    .important2 {
        font-size: 2em;
    }
}

.card1:hover, .card2:hover, .card3:hover, .card4:hover, .card5:hover {
    transform: scale(1.025);

    .important {
        color: #28cd41;
        font-size: 2.5em;
        padding: 10px 0 0 0;
    }

    .card-title {
        color: #48484A;
    }
}

.card4:hover {

    .highlight-text {
        padding: 20px;
        scale: 1.5;
        transform: rotate(-5deg);


        color:#66d4cf;
    }
}

.card5:hover {

    .highlight-text {
        font-size: 1.1em;
        color: #47474a;
    }
}

@keyframes filllogo {
    from {
        fill: #E5E5EA;
    }

    to {
        fill: white;
    }
}

@keyframes nofilllogo {

    from {
        fill: white;
    }

    to {
        fill: #E5E5EA;
    }
}

@keyframes searchbarin {
    from {
        width: 0;
        opacity: 0;
        margin: 0 -30px 0 0;
    }

    to {
        width: 200px;
        opacity: 1;
        margin: 0 0 0 10px;
    }
}

@keyframes searchbarout {
    from {
        width: 200px;
        opacity: 1;
        margin: 0 0 0 10px;
    }
    to {
        width: 0;
        opacity: 0;
        margin: 0 -30px 0 0;
    }
}

@keyframes revealall {

    from{
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 1100px) {

    .navtop-container {
        margin: 0 0 7px -50px;
        transition: all .24s ease;
    }

    .image-planete {
        opacity: 0;
    }

    .card1,.card2,.card3,.card4,.card5 {
        width: 70%;
    }
    
    .invisible {
        opacity: 0;
    }

    .title-cards {
        font-size: 40px;
    }

    .logo-top {
        height: 50px ;
        width: 20px;
        transition: all .24s ease;
    }

    .big-title {
        font-size: 4rem;
        transition: font-size 0.3s ease;
    }

    .big-logo {
        font-size: 5em;
        transition: font-size 0.3s ease-out;
    }

    .container,main, html, body{
        overflow: none;
    }

    .nav-top {
        padding: 0 0 0 22px ;
    }

    .text-container {
        font-size: 40px;
    }

    .text-container2 {
        font-size: 30px;
    }

    .logos {
        height: 100px;
    }

    .logo-plans {
        height: 100px;
    }

    .card-text {
        font-size: .8em;
    }

    .card-title {
        font-size: 1em;
    }

    .cards {
        gap: 50px;
    }
}

@media  screen and (min-width: 601px) {

    .logo-top {
        height: 44px;
        width: 14.5px;
        transition: all .24s ease;
    }
}