@import 'reset.css';

/* --------> FONTS FACE*/
@font-face {
    font-family: InterVariable;
    font-style: normal;
    font-weight: 100 900;
    font-display: block;
    src: url("font/web/InterVariable.woff2") format("woff2");
}

@font-face {
    font-family: InterVariable;
    font-style: italic;
    font-weight: 100 900;
    font-display: block;
    src: url("font/web/InterVariable-Italic.woff2") format("woff2");
}

/* --------> GLOBALES VARIABLES */
:root {
    --color-primary: white;
    --color-secondary: #e8e8e8;
    --color-black: black;
    --color-transparent: transparent;
    --padding-gellule: .3rem .35rem;
    --radius-gellule: 50px;
    --font-inter: InterVariable;
}

/* --------> GENERAL PAGE STRUCTURE */
*,
*::before,
*::after {
    box-sizing: border-box;
}
*{ box-sizing: border-box}
html {
    font-size: 11pt;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
	max-width:100%;
}

body {
    font-family: var(--font-inter);
    font-weight: 300;
    margin: 0;
    padding: 0;
    background: var(--color-primary);
    line-height: normal;
    -webkit-font-smoothing: antialiased;
  	max-width:100%;
}


body.open_menu .nav-content,
body.home.open_menu .menu,
body.open_menu #cross {
    transition: 1s opacity;
    opacity: 1;
    display: block;
}

body.open_menu #tags {
    display: none;

}

#cross,
#tag_filtre {
    display: none;
}


a:not(section#fiches>.item_fiche>a, nav a, .mail),
button,
input {
    text-decoration: none;
    color: var(--color-black);
    background: var(--color-secondary);
    cursor: pointer;
    border: 0;
    width: fit-content;
    padding: var(--padding-gellule);
    border-radius: var(--radius-gellule);
    box-shadow: 1px 1px 1px 1px #ccc;
    -webkit-box-shadow: 1px 1px 1px 1px #ccc;
}

a:not(.select a, .item_title a):hover,
input.selected:hover {
    filter: invert(1) !important;
}

#btn_index {
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.gellule {
    width: fit-content;
    padding: var(--padding-gellule);
    border-radius: var(--radius-gellule);
    box-shadow: 1px 1px 1px 1px #ccc;
    -webkit-box-shadow: 1px 1px 1px 1px #ccc;
    line-height: 1;
    width: fit-content;
    height: fit-content;
}

/* --------> NAVIGATION TRI */
.menu {
    padding: .5rem;
    position: fixed;
    top: 1vh;
    left: 1vw;
    z-index: 2;
}

.return-content {
    display: flex;
    gap: .5em;
    position: fixed;
    bottom: .5em;
    right: .5em;
    z-index: 10;
    width: fit-content;
    height: min-content;
    align-items: center;
    font-size: 1.25rem !important;
}

/* #tagsA {
    display: block;
} */

.menu *,
#tags,
#cross,
#tagsA,
#crossA,
section#info .fiche_title,
.item_title {}

.menu *,
.tag_filtre h2 {
    font-size: 1rem;
}

.menu h1 {
    background-color: transparent;
    padding: var(--padding-gellule);
    margin-bottom: .35em;
    font-weight: 500;
    transform: scaleY(1.05);
}

.tag_filtre h2 {
    background-color: var(--color-primary);
}

div#content .tag_categorie {
    display: flex;
    flex-wrap: wrap;
}

div#tag_filtre {
    display: none;
}

.tag_categorie a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: inherit;
}

/* --------> TOGGLE MENU */
#content {
    position: fixed;
    bottom: 1rem;
    padding: 1rem;
    margin-top: 6rem;
    max-width: 90vw;
    height: fit-content;
    max-height: 88vh;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}

#tag_filtre.slide {
    display: flex;
    flex-wrap: wrap;
}


#tags,
#tagsA,
#cross,
#crossA {
    /* font-size: 1rem; */
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
}

body .nav-content,
body.home .menu,
#propos #btn_index,
#contribution #btn_index,
.contribution #btn_index {
    display: none;
}

#propos .menu,
#contribution .menu {
    display: block;
}

/* CATEGORIES */
div#content .input_button.categorie {
    font-size: 1rem;
    font-weight: 400;
    text-transform: inherit;
}

/* div#content .input_button.categorie:focus {r
    filter: blur(1.5px) invert(1);
} */

div#content .input_button {
    text-transform: lowercase;
    cursor: auto;
    opacity: 0;
}

div#content .input_button.selectable,
div#content .input_button.categorie {
    /* text-transform: lowercase; */
    opacity: .8;
    background: lightgrey;
    cursor: pointer;
}

div#content .input_button.selectable:hover,
div#content .input_button.categorie:hover {
    filter: invert(1);
    opacity: 1;

}

div#content .input_button.selected {
    background: black;
    color: white;
    opacity: 1;
    cursor: pointer;
}

div#content .input_button.selected::after {
    content: ' ✕';
    font-size: .7em;
}

/* SOUS-CATERGORIES */
div#content .tag_filtre {
    /* font-family: "AUTHENTICSans-60"; */
    font-weight: 300;
    font-size: 1rem;
    margin-top: 1rem;
    align-items: baseline;
}

div#content .tag_filtre h2 {
    font-weight: 300;
    font-size: 1rem;
}

/* --------> GALLERIE IMAGES */
/* noms films */
section#fiches {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
}

section#fiches.loading {
    background-color: white;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(images/loading.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35px;

    /* opacity: .8; */
}

section#fiches.loading>.item_fiche {
    display: none;
}

section#fiches>.item_fiche,
section#fiches[data-size=small]>.item_fiche {
    width: 10vw;
    height: 6.6vw;
    overflow: hidden;
    position: relative;
    background: var(--color-primary);
}

section#fiches[data-size=medium]>.item_fiche,
section#fiches[data-size=large]>.item_fiche,
section#fiches[data-size=big]>.item_fiche,
section#fiches[data-size=alone]>.item_fiche {
    width: 20vw;
    height: 13.2vw;
}

section#fiches>.item_fiche>a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

section#fiches>.item_fiche:hover .item_title {
    display: block;
}

section#fiches>.item_fiche:hover .item_thumb {
    display: none;
}

section#fiches .item_thumb {
    width: 100%;
    height: auto;
    position: absolute;
}

section#fiches .item_title {
    cursor: pointer;
    display: none;
    width: fit-content;
    position: absolute;
    top: 1em;
    left: 1em;
    font-size: .8rem;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--color-black);
    background-color: var(--color-primary);
    padding: var(--padding-gellule);
    border-radius: var(--radius-gellule);
    box-shadow: 1px 1px 1px 1px #ccc;
    -webkit-box-shadow: 1px 1px 1px 1px #ccc;
}

.visible {
    opacity: 1;
}

/* --------> FICHES */
/* Boutons */
.return {
    display: flex;
    gap: .5em;
    position: fixed;
    top: .5em;
    right: .5em;
    z-index: 10;
    width: fit-content;
    height: min-content;
    align-items: center;
}

.button-infos {
    position: fixed;
    bottom: 3.25rem;
    font-weight: 500;
    left: .5em;
    font-size: 1.5rem;
    z-index: 10;
}

.return .croix {
    margin-left: 3rem;
}

.button-slide {
    font-size: 1.25rem;
    line-height: 1;

}

/* Toggle info : visible/non-visible ------ NE PAS TOUCHER ! */
article:not(.fiche_title) {
    display: none;
}

main.info article {
    display: flex;
}

/* Texte défilant */
.marquee {
    overflow: hidden;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
}

.marquee div {
    width: max-content;
    padding-bottom: .8vh;
}

.marquee div span {
    margin-right: 35vw;
    font-size: 1rem;

}

/* info film */
/* -----------------------------NE PAS METTRE DE DISPLAY (sinon annule l'effet toggle) !! */
section#info {
    max-width: fit-content;
    height: fit-content;
    position: fixed;
    top: .5rem;
    left: .5rem;
    z-index: 1;
    height: fit-content;
}

section#info .fiche_title {
    font-size: 1rem;
    width: fit-content;
    font-weight: bolder;
    background-color: var(--color-primary);
}

section#info article {
    width: fit-content;
    text-align: left;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-weight: 300;
}

section#info span {
    background-color: var(--color-primary);
    width: fit-content;
    height: fit-content;
    max-width: 50vw;
    align-content: center;
}

section#info .title_info {

    font-weight: 500;
    width: fit-content;
    font-size: 1rem;
    height: fit-content;
}

/* --------------------------------------------- */

/* images */
.fiche_image {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
}

section#scenes img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    transition: 700ms;
    transform-origin: right;
}

.fiche_scene .gellule {
    filter: invert(0) !important;
}

.fiche_scene .gellule.retour:hover {
    filter: invert(1) !important;
    cursor: pointer;
}

/* catégories scènes */
.fiche_scene {
    font-size: .8rem;
    position: absolute;
    right: .5rem;
    bottom: 2.5rem;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: min-content;

}

.title_categorie {
    width: fit-content;
    height: fit-content;
    background: var(--color-primary);
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    margin-left: auto;
    text-transform: capitalize;
}

/* --------> LE PROJET */
#propos {
    overflow: hidden;
    display: flex;
    /* font-weight: 500; */
    height: 100vh;
    width: 100vw;
    padding-top: 10vh;
}

.select {
    filter: invert(1);
}

#propos h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    /* text-decoration: underline; */
    padding: var(--padding-gellule);
    border-radius: var(--radius-gellule);
    background-color: var(--color-secondary);
    width: fit-content;
    font-weight: 500;
    box-shadow: 1px 1px 1px 1px #ccc;
    -webkit-box-shadow: 1px 1px 1px 1px #ccc;
}

#propos #projet p {
    font-size: 2rem;
    line-height: 2.55rem;
    font-weight: 400;
}

#projet li {
    font-size: 1rem;
    /* font-family: "AUTHENTICSans-Condensed-90"; */
    font-weight: 500;
}

#projet p a {
    width: fit-content;
    line-height: 1;
    width: fit-content;
    height: fit-content;
}

#propos blockquote {
	margin: 2rem 0;
}
#propos blockquote p {
	font-size: 1.5rem;
  line-height: 2.1rem;
  padding-left: 2vw;
  padding-right: 2vw;
  font-weight: 200;
}

#propos p {
    font-weight: 400;
    font-size: 1.4rem;
    padding-bottom: 2rem;
    line-height: 1.8rem;
    /* padding-top: 2rem; */
		margin: 0;
		padding: 0;
}

#propos p + p {
	text-indent: 2rem;
}
#propos p:has(img) + p {
    margin-top: 2rem;
		text-indent: 0rem;
}


#propos p:has(img) {
	padding: 4rem 0;
	margin-top: 2rem;
  background: var(--color-secondary);
}
#propos p.logo:has(img) {
  background: none;
}


#propos .bloc-img {
    background: var(--color-secondary);
    box-shadow: 1px 1px 1px 1px #ccc;
    -webkit-box-shadow: 1px 1px 1px 1px #ccc;
}

#propos .bloc-img img {
    width: 20vw;
    margin: auto;
    padding: 2.5vw;
}

#propos p img:not(.box-projet img) {

    margin: auto;
}

.box-projet img {
    height: 7vh !important;
    float: right;
    text-decoration: none;
    color: var(--color-black);
    border: 0;
    width: min-content;
    padding-left: 2.1rem;
    border-radius: var(--radius-gellule);
    box-shadow: 1px 1px 1px 1px #ccc;
    -webkit-box-shadow: 1px 1px 1px 1px #ccc;
    padding-right: 2.1rem;
    padding-bottom: .2rem;
    padding-top: .2rem;
    margin-top: 10vh;
    margin-right: 0vw;
}

#propos ul li {
    padding: 0em 2em;
    ✕ list-style-position: outside;
    list-style: disc;
    line-break: strict;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.65rem;
}

#propos .zone-white {
    width: 100%;
    backdrop-filter: blur(30px);
    box-shadow: 3px 1px 3px 1px #ccc;
    -webkit-box-shadow: 3px 1px 3px 1px #ccc;
    top: 0;
    left: 0;
    position: fixed;
    height: max-content;
    padding-bottom: 1vh;
    padding-top: 1vh;
		z-index: 1;
}

#propos .zone-white .menu {
    position: relative;
    top: 0vw;
    left: 1vw;
}

/* Textes projets + articles */
#article {
    padding: 8vh 22.5vw 0vh 22.5vw;
    width: 100%;
    overflow-y: auto;
    height: auto;
}

#article #btn_index {
    display: none;
}

#projet {
    padding: 12.5vh 5vw;
    overflow-y: scroll;
}

.titre-article {
    display: flex;
    justify-content: flex-start;
    /* flex-direction: column; */
    flex-wrap: wrap;
    height: auto;
    width: 80%;

}

/* Liste articles */
#title {
    width: 100vw;
    font-size: 1.3em;
    z-index: 1;
    padding: 1%;
}

#projet h1,
#title h1,
#title h2>a {
    width: fit-content;
    line-height: 2.2rem;
    font-size: 1rem;
    font-weight: 300;
    white-space: nowrap;
    background: var(--color-primary);
}

#projet .texte {
    padding: 2rem;
}

#projet .box-projet {
    width: auto;
    height: fit-content;
    max-width: 99vw;
}

/* effet feuille */
.box-article {
    padding: 1rem 1rem 1rem 1rem;
    background: var(--color-primary);
    /* box-shadow: 3px 1px 3px 1px #ccc;
    -webkit-box-shadow: 3px 1px 3px 1px #ccc; */
    text-align: left;
}

.box-article p em {
    font-size: inherit;
    /*! line-height: 3rem; */
    /*! background: #e8e8e8; */
    font-weight: 200;
}

/* Menu hamburger */
.noneInvert {
    display: block;
}

.none {
    display: none;
}

/* INDEX LIST  */

.item_list {
    width: 100%;
}

.selection:after {
    content: " *";
}

.item_list>a,
.item_list>span.list_header {
    display: grid;
    grid-template-columns: 30% 20% 45% 5%;
    width: 100% !important;
}

.item_list>a div {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.item_list>span.list_header {
    background: white;
    padding: .5rem;
}

.item_list>span.list_header>div:hover {
    text-decoration: underline;
    cursor: pointer;
}

.list {
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow-y: scroll;
    z-index: 2;
}

.button-list {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

/* --------> RESPONSIVE */
@media screen and (min-width: 1800px) {
    .box-article {
        width: 56vw;
    }

    #propos p {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

@media screen and (max-width: 1025px) {

    /* --------> HOME */
    /* Gallerie image */
    section#fiches>.item_fiche,
    section#fiches[data-size=small]>.item_fiche {
        width: 20vw;
        height: 13.2vw;
    }

    section#fiches[data-size=medium]>.item_fiche,
    section#fiches[data-size=large]>.item_fiche,
    section#fiches[data-size=big]>.item_fiche,
    section#fiches[data-size=alone]>.item_fiche {
        width: 33vw;
        height: 22vw;
    }


    section#scenes img {
        width: 100%;
        height: auto;

    }

    /* TOGGLE MENU */
    #menu {
        transition: .2s;
        /* transform: translate(-100%); */
    }

    #tag_filtre,
    #tag_filtre.slide {
        display: flex;
    }

    #content {
        overflow-y: scroll;
        overflow-x: hidden;
        transition: .2s;
        /* transform: translate(-100%); */
        max-width: 100vw;
        bottom: inherit;
        top: 1em;
        padding-bottom: 4rem;
    }

    #content.menu_mobil,
    #menu.menu_mobil {
        transform: translate(0%);
    }

    #tags,
    #cross.on,
    #crossA.on {
        display: block;
    }

    #tags.off,
    #tagsA.off,
    #cross,
    #crossA {
        display: none;
    }

    #btn_index {
        display: none;
    }

    /* --------> PROJET */


    #projet {
        padding: 12.5vh 8vw;
    }

    #title {

        transition: 1s opacity;
        transform: translate(-100%);
        z-index: 10;
    }

    /* Articles */
    #article {
        width: 100vw;
        padding: 0;
    }

    .box-article {
        padding: 12vh 3vw 0vw 3vw;

    }

    /* menu hamburger */
    .noneInvert {
        display: none;
    }

    .none {
        display: block;
    }

    #title.box {
        transform: translate(0%);
    }
}


@media screen and (max-width: 825px) {

    /* --------> HOME */
    section#fiches>.item_fiche,
    section#fiches[data-size=medium]>.item_fiche,
    section#fiches[data-size=large]>.item_fiche,
    section#fiches[data-size=big]>.item_fiche,
    section#fiches[data-size=alone]>.item_fiche {
        width: 33vw;
        height: 22vw;
    }


    #btn_index {
        display: none;
    }

    .return {
        width: 5rem;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #projet p {
        font-size: 2rem;
        line-height: 2.65rem;
        font-weight: 400;
    }
}


@media screen and (max-width: 530px) {

    /* --------> HOME */
    section#fiches>.item_fiche,
    section#fiches[data-size=medium]>.item_fiche,
    section#fiches[data-size=large]>.item_fiche,
    section#fiches[data-size=big]>.item_fiche,
    section#fiches[data-size=alone]>.item_fiche {
        width: 50vw;
        height: 33.3vw;
    }

    #title {
        width: 100vw;
    }

    #btn_index {
        display: none;
    }

    .return {
        width: 5rem;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #projet p {
        font-size: 1.3rem;
        line-height: 1.9rem;
        font-weight: 400;
    }

    #article {
        padding: 10vh 0vw 5vh 0vw;
    }
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.555) {
    html {
        font-size: 12.5pt;
    }

    #projet p {
        font-size: 1.3rem;
        line-height: 1.9rem;
        font-weight: 400;
    }
}


@media only screen and (-webkit-min-device-pixel-ratio: 2.625) {
    html {
        font-size: 11pt;
    }

    #projet p {
        font-size: 1.3rem;
        line-height: 1.9rem;
        font-weight: 400;
    }

    .fiche_scene {

        right: .5rem;
        bottom: 4rem;
        z-index: 10;
    }
}

@media only screen and (max-width: 530px) and (orientation: landscape) {

    section#fiches>.item_fiche,
    .return {
        display: flex;
        gap: .5em;
        position: fixed;
        top: .5em;
        right: .5em;
        z-index: 10;
        width: fit-content;
        height: min-content;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    section#fiches[data-size=medium]>.item_fiche,
    section#fiches[data-size=large]>.item_fiche,
    section#fiches[data-size=big]>.item_fiche,
    section#fiches[data-size=alone]>.item_fiche {
        width: 33%;
        min-height: 40vh;
        max-height: 42vh;
    }

    #btn_index {
        display: none;
    }

    .return {
        width: 5rem;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    #projet p {
        font-size: 1.3rem;
        line-height: 1.9rem;
        font-weight: 400;
    }

}
