header {
    position: sticky;
    top: 0;
    background-color: #111111;
    z-index: 10;
}

main {
    position: relative;
}

small {
    font-size: 20px;
    font-style: italic;
    font-weight: normal;
    letter-spacing: 3px;
    margin-left: 20px;
}

/*-------------------- HERO ---------------------*/

#hero-home {
    height: 100dvh;
    background-image: url('../images/hero-img.jpg');
    background-size: cover;
    background-position: center;
    margin: 0 -50px;
}

#logo {
    position: absolute;
    width: 82px;
    height: 87px;
    left: 50%;
    top: 46px;
    transform: translateX(-50%);
}

#hero-home h1 {
    position: absolute;
    left: 50px;
    bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

#hero-home h1 span {
    line-height: 175px;
}

#hero-home h1 span.h1-stroke {
    color: transparent;
    -webkit-text-stroke: 5px #F7F2F1;
    text-stroke: 5px #F7F2F1;
}

#hero-home nav {
    position: absolute;
    right: 50px;
    top: 50%;
}

#hero-home nav ul {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

#hero-home nav a {
    position: relative;
    display: inline-block;
    width: 203px;
    height: 40px;
    color: #111111;
    background-color: #95FC57;
    border: none;
    font-family: "gotham-xnarrow", sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 3.75px;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
}


#hero-home nav .a:active {
    background-color: #87E74E;
}

#hero-home nav a span {
    position: absolute;
    top: 50%;
    left: 90%;
    transform: translate(-100%, -50%);
    transition: 500ms;
    transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

#hero-home nav a::after {
    content: " ";
    position: absolute;
    background-image: url(../images/arrow-desktop-nav.svg);
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    transform: translate(0%,-50%) rotate(0deg);
    right: -18px;
    top: 50%;
    transition: 500ms;
    transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

#hero-home nav a:hover span {
    left: 20px;
    transform: translate(0%, -50%);
}

#hero-home nav a:hover::after {
    right: 20px;
    transform: translate(0%, -50%) rotate(-40deg);
}


@keyframes h1-wear {
    from {
        transform: translateX(-111%);
    }
    to {
        transform: translateX(0);
    }
}
#hero-home h1 .wear {
    animation: h1-wear 500ms ease-in-out;
    animation-delay: 300ms;
    animation-fill-mode: forwards;
    transform: translateX(-111%);
}

@keyframes h1-your {
    from {
        transform: translateY(-111%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
#hero-home h1 .your {
    transform: translateY(-111%);
    opacity: 0;
    animation: h1-your 500ms ease-in-out;
    animation-delay: 800ms;
    animation-fill-mode: forwards;
}

@keyframes h1-passion {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
#hero-home h1 .passion {
    transform: translateY(100%);
    animation: h1-passion 500ms ease-in-out;
    animation-delay: 1300ms;
    animation-fill-mode: forwards;
}

#hero-home {
    position: relative;
    overflow: hidden;
}

@keyframes hero-nav-item {
    from {
        transform: translateX(130%);
    }
    to {
        transform: translateX(0);
    }
}
#hero-home nav li {
    animation: hero-nav-item 500ms ease-in-out;
    animation-fill-mode: forwards;
    transform: translateX(130%);
}
#hero-home nav .item1 {
    animation-delay: 500ms;
}

#hero-home nav .item2 {
    animation-delay: 1000ms;
}

#hero-home nav .item3 {
    animation-delay: 1500ms;
}


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


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

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

.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;
}

#marquees {
    position: relative;
    height: 25dvw;
    margin: 0 -50px;
    overflow: hidden;
}
#marquees .marquee {
    position: absolute;
    transform-origin: 50% 50%;
    top: 50%;
    left: 55%;
    width: 110%;
}

video {
    max-width: 1340px;
    width: 100%;
    margin: 100px auto;
    display: block;
}

/*-------------------- ARTICLES ---------------------*/


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%;
}

section:first-of-type {
    margin-top: 75px;
}

.beyond-the-style {
    margin-top: 110px;
    color: #F7F2F1;
    text-transform: uppercase;
    font-style: italic;
}

.beyond-the-style div {
    font-size: 162px;
    line-height: 138px;
    font-weight: 200;
}

.beyond-the-style em {
    display: block;
    font-weight: 1000;
    color: #F7F2F1;
    line-height: 138px;
}

.beyond-the-style small {
    margin-top: 10px;
}

section#philosophie article {
    padding-top: 85px;
}

section#engagements {
    margin-top: 30px;
    gap: 133px;
    align-items: center;
}

section#engagements article {
    margin-top: 30px;
}


/*-------------------- TOP DU PODIUM ---------------------*/

section#top-du-podium {
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    gap: 0;
}
section#top-du-podium h2 {
    margin-bottom: 30px;
}

section#top-du-podium .cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    align-self: stretch;
}

section#top-du-podium .cards .card {
    position: relative;
    display: flex;
}

section#top-du-podium .cards .card img.nb {
    flex: 1;
    max-width: 100%;
    height: auto;
}
section#top-du-podium .cards .card img.color {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: 300ms opacity ease-in-out;
    transition-delay: 50ms;
}

section#top-du-podium .cards .card h3 {
    position: absolute;
    left: 50px;
    bottom: 100px;
    right: 0;
}

section#top-du-podium .cards .card h3 .text {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 48px;
    font-weight: 900;
    line-height: 72px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    z-index: 2;
    transition: 800ms ease-in-out;
}

section#top-du-podium .cards .card h3 .text.text1 {
    color: #95FC57;
    z-index: 3;
}

section#top-du-podium .cards .card:hover img.color {
    opacity: 1;
}

section#top-du-podium .cards .card:hover .text {
    color: #F7F2F1;
    font-size: 32px;
}
section#top-du-podium .cards .card:hover .text.text1 {
    color: #F7F2F1;
}

section#top-du-podium .cards .card .text:not(.text1) {
    color: transparent !important;
    -webkit-text-stroke: 1px #F7F2F1;
    text-stroke: 1px #F7F2F1;
    opacity: 0;
}
section#top-du-podium .cards .card:hover .text:not(.text1) {
    opacity: 1;
}

section#top-du-podium .cards .card:hover .text.text2 {
    transform: translateY(-30px);
}
section#top-du-podium .cards .card:hover .text.text3 {
    transform: translateY(-60px);
}
section#top-du-podium .cards .card:hover .text.text4 {
    transform: translateY(-90px);
}
section#top-du-podium .cards .card:hover .text.text5 {
    transform: translateY(-120px);
}

section#top-du-podium > a {
    align-self: flex-end;
    margin-top: 14px;
}


/*-------------------- WEAR YOUR PASSION ---------------------*/

#wear-your-passion {
    width: 1340px;
    margin: 0 auto;
}

#wear-your-passion .content {
    text-transform: uppercase;
    color: #F7F2F1;
}

#wear-your-passion .line {
    font-size: 300px;
    display: flex;
    align-items: stretch;
}
#wear-your-passion .line1 {
    font-style: italic;
    font-weight: 1000;
}
#wear-your-passion .line2 {
    color: transparent;
    -webkit-text-stroke: 2px #F7F2F1;
    text-stroke: 2px #F7F2F1;
    font-weight: 700;
    font-size: 298px;
    justify-content: end;
    margin-top: -70px;
}
#wear-your-passion .passion {
    font-size: 395px;
    font-weight: 1000;
    margin-top: -82px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.47, 0, 0.23, 1.2),
        opacity 600ms cubic-bezier(0.47, 0, 0.23, 1.2);
    transition-delay: 1000ms;
    transform-origin: 0%;
}

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

#wear-your-passion .line.line2 .rectangle {
    transition-delay: 500ms;
}

#wear-your-passion .line.line2 .rectangle {
    background-color: #5e3bb9;
}

#wear-your-passion .line.line1 .rectangle {
    background-color: #95FC57;
}

#wear-your-passion .line #your {
    margin-right: 25px;
}

#wear-your-passion:hover .line.line1 .rectangle,
#wear-your-passion.scroll-visible .line.line1 .rectangle {
    width: 632px;
}

#wear-your-passion.scroll-visible .line.line2 .rectangle,
#wear-your-passion:hover .line.line2 .rectangle {
    width: 682px;
}

/* Le hover normal de la souris
   et le "hover" simulé quand l'élément devient visible sur mobile. */
#wear-your-passion:hover .passion,
#wear-your-passion.scroll-visible .passion {
    transform: translateY(0);
    opacity: 1;
}

/*-------------------- RESPONSIVE ---------------------*/


@media (max-width: 1420px) {
    #wear-your-passion {
        width: 900px;
    }
    #wear-your-passion .line {
        font-size: 200px;
    }
    #wear-your-passion .line.line2 {
        margin-top: -40px;
    }

    #wear-your-passion .line .rectangle {
        height: 142px;
        margin-top: 33px;
    }

    #wear-your-passion .passion {
        font-size: 266px;
        margin-top: -50px;
    }
}

@media (max-width: 1200px) {
    section#top-du-podium .cards .card h3 {
        left: 30px;
        bottom: 80px;
    }
    section#top-du-podium .cards .card h3 .text {
        font-size: 32px;
    }
    section#top-du-podium .cards .card:hover .text {
        font-size: 24px;
    }

    section#top-du-podium .cards .card:hover .text.text2 {
        transform: translateY(-25px);
    }
    section#top-du-podium .cards .card:hover .text.text3 {
        transform: translateY(-50px);
    }
    section#top-du-podium .cards .card:hover .text.text4 {
        transform: translateY(-75px);
    }
    section#top-du-podium .cards .card:hover .text.text5 {
        transform: translateY(-100px);
    }

    .beyond-the-style div {
        font-size: 120px;
        line-height: 100px;
        font-weight: 200;
    }
    .beyond-the-style div em {
        line-height: 100px;
    }

    section#philosophie .image1 {
        width: 500px;
        height: auto;
    }

    section#engagements {
        gap: 20px;
    }

    section#engagements .image1 {
        width: 400px;
        height: auto;
    }
}


@media (max-width: 1000px) { /* tablettes */
    #hero-home nav a::after {
        width: 12px;
        height: 12px;
        background-size: contain;
    }

    #hero-home nav a span {
        left: 15px;
        transform: translate(0%, -50%);
    }
    
    #hero-home nav a::after {
        right: 15px;
        transform: translate(0%, -50%) rotate(-40deg);
    }
    
    video {
        margin: 40px auto;
    }

    #wear-your-passion {
        width: 658px;
        margin-top: 40px;
    }

    #wear-your-passion .line {
        font-size: 120px;
    }

    #wear-your-passion .line.line2 {
        margin-top: -25px;
        font-size: 118px;
    }

    #wear-your-passion .line #your {
        margin-right: 15px;
    }

    #wear-your-passion .line .rectangle {
        height: 85px;
        margin-top: 20px;
    }

    #wear-your-passion .passion {
        font-size: 194px;
        margin-top: -30px;
    }

    section#philosophie {
        flex-direction: column-reverse;
        align-items: center;
    }

    section#philosophie article {
        padding-top: 0;
    }

    section#philosophie .beyond-the-style {
        margin-top: 40px;
    }

    section h2 {
        margin-top: 10px;
    }

    section:first-of-type {
        margin-top: 0;
    }

    section#engagements {
        flex-direction: column;
    }

    section#engagements > div {
        display: flex;
        flex-direction: column-reverse;
    }

    #hero-home h1 {
        font-size: 120px;        
    }

    #hero-home h1 span {
        line-height: 110px;
        display: block;
    }

    #hero-home h1 span.h1-stroke {
        -webkit-text-stroke: 2px #F7F2F1;
        text-stroke: 2px #F7F2F1;
    }

    #marquees {
        height: 280px;
    }
}

@media (max-width: 430px) { /* smartphones */
    video {
        margin: 20px auto;
        width: 100%;
    }

    header {
        margin: 0 -25px;
        padding: 0 25px;
    }
    
    #hero-home .passion small {
        display: block;
        line-height: 20px;
        margin-left: 0;
        font-size: 16px;
    }

    @keyframes h1-passion {
        from {
            transform: translateY(120%);
        }
        to {
            transform: translateY(0);
        }
    }
    #hero-home h1 .passion {
        transform: translateY(120%);
    }
    
    #hero-home {
        margin: 0 -25px;
    }

    #hero-home nav {
        right: 25px;
        top: 25%;
    }

    #hero-home nav ul {
        gap: 15px;
    }

    #hero-home nav a {
        width: 134px;
        height: 29px;
        font-size: 18px;
    }

    #hero-home h1 {
        font-size: 80px;
        left: 25px;
        bottom: 30px;
    }
    #hero-home h1 span {
        line-height: 80px;
    }

    section#philosophie .image1 {
        width: 300px;
        height: auto;
    }

    section h2 {
        margin-bottom: 15px;
        margin-top: 10px;
    }

    section p {
        font-size: 18px;
    }

    #wear-your-passion {
        width: 325px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }
    #wear-your-passion .line {
        font-size: 73px;
    }
    #wear-your-passion .line.line2 {
        margin-top: -14px;
        font-size: 73px;
    }

    #wear-your-passion .line #your {
        margin-right: 15px;
    }

    #wear-your-passion .line .rectangle {
        height: 51px;
        margin-top: 12px;
    }

    #wear-your-passion .passion {
        font-size: 95px;
        margin-top: -18px;
    }

    #marquees {
        margin: 0 -25px;
        height: 200px;
    }

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

    #logo, #logo > img {
        width: 50px;
        height: 50px;
    }

    section#top-du-podium .cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    section#top-du-podium h2 {
        margin-bottom: 14px;
    }

    section#engagements article {
        margin-top: 0;
    }
}
