@font-face { font-family: BarlowCondensed-ExtraLight; src: url(../fonts/BarlowCondensed-ExtraLight.ttf); font-weight: extralight; }
@font-face { font-family: BarlowCondensed-Thin; src: url(../fonts/BarlowCondensed-Thin.ttf); font-weight: thin; }
@font-face { font-family: BarlowCondensed-Regular; src: url(../fonts/BarlowCondensed-Regular.ttf); font-weight: regular; }
@font-face { font-family: BarlowCondensed-Bold; src: url(../fonts/BarlowCondensed-Bold.ttf); font-weight: bold; }
@font-face { font-family: BarlowCondensed-Black; src: url(../fonts/BarlowCondensed-Black.ttf); font-weight: black; }

body { margin:0; background-color:#111; color: white; font-family: BarlowCondensed-Thin; line-height: 1.6; font-size: 20px; }
.buttons { font-family: BarlowCondensed-Thin; line-height: 1.6; font-size: 20px; }
a { text-decoration: none; color: inherit;}

/* COMMUN */ 
.clearer { clear: both;  }
h1 { margin-block-start : 0; margin-block-end: 0; text-transform: uppercase; margin-bottom: 30px; color: rgb(36, 127, 158); position: absolute; font-size: 30px; font-family: BarlowCondensed-Thin; border-bottom: solid 1px rgb(36,127,158); padding-bottom: 10px;}
.container { padding: 2% 10%; width: 80%;}
.container_2 { padding: 4% 10%; width: 80%;}

.home {}
.about { background-color: #111; }
.portfolio { background-color: #222; }
.contact { background-color: #111; }
.footer {background-color: #222;}

* {
	scroll-behavior: smooth;
}

::-webkit-scrollbar {
display: none;
}

.header,
.home,
.portfolio {
	height: 100vh;
}

.about { height: 100vh; background-image: url(../images/background_slider_1.jpg); background-size: cover; background-attachment: fixed; }
.contact { height: 40vh; }

.header,
.home,
.about,
.portfolio,
.contact,
.footer {
	position: relative;
}


.footer {
	height: 5vh;
}


/* SLIDER TOP */
.slider_1 { min-height: 100vh; background-image: url(../images/background_slider_1.jpg); background-size: cover; background-attachment: fixed;}
.slider_1 img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 300px; }
.arrow,
.arrow:before {
  position: absolute;
  left: 50%;
}

.arrow {
  width: 40px;
  height: 40px;
  top: 90%;
  margin: -20px 0 0 -20px;
  -webkit-transform: rotate(45deg);
  border-left: none;
  border-top: none;
  border-right: 2px rgba(255, 255, 255, 0.6) solid;
  border-bottom: 2px rgba(255, 255, 255, 0.6) solid;
}

.arrow:before {
  content: "";
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -10px 0 0 -10px;
  border-left: none;
  border-top: none;
  border-right: 1px rgba(255, 255, 255, 0.6) solid;
  border-bottom: 1px rgba(255, 255, 255, 0.6) solid;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

@keyframes arrow {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-10px, -10px);
  }
}

/* PRESENTATION */
.bloc_presentation { width: 45%; text-align: justify; margin-top: 45vh; transform: translateY(-50%); float: left;}
.bloc_presentation_image { width: 50%; margin-left: 5%; margin-top: 45vh; transform: translateY(-50%); float: left; }
.bloc_presentation_image img { width: 100%; }
#slidy-container {width: 100%; overflow: hidden; margin: 0 auto;}
.underline_about { width: 80%; height: 1px; background-color: rgb(36, 127, 158); position: absolute; bottom: 15vh;}

/* PORTFOLIO */

.container_portfolio { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 0px; justify-content: center; align-items: center; max-height: 80vh;}
#portfolio_scroll { overflow: scroll; }
.item-portfolio { margin-bottom: 25px;  }
.buttons { overflow: hidden; margin-bottom: 10px; width: 662px; margin: auto; margin-bottom: 50px; }
.buttons .active {background-color: rgb(36, 127, 158) ;color: #fff;font-weight: 700;}
.buttons button {float: left; text-transform: uppercase; color: grey; font-weight: 300; text-align:center; margin: 0; padding: 17px 20px;border:none; background-color: inherit; font-family: BarlowCondensed-Thin; line-height: 1.6; font-size: 18px; transition: color .5s;}
.buttons button:first-child {}
.buttons button:hover { color: white; transition: color .5s;}

/* OVERLAY PORTFOLIO */

.wg-box-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
}

.wg-box-content .wg-box-content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 97%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.wg-box-content:hover .wg-box-content-overlay{
  opacity: 1;
}

.wg-box-content-image{
  width: 100%;
}

.wg-box-content-details {
  position: absolute;
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.wg-box-content:hover .wg-box-content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.wg-box-content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 16px; ;
}

.wg-box-content-details p{
  color: #fff;
  font-size: 0.8em;
}

.wg-box-fadeIn-bottom{
  top: 80%;
}




/* MENU */

.navbar {
	background-color: rgba(40, 40, 40, 0.8);
	-webkit-box-shadow: 0 14px 14px -14px rgba(0, 0, 0, .75);
	-moz-box-shadow: 0 14px 14px -14px rgba(0, 0, 0, .75);
	box-shadow: 0 14px 14px -14px rgba(0, 0, 0, .75);
	text-transform: uppercase;
	padding-right: 3%;
	padding-left: 3%;
}

.sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1;
}

.hidden {
	display: none;
}

.display__logo {
	font-size: 5rem;
	margin-bottom: .5rem;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.2;
	
}

.nav__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__link {
	
	text-decoration: none;
}

.brand {
	margin: 0;
	font-size: 1.45em;
}

.brand a {
	padding: 10px 15px;
	text-align: center;
	display: block;
}

.logo {
	display: inline-block;
	padding-top: .3125rem;
	padding-bottom: .3125rem;
	margin-right: 1rem;
	line-height: inherit;
}

.logo::before {
	display: inline-block;
	vertical-align: top;
	content: url(../images/logo_chr_small.png)}

.nav__items {
	margin-top: 5px;

}

.brand .nav__link,
.nav__items .nav__link {
	padding: 10px 15px;
	text-align: center;
	display: block;
}

.nav__items .nav__link {
	
	font-size: 22px;
}

.nav__items .nav__link:hover { transition: all .3s; color: rgb(36, 127, 158);}
	
.nav__item:nth-child(1) .nav__link::after {
	content: url('');
   
}

.nav__item:nth-child(2) .nav__link::after {
	content: '';
}

.nav__item:nth-child(3) .nav__link::after {
	content: '';
}

.nav__item:nth-child(4) .nav__link::after {
	content: '';
}


@media (min-width: 800px) {

	.navbar,
	.nav__items {
		display: flex;
	}

	.navbar {
		flex-direction: column;
		align-items: center;
	}

	.navbar {
		flex-direction: row;
		justify-content: space-between;
	}
}

@media screen and (max-width: 799px) {
	.nav {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: 100%;
		z-index: -1;
		background-color: var(--primary);
		opacity: 0;
		transition: all 0.2s ease;
	}

	.nav .nav__items {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 100%;
		padding-inline-start: 0;
	}

	.nav .nav__items .nav__item {
		display: block;
		float: none;
		width: 100%;
		text-align: right;
		margin-bottom: 10px;
	}

	.nav .nav__items .nav__item:nth-child(1) a {
		transition-delay: 0.2s;
	}

	.nav .nav__items .nav__item:nth-child(2) a {
		transition-delay: 0.3s;
	}

	.nav .nav__items .nav__item:nth-child(3) a {
		transition-delay: 0.4s;
	}

	.nav .nav__items .nav__item:nth-child(4) a {
		transition-delay: 0.5s;
	}

	.nav .nav__items .nav__item:not(:first-child) {
		margin-left: 0;
	}

	.nav .nav__items .nav__item .nav__link {
		padding: 10px 25px;
		opacity: 0;
		font-size: 24px;
		font-weight: 600;
		transform: translateY(-20px);
		transition: all 0.2s ease;
	}

	.nav .nav__items .nav__item .nav__link:hover {
		color: var(--secondary);
	}

	.nav__open {
		position: absolute;
		right: 10px;
		top: 16px;
		display: block;
		width: 48px;
		height: 48px;
		cursor: pointer;
		z-index: 9999;
		border-radius: 50%;
	}

	.nav__open i {
		display: block;
		width: 20px;
		height: 2px;
		background-color: white;
		border-radius: 2px;
		margin-left: 14px;
	}

	.nav__open i:nth-child(1) {
		margin-top: 16px;
	}

	.nav__open i:nth-child(2) {
		margin-top: 4px;
		opacity: 1;
	}

	.nav__open i:nth-child(3) {
		margin-top: 4px;
	}

}


#nav:checked+.nav__open {
	transform: rotate(45deg);
}

#nav:checked+.nav__open i {
	background-color: white;
	transition: transform 0.2s ease;
}

#nav:checked+.nav__open i:nth-child(1) {
	transform: translateY(6px) rotate(180deg);
}

#nav:checked+.nav__open i:nth-child(2) {
	opacity: 0;
}

#nav:checked~.nav__item a {
	display: block !important;
}

#nav:checked+.nav__open i:nth-child(3) {
	transform: translateY(-6px) rotate(90deg);
}

#nav:checked~.nav {
	z-index: 9990;
	opacity: 1;
}

#nav:checked~.nav ul li a {
	opacity: 1;
	transform: translateY(0);
}






