/* ajout des icones avec awsome font */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css");


/* 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: 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
}

.login-link {
	font-weight: 600;
}

nav a {
	color: inherit;
	text-decoration: none;
}

nav a:hover {
	color: #B1663C;
}

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

}

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

li:hover {
	color: #B1663C;
}

#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;
}

.portfolio-header {
	display: flex;
	align-items: center;
	gap: 20px;
	justify-content: center;
	margin-bottom: 1em;
}

.portfolio-header button {
	font-family: 'Work Sans';
	font-size: 14px;
	font-weight: 400;
	background: none;
	border: none;
	cursor: pointer;
}

.filtres {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	padding: 60px 0px;
}

.filtres button {
	opacity: 1;
	border-radius: 60px;
	border-width: 1px;
	color: #1D6154;
	background: rgba(0, 0, 0, 0);
	border-color: #1D6154;
	font-size: 16px;
	font-weight: 700;
	font-family: Syne;
	padding: 10px 15px;
}

.selected {
	color: white !important;
	background-color: #1D6154 !important;
}

.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,
#login form {
	text-align: left;
	margin-top: 30px;
	display: flex;
	flex-direction: column;
}

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

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

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

#login {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	padding: 100px 0 200px 0;
}

#login form {
	width: 33%;
}

#login button:hover {
	background-color: #0E2F28;
}

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

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

.hidden {
	display: none;
}

.active {
	display: flex !important;
}

.popupBackground {
	display: none;
	position: fixed;
	height: 100vh;
	width: 100vw;
	background: rgba(0, 0, 0, 30%);
	top: 0vh;
	left: 0%;
	justify-content: center;
	align-items: center;
}

.popup {
	display: flex;
	background: white;
	height: 688px;
	width: 630px;
	align-items: center;
	flex-direction: column;
	border-radius: 10px;
}

.popupBanner {
	width: 100%;
	height: 20%;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.popupBanner .xmark {
	position: absolute;
	right: 20px;
	top: 20px;
	cursor: pointer;
	background: none !important;
	border: none !important;
	color: rgb(0, 0, 0);
	margin: 0;
	padding: 0;
	height: 14px;
	width: 14px;
}

.popupBanner .arrow-left {
	position: absolute;
	left: 25px;
	top: 25px;
	cursor: pointer;
	font-size: large;
	display: none;
	background: none !important;
	border: none !important;
	color: rgb(0, 0, 0);
	margin: 0;
	padding: 0;
	height: 14px;
	width: 14px;
}

.popupBanner h2 {
	font-family: 'Work Sans';
	font-weight: 400;
	font-size: 26px;
	color: #000;
}

.popupMain {
	border-bottom: 1px solid #B3B3B3;
	padding-bottom: 40px;
	overflow-y: scroll;
	min-height: 395px;
	min-width: 436px;
}

.popupMain select,
.popupMain input {
	font-family: Work Sans;
	font-size: 16px;
}

.formImg {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
}

.formImg #titre {
	height: 51px;
	border: none;
	box-shadow: 0px 4px 14px 0px #00000017;
}

#thumbnail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: none;
	z-index: 2;
	background-color: #e8f1f6;
	pointer-events: none;
}

.formImg select {
	background: none;
	border: none;
	height: 51px;
	box-shadow: 0px 4px 14px 0px #00000017;
}

.formImg div {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 10px;
	width: 420px;
}

.popupGallery {
	display: grid;
	grid-template-columns: repeat(5, 78px);
	gap: 10px;
}

.popupGallery figure {
	width: 78px;
	height: 104px;
	margin-bottom: 20px;
	position: relative;
}

.popupGallery figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.popupGallery figure .fa-trash-can {
	color: white;
	background: black;
	width: 17px;
	height: 17px;
	text-align: center;
	padding: 1px 1px 2px 1px;
	border-radius: 2px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 11px;
	position: absolute;
	top: 5px;
	right: 5px;
	cursor: pointer;
}

.popup button {
	opacity: 1;
	border-radius: 60px;
	color: #ffffff;
	background: #1D6154;
	font-size: 14px;
	font-weight: 700;
	font-family: "Syne";
	padding: 10px 40px 10px 40px;
	border: none;
	margin-top: 20px;
	font-style: bold;
	cursor: pointer;
	width: 237px;
}

.upload-box {
	width: 420px;
	height: 170px;
	background-color: #e8f1f6;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.upload-label {
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.upload-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.upload-icon {
	width: 60px;
	opacity: 0.6;
	padding-top: 25px;
}

.upload-button {
	background-color: #cbd6dc;
	color: #306685;
	padding: 10px 20px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
}

.upload-info {
	font-size: 12px;
	color: #666;
}

.sendPhoto:disabled {
	background: #A7A7A7 !important;

}

.error-message {
	color: red;
	margin-top: 10px;
}

p.error-message {
	text-align: center;
	margin-top: 5px;
}

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

.edit-banner {
	background-color: black;
	width: 100vw;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-left: calc(50% - 50vw);
	height: 59px;
	font-size: 16px;
	font-weight: 400;
}