:root {
    --color-light: #E8E8E8;
    --color-melight: #D8D8D8;
    --color-dklight: #C8C8C8;
    --color-form:  #F0F0F0;
    --color-accr: #FFF;
    --color-ctc: #FFF;
    --color-ctctxt: var(--accent-color);
    --blur-accr: #9eb7ad60;
    --blur-shadow: #5C575A;
    --blur-bg: #DDDDDD66;
    --svg-logo: url(../images/assets/texture.svg);
    --invert: 0;
    --nav-height: 100px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --color-light: #202020;
	    --color-melight: #151515;
        --color-dklight: #101010;
        --color-form: #303030;
        --color-accr: var(--accent-soft);
        --color-ctc: var(--accent-color);
        --color-ctctxt: #FFF;
        --blur-accr: #000000AA;
        --blur-shadow: #151515;
        --blur-bg: #00000088;
        --invert: 0.9;
    }
}
@font-face {
    font-family: "Noto Sans";
    src: url("../fonts/NotoSans.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Noto Serif";
    src: url("../fonts/NotoSerif.ttf") format("truetype");
    font-display: swap;
}
@keyframes colorchange {
    from {background-color: var(--color-light);}
    to {background-color: var(--color-melight);}
}
@keyframes loading {
    0% {filter: brightness(1);}
    50% {filter: brightness(0.6);}
    100% {filter: brightness(1);}
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes toast {
    from {width: 0; opacity: 0;}
    to {width: 50%; opacity: 1;}
}
@keyframes toastAlt {
    from {width: 0; opacity: 0;}
    to {width: 100%; opacity: 1;}
}
@keyframes appear {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes topAppear {
    0% {transform: scale(0) rotate(245deg); opacity: 0;}
    30% {transform: scale(0.5) rotate(245deg); opacity: 0.3;}
    50% {transform: scale(1) rotate(235deg); opacity: 0.7;}
    100% {transform: rotate(270deg); opacity: 1;}
}
html {
    scroll-behavior: smooth;
}
body {
    position: relative;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-fill);
    color: var(--color-text);
    font-family: 'Noto Sans';
    accent-color:var(--accent-color);
    max-width: 100vw;
}
a { text-decoration: none; }
h5 { margin: 0 0 0.5em 0;}
#header {
    transition: height 0.25s;
    height: 100px;
    z-index: 900;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    background: linear-gradient(135deg, var(--color-dklight) 0%, var(--color-light) 30%);
    border-bottom: 2px solid var(--color-grey);
}
#top_btn {
    display: none;
    position: fixed;
    z-index: 890;
    border-radius: 50%;
    inset: auto 2vw 1.5vh auto;
}
.topVis {
    animation: topAppear 1s forwards;
    display: block !important;
    width: 50px;
    height: 50px;
}
#hdr_mob {
    display: none;
    position: absolute;
    margin: 7px;
    inset: 0 0 auto auto;
    z-index: 970;
    height: 36px;
    filter: invert(var(--invert));
    transition: height 0.25s, width 0.25s;
}
#hdr_logo {
    content:var(--svg-logo);
    max-height: 250%;
    position: absolute;
    transition: height 0.25s;
    inset: 0 auto auto 0;
    z-index: 950;
    pointer-events: none;
}
#hdr_decod {
    height: 75px;
    transition: height 0.5s;
}
#hdr_container {
    z-index: 960;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}
#header.open {
    height:100% !important;
    border-bottom: none;
}
.open #hdr_logo {
    max-height: 50%;
}
.open #hdr_decod {
    opacity: 0;
}
.open #hdr_container .hdr_lk {
    display: block;
}
#hdr_title {
    margin:0;
}
#hdr_nav {
    display: flex;
    flex-direction: row-reverse;
    transition: height 0.25s;
}
.hdr_lk {
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 10px;
    background: var(--color-light);
    font-size: 1.5em;
    font-family: 'Noto Sans';
    color: var(--accent-color);
    margin: auto 2vw;
}
.hdr_lk:hover:not(.interact-link) {
    background: var(--color-melight);
    box-shadow: 0px 0px 5px var(--color-melight);
    color: var(--accent-color);
    animation: colorchange 0.5s;
}
.interact-link {
    background-color: var(--color-ctc);
    color: var(--color-ctctxt);
    border: 1.5px var(--color-ctctxt) solid;
    box-shadow: 0 0 2px var(--color-ctctxt);
}
.interact-link:hover {
    filter: invert(0.2);
    cursor: pointer;
}
.swiper-container {
    overflow: hidden;
}
.swiper-slide img {
    width: 100%;
}
.swiper-button-next:after,.swiper-button-prev:after {
    color: white;
    text-shadow: 0 0 5px black;
}
footer {
    background-color: var(--color-dklight);
    width: 100%;
    text-align: center;
}
footer>div {
    display: flex;
}
footer p {
    border-bottom: 20px solid transparent;
    margin: 0;
}
#light_switch {
    width: fit-content;
    height: fit-content;
    display: block;
    text-align: left;
    padding: 10px 10%;
}
input {
    accent-color: var(--accent-color);
}
input[type=checkbox] {
    width: 30px;
    transform: scale(1.5);
}
.custom-control-input:checked~.custom-control-label::before {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
}
#homeCarousel {
    position: relative;
    margin-top: 100px;
    z-index: 200;
}
.extVideo {
    border-radius: 10px;
    position: relative;
    width: 50%;
    overflow: hidden;
    transition: opacity 400ms;
}
.extVideo > *  {
    border: 0;
    width: 100%;
    display: inherit;
    aspect-ratio: 16/9;
}
#auvioVideo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}
#auvioVideo:hover p {
    color: white;
    background: var(--accent-color);
}
#auvioVideo p {
    width:auto;
    text-align:center;
    background: #AAAAAAA0;
    color: var(--accent-color);
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
}
.click_img:hover, .gallery_video:hover {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.4s;
}
#zoomed_container {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: fixed;
    z-index: 999;
    inset: 0 auto auto 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}
#zoomed_img {
    height: 50vh;
    opacity: 1;
    animation: appear 0.2s;
}
#quit_zoom {
    position: absolute;
    inset: 1.5vh 2vw auto auto;
    height: 25px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.637);
    padding: 10px;
    transition: background-color 400ms;
}

#quit_zoom:hover {
    cursor: pointer;
    background-color: black;
}

/*=====ROUND BORDER=====*/

.round_bord {
    border-radius: 8px;
}

/*=====SECTION=====*/
#pg_content {
    display: flex;
    flex-flow: column nowrap;
    max-width: 100vw;
}
section {
    margin: 5vh 0 10vh 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
    position: relative;
    height: auto;
    scroll-margin-top: 60px;
}
.sect_bg {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    position: absolute;
}
.sect_blur {
    width: inherit;
    height: inherit;
    background: var(--blur-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.sect_content {
    opacity: 0;
    width: 75%;
    height: auto;
    border-radius: 8px;
    background: var(--color-light) var(--svg-logo) no-repeat;
    background-size: 40%;
    box-shadow: 0px 0px 10px var(--blur-shadow);
    transition: opacity 1s;
    z-index: 99;
    margin: 5vh 0 5vh 0;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    padding: 50px;
}
.sect_content h2 {
    text-align: center;
    font-family: 'Noto Serif',serif;
}
.sect_content p:not(#auvioVideo p) {
    text-indent: 5vmin;
    max-width: 600px;
    text-align: justify;
}
.sect_content>* {
    margin: 10px 0 10px 0;
}
.sect_subcontent {
    width: inherit;
}
.sect_subcontent p {
    width: 100% !important;
    padding: 0 min(1vmin, 20px);
}
.sect_gridcontent {
    display: grid;
    grid-gap: 5vh;
}
.badge_img {
    width: 200px;
    height: 200px;
    border-radius: 100px;
}
#introduction .sect_bg {
    background-image: url('../images/backgrounds/pic2.jpg');
}
#realisations .sect_bg {
    background-image: url('../images/backgrounds/pic1.jpg');
}
#realisations h4 {
    text-align: center;
}
#contact {
    z-index: 10;
}
#contact .sect_bg {
    background-image: url('../images/backgrounds/pic2.jpg');
}
.listbox_controls {
    flex-flow: row nowrap;
    justify-content: space-around;
}
/*=====CONTACT FORM=====*/
h4 {
    margin-bottom: 15px;
}
.form-control {
    border: none;
    background: var(--color-melight);
    margin-bottom: 1rem;
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9em;
}
.form-control:focus {
    background: var(--color-form);
}
.socialList {
    list-style: none;
}
.socialList a, .socialList a:hover, .socialList a:visited {
    color: var(--accent-color);
}
.socialList img {
    width: 30px;
    margin: 5px 10px;
    vertical-align: middle;
}
#contactForm {
    height: 150px;
}
#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contact form>input,form>textarea {
    border-radius: 8px;
    padding: 5px 10px;
    height: 32px;
    width: 90%;
}
.g-recaptcha {
    margin: 0 auto;
    filter: grayscale(var(--invert)) invert(var(--invert));
}
/*=====CONTAINERS=====*/
.flex_container {
    display: flex;
}
.grid_container {
    display: flex;
    flex-wrap: wrap;
}
.comp_global {
    margin: 5px auto;
    min-width: 320px;
}
#phraseAccroche {
    position: absolute;
    z-index: 800;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-family: 'Noto Serif';
    color: var(--color-accr);
    background-color: var(--blur-accr);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
#phraseAccroche h1 {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto;
}
.img-fluid {
    height: 300px;
    border-radius: 2px;
}
a.black-text {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: var(--color-melight);
    text-align: center;
}
a.black-text img {
    height: 40px;
    padding: 5px;
}
.message {
    transition: opacity 0.5s;
    position: fixed;
    z-index: 800;
    border-radius: 10px;
    bottom: 10px;
    right: 10px;
    width: 50%;
    max-width: 500px;
    height: 75px;
    min-height: 75px;
    background: var(--color-dklight);
    text-align: center;
    animation: toast 1.5s;
}
.message.hidden {
    opacity: 0;
    max-width: 0;
}
#failM {
    background: #cc3030;
}
#successM {
    background-color: green;
}
.message p {
    line-height: 75px;
    white-space: nowrap;
}
@media screen and (max-width:700px) {
    :root {
        --nav-height: 50px;
    }
    #hdr_decod {
        height: 50px;
    }
    #hdr_mob {
        display: block;
    }
    #header {
        height: 50px;
    }
    #hdr_nav {
        position: absolute;
        width: 100%;        
        bottom: 0;
        right: 0;
        flex-direction: column-reverse;
        margin-bottom: env(safe-area-inset-bottom);
    }
    .hdr_lk {
        display: none;
        margin : 0 5% 10% auto;
    }
    #phraseAccroche {display: none;}
    .badge_img {
        width: 100px;
        height: 100px;
    }
    .sect_content {
        width: 100%;
        border-radius: 0;
        padding: 10px;
    }
    .sect_content p {
        width: 90%;
    }
    #homeCarousel {
        margin-top: 50px;
    }
    .extVideo {
        width: 85%;
    }
    .img-fluid {
        height: 200px;
    }
    .message {
        border-radius: 0;
        width: 100%;
        max-width: 700px;
        height: 50px;
        min-height: 50px;
        inset: 1.5vh 2vw auto auto !important;
        animation: toastAlt 1s;
    }
    .message p {
        line-height: 50px;
    }
}
@media screen and (max-width:950px) {
    section {
        scroll-margin-top: 100px;
    }
    .swiper-button-next,.swiper-button-prev {
        transform: scale(0.6);
    }
    #hdr_decod {
        content: url(../images/assets/logodecod.png);
    }
    .badge_img {
        width: 150px;
        height: 150px;
    }
}
@media screen and (min-width:950px) {
    #hdr_container {
        padding-left: 120px;
    }
    .swiper-button-next,.swiper-button-prev {
        opacity: 0.8;
        width: 50px;
        height: 70px;
        border-radius: 15px;
        background: var(--accent-soft);
    }
    #phraseAccroche {
        max-width: 50vw;
        border-radius: 20px;
        transform: translate(50%, 15%);
        padding: 10px;
    }
    #phraseAccroche h1 {
        font-size: 2rem;
        font-weight: bold;
        margin: 0 auto;
    }
    .sect_gridcontent {
        grid-template-columns: 47% 53%;
    }
    /* .sect_subcontent:nth-child(1) {grid-row: 1/2;} */
    /* .sect_subcontent:nth-child(2) {grid-row: 2/2;} */
    /* .sect_subcontent:nth-child(3) {
        grid-row: 1/3;
        grid-column: 2/2;
    } */
}
.comp_caption p {
    padding-top: 1vw;
    width: 100%;
}