/* ==========================================
   POLICE LITTERAIRE
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;600&display=swap');

/* ==========================================
   RESET
========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    overflow: hidden;
}


/* ==========================================
   HEADER
========================================== */

.parallax-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 40px 60px;
    pointer-events: none;
}


.header-content {
    display: flex;
    flex-direction: column;
    max-width: 900px;
}


.btn-back {
    width: fit-content;
    margin-bottom: 15px;
    color: #c9c9c9;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: .8;
    pointer-events: auto;
    transition:
        opacity .2s,
        color .2s,
        transform .2s;
}


.btn-back:hover {
    color: #000;
    opacity: 1;
    transform: translateX(-5px);
}


.parallax-header h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 2px;
}


.parallax-header p {
    margin: 10px 0 0;
    max-width: 600px;
    color: #b8b8b8;
    font-size: 18px;
    line-height: 1.6;
}



/* ==========================================
   VIEWPORT
========================================== */

.parallax-viewport {
    width: 100vw;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.parallax-viewport::-webkit-scrollbar {
    display: none;
}


/* ==========================================
   CONTENEURS FLEX
========================================== */

.scene-wrapper {
    display: flex;
    min-width: max-content;
    height: 100%;
}

.horizontal-scroll {
    display: flex;
    flex-direction: row;
    min-width: max-content;
    height: 100%;
}

/* ==========================================
   UNE SCENE DESKTOP
========================================== */

.info-block {
    flex: 0 0 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3vw;
    width: 100vw;
    height: 100vh;
    padding:
        170px
        4vw
        90px;
}

/* ==========================================
   IMAGE DESKTOP
========================================== */

.floating-img {
    flex: 1 1 58%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.floating-img img {
    display: block;
    width: 100%;
    max-width: 1050px;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(
            20px
            20px
            35px
            rgba(0, 0, 0, .20)
        );
}

/* ==========================================
   TEXTE DESKTOP
========================================== */


.text-box {
    flex: 0 1 clamp(340px, 36vw, 620px);
    width: clamp(340px, 36vw, 620px);
    max-width: 620px;
    padding:
        clamp(28px, 2.5vw, 48px)
        clamp(30px, 3vw, 55px);

    border: 1px solid #333;
    background:
        rgba(255, 255, 255, .08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08),
        0 3px 10px rgba(0, 0, 0, .05);
}


/* TITRE */

.text-box h3 {
    margin: 0 0 22px;
    font-family:
        "Merriweather",
        Georgia,
        serif;
    font-size: clamp(27px, 1.8vw, 34px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}


/* PARAGRAPHE */

.text-box p {
    margin: 0;
    font-family:
        "Merriweather",
        Georgia,
        serif;
    font-size: clamp(18px, 1.25vw, 23px);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0;
    white-space: normal;
    text-wrap: pretty;
}

/* ==========================================
   PROGRESSION DESKTOP
========================================== */

.scroll-progress {
    position: fixed;
    left: 10%;
    bottom: 20px;
    z-index: 999;
    width: 80%;
    height: 8px;
    background:
        rgba(0, 0, 0, .10);
    cursor: pointer;
    touch-action: none;
}


.scroll-progress-bar {
    position: relative;
    width: 0;
    height: 100%;
    background: #000;
    pointer-events: none;
}

.scroll-progress-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    transform:
        translateY(-50%);
}


/* ==========================================
   FOOTER
========================================== */

.site-footer {
    position: fixed;

    top: 20px;
    right: 35px;

    z-index: 1000;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 18px;

    width: auto;

    padding: 0;

    color: #b8b8b8;

    font-size: 14px;
    letter-spacing: 1px;

    white-space: nowrap;
}


/* ==========================================
   CONTACT
========================================== */

.contact-mail {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 60px;

    opacity: .45;

    text-decoration: none;

    transition: opacity .3s ease;
}


.contact-mail:hover {
    opacity: 1;
}


/* ==========================================
   ENVELOPPE
========================================== */

.envelope {
    position: relative;

    display: block;

    width: 65px;
    height: 44px;

    background: #dedede;

    border: 1px solid #777;
    border-radius: 4px;

    box-shadow:
        0 4px 12px
        rgba(0, 0, 0, .20);

    overflow: hidden;

    animation:
        envelope-float 4s
        ease-in-out
        infinite;
}


/* rabat supérieur */

.envelope::before {
    content: "";

    position: absolute;

    top: -27px;
    left: 50%;

    width: 48px;
    height: 48px;

    background: #cfcfcf;

    border-right: 1px solid #777;
    border-bottom: 1px solid #777;

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* pli inférieur */

.envelope::after {
    content: "";

    position: absolute;

    bottom: -36px;
    left: 50%;

    width: 50px;
    height: 50px;

    background: #d6d6d6;

    border-left: 1px solid #777;
    border-top: 1px solid #777;

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* ==========================================
   ANIMATION
========================================== */

@keyframes envelope-float {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-2deg);
    }

    50% {
        transform:
            translateY(-5px)
            rotate(2deg);
    }
}


/* ==========================================
   DESKTOP - ECRANS PEU HAUTS
   Sous 1110px de hauteur
========================================== */

@media (min-width: 651px) and (max-height: 1110px) {

    .info-block {
        gap: clamp(20px, 2vw, 40px);
        padding:
            clamp(150px, 17vh, 185px)
            4vw
            clamp(55px, 7vh, 90px);
    }

    /* IMAGE */

    .floating-img img {
        width: auto;
        max-width: min(35vw, 950px);
        max-height: clamp(
            430px,
            62vh,
            760px
        );
        object-fit: contain;
    }

    /* BULLE TEXTE */

    .text-box {
        flex-basis:
            clamp(
                330px,
                32vw,
                570px
            );
        width:
            clamp(
                330px,
                32vw,
                570px
            );
        max-width: 570px;
          padding:
            clamp(24px, 3.2vh, 40px)
            clamp(28px, 2.5vw, 48px);
    }

    /* TITRE */

    .text-box h3 {
        margin-bottom:
            clamp(14px, 2vh, 22px);
        font-size:
            clamp(
                25px,
                3.1vh,
                32px
            );
        line-height: 1.2;
    }

    /* TEXTE */

    .text-box p {
        font-size:
            clamp(
                17px,
                2.05vh,
                22px
            );

        line-height: 1.55;
    }

}

/* ==========================================
   DESKTOP - ECRANS TRES PEU HAUTS
========================================== */

@media (min-width: 651px) and (max-height: 850px) {

    .info-block {
        padding:
            145px
            4vw
            45px;
        gap: 25px;
    }

    .floating-img img {
        max-width: 40vw;
        max-height: 45vh;
    }

    .text-box {
        flex-basis:
            clamp(300px, 30vw, 500px);
        width:
            clamp(300px, 30vw, 500px);
        padding:
            24px
            32px;
    }

    .text-box h3 {
        margin-bottom: 12px;
        font-size:
            clamp(23px, 3vh, 28px);
    }

    .text-box p {
        font-size:
            clamp(16px, 2.1vh, 19px);

        line-height: 1.5;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

    /* ======================================
       HEADER MOBILE
    ====================================== */

    .parallax-header {
        width: 100%;
        padding:
            22px
            25px
            20px;
        background:
            rgba(255, 255, 255, .96);
        pointer-events: none;
    }

    .btn-back {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .parallax-header h1 {
        font-size: 26px;
        line-height: 1.15;
        letter-spacing: 1px;
    }

    .parallax-header p {
        margin-top: 7px;
        max-width: 90%;
        font-size: 14px;
        line-height: 1.4;
    }

    /* ======================================
       SCROLL VERTICAL
    ====================================== */

    .parallax-viewport {
        width: 100%;
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
    }


    .parallax-viewport::-webkit-scrollbar {
        display: none;
    }


    .scene-wrapper {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    }


    .horizontal-scroll {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        height: auto;
        padding:
            190px
            0
            80px;

        gap: 100px;
    }



    /* ======================================
       UNE SCENE MOBILE

       PLUS DE 100VH :
       LES BLOCS SE SUIVENT NATURELLEMENT
    ====================================== */

    .info-block {
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        min-height: 0;
        gap: 25px;
        padding:
            0
            25px;
    }


    /* ======================================
       IMAGE MOBILE
    ====================================== */

    .floating-img {
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    .floating-img img,
    .img-1 img,
    .img-2 img,
    .img-3 img,
    .img-4 img,
    .img-5 img,
    .img-6 img {
        display: block;
        width: 100%;
        max-width: 520px;
        height: auto;
        object-fit: contain;
    }

    /* ======================================
       TEXTE MOBILE
    ====================================== */

.text-box {
    position: relative;

    flex: none;

    width: 100%;
    max-width: 100%;

    padding:
        28px
        26px
        30px;

    color: #f5f5f5;

    background:
        linear-gradient(
            145deg,
            rgba(20, 20, 20, .94),
            rgba(38, 38, 38, .90)
        );

    border:
        1px solid
        rgba(255, 255, 255, .12);

    border-radius: 20px;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .16),
        0 4px 12px rgba(0, 0, 0, .08),
        inset 0 1px 0 rgba(255, 255, 255, .08);

    overflow: hidden;
}


/* petite ligne décorative */

.text-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 26px;

    width: 55px;
    height: 3px;

    background:
        rgba(255, 255, 255, .75);

    border-radius:
        0 0 3px 3px;
}


/* TITRE */

.text-box h3 {
    margin:
        0
        0
        16px;

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size: 24px;
    font-weight: 500;

    line-height: 1.3;

    letter-spacing: -.2px;

    color: #fff;
}


/* TEXTE */

.text-box p {
    margin: 0;

    font-family:
        "Merriweather",
        Georgia,
        serif;

    font-size: 16.5px;
    font-weight: 400;

    line-height: 1.7;

    letter-spacing: .05px;

    color:
        rgba(255, 255, 255, .84);

    white-space: normal;
}


    /* ======================================
       PROGRESSION MOBILE
    ====================================== */

    .scroll-progress {
        position: fixed;
        top: 10%;
        right: 8px;
        bottom: auto;
        left: auto;
        width: 6px;
        height: 80%;
        background:
            rgba(0, 0, 0, .15);

        z-index: 9999;
    }


    .scroll-progress-bar {
        width: 100%;
        height: 0;
        background: #000;
    }


    .scroll-progress-bar::after {
        top: auto;
        right: auto;
        bottom: -7px;
        left: 50%;
        width: 14px;
        height: 14px;
        transform:
            translateX(-50%);
    }

    /* ======================================
       FOOTER MOBILE
    ====================================== */

    .site-footer {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 15px;

        padding:
            40px
            20px
            50px;

        text-align: center;
    }

    .contact-mail {
        order: 1;
    }

    .footer-credit {
        order: 2;
    }

}

/* ==========================================
   TRES PETITS ECRANS
   SOUS 350px

   LA PAGE GARDE UNE LARGEUR DE 350px
   ET EST ENSUITE REDUITE PROPORTIONNELLEMENT
========================================== */

@media (max-width: 349px) {

    .parallax-header,
    .horizontal-scroll {
        width: 350px;
        zoom: calc(100vw / 350px);
    }

    .parallax-header {
        padding:
            22px
            25px
            20px;
    }

    .scene-wrapper {
        width: 100%;
    }

    .info-block {
        width: 350px;
        padding:
            0
            25px;
    }
}