html {
    --scroll-behavior: smooth;
    scroll-behavior: smooth;
}

h1 {
	font-family: Tsukimi Rounded;
	font-size: 40px;
	font-weight: 400;
}

h2 {
	font-family: Tsukimi Rounded;
	font-size: 20px;
	font-weight: 400;
}

a {
	text-decoration: none;
	color: unset;
}

body {
  font-family: "Montserrat",roboto;
  background-color: #E4E4E4;
  color: #13413A;
  margin: 0;
  font-size: 20px;
}

header {
	width:calc(100% - 2*5%);
	padding: 25px 5%;
	position: fixed;
	top: 0;
	z-index: 100;
}

header.scrolled {
	padding: 10px 5%;
}

.menu-principal {
	position: relative;
	display: flex;
	justify-content: space-between;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
	a {
		background: #E4E4E4;
		width: calc(100% - 120px);
		padding: 17px;
		border: solid 1px #13413A;
		border-radius: 100px;
		cursor: pointer;
		transition: all 0.2s ease-in-out;
		
		&:hover {
			background: #CAFFA4;
			transform: scaleY(1.2) scaleX(1.01);
			box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
		}
		
		h1 {
			font-family: "Montserrat";
			font-size: 22px;
			margin: 0;
		}
	}
}

.icon-1, .icon-2, .icon-3 {
    position: absolute;
    left: 25%;
    top: 50%;
    width: 32px;
    height: 1px;
    background-color: #13413A;
    transition: all 400ms cubic-bezier(.84,.06,.52,1.8);
}

.icon-1 {
  transform: translateY(-8px);
  animation-delay: 100ms;
}

.icon-3 {
  transform: translateY(8px);
  animation-delay: 250ms;
}

.hamburger-icon {
	position: absolute;
	height: 60px;
	width: 60px;
	top: 0px;
	right: 0px;
	z-index: 1000;
	cursor: pointer;
	border-radius: 50%;
	transition: all 0.2s ease-in-out;
	background: #E4E4E4;
	border: solid 1px #13413A;

	&:hover {
		background: #CAFFA4;
		.icon-1 {
			transform: rotate(40deg);
		}
		.icon-3 {
			transform: rotate(-40deg);
		}
		.icon-2 {
			opacity: 0;
		}
		transform: scale(1.2);
		box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
	}
	
}

.icon-1.a {
  transform: rotate(40deg);
}
.icon-3.b {
  transform: rotate(-40deg);
}
.icon-2.c {
  opacity: 0;
}

.clear {
  clear: both;
}

@keyframes slideIn {
  0% {
    width: 0%;
    // transform: scale(.3);
    opacity: 0;
  }
  
  100% {
    width: 50%;
    // transform:scale(1);
    opacity: 1;
  }
}


nav {
	background: #13413A;
	position: absolute;
	top: 0;
	right: 0;
	height: 100vh;
	width: 0%;
	z-index: 10;
	opacity: 0;

	transition: all 600ms cubic-bezier(0.5, 0, 0.05, 1.2);
	transition-delay: 100ms;
	ul {
		margin: 0;
		position: absolute;
		top: 30%;
		left: 20%;
		li {
			list-style: none;
			font-size: 24px;
			color: #fff;
			line-height: 2.2;
			text-transform: uppercase;
			letter-spacing: 1.7px;

			a {
				position: relative;
				display: block;
				padding: 5px;
				&::after {
					display: block;
					position: absolute;
					content: '';
					width: 100%;
					height: 2px;
					background-color: #CAFFA4;
					transform-origin: 100% 50%;
					transform: scale3d(0, 1, 1);
					transition: transform 0.3s;
				}

				&:hover {
					color: #CAFFA4;
					&::after {
						transform-origin: 0% 50%;
						transform: scale3d(1, 1, 1);
					}
				}
			}
		}
	}
}

 nav.show {
  //  opacity: 0;
  // animation: slideIn 0.6s cubic-bezier(0.5, 0, 0.05, 1.2);
  // animation-fill-mode: forwards;
   width: 30%;
    // transform:scale(1);
   opacity: 1;
}

main {
	padding: 120px 5% 0;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;

}
.section1 {
	padding-bottom: 25px;
	height: calc(100vh - 145px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	
}
.section {
	padding: 60px 0;
}

.first {
	padding-top: 180px;
}

.slide-container {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	margin: -20px 0;
}

.slide-content {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(0%);
  transition: transform 5s linear;
  h1 {
  font-size: 80px;
  font-weight: 300;
	margin: 0;
  }
}

.slide-container:hover .slide-content {
  transform: translateX(-10%);
}

#fleche {
font-size: 20px;
}

.centered a {
	text-decoration: none;
	text-align: center;
	padding-top: 15px;
	height: 45px;
	width: 60px;
	z-index: 2;
	cursor: pointer;
	border-radius: 50px;
	transition: all 0.2s ease-in-out;
	background: #E4E4E4;
	border: solid 1px #13413A;

	&:hover {
		background: #CAFFA4;
		transform: scale(1.2);
		box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
	}
}

.centered {
	display: flex;
    justify-content: center;
}

.grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-auto-rows: 300px;
	column-gap: 30px;
	row-gap: 30px;
	
}

.info-projet {
		position: relative;
		bottom:0;
		right: 0;
		text-align: end;
}

.info-projet h2, .info-projet p {
	margin: 0;
}

#p1 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/susuwatari/7.png') center/cover no-repeat /* Image principale */
}

#p2 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/alpina/ref2.jpg') center/cover no-repeat /* Image principale */
}

#p3 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/36-days.png') center/cover no-repeat /* Image principale */
}

#p4 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/lymmobilier2.jpg') center/cover no-repeat /* Image principale */
}

#p5 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/lamis-presentation.jpg') center/cover no-repeat /* Image principale */
}

#p6 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/broderie.jpg') center/cover no-repeat /* Image principale */
}

#p7 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/mockup-tablette.png') center/cover no-repeat /* Image principale */
}

#p8 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/cinematq.jpg') center/cover no-repeat /* Image principale */
}

#p9 {
	background:
		linear-gradient(rgba(200, 200, 200, 0.85), rgba(200, 200, 200, 0.85)), /* Couche transparente */
        url('images/orkan.jpg') center/cover no-repeat /* Image principale */
}

.projet {
	text-decoration: none;
	color: #13413A;
	border: 1px solid #13413A;
	border-radius: 6px;
	padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    &:hover {
		cursor: pointer;
		background: #CAFFA4 !important;
		transform: scale(1.03);
		box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
	}
}

.tags {
	margin-bottom: 40px;
}

.tag {
	background-color: #13413A;
	font-size: 14px;
	color: #CAFFA4;
	padding: 6px 12px;
	border-radius: 20px;
}

.flex {
	display: flex;
}

.flex>* {
  margin: 0 10px;
  flex: 1;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: auto;
	column-gap: 30px;
	row-gap: 30px;
	
}

.grid3 {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-rows: auto;
	grid-gap: 30px;
}

.border-image {
	width: 100%;
    height: 100%;
    object-fit: cover;
/*
    border: 1px solid #13413A;
*/
    border-radius: 6px;
} 

article {
	max-width: 800px;
	margin-bottom: 40px;
}

.mail, .tel, .linkedin, .ext {
	position: relative;
	padding: 0 0 3px 30px;
	
	&::before {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		content: "";
		width: 20px;
		height: 20px;
		filter: brightness(0) saturate(100%) invert(16%) sepia(11%) saturate(4083%) hue-rotate(127deg) brightness(97%) contrast(85%);
	}
	
	&::after {
		display: block;
		position: absolute;
		content: '';
		width: calc(100% - 30px);
		left: 30px;
		bottom:0px;
		height: 1px;
		background-color: #13413A;
		transform-origin: 100% 50%;
		transform: scale3d(0, 1, 1);
		transition: transform 0.3s;
	}

	&:hover {
		&::after {
			transform-origin: 0% 50%;
			transform: scale3d(1, 1, 1);
		}
	}
}

.int {
	position: relative;
	padding: 0 0 3px;
	
	&::after {
		display: block;
		position: absolute;
		content: '';
		width: 100%;
		left: 0px;
		bottom:0px;
		height: 1px;
		background-color: #13413A;
		transform-origin: 100% 50%;
		transform: scale3d(0, 1, 1);
		transition: transform 0.3s;
	}

	&:hover {
		&::after {
			transform-origin: 0% 50%;
			transform: scale3d(1, 1, 1);
		}
	}
}

.mail::before {
	background: no-repeat url(images/mail.svg);
}

.tel::before {
	background: no-repeat url(images/phone.svg);
}

.linkedin::before {
	background: no-repeat url(images/linkedin2.svg);
}

.ext::before {
	background: no-repeat url(images/share-from-square-solid.svg);
}

.btn {
	font-size: 22px;
	margin: 0;
	padding: 17px;
	background: #E4E4E4;
	color: #13413A;
	border: none;
	cursor: pointer;
	border: solid 1px #13413A;
	border-radius: 100px;
	transition: all 0.2s ease-in-out;
	 &:hover {
		background-color: #CAFFA4;
		transform: scaleY(1.2) scaleX(1.1);
		box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
	}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
} 
/*
.end {
	position: fixed;
	bottom: 25px;
	z-index: 1;
	display: flex;
	justify-content: flex-end;
	width: calc(100% - 2*5%);
	max-width: 1920px;
}
*/

/*
.mode {
	font-size: 22px;
	margin: 0;
	padding: 17px;
	background: #E4E4E4;
	color: #13413A;
	border: none;
	cursor: pointer;
	border: solid 1px #13413A;
	border-radius: 100px;
	transition: all 0.2s ease-in-out;
	 &:hover {
		background-color: #CAFFA4;
		transform: scaleY(1.2) scaleX(1.1);
		box-shadow: 0px 0px 30px rgba(0,0,0,0.1);
	}
}
*/

/* Classe pour le mode sombre */
/*
.dark-mode {
	.mode {
		background: #202020;
		border-color: #E4E4E4;
		color: #E4E4E4;
	}
	background: #202020;
	color: #E4E4E4;
	.menu-principal {
		a, .hamburger-icon {
			background: #202020;
			border-color: #E4E4E4;
			.icon-1, .icon-2, .icon-3 {
				background-color: #E4E4E4;
			}
		}
	}
	.centered a {
		background: #202020;
		border-color: #E4E4E4;
	}
}
*/

footer {
	margin-top: 80px;
	padding: 30px 5% 0;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
	background-color: #CAFFA4;
	.grid2 {
		grid-auto-rows: unset;
	}
}

@media screen and (max-width: 1024px) {
	nav.show {
		width: 50%;
	}
	.grid2 {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 768px) {
	body {
		font-size: 18px;
	}
	nav.show {
		width: 100%;
	}
	.grid2, .grid3 {
		grid-template-columns: 1fr;
	}
}
