/* 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;
	flex-direction: column;
}

#logo-edition {
	display: none;
	align-items: center;
	justify-content: center;
	background-color: black;
	padding: 10px;
	color: white;
	gap: 10px;
}

#header-all {
	display: flex;
	justify-content: space-between;
	margin: 40px 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,a {
	padding: 0 10px;
	font-size: 1.2em;
	color: black;
	text-decoration: none;
}

ul a: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*/


.filters {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2em;
}

.btnFilter {
	font-family: 'Syne';
	padding: 10px;
	margin: 0 15px;
	border: 1px solid #1D6154;
	border-radius: 25px;
	color: #1D6154;
	background-color: white;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.btnFilter:hover, .selected {
	color: white;
	background-color: #1D6154;
}


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

.gallery img {
	width: 100%;
	margin-bottom: 10px;
	height: 400px;
	object-fit: cover;

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

.btnContact {
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #1D6154;
	margin : 2em auto ;
	width: 180px;
	text-align: center;
	border-radius: 60px ;
}

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

/*login*/

.login h2 {
	text-align: center;
	margin-bottom: 20px;
}
.login-form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.login-form-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

label {
	font-family: 'Syne';
	font-size: 12px;
	font-weight: lighter;
}

#email, #password {
	width: 250px;
	height: 40px;
	border-width: 0;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

.submit-btn-form{
	font-family: 'Syne';
	font-size: 0.9em;
	color: white;
	background-color: #1D6154;
	border-width: 0px;
	text-align: center;
	border-radius: 60px ;
	padding: 7px 25px 7px 25px;
	width: 150px;
	cursor: pointer;
	margin-top: 5px;
}

.submit-btn-form:hover {
	background-color: #B1663C;
	transform: scale(1.05);
}

.login a {
	font-size: 12px;
	text-decoration: underline;
	margin-top: 20px;
}

.login a:hover {
	font-weight: bold;
}

.errorMessage {
	margin: 20px;
	text-align: center;
	font-weight: bolder;
}

/* Modal */

.portfolio-title {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5em;
	gap: 30px;
}

.modify-portfolio {
	display: none;
	gap: 10px;
}

.modify-portfolio:hover {
	cursor: pointer;
}

.modify-portfolio a {
	padding: 0;
	font-size: 14px;
}

.modal {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.btn-add-photo {
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #1D6154;
	margin : 2em auto ;
	width: 220px;
	text-align: center;
	border-radius: 60px ;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 1.1em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

.btn-add-photo:hover {
	background-color: #B1663C;
	transform: scale(1.05);
	cursor: pointer;
}

.edit-modal {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	background-color: #FFFFFF;
	width: 530px;
	padding: 20px;
	z-index: 2;
	position: fixed;
	overflow: auto;
	max-height: 90vh;
}

#editGallery {
	display: none;
}

#close-modal {
	display: flex;
	justify-content: flex-end;
}

.modal-title {
	font-size: 24px;
	margin-top: 20px;
	margin-bottom: 40px;
	text-align: center;
}

.modal-projects {
	border-bottom: 1px solid #B3B3B3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 50px;
	margin-right: 50px;
}

#add-photo {
	display: none;
}

#editGallery .modal-projects {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

#editGallery .modal-projects img {
	width: 75px;
	margin-bottom: 20px;
	height: 102px;
	object-fit: cover;
}

.miniProjet {
	position: relative;
}

.fa-trash-can {
	display: block;
	position: absolute;
	top: 5px;
	right: 15px;
	color: white;
	background-color: black;
	padding: 4px;
	border-radius: 2px;
	font-size: 10px;
}

.modal-header {
	display: flex;
	justify-content: space-between;
}

.fa-solid:hover {
	cursor: pointer;
}

.active {
    display: flex !important;
}

#new-photo {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #E8F1F6;
	width: 420px;
	padding-top: 20px;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

#new-photo.input-image {
	padding: 0;
}

#new-photo-image {
	color: #CBD6DC;
	font-size: 60px;
	margin-bottom: 10px;
}

#label-image {
	color: #306685;
	background-color: #CBD6DC;
	font-size: 16px;
	font-family: 'Work Sans';
	font-weight: bold;
	border-radius: 25px;
	padding : 10px 20px;
	margin-bottom: 10px;
}

#label-image:hover {
	cursor: pointer;
	background-color: #A7A7A7;
}

#new-photo p {
	color: #444444;
	font-size: 10px;
}

#photo-preview-img {
	display: none;
	height: 170px;
}

#image {
	display: none;
}

#delete-image {
	color: #306685;
	font-family: 'Work Sans';
	border-radius: 25px;
	padding: 5px;
	font-size: 10px;
	border: 1px solid #306685;
}

#delete-image:hover {
	cursor: pointer;
	background-color: #A7A7A7;
}

.delete-bouton {
	display: none;
	justify-content: center;
	align-items: center;
}

.modal-projects-input {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}

.modal-projects-input label {
	font-family: 'Work Sans';
	font-size: 14px;
	font-weight: bold;
	color: #3D3D3D;
	margin-bottom: 10px;
}

.styled-input {
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
	height: 40px;
}

#modal-projects-input-category {
	padding-bottom: 20px;
}

#valider {
	font-family: 'Syne';
	font-weight: 700;
	color: white;
	background-color: #A7A7A7;
	margin : 2em auto ;
	width: 220px;
	text-align: center;
	border-radius: 60px ;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 1.1em;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

#valider.formValide {
	background-color: #1D6154;
}

#valider.formValide:hover {
	background-color: #B1663C;
	transform: scale(1.05);
	cursor: pointer;
}
