#story-hero {
    position: relative;
}

@keyframes story-h1 {
    from {
        transform: translateY(-40%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#story-hero h1 {
    align-self: self-start;
    opacity: 0;
    margin-top: 190px;
    transform: translateY(-40%);
    animation: story-h1 1s ease-in-out 2.5s forwards;
}
#story-hero h1 span {
    display: block;
}
#story-hero h1 span:first-child,
#story-hero-mobile h1 span:first-child {
    color: transparent;
    -webkit-text-stroke: 2px #F7F2F1;
    text-stroke: 2px #F7F2F1;
}

#story-hero .content {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    gap: 30px;
}

#story-hero .bars {
    position: absolute;
    top: 0;
    left: -50px;
    right: -50px;
}

#story-hero .bars .bar {
    position: absolute;
    right: 0;
    background: #5e3bb9;
    width: 0;
}

@keyframes story-hero-bar1 {
    from { width: 0; }
    to { width: 80%; }
}

@keyframes story-hero-bar2 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes story-hero-bar3 {
    from { width: 0; }
    to { width: 55%; }
}

#story-hero .bars .bar.bar1 {
    top: 20px;
    height: 60px;
    animation: story-hero-bar1 1s ease-in-out forwards;
    animation-fill-mode: forwards;
    animation-delay: 1s;
}
#story-hero .bars .bar.bar2 {
    top: 100px;
    height: 80px;
    width: 0;
    animation: story-hero-bar2 1s ease-in-out forwards;
    animation-delay: 1.33s;
}
#story-hero .bars .bar.bar3 {
    top: 200px;
    height: 40px;
    width: 0;
    animation: story-hero-bar3 1s ease-in-out forwards;
    animation-delay: 1.66s;
}


/*-------------------- MARQUEE ---------------*/


.marquee2 {
    height: 85px;
    color: #111111;
    background-color: #F7F2F1;
    border: none;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.marquee3 {
    height: 85px;
    color: #F7F2F1;
    background-color: #111111;
    border: 2px solid #F7F2F1;
    transform: translate(-50%, -50%) rotate(5deg);
}

.marquee3 .track {
    animation: marquee-inverse 32s linear infinite;
    gap: 110px;
    height: 85px;
}

.marquee3 .track::before,
.marquee3 .track::after {
    content: " ";
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #F7F2F1;
}
.marquee3 .track::before {
    top: 12px;
}
.marquee3 .track::after {
    bottom: 12px;
}


.marquee2 .outline {
    color: transparent;
    -webkit-text-stroke: 2px #111111;
    text-stroke: 2px #111111;
   font-style: italic;
}

.marquee2 .track {
    box-sizing: border-box;
    border-top: 2px #111111 solid;
    border-bottom: 2px #111111 solid;
    margin: 12px 0;
    height: 61px;
}

.marquee-wrapper {
    position: relative;
    height: 20dvw;
    margin: 0 -50px;
    overflow: hidden;
}

.marquee-wrapper.move-top {
    margin-top: -120px;
}

.marquee-wrapper .marquee {
    position: absolute;
    transform-origin: 50% 50%;
    top: 50%;
    left: 55%;
    width: 110%;
}

section#coup-de-sifflet {
    display: block;
    margin-top: -60px;
}

section#coup-de-sifflet > img {
    width: 100%;
    height: auto;
}
section#coup-de-sifflet img.side-img {
    margin-right: 80px;
    transform: translateY(-113px);
    align-self: flex-start;
}
section#coup-de-sifflet article {
    margin-top: 75px;
    margin-left: 113px;
}

section#plein-sprint article {
    flex: 1;
}

section#plein-sprint {
    align-items: center;
    justify-content: flex-start;
    gap: 133px;
}

section#fondateur {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #F7F2F1;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 50px;
}

section#fondateur h2 {
    margin: 50px 0;
}

section#fondateur blockquote {
    width: 550px;
}

section .margin-left {
    margin-left: 72px;
}

section .section-content {
    position: relative;
    color: #F7F2F1;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 40px;
    padding-left: 42px;
}

section .section-content::before {
    content: " ";
    background-color: #5e3bb9;
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 5px;
    transition: height 500ms ease-in;
    transition-delay: 100ms;
}

section .section-content p {
    opacity: 0;
    transition: 1s ease-in-out;
    transform: translateX(-37px);
    max-width: 320px;
    line-height: 1.1em;
}

section.scroll-visible .section-content p {
    opacity: 1;
    transform: translateX(0);
}
section.scroll-visible .section-content::before {
    height: 100%;
}


/*-------------------- WELCOME TO OUR GAME -----------------*/

#welcome-to-our-game {
    margin: 0 -50px 50px -50px;
}

#welcome-to-our-game .content {
    max-width: 1340px;
    margin: 0 auto;
    text-transform: uppercase;
    color: #F7F2F1;
}

#welcome-to-our-game .line {
    font-size: 300px;
    display: flex;
    align-items: stretch;
}
#welcome-to-our-game .line1 {
    font-weight: 700;
    justify-content: end;
}
#welcome-to-our-game .line2 {
    font-weight: 1000;
    font-size: 298px;
    font-style: italic;
    margin-top: -70px;
}
#welcome-to-our-game .welcome {
    font-size: 352px;
    font-weight: 1000;
    transform: translateY(120%);
    opacity: 0;
    transition: 600ms cubic-bezier(0.47, 0, 0.23, 1.2);
    margin-bottom: -76px;
}

#welcome-to-our-game .line .rectangle {
    width: 14px;
    transition: width 600ms cubic-bezier(0.47, 0, 0.23, 1.2);
    height: 212px;
    margin-top: 49px;
}

#welcome-to-our-game .line.line2 .rectangle {
    background-color: #95FC57;
    transition-delay: 1000ms;
}

#welcome-to-our-game .line.line1 .rectangle {
    background-color: #5e3bb9;
    transition-delay: 500ms;
}

#welcome-to-our-game .line #to-our {
    margin-right: 25px;
    color: transparent;
    -webkit-text-stroke: 2px #F7F2F1;
    text-stroke: 2px #F7F2F1;
    white-space: nowrap;
}

#welcome-to-our-game .line #game {
    margin-left: 25px;
}

#welcome-to-our-game:hover .line.line1 .rectangle,
#welcome-to-our-game.scroll-visible .line.line1 .rectangle {
    width: 463px;
}

#welcome-to-our-game:hover .line.line2 .rectangle,
#welcome-to-our-game.scroll-visible .line.line2 .rectangle {
    width: 632px;
}
#welcome-to-our-game:hover .welcome,
#welcome-to-our-game.scroll-visible .welcome {
    transform: translateY(0);
    opacity: 1;
}


@media (max-width: 1400px) {
    section#plein-sprint {
        margin-left: -50px;
    }

    #welcome-to-our-game {
        width: 900px;
        margin: 0 auto;
    }
    #welcome-to-our-game .line {
        font-size: 200px;
    }
    #welcome-to-our-game .line.line2 {
        margin-top: -40px;
    }

    #welcome-to-our-game .line .rectangle {
        height: 142px;
        margin-top: 33px;
    }

    #welcome-to-our-game .welcome {
        font-size: 236px;
        margin-bottom: -40px;
    }
} 

@media (max-width: 1300px) {
    section {
        max-width: 1200px;
    }

    section#plein-sprint {
        gap: 40px;
    }

    #story-hero img {
        width: 500px;
        height: auto;
    }

    #story-hero h1,
    #story-hero-mobile h1 {
        font-size: 130px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #story-hero h1 {
        margin-top: 150px;
    }

    #story-hero .bars .bar.bar1 {
        top: 20px;
        height: 50px;
    }
    #story-hero .bars .bar.bar2 {
        top: 80px;
        height: 70px;
    }
    #story-hero .bars .bar.bar3 {
        top: 160px;
        height: 30px;
    }

    .marquee-wrapper.move-top {
        margin-top: -100px;
    }
}


@media (max-width: 1200px) {
    section#plein-sprint img {
        max-width: 600px;
    }
    section#coup-de-sifflet article {
        margin-left: 0;
    }

    section#coup-de-sifflet img.side-img {
        width: 300px;
        height: auto;
    }
}


@media (max-width: 1100px) {
    section#plein-sprint img {
        max-width: 500px;
    }
}


@media (max-width: 1000px) { /* tablets */

    #story-hero .content {
        flex-direction: column-reverse;
    }

    #story-hero .content h1 {
        margin-top: 0;
        align-self: auto;
    }

    section#coup-de-sifflet img.side-img {
        width: 200px;
        height: auto;
        margin-right: 40px;
        margin-top: 10px;
    }

    section#coup-de-sifflet article {
        margin: 0;
    }

    section#plein-sprint img {
        max-width: 400px;
        align-self: self-start;
    }

    #welcome-to-our-game {
        width: 658px;
        margin: 60px auto;
    }

    #welcome-to-our-game .line {
        font-size: 120px;
    }

    #welcome-to-our-game .line.line2 {
        margin-top: -25px;
        font-size: 118px;
    }

    #welcome-to-our-game .line #to-our {
        margin-right: 15px;
    }

    #welcome-to-our-game .line .rectangle {
        height: 85px;
        margin-top: 20px;
    }

    #welcome-to-our-game .welcome {
        font-size: 173px;
        margin-bottom: -30px;
    }

    #welcome-to-our-game .line #game {
        margin-left: 10px;
        margin-right: 8px;
    }

    section#fondateur img {
        max-width: 600px;
        height: auto;
    }

    .marquee-wrapper.move-top {
        margin-top: 0;
    }
}


@media (max-width: 900px) { /* smartphones */
    section#newsletter form .checkbox {
        font-size: 14px;
    }
    
    .desktop-only {
        display: none;
    }
    .tablet-desktop {
        display: none;
    }
    .mobile-only {
        display: block;
    }
    .mobile-only-flex {
        display: flex;
    }

    header {
        margin: 0 -25px;
        padding: 0 25px;
    }

    #welcome-to-our-game {
        width: 325px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }

    #welcome-to-our-game .line {
        font-size: 73px;
    }

    #welcome-to-our-game .line.line2 {
        margin-top: -14px;
        font-size: 73px;
    }

    #welcome-to-our-game .line #to-our {
        margin-right: 15px;
    }

    #welcome-to-our-game .line .rectangle {
        height: 51px;
        margin-top: 12px;
    }

    #welcome-to-our-game .welcome {
        font-size: 85px;
        margin-bottom: -16px;
    }
    #welcome-to-our-game .line #game {
        margin-left: 10px;
        margin-right: 6px;
    }

    #story-hero-mobile {
        flex-direction: column;
        align-items: center;
    }
    
    #story-hero-mobile img {
        max-width: calc(100% - 50px); /* 50=2x25 = body padding */
        height: auto;
    }

    section#plein-sprint {
        margin: 40px 0;
    }

    section#plein-sprint article {
        flex: none;
        margin: 0 auto;
    }

    .marquee-wrapper {
        height: 180px;
    }

    section#coup-de-sifflet article {
        margin: 20px auto;
    }

    section#coup-de-sifflet {
        margin-top: 20px;
    }

    section#coup-de-sifflet .flex-row {
        flex-direction: column;
    }

    img#coup-de-sifflet-sprint {
        max-width: calc(100% - 50px); /* 50=2x25 = body padding */
        margin: 0 auto;
    }

    section p, blockquote {
        font-size: 18px;
    }

    section .section-content {
        padding-left: 20px;
    }

    .marquee-wrapper.move-top {
        margin-top: -60px;
    }

    section#fondateur img {
        max-width: 100%;
        height: auto;
    }

    section#fondateur blockquote {
        max-width: 100%;
    }

    section#fondateur {
        margin-top: 30px;
    }

    .footer-links {
        column-gap: 20px;
    }
}

@media (max-width: 600px) {
    section .margin-left {
        margin-left: 15px;
    }
}


@media (max-width: 430px) {
    section .margin-left {
        margin-left: 10px;
    }

    section h2 {
        margin-bottom: 20px;
    }
}