@import "intro.css";
@import "projects.css";
@import "footer.css";


/* -------------------------------------------
   Main Elements
------------------------------------------- */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background: #ffffff;
    font-size: 16px;
    color: #fff;
}

a {
    text-decoration: none;
    font-size: 16px;
    color: #fff;
}

.bold {
    font-weight: bold;
}


/* Flex structure */
.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
    align-items: flex-start;
}

.flex-item {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
}


.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.fade.show {
    opacity: 1;
    display: flex;
    /* o block se preferisci */
}


/* -------------------------------------------
   Header
------------------------------------------- */
header.flex-container {
    margin-top: 20px;
    align-items: center;
}


#img-close {
    position: fixed;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}



/* -------------------------------------------
   Main Content
------------------------------------------- */

/* ---- OVERLAYED TEXT ---- */
.texte_case {
    position: absolute;
    bottom: 60px;
    left: 30px;
    color: #fff;
    text-transform: uppercase;
}

/* Brand */
.ss_titre_case {
    font-family: 'GT Walsheim Condensed', sans-serif;
    font-weight: 300;
    font-size: 23px;
    letter-spacing: 2px;
    padding-bottom: 5px;
}

/* Title */
.titre_case {
    font-family: 'GT Walsheim Condensed', sans-serif;
    font-weight: 500;
    font-size: 49px;
    line-height: 0.8em;

}
.titre_case span {
    font-family: 'GT Walsheim Condensed', sans-serif;
    font-weight: 300;
}

.plyr__video-embed,
.plyr__video-wrapper--fixed-ratio {

    iframe,
    video {
        position: relative !important;
    }
}


/* -------------------------------------------
   Video Popup
------------------------------------------- */
#popup {
    height: 100%;

    .plyr {
        height: 100%;
    }
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    background-color: #000;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2;

    --plyr-color-main: #fff;
    --plyr-badge-border-radius: 0;
    --plyr-range-thumb-height: 0px;
    --plyr-range-track-height: 2px;
    --plyr-progress-loading-size: 2px;
}

.btnPopup {
    cursor: pointer;
}

.btnClose {
    display: none;
    z-index: 3;
    position: fixed;
    right: 84px;
    top: 40px;
    cursor: pointer;
}

/* Plyr customization */
.plyr__control--overlaid {
    background: #000 !important;
    border-radius: 0 !important;
    width: 100px !important;
    height: 100px;

    svg {
        margin: 0 auto;
        left: 0 !important;
    }
}

.plyr__controls {
    padding-left: 10% !important;
    padding-right: 10% !important;
}



/* -------------------------------------------
   Media Queries
------------------------------------------- */
@media all and (max-width: 1430px) {

    p {
        font-size: 0.9em;
    }

    h1 {
        font-size: 2.5em;
    }

    .ss_titre_case {
        font-size: 1.3em;
    }

    .titre_case {
        font-size: 2.3em;
        line-height: 1em;
    }
}

@media all and (max-width: 768.2px) {
    .imgcase {
        padding-bottom: 56.5%;
    }

    #intro {
        min-height: 100vh;
        display: flex;
        align-items: center;
        background-color: #eaeaea;
        transition: all 3s ease;
    }

    .btnClose {
        right: 30px;
        top: 20px;
    }

    .swiper .swiper-pagination {
        display: flex;
        min-height: max-content;
        margin: 5px 20px;
        bottom: 0;

        .swiper-pagination-bullet {
            transform: scale(0.7);
        }

    }

    .swiper-button-next,
    .swiper-button-prev {
        transform: translateY(-50%) scale(0.4);
    }

    .texte_case {
        left: 20px;
        bottom: 30px;
    }

    .ss_titre_case {
        font-size: 10px;
        letter-spacing: 1px;
        padding-bottom: 0;
    }

    .titre_case {
        font-size: 15px;
    }

    .btnPopup .texte_case::after {
        display: none;
    }

    footer.flex-container {
        flex-direction: column;
    }

    footer.flex-container a {
        font-size: 0.6em;
    }

    footer.flex-container #contact-footer {
        width: max-content;
        gap: 20px;
    }

    footer.flex-container #social-footer {
        gap: 5px;
    }

    footer.flex-container #social-footer svg {
        width: 25px;
        height: 25px;
        display: block;
    }

}