/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/** end reset css**/
body {
	max-width: 1140px;
	margin: 0 auto;
	font-family: 'Work Sans';
	font-size: 14px;
}

header {
	display: flex;
	justify-content: space-between;
	margin: 50px 0
}

section {
	margin: 50px 0
}

h1 {
	display: flex;
	flex-direction: column;
	font-family: 'Syne';
	font-size: 22px;
	font-weight: 800;
	color: #B1663C
}

h1>span {
	font-family: 'Work Sans';
	font-size: 10px;
	letter-spacing: 0.1em;
	;
}

h2 {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 30px;
	color: #1D6154
}

nav ul {
	display: flex;
	align-items: center;
	list-style-type: none;

}

nav li {
	padding: 0 10px;
	font-size: 1.2em;
	cursor: pointer;
}

nav li a,
nav li a:visited {
	color: black;
	text-decoration: none;
}

nav li a:hover,
nav li a:visited:hover {
	color: #B1663C;
}

nav li img {
	height: 22px;
	width: 22px;
}

li:hover {
	color: #B1663C;
}

.semibold {
	font-weight: 600;
}

#introduction {
	display: flex;
	align-items: center;
}

#introduction figure {
	flex: 1
}

#introduction img {
	display: block;
	margin: auto;
	width: 80%;
}

#introduction article {
	flex: 1
}

#introduction h2 {
	margin-bottom: 1em;
}

#introduction p {
	margin-bottom: 0.5em;
}

#portfolio h2 {
	text-align: center;
	margin-bottom: 1em;
}

.filtres {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 50px auto;
}

.filtres__btn {
	border: 1px solid #1D6154;
	border-radius: 60px;
	color: #1D6154;
	font-family: 'Syne';
	font-size: 16px;
	font-weight: 700;
	height: 38px;
	min-width: 100px;
	max-width: 198px;
	background-color: white;
	cursor: pointer;
}

.filtres__btn--select {
	color: white;
	background-color: #1D6154;
}

.gallery {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 20px;
}

.gallery img {
	width: 100%;

}

#contact {
	width: 50%;
	margin: auto;
}

#contact>* {
	text-align: center;

}

#contact h2 {
	margin-bottom: 20px;
}

#contact form {
	text-align: left;
	margin-top: 30px;
	display: flex;
	flex-direction: column;
}

#contact input {
	height: 50px;
	font-size: 1.2em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

#contact label {
	margin: 2em 0 1em 0;
}

#contact textarea {
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

#login {
	width: 380px;
	margin: 150px auto 355px;
}

#login>* {
	text-align: center;

}

#login h2 {
	margin-bottom: 20px;
}

#login form {
	text-align: left;
	margin-top: 30px;
	display: flex;
	flex-direction: column;
}

#login input {
	height: 50px;
	font-size: 1.2em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

#login input[type="submit"] {
	cursor: pointer;
}

#login label {
	margin: 2em 0 1em 0;
}

#oubli {
	font-weight: 500;
	color: #3d3d3d;
	text-decoration: underline;
	text-align: center;
}

.popupBackground {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100vh;
	width: 100vw;
	background-color: rgba(255, 255, 255, 0.5);
	z-index: 9999;
}

.popup {
	position: absolute;
	left: 50%;
	transform: translate(-50%, -50%);
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 300px;
	padding: 20px;
	text-align: center;
	color: white;
	font-family: 'Syne';
	font-size: 17px;
	font-weight: 500;
	background-color: #1D6154;
	border-radius: 60px;
	z-index: 10000;
}

.popupBackground.active {
	display: flex !important;
	justify-content: center;
	align-items: center;
}

.popup p {
	width: 100%;
}

input[type="submit"] {
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #1D6154;
	margin: 2em auto;
	width: 180px;
	text-align: center;
	border-radius: 60px;
}

input[type="submit"]:hover {
	background-color: #0E2F28;
}

footer nav ul {
	display: flex;
	justify-content: flex-end;
	margin: 2em
}

.edition {
	height: 59px;
	display: flex;
	color: white;
	background-color: black;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
}

.modifier {
	color: black;
	font-family: 'Work Sans';
	font-size: 14px;
	font-weight: 400;
	margin-left: 25px;
	cursor: pointer;
}

.none {
	display: none !important;
}

header h1 a,
header h1 a:hover,
header h1 a:visited {
	color: inherit;
	text-decoration: none;
}

.overlay {
	display: none;
	position: fixed;
	margin: 0;
	padding: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 100vh;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 9999;
}

.modal {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 630px;
	min-height: 670px;
	padding-top: 60px;
	text-align: center;
	color: white;
	font-family: 'Syne';
	font-size: 17px;
	font-weight: 500;
	background-color: white;
	border-radius: 10px;
	z-index: 10000;
}

.modal h3 {
	position: relative;
	font-family: 'Work Sans';
	font-size: 26px;
	color: black;
	font-weight: 400;
}

.modal__btn--close {
	position: absolute;
	height: 24px;
	width: 24px;
	top: 26px;
	right: 30px;
	cursor: pointer;
}

.modal__fleche {
	position: absolute;
	height: 21px;
	width: 21px;
	top: 26px;
	left: 30px;
	cursor: pointer;
}

.modal__gallery {
	width: 420px;
	margin: 46px auto 38px;
	padding-bottom: 68px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 29px 9px;
	border-bottom: 1px solid #b3b3b3;
}

.modal__gallery figure {
	position: relative;
	display: inline-block;
}

.modal__grid--item {
	width: 76.86px;
	height: 102.57px;
}

.modal__grid--icone {
	position: absolute;
	width: 17px;
	height: 17px;
	top: 6px;
	right: 5.34px;
	z-index: 11000;
	cursor: pointer;
}

.modal__btn--ajout {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 14px;
	color: white;
	background-color: #1D6154;
	margin: 2em auto;
	width: 237px;
	height: 36px;
	text-align: center;
	border-radius: 60px;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
	cursor: pointer;
}

.modal__btn--ajout:hover {
	background-color: #0E2F28;
}

.modal__btn--gris {
	font-family: 'Syne';
	font-weight: 700;
	font-size: 14px;
	color: white;
	background-color: #a7a7a7;
	margin: 2em auto;
	width: 237px;
	height: 36px;
	text-align: center;
	border-radius: 60px;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
	cursor: default;
}

.modal__btn--gris:hover {
	background-color: #a7a7a7;
}

.modal__ajout {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 420px;
	margin: 36px auto 32px;
	padding-bottom: 47px;
	border-bottom: 1px solid #b3b3b3;
}

.uploadPreview {
	width: 100%;
	height: 169px;
	background-color: #e8F1F6;
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

.uploadPreview__placeholder {
	width: 76px;
	height: 76px;
	margin-bottom: 6px;
}

.uploadPreview__btn {
	display: inline-block;
	background-color: #CBD6DC;
	color: #306685;
	padding: 10px 33px;
	border-radius: 50px;
	font-family: 'Work Sans';
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	margin-bottom: 7px;
	text-align: center;
	text-decoration: none;
}

.uploadPreview__btn:hover {
	background-color: #C4C4C4;
}

.uploadPreview__input {
	display: none;
}

.uploadPreview__info {
	font-family: 'Work Sans';
	font-size: 10px;
	font-weight: 400;
	color: #444444;
}

.modal__ajout--form {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.modal__ajout--form-group {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.modal__ajout--form-group label {
	margin-bottom: 10px;
	font-family: 'Work Sans';
	font-size: 14px;
	font-weight: 500;
	color: #3d3d3d;
	align-self: flex-start;
}

.modal__ajout--form-group select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: url('./icons/arrow-grey.svg') no-repeat;
	background-position: right 20px center;
}

.modal__ajout--form-group input,
.modal__ajout--form-group select {
	height: 51px;
	margin-bottom: 21px;
	display: flex;
	align-items: center;
	border: none;
	border-radius: 4px;
	padding: 0 16px;
	font-size: 14px;
	font-family: 'Work Sans';
	font-weight: 400;
	text-align: left;
	outline: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

.modal__ajout--form-group input:focus,
.modal__ajout--form-group select:focus {
	border-color: #1D6154;
}