/* Polices de la page */
@font-face
{
	font-family: 'robotoregular';
	src: url('fonts/Roboto-Regular.ttf') format('truetype');
	font-weight: normal;
	font-size: normal;
}

@font-face
{
	font-family: 'robotobold';
	src: url('fonts/Roboto-Bold.ttf') format('truetype');
	font-weight: normal;
	font-size: normal;
}

@font-face
{
	font-family: 'agbalumo';
	src: url('fonts/Agbalumo-Regular.ttf') format('truetype');
	font-weight: normal;
	font-size: normal;
}


/* Éléments principaux */

html
{
	font-size: 62.5%;
	max-width: 1920px;
	margin: 0 auto;
}

html body
{
	background-color: #DEE0D5;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 1.6rem;
    font-family: robotoregular, sans-serif;
}

hr
{
    position: relative;
    top: -15px;
    display: inline-block;
    width: 60px;
    height: 0;
    margin: 5px;
    opacity: 0.3;
}

h1
{
	font-size: 5rem;
}

h2
{
	font-size: 4rem;
	font-family: agbalumo, sans-serif;
	color: #B96028;
	margin: 0;
}

h3
{
	font-size: 3rem;
}

h4
{
	font-size: 2rem;
}

.add_space
{
	margin-top: 10rem;
}

#content_box
{
	margin-left: 40px;
	margin-right:40px;
}

.yellow_point
{
	color: #E2AC48;
	font-size: 6rem;
}

.bouton_rouge
{
	padding: 10px;
    background-color: rgba(152, 60, 45, 0.8);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}


/* Header */

header
{
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	height: 100px;
	background-color: #DEE0D5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

#responsive_menu
{
	display: none;
}

.dropdown
{
	display: none;
}

#name
{
	> a {
		font-family: agbalumo, sans-serif;
		color: #B96028;
		text-decoration: none;
	}
}


/* Navigation */

nav ul
{
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
}

nav li
{
    border-top: 3px solid #fff;
    padding: 30px 15px;
}

nav a
{
    font-size: 1em;
    color: #181818;
    text-decoration: none;
    padding-bottom: 3px;
}

nav a:hover
{
    color: #B96028;
}

#onglet_actuel
{
	border-top: 3px solid #983C2D;
}

#onglet_diff
{
	border-top: 3px solid #DEE0D5;
}


/* Bannière */

#banner
{
	width: 100%;

	> img {
		max-width: 100%;
	}
}


/********************** PAGE ACCUEIL **********************/

/* PRÉSENTATION */

#intro
{
	text-align: center;
}

#resume_container
{
	display: inline-flex;
    justify-content: space-between;
	background-color: rgba(226, 172, 72, 0.3);
    align-items: center;
    margin: auto;
}

#imgPres
{
	width: 50%;
	margin: 40px;
}

#imgPres img
{
	width: 100%;
}

#txtPres
{
	text-align: left;
    width: 50%;
    margin-right: 100px;
    margin-left: 100px;
}

/* EXTRAIT PROGRAMMATION */

#prog_extract
{
	text-align: center;
	place-items: center;
	font-family: "robotoregular", monospace;
	font-weight: 400;
}

.films_container 
{
	width: 100%;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 20px;

	> div {
	  flex: 0 0 150px;
	  border-radius: 0.5rem;
	  transition: 0.5s ease-in-out;
	  cursor: pointer;
	  box-shadow: 1px 5px 15px #E2AC48;
	  position: relative;
	  overflow: hidden;

	  &:nth-of-type(1) {
	    background: url("images/films/film1.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(2) {
	    background: url("images/films/film2.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(3) {
	    background: url("images/films/film3.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(4) {
	    background: url("images/films/film4.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(5) {
	    background: url("images/films/film5.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(6) {
	    background: url("images/films/film6.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(7) {
	    background: url("images/films/film7.jpg")
	      no-repeat 50% / cover;
	  }
	  &:nth-of-type(8) {
	    background: url("images/films/film8.jpg")
	      no-repeat 50% / cover;
	  }

	    .content {
		    font-size: 1.5rem;
		    color: #fff;
		    display: flex;
		    align-items: center;
		    padding: 10px;
		    opacity: 0;
		    flex-direction: column;
		    height: 100%;
		    justify-content: flex-end;
		    background: linear-gradient(
		      0deg,
		      rgba(226, 172, 72, 0.4) 0%,
		      rgba(185, 96, 40, 0) 100%
		    );
		    transform: translatey(100%);
		    transition: opacity 0.5s ease-in-out, transform 0.5s 0.2s;
		    visibility: hidden;

		    p {
		      display: block;
		      margin-bottom: 1px;
		      font-size: 1.2rem;
		    }
	    }

	    &:hover {
	    	z-index: 5;
	   		-ms-transform: scale(1.5); /* IE 9 */
			-webkit-transform: scale(1.5); /* Safari 3-8 */
			transform: scale(1.5) translatey(-30px);
	    	box-shadow: 1px 3px 15px #B96028;
	    }

	    &:hover .content {
	    	opacity: 1;
	    	transform: translatey(0%);
	    	visibility: visible;
	    }
	}
}


/********************** PAGE PROGRAMMATION **********************/

/* DISPLAY PROGRAMMATION */

#prog
{
	text-align: center;
}

.day_block
{
	margin-bottom: 20px;
	padding: 8px;
	color: #B96028;
	background-color: rgba(185, 96, 40, 0.2);
}

.movie_block
{
	margin-bottom: 14px;
	margin-left: 40px;
	margin-right: 40px;
}

.film_modal
{
	background-color: inherit;
	padding: 0;
	display: inline-flex;
	align-items: center;
	border: none;
	cursor: pointer;

	> img {
	  width: 180px;
	}
}

.movie_resume
{
	margin: 20px;
	font-size: 1.6rem;
	font-family: "robotoregular", monospace;
	background-color: rgba(226, 172, 72, 0.3);

	> h4 {
	  display: flex;
	  margin-top: 30px;
	  margin-left: 30px;
	}
	> p {
	  text-align: start;
	  margin-top: 10px;
	  margin-left: 30px;
	  margin-right: 30px;
	}
}

/* MODAL */

.dialog {
	padding: 1rem 3rem;
	background-color: rgba(226, 172, 72, 0.4);
	max-width: 60%;
	padding-top: 2rem;
	border-radius: 20px;
	border: 0;
	box-shadow: 0 5px 30px 0 rgb(0 0 0 / 10%);
	animation: fadeIn 1s ease both;
	&::backdrop {
		display: flex;
		animation: fadeIn 1s ease both;
		background: rgb(255 255 255 / 40%);
		z-index: 2;
		backdrop-filter: blur(20px);
	}
	> img {
		max-width: 300px;
	}
	.x {
		filter: grayscale(1);
		border: none;
		background: none;
		position: absolute;
		top: 15px;
		right: 10px;
		transition: ease filter, transform 0.3s;
		cursor: pointer;
		transform-origin: center;
		&:hover {
			filter: grayscale(0);
			transform: scale(1.1);
		}
	}
}

.modal_txt_container
{
	h3 {
		font-weight: 600;
		font-size: 4rem;
		padding-bottom: 1rem;
	}
	p {
		font-size: 2.5rem;
		padding: 0.5rem 0;
	}
}


/********************** PAGE ACTU **********************/

#actu
{
	text-align: center;
}

.news_block
{
	cursor: pointer;
	margin-bottom: 14px;
	margin-left: 40px;
	margin-right: 40px;
	display: inline-flex;
	align-items: center;

	> img {
		max-width: 180px;
		max-height: 200px;
	}
}

.news_resume
{
	margin-left: 20px;
	background-color: rgba(226, 172, 72, 0.3);

	> h4 {
		display: flex;
		margin-top: 30px;
		margin-left: 30px;
	}
	> p {
		text-align: start;
		margin-top: 10px;
		margin-left: 30px;
		margin-right: 30px;
	}
}

/********************** PAGE CONTACT **********************/

#contact_form
{
	text-align: center;
}

#contact_container
{
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	height: 800px;
	overflow: hidden;
}

#calque
{
	position: absolute;
	top: 0;
	width: 100%;
	height: 900px;
	background-color: #E2AC48;
	opacity: 0.3;
}

#formulaire
{
	position: absolute;
	top: 10%;
	left: 10%;
	padding: 20px;
	border-radius: 5px;
	background-color: rgba(250, 250, 250, 0.75);
	width: 40%;
}

input
{
	margin: 0.3em;
	padding: 5px;
	width: 90%;
}

textarea
{
	margin: 0.3em;
	padding: 5px;
	width: 90%;
	height: 200px;
	resize: none;
}

#submit_btn
{
	border: none;
	width: 8em;
	height: 3em;
}



/********************** ÉLÉMENTS GÉNÉRIQUES **********************/

/* INFOS PRATIQUES */

#infos
{
	text-align: center;
}

#infos_container
{
	display: inline-flex;
    justify-content: space-evenly;
	background-color: rgba(226, 172, 72, 0.3);
    width: 100%;
    padding-top: 2em;
    margin: auto;
}

.practical_infos
{
	width: 30%;

	> i {
	  color: #E2AC48;
	}
	> h3 {
	  color: #B96028;
	}
	> p span {
	  font-weight: bold;
	}
}

/* FOOTER */

#footer
{
	display: inline-flex;
    justify-content: space-evenly;
	background-color: rgba(226, 172, 72, 0.3);
    width: 100%;
    padding-top: 25px;
    padding-bottom: 25px;
}

.footer_block
{
	text-align: center;

	> h4 {
		color: #983C2D;
	}
	> ul {
		padding-inline-start: 0px;
	}
	.footer_list li:hover, .footer_list i:hover {
		cursor: pointer;
	}
}

#links_list li
{
	list-style: inside none none;
	text-align: left;
	text-decoration: none;
	color: black;
	display: block;
}




















/********************** MÉDIA QUERYS **********************/




@media screen and (max-device-width: 1060px)
{
	nav li {
		margin-right: 5px;
		margin-left: 5px;
		padding: 30px 15px;
	}

	h1 {
		font-size: 3rem;
		margin-left: 14px;
		margin-top: 14px;
	}

	#imgPres
	{
		margin: 0;
		margin-left: 30px;
	}

	#map iframe {
		position: relative;
		left: -15%;
	}
}


@media screen and (max-device-width: 840px)
{
	nav li {
		margin-right: 5px;
		margin-left: 5px;
		padding: 30px 15px;
	}

	h1 {
		font-size: 3rem;
		margin-left: 14px;
		margin-top: 14px;
	}

	#resume_container {
		display: block;
		text-align: center;
	}

	#imgPres {
		width: 100%;
		margin: 0;
	}

	#imgPres img {
		width: 80%;
		margin-top: 20px;
	}

	#txtPres {
		text-align: center;
	    width: 90%;
	    margin: auto;
	    padding-bottom: 5px;

	    > p {
	    	text-align: justify;
	    }
	}

	.film_modal img {
		width: 225px;
	}

	#formulaire {
		left: 5%;
	}

	#map iframe {
		position: relative;
		left: -50%;
	}
}


@media screen and (max-device-width: 768px)
{
	nav li {
		margin-right: 10px;
		margin-left: 10px;
		padding: 30px 15px;
	}

	h1 {
		font-size: 3rem;
		margin-left: 14px;
		margin-top: 14px;
	}
}


@media screen and (max-device-width: 700px)
{
	/* Menu principal */

	header {
		position: relative;
		height: auto;
	}


	/* Dropdown */

	.dropdown {
	  display: flex;
	  position: relative;
	  width: 60%;
	}

	.dropdown-btn {
	  background: rgba(226, 172, 72, 0.3);
	  font-size: 18px;
	  max-width: 6em;
	  margin-left: 6rem;
	  border: none;
	  color: #B96028;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  border-radius: 0.5em;
	  cursor: pointer;

	  > span {
	  	margin-left: 0.8rem;
	  }

	  >p {
	  	margin: 1rem 0.5rem;
	  }
	}

	.dropdown-content {
	  list-style: none;
	  position: absolute;
	  top: 3em;
	  width: 70%;
	  min-width: 5em;
	  visibility: hidden;
	  overflow: hidden;
	}

	.dropdown-content li {
	  background: rgba(226, 172, 72, 0.9);
	  border-radius: 0.5em;
	  position: relative;
	  left: 100%;
	  transition: 0.5s;
	  transition-delay: calc(60ms * var(--delay));
	}

	.dropdown:focus-within .dropdown-content li {
	  left: 0;
	}

	.dropdown:focus-within .dropdown-content {
	  visibility: visible;
	}

	.dropdown-content li:hover {
	  background: #1d1f24;
	}

	.dropdown-content li a {
	  display: block;
	  padding: 0.7em 0.5em;
	  color: #983C2D;
	  margin: 0.1em 0;
	  text-decoration: none;
	}

	nav {
		display: none;
	}


	/* other */

	.add_space {
		margin-top: 5rem;
	}

	/* Programmation */

	.movie_block {
		margin: 0 0 1em 0;
	}

	.film_modal {
		display: block;

		> img {
			width: 250px;
		}
	}

	.movie_resume {
		margin: 0;
		font-size: 1.8rem;
		text-align: center;
		padding-top: 1em;

		> h4 {
			display: block;
			margin: 0;
		}
	}

	.dialog {
		max-width: 90%;
	}

	/* Actu */

	.news_block {
		display: block;
		margin: 0 0 3rem 0;
	}

	.news_resume {
		margin: 0;
		font-size: 1.8rem;
		text-align: center;
		padding: 1em 0;

		> h4 {
			display: block;
			margin: 0;
		}
	}

	/* Contact */

	#contact_container {
		height: auto;
		margin-top: 0;
	}

	#map {
		display: none;
	}

	#calque {
		display: none;
	}

	#formulaire {
		position: relative;
		top: 0;
		left: 0;
		padding: 0;
		width: 100%;

		> input, textarea {
			margin: 0.3em;
		}
	}

	/* Bottom page */

	#infos_container {
		display: block;
		padding-bottom: 0.5em;
	}

	.practical_infos {
		width: 100%;
		margin-bottom: 2.5em;

		> h3 {
			margin-block-start: 0.5em;
    		margin-block-end: 0.5em;
		}
	}

	#terms, #copyrights {
		margin: 0 1em 0;
	}

}


@media screen and (max-device-width: 400px)
{
	.films_container div {

		flex: 0 0 114px;
		height: 20rem;

		.content {
			h3 {
				margin: 0;
				font-size: 1em;
			}

			> p {
				margin: 1px 0;
				font-size: 0.5em;
			}
		}
	}

	#terms, #copyrights {
		margin: 0 0.5em 0;
	}
}

