@import 'reset.css';

/* FONTS  */
@font-face {
	font-family: 'Amiamie';
	src: url('../fonts/Amiamie-RegularRound.otf');
	font-weight: normal
}
@font-face {
	font-family: 'Amiamie';
	src: url('../fonts/Amiamie-ItalicRound.otf');
	font-style: italic;
}

/* VARIABLES */
:root {
	--unity: .45vw;
}

/* GENERAL */

html {
	font-size: calc(var(--unity) * 3);
}

html, section {
	scroll-behavior: smooth;
	scroll-margin-top: calc(var(--unity) * 3);
}

body {
	background: var(--bg);
	font-family: 'Amiamie';
	color: var(--color);
	line-height: 1.1rem;
	display: grid;
	grid-template-rows: 2rem 1fr 2rem; 
	height: 100vh;
	overflow: hidden;
}

nav {
	padding: var(--unity);
	border-bottom: 2px solid;
	text-transform: uppercase; 
	background: var(--bg);
	z-index: 1;
}

nav > * {
	margin-right: calc(var(--unity) * 2)
}

nav .more, nav .less {
	display: none;
}

main {
	overflow-y: scroll;
}

main > section {
	overflow-x: hidden;
	overflow-y: scroll;
	width: 100%;
	height: 100%;
	position: relative;
	padding-bottom: 1rem;
}

main > section > section {
	padding: var(--unity);
	margin: 1em 0;
}
main > section >  section:nth-last-of-type(1) {
	margin-bottom: calc(var(--unity) * 10) ;
}

main#main_home > section {
	/* max-width: 1000px; */
}
section#info_site, 
section#spectacle_description
{
	width: 100%;
	/* text-align: center; */
}

section#spectacle_credits {
	border-top: 2px solid;
}

section#spectacle_credits p {
	columns: 2;
	font-size: .7rem;
	line-height: 1.2em;
}

section#spectacle_credits p + p {
	text-indent: 0rem;
}

section {
	box-sizing: border-box;
}

section#info_site > .baseline,
section .content
{
	max-width: 1000px;
	/* margin: 0 auto; */

}

section#list_spectacles {
	max-width: 1000px;
	display: flex;
	flex-wrap: wrap;
}

.section_title {
	width: 100%;
	/* padding: var(--unity); */
	text-transform: uppercase;
	top: calc(var(--unity) * 2);
	font-weight: normal;
	
}

article {
	width: calc(50% - var(--unity)*2);
	margin: var(--unity);
}

article.item img {
	width: 100%;	
	background: lightgrey;
	border: none;
	outline: none;
}

h1 {
	margin-left: -12px;
	padding-left: 12px;
	/* border-bottom: 1px solid; */
	margin-bottom: 0px;
}

h2 {
	font-size: 1rem;
	margin-bottom: var(--unity);
}

h3 {
	font-weight: normal;
}

a {
	color: var(--color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

b, strong, h1, h2, h3 {
	font-weight: normal;
	text-decoration: underline;
}

em, i {
	font-style: italic;
}

p {
	font-size: 1rem;
}

p + p {
	text-indent: 2rem;
}

.close {
	position: fixed;
	right: 1rem;
	color: var(--color);
	right: .5rem;
  top: 2.5rem;
}
.pop_up {
	/* transform-origin: 0% 0%; */
	position: fixed;
	border-radius: 50%;
	text-align: center;
	border: 2px solid var(--color);
	color: var(--color);
	font-size: 1.2rem;
	padding: 2rem;
	z-index: 1;
	max-width: 500px;
	cursor: pointer;
	background: rgb(63,94,251);
	/* background: white; */
	background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(246,252,70,1) 58%, rgba(252,70,237,1) 89%);
}

.pop_up:hover {
	z-index: 2;
}
.pop_up.hide {
	display: none; 
}


.header_spectacle {
	max-width: 1000px;
	display: flex;
	flex-wrap: wrap; 
}

.header_spectacle span {
	font-size: .6rem;
	margin-left: 3rem;
}


/* SLIDEoR  */

.prev, .next {
  cursor: pointer;
	position: absolute;
  transform: translateY(-50%);
	top: 25vh;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color);
	font-size: .5rem;
  background-color: var(--bg);
  transition: opacity 0.6s ease;
	opacity: .5
}
.prev{ left: 15px; }
.next { right: 15px; }
.prev:hover, .next:hover {
	text-decoration : none;
	opacity: 1
}


#slider {
	max-width: 1000px;
	height: 50vh;
	text-align: center;
  background: black;
}

.slide_control {
	width: 100%;
	/* background: yellow; */
	position: absolute;
	max-width: 1000px;
}

#slide_prev, #slide_next {
	background: blue;
	opacity: .4;
	width: 30%;
	height: 100%;
}


#slider .container_images {
	max-width: 1000px;
	height: 100%;
	overflow: hidden;

}
#slider .image {
	width: 100%;
	height: 100%;
	display: none;
	margin: 0px;
}

figure img {
	height: calc(100% - 1rem );
}
figure figcaption {
	font-size: .3rem;
	margin-top: -.5rem;
	color: white;
}

#slider  .image.visible {
	display: inline-block
}

main.right_open
{
	display: grid;
	grid-template-columns: 40% 60%;
	overflow: hidden;
	/* grid-template-areas: "home right" */
}
main.right_open #home
{
	overflow-y: scroll;
}
main.right_open #right_box {
	border-left: 2px solid;
	overflow-y: scroll;
}


.projet_info {
	position: fixed;
	right: 0;
	padding: .2rem;
	background: var(--bg);
	font-size: .8rem;

}
main.right_open .date a:before,
main.right_open .fichier a:before
{
	content: '>>';
	margin-left: -1rem;
}

main.right_open .date, 
main.right_open .fichier
{
	margin: .8em 0;
	margin-left: 1rem;
	line-height: 1rem;
}

.iframe_vimeo {
	width: 100%;
	min-height: 400px;
	background: black;
	max-width: 1000px;
}

.personne_image {
	box-sizing: border-box;
	width: 20%;
	margin-right: var(--unity);
	position: relative;
}
.personne_image img {
	width: 100%;
	filter: grayscale(1);

}

.personne_nom {
	margin: 0;
	font-weight: bold;
}

.personne_text {
	box-sizing: border-box;
	width: 75%;
}

.personne_presentation {
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	width: 100%;
	margin-bottom: var(--unity);
}
.personne_presentation + .personne_presentation {
	margin-top: 1rem;
}

.right_medium {
	/* font-size: 2rem; */
}

footer {
	bottom: 0;
	display: inline-block;
	border-top: 2px solid;
	width: 100%;
	/* height: calc(var(--unity) * 1); */
	background: var(--bg);
	padding: var(--unity);
	display: flex;
	flex-wrap: wrap;
}

footer > marquee >  * {
	margin-right: calc(var(--unity) * 10)
}

.mobile {
	display: none;
}

@media only screen and (max-width: 1000px) {
	:root {
		--unity: .5rem;
	}

	p + p {
		text-indent: 1rem;
	}

	.desktop {
		display: none;
	}

	.mobile {
		display: block;
	}

	body {
		grid-template-rows: 2rem 1fr;
	}

	nav {
		/* font-size: .6rem; */
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

	nav > span:not(.site_name) {
		display: none;
	}

	nav span.site_name .more, 
	nav span.site_name .less 
 	{
		display: inline-block;
		font-size: 1rem;
    line-height: 1rem;
    cursor: pointer;
    margin-left: .5rem;
    border: 2px solid;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    /* padding: 0.04rem; */
    position: absolute;
    text-align: center;
    margin-top: -0.05rem;
	}

	nav.open {
		height: 5.5rem; 
	}
	nav.open > span {
		display: block;
	}
	nav .less  {
		display: none !important;
	}
	nav.open .more  {
		display: none !important;
	}
	nav.open .less {
		display: inline-block !important;
	}

	article {
		width: 100%;
		margin: var(--unity) 0;
	}

	main#main_home, 
	main#main_spectacle, 
	main#main_presentation,
	main#main_equipe,
	main#main_contact
 	{
		grid-template-columns: 100%;
		display: grid;
		overflow: hidden;
	}
	main#main_spectacle #home, 
	main#main_presentation #home, 
	main#main_contact #home, 
	main#main_equipe #home, 
 	footer	
 	{
		display: none;

	}


	section#spectacle_credits p {
		columns: 1;
	}

	.personne_presentation, 
	.personne_presentation + .personne_presentation 
 	{
		display: block;
		margin-top: 2rem;
	}
	.personne_image {
		width: 100%;
	}
	.personne_text {
		width: 100%;
	}

	main.right_open #right_box {
		border-left: none;
	}

	main#main_contact p + p {
		text-indent: 0rem;
	}
	.pop_up_mobile {
		top: 70px; 
		left: 0px;
	}
}
