@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito/Nunito-VariableFont_wght.ttf");
}

@font-face {
    font-family: "Legault";
    src: url("../fonts/Legault Std/Legault Std.ttf");
}

/* ------------------------- */
/* --------- HTML ---------- */

body, html {
    height: 100%;

    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Nunito';
    /* font-family: 'Nunito', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', 'sans-serif'; */
    
    text-shadow: 2px 2px rgba(0, 0, 0, 0.5);

    font-size: 1.1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-top: 1rem;
    text-align: left;
}

sup {
    vertical-align: top; 
    position: relative; 
    top: -0.5em;
    font-size: smaller;
}



/* ------------------------- */
/* -------- LAYOUTS -------- */

.background {
    background-image: url("../img/bg.png");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    background-attachment: fixed;

    /* animation: fadeInAnimation ease-in 3s; */

    position:fixed;

    width: 100%;
    height: 100%;
}

.background .overlay {
    position: absolute; 
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.main {
    position: relative;
}

.container {
    display: flex;
}

.display  {
    height: 100%;
}

.layout-header {
    flex: 0.2;
}

.layout-content {
    flex: 0.8;
}

.vertical {
    display: flex;
    flex-direction: column;
}

.loading .container {
    align-items: center;
    justify-content: center;
    width: 100%;
}

.left-half {
    flex: 1;
}

.right-half {
    flex: 1;
}

.two-third {
    flex: 0.75;
}

.one-third {
    flex: 0.25;
}

/* ------------------------- */
/* ---------- NAV ---------- */

.menu {
    margin-top: 20px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu .btn {
    border: 8px solid rgb(198, 184, 169);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);

    position: relative;
    width: 210px;
    height: 70px;

    font-size: 1.2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    /* background: center center url(../img/bg_btn.png) no-repeat; */
    background-color: #998675;
}


/* ------------------------- */
/* -------- CONTENTS ------- */

/* ... Default Content ... */

.content .title {
    font-family: 'Legault';
    /* font-family: 'Legault', 'Brush Script MT'; */
    font-size: 4.2rem;
    font-weight: bold;
    line-height: 3.2rem;

    display: flex;
    align-items: center;
    justify-content: left;
}

.content .text {
    font-size: 1.4rem;
    line-height: 2rem;
}

.layout-default .content, .layout-top .content {
    padding: 40px;  
}

.texture {
    background-image: url("../img/bg_content.png");
    
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
}

.content.full-height {
    min-height: 800px;
    height: 100%;
}

.partners {
    margin-top: 20px;
    padding: 20px;
    justify-content: space-between;
    background-color: #fff;
    justify-content: center;
}

.partners div {
    flex: 0.3;
    margin-left: 80px;
}

.partners div:first-child {
    margin-left: 0;
}

.partners div img {
    width: 100%;
}

.partners .logo2 {
    flex: 0.25;
}

.partners .logo3 {
    flex: 0.4;
}

.partners .logo4  {
    flex: 0.20;
}

.partners div span {
    display: block;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000;
    text-shadow: none;
}

/* ... (Video) ... */

.fullwidth {
    position: absolute;
   
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
}

/* .page-video .container {
    align-items: center;
    justify-content: center;
} */

/* .page-video .container video {
    width: 60%;
} */

/* ------------------------- */
/* --------- PAGES --------- */

/* ... Default Layout ... */

.top {
    position: relative;
    /* padding: 40px; */
}

.left-half, .right-half {
    padding: 40px 50px 0 50px;
}

.full-width {
    margin: 80px 50px;
}

/* ... Loading Page ... */

.loading {
    height: 100%;
}

.loading .container {
    position: relative;
    height: 100%;
}

.loading .txt {
    padding: 100px;

    font-family: 'Legault';
    /* font-family: 'Legault', 'Brush Script MT'; */
    font-size: 10rem;
    font-weight: bold;
    line-height: 0.9rem;
}

/* ... Video Page ... */

.page-video .content .text {
    font-size: 1.6rem;
}

.page-video .credits {
    padding: 40px;
}

/* ... Credits Page ... */


/* ... 3D Model Page ... */

.page-anim-3d .main {
    height: 100%;
    position: relative;
}

.fixed-top {
    height: 300px;
}

.filling-bottom {
    position: absolute;
    width: 100%;
    bottom: 0;
    top: 300px;
    /* height: 100%;
    min-height: 800px; */
}

.page-anim-3d iframe {
    width: 100%;
    height: 100%;
}

.page-anim-3d .temp {
    min-height: 800px;
}

/* ------------------------- */
/* ------ DEFAULT NAV ------ */

.navigate {
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
    
    flex-direction: row;
}

.navigate a {
    /* align-self: flex-start; */
    margin: 10px;
    flex-grow: 1;
}

/* ------------------------- */
/* ------ DEFAULT ITEM ------ */

.item {
    /* border: 8px solid rgba(252, 252, 252, 0.5); */
    /* box-shadow: rgb(255, 255, 255) 0px 6px 10px; */

    /* text-shadow: 2px 2px #000; */

    /* overflow: hidden; */
    /* border-radius: 40px; */
    
}

.item .overlay {
    /* border-radius: 20px; */

    position: absolute; 
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.item .bg {
    border: 8px solid rgb(198, 184, 169);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);

    position: relative;
    min-width: 300px;
    min-height: 200px;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    /* border: 8px solid rgba(252, 252, 252, 0.5);
    border-radius: 40px; */
}

.item .label {
    /* font-family: 'Legault', 'Brush Script MT'; */
    font-size: 1.8rem;
    line-height: 1.8rem;
    z-index: 1;
    margin: 0 10px;
    text-align: center;
}

.item .label small {
    font-size: 1.2rem;
}

.item .type {
    position: absolute;
    text-align: center;

    width: 100%;

    bottom: 10px;

    color: rgb(198, 184, 169);
}

.item1 .bg {
    background-image: url(../img/btn/btn_video_matiere_vivante.png);
}

.item2 .bg {
    background-image: url(../img/btn/btn_video_premier_lieu.png);
}

.item3 .bg {
    background-image: url(../img/btn/btn_video_4_saisons.png);
}

.item4 .bg {
    background-image: url(../img/btn/btn_images_historiques.png);
}

.item5 .bg {
    background-image: url(../img/btn/btn_animation_3d.png);
}

.item6 .bg {
    background-image: url(../img/btn/btn_vestiges.png);
}

/* ------------------------- */
/* -------- SECTIONS ------- */

/* ... Credits ... */

/* .credits {
    padding: 40px;
} */

.credits .line {
    padding-top: 10px;
    clear: both;
}

.credits .line .def {
    float: left;
    width: 50%;
    color: rgb(198, 184, 169);
}

.credits .line .val {
    margin-left: 2%;
    float: right;
    width: 48%;
    font-weight: bold;
}

.credits .spacing {
    padding-top: 20px;
}

.credits .nav {
    margin-top: 20px;
}

.credits .group {
    padding-top: 60px;
    clear: both;
}

.credits .group:first-child {
    padding-top: 0;
}

.credits .title {
    padding: 0 0 10px;
    

    font-size: 2rem;
    line-height: 2.4rem;
    
    font-family: 'Nunito'
    /* font-family: 'Nunito', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', 'sans-serif'; */
}



.credits .subtitle {
    padding: 40px 0 8px;
    font-size: 1.4rem;
    line-height: 1.6rem;
    clear: both;
}

.credits .group .subtitle:first-child {
    padding-top: 0;
}



.link {
    color: rgb(130, 120, 109);
    text-decoration: underline;
}

.title.bigger {
    font-size: 6rem;
}

.title.medium {
    font-size: 1.8rem;
}

.h-center {
    align-items: center;
}

.spotlight-group {
    display: flex;
    flex-wrap: wrap;
}

.spotlight-group a {
    height: 28vh;
    flex-grow: 1;
}

.spotlight-group a img {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    vertical-align: bottom;
}

.galleries .text {
    padding: 20px 0;
}

/* ------------------------- */
/* ------- ANIMATION ------- */

.animate { 
    /* animation: fadeInAnimation ease 10s; */
    animation-name: fadeInAnimation;
    animation-timing-function: ease;
    animation-duration: 3s;
    min-height: 100%; 

    position: relative;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}