/*
  ______                         _                   _ _             _                  
 |  ____|                       | |                 | (_)           | |                 
 | |__ ___  _ __ _ __ ___   __ _| |_    ___  _ __ __| |_ _ __   __ _| |_ ___ _   _ _ __ 
 |  __/ _ \| '__| '_ ` _ \ / _` | __|  / _ \| '__/ _` | | '_ \ / _` | __/ _ \ | | | '__|
 | | | (_) | |  | | | | | | (_| | |_  | (_) | | | (_| | | | | | (_| | ||  __/ |_| | |   
 |_|  \___/|_|  |_| |_| |_|\__,_|\__|  \___/|_|  \__,_|_|_| |_|\__,_|\__\___|\__,_|_|   
                                                                                        
                                                                                        
.----------------.  .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. |
| |   ______     | || |     ____     | || |  ________    | || |  ____  ____  | |
| |  |_   _ \    | || |   .'    `.   | || | |_   ___ `.  | || | |_  _||_  _| | |
| |    | |_) |   | || |  /  .--.  \  | || |   | |   `. \ | || |   \ \  / /   | |
| |    |  __'.   | || |  | |    | |  | || |   | |    | | | || |    \ \/ /    | |
| |   _| |__) |  | || |  \  `--'  /  | || |  _| |___.' / | || |    _|  |_    | |
| |  |_______/   | || |   `.____.'   | || | |________.'  | || |   |______|   | |
| |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------' 
*/

body {
	margin: 0;
	background-color: #51E5FF;
}

header {
	border-bottom: #6b72d3 2px dotted;
	margin-bottom: 2vh;
}

footer {
	border-top: #6b72d3 2px dotted;
	margin-top: 2vh;
}

li {
	list-style-type: none;
}

a, .dropbtn {
	text-decoration: none;
	color: #6b72d3;
	font-weight: bold;
}

a:hover, .reponse:hover {
	text-decoration: underline wavy;
}

section {
	min-height: 85vh;
}

#message {
	z-index: 1;
	width: 20%;
	position: fixed;
	top: 11vh;
	right: 1vh;
	padding: 2vw;
	background-color: #fff;
	border-radius: 5px;
}

#close-message {
	padding: 4px 5px;
	border: none;
	border-radius: 5px;
	position: absolute;
	top: 1vh;
	right: 1vh;
	background: #ff365e;
	color: #fff;
}

.fail {
	color: red;
}

.success {
	color:green;
}

#espace_personnel {
	width: 50vw;
	padding: 10px;
	background-color: white;
	border: solid 4px #7d7b7b;
	box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
	display: flex;
	justify-content: space-evenly;
	margin-top: 5vh;
	margin-left: auto;
	margin-right: auto;
}

#infos {
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#animaux {
	border-right: 4px solid gold;
	padding-bottom: 10px;
	width: 50%;
}

.button {
	border: none;
	background-color: #7CEA9C;
	border-radius: 20px;
	padding: 10px;
	margin: 10px;
	color: #6b72d3;
	font-weight: bold;
}

#informations, #fiche-animal, #liste-animaux, #cgu, #politique-confidentialite {
	width: 95%;
	margin: auto;
}

#informations li, #cgu li, #politique-confidentialite li {
	list-style-type: disc;
}

#infos-animal {
	display: flex;
	justify-content: center;
}

#infos-animal p {
	margin-right: 1vw;
	margin-top: 0;
	margin-bottom: 0;
}

#photos-animal {
	display: flex;
	justify-content: center;
}

#photos-animal img {
	width: 25vw;
	border-radius: 10%;
}

#liste-animaux {
	margin-top: 2vh;
	margin-bottom: 2vh;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.animal {
	width: 25vw;
	border: 1px solid black;
	border-radius: 10px;
	background-color: #f1f1f1;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-bottom: 5vh;
}

.animal h4 {
	margin: 1vh;
}

.border-radius-bottom {
	border-radius: 0 0 10px 10px;
}

.text-center {
	text-align: center;
}

.photo {
	margin-left: auto;
	margin-right: auto;
}

.portrait {
	width: 60%;
	border-radius: 0;
}

.square {
	width: 70%;
}

.landscape {
	width: 100%;
}

.icon {
	width: 2vw;
}

address p {
	margin-top: 0;
	margin-bottom: 0;
}

/*
.-----------------. .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. |
| | ____  _____  | || |      __      | || | ____   ____  | |
| ||_   \|_   _| | || |     /  \     | || ||_  _| |_  _| | |
| |  |   \ | |   | || |    / /\ \    | || |  \ \   / /   | |
| |  | |\ \| |   | || |   / ____ \   | || |   \ \ / /    | |
| | _| |_\   |_  | || | _/ /    \ \_ | || |    \ ' /     | |
| ||_____|\____| | || ||____|  |____|| || |     \_/      | |
| |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------' 
*/

nav {
	width: 100%;
}

nav ul {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: baseline;
}

.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-title {
	display: flex;
	align-items: center;
	color: #6b72d3;
	font-weight: bold;
}

#dropdown-content {
	position: absolute;
	left: -10px;
	background-color: #f1f1f1;
    min-width: 10vw;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
	padding-top: 1vh;
	padding-bottom: 1vh;
	padding-left: 2vw;
}

.display-none {
	display: none;
}

.display-block {
	display: block;
}

/*
.----------------.  .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. |
| |  _________   | || |     ____     | || |  _______     | || | ____    ____ | |
| | |_   ___  |  | || |   .'    `.   | || | |_   __ \    | || ||_   \  /   _|| |
| |   | |_  \_|  | || |  /  .--.  \  | || |   | |__) |   | || |  |   \/   |  | |
| |   |  _|      | || |  | |    | |  | || |   |  __ /    | || |  | |\  /| |  | |
| |  _| |_       | || |  \  `--'  /  | || |  _| |  \ \_  | || | _| |_\/_| |_ | |
| | |_____|      | || |   `.____.'   | || | |____| |___| | || ||_____||_____|| |
| |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------' 
*/

input, textarea {
	border-radius: 5px;
}

label {
	display: block;
	margin-bottom: 2px;
}

.field {
	margin-bottom: 2vh;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
    width: 60%;
  }

input[type='submit'], input[type="file"], input[type="file"]:valid, input[type='submit']:valid {
	margin-bottom: 0;
	border: none;
}

.formulaire {
	background-color: rgb(231, 228, 228);
	width: 30vw;
	padding: 10px;
	border: solid 4px #7d7b7b;
	border-radius: 5px;
	box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
	margin-top: 5vh;
	margin-left: auto;
	margin-right: auto;
}

.formulaire img {
	width: 100%;
}

input:invalid, textarea:invalid {
	border: 1px solid red;
}

input:valid, textarea:valid {
	border: 1px solid green;
}

.error {
	margin-top: 0;
	margin-bottom: 0;
}

/*
 .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| |     ______   | || |      __      | || |  _______     | || |  _______     | || |     ____     | || | _____  _____ | || |    _______   | || |  _________   | || |   _____      | |
| |   .' ___  |  | || |     /  \     | || | |_   __ \    | || | |_   __ \    | || |   .'    `.   | || ||_   _||_   _|| || |   /  ___  |  | || | |_   ___  |  | || |  |_   _|     | |
| |  / .'   \_|  | || |    / /\ \    | || |   | |__) |   | || |   | |__) |   | || |  /  .--.  \  | || |  | |    | |  | || |  |  (__ \_|  | || |   | |_  \_|  | || |    | |       | |
| |  | |         | || |   / ____ \   | || |   |  __ /    | || |   |  __ /    | || |  | |    | |  | || |  | '    ' |  | || |   '.___`-.   | || |   |  _|  _   | || |    | |   _   | |
| |  \ `.___.'\  | || | _/ /    \ \_ | || |  _| |  \ \_  | || |  _| |  \ \_  | || |  \  `--'  /  | || |   \ `--' /   | || |  |`\____) |  | || |  _| |___/ |  | || |   _| |__/ |  | |
| |   `._____.'  | || ||____|  |____|| || | |____| |___| | || | |____| |___| | || |   `.____.'   | || |    `.__.'    | || |  |_______.'  | || | |_________|  | || |  |________|  | |
| |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------' 
*/

#carrousel {
	width: 30vw;
	border: solid 4px #7d7b7b;
	border-radius: 5px;
	background-color: rgb(231, 228, 228);
	box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
	margin-top: 5vh;
	margin-left: auto;
	margin-right: auto;
}

#carrousel h2 {
	margin-left: 2vw;
}

#container {
	width: 30vw;
	display: flex;
}

.card {
	width: 100%;
	padding-left: 2vw;
	padding-right: 2vw;
	display: inline-block;
}

.bouton {
	position: absolute;
	width: 5vw;
	cursor: pointer;
	top: 40%;
}

#g {
	left: 0;
	opacity: 0.4;
	transition: all 0.3s ease;
}

#g:hover {
	transform: scale(1.1);
	opacity: 1;
	transition: all 0.3s ease;
}

#d {
	right: 0;
	opacity: 0.4;
	transition: all 0.3s ease;
}

#d:hover {
	transform: scale(1.1);
	opacity: 1;
	transition: all 0.3s ease;
}

/*
 .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| | ____    ____ | || |     ____     | || |  ________    | || |      __      | || |   _____      | || |  _________   | || |    _______   | |
| ||_   \  /   _|| || |   .'    `.   | || | |_   ___ `.  | || |     /  \     | || |  |_   _|     | || | |_   ___  |  | || |   /  ___  |  | |
| |  |   \/   |  | || |  /  .--.  \  | || |   | |   `. \ | || |    / /\ \    | || |    | |       | || |   | |_  \_|  | || |  |  (__ \_|  | |
| |  | |\  /| |  | || |  | |    | |  | || |   | |    | | | || |   / ____ \   | || |    | |   _   | || |   |  _|  _   | || |   '.___`-.   | |
| | _| |_\/_| |_ | || |  \  `--'  /  | || |  _| |___.' / | || | _/ /    \ \_ | || |   _| |__/ |  | || |  _| |___/ |  | || |  |`\____) |  | |
| ||_____||_____|| || |   `.____.'   | || | |________.'  | || ||____|  |____|| || |  |________|  | || | |_________|  | || |  |_______.'  | |
| |              | || |              | || |              | || |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------' 
*/

#modal-connexion, #modal-inscription, #modal-mdp, #modal-suppr-compte, #modal-suppr-animal, #modal-suppr-commentaire {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

#modal-connexion.active, #modal-inscription.active, #modal-mdp.active, #modal-suppr-compte.active, #modal-suppr-animal.active, #modal-suppr-commentaire.active {
	display: block;
}

#modal-inscription p {
	margin-top: 0;
}

.modal {
	background-color: #fff;
	width: 25%;
	margin: auto;
	padding: 1vw;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}

.close-modal {
	padding: 4px 5px;
	border: none;
	border-radius: 5px;
	font-size: 18px;
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff365e;
	color: #fff;
}

.overlay {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1;
}

#modal-connexion input[type="submit"] {
	margin-top: 2vh;
}

/* 
 .----------------.  .----------------.  .----------------.  .----------------.  .-----------------. .----------------.  .----------------.  .----------------.  .----------------.  .-----------------.
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| |   ______     | || |      __      | || |    ______    | || |     _____    | || | ____  _____  | || |      __      | || |  _________   | || |     _____    | || |     ____     | || | ____  _____  | |
| |  |_   __ \   | || |     /  \     | || |  .' ___  |   | || |    |_   _|   | || ||_   \|_   _| | || |     /  \     | || | |  _   _  |  | || |    |_   _|   | || |   .'    `.   | || ||_   \|_   _| | |
| |    | |__) |  | || |    / /\ \    | || | / .'   \_|   | || |      | |     | || |  |   \ | |   | || |    / /\ \    | || | |_/ | | \_|  | || |      | |     | || |  /  .--.  \  | || |  |   \ | |   | |
| |    |  ___/   | || |   / ____ \   | || | | |    ____  | || |      | |     | || |  | |\ \| |   | || |   / ____ \   | || |     | |      | || |      | |     | || |  | |    | |  | || |  | |\ \| |   | |
| |   _| |_      | || | _/ /    \ \_ | || | \ `.___]  _| | || |     _| |_    | || | _| |_\   |_  | || | _/ /    \ \_ | || |    _| |_     | || |     _| |_    | || |  \  `--'  /  | || | _| |_\   |_  | |
| |  |_____|     | || ||____|  |____|| || |  `._____.'   | || |    |_____|   | || ||_____|\____| | || ||____|  |____|| || |   |_____|    | || |    |_____|   | || |   `.____.'   | || ||_____|\____| | |
| |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------' 
*/

.pagination {
	display: inline-block;
}

.pagination a {
	float: left;
	padding: 8px 16px;
	text-decoration: none;
	transition: background-color .3s;
	margin: 0 4px;
}

.pagination a.active {
	background-color: #7CEA9C;
}

/* 
 .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .-----------------. .----------------.  .----------------.  .----------------.  .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| |     ______   | || |     ____     | || | ____    ____ | || | ____    ____ | || |  _________   | || | ____  _____  | || |  _________   | || |      __      | || |     _____    | || |  _______     | || |  _________   | || |    _______   | |
| |   .' ___  |  | || |   .'    `.   | || ||_   \  /   _|| || ||_   \  /   _|| || | |_   ___  |  | || ||_   \|_   _| | || | |  _   _  |  | || |     /  \     | || |    |_   _|   | || | |_   __ \    | || | |_   ___  |  | || |   /  ___  |  | |
| |  / .'   \_|  | || |  /  .--.  \  | || |  |   \/   |  | || |  |   \/   |  | || |   | |_  \_|  | || |  |   \ | |   | || | |_/ | | \_|  | || |    / /\ \    | || |      | |     | || |   | |__) |   | || |   | |_  \_|  | || |  |  (__ \_|  | |
| |  | |         | || |  | |    | |  | || |  | |\  /| |  | || |  | |\  /| |  | || |   |  _|  _   | || |  | |\ \| |   | || |     | |      | || |   / ____ \   | || |      | |     | || |   |  __ /    | || |   |  _|  _   | || |   '.___`-.   | |
| |  \ `.___.'\  | || |  \  `--'  /  | || | _| |_\/_| |_ | || | _| |_\/_| |_ | || |  _| |___/ |  | || | _| |_\   |_  | || |    _| |_     | || | _/ /    \ \_ | || |     _| |_    | || |  _| |  \ \_  | || |  _| |___/ |  | || |  |`\____) |  | |
| |   `._____.'  | || |   `.____.'   | || ||_____||_____|| || ||_____||_____|| || | |_________|  | || ||_____|\____| | || |   |_____|    | || ||____|  |____|| || |    |_____|   | || | |____| |___| | || | |_________|  | || |  |_______.'  | |
| |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------'  '----------------' 
*/

#commentaires {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
}

.commentaire {
	background-color: rgb(231, 228, 228);
	padding: 0 1vw 1vw 1vw;
	border: 1px black solid;
	margin-bottom: 2vh;
}

.actions-commentaire {
	margin-bottom: 2vh;
}

#comment-form {
	background-color: rgb(231, 228, 228);
	padding: 1vw;
	margin-top: 1vh;
	border: 1px black solid;
	border-radius: 20px;
}

#comment-form textarea, #reponse-textarea {
	width: 98%;
}

.reponse-form {
	margin-bottom: 2vh;
}

.reponse-commentaire {
	margin-left: 5vw;
}

/* 
  ______                         _     _    __ _   __       _                      
 |  ____|                       | |   | |  /_/| | /_/      | |                     
 | |__ ___  _ __ _ __ ___   __ _| |_  | |_ ___| | ___ _ __ | |__   ___  _ __   ___ 
 |  __/ _ \| '__| '_ ` _ \ / _` | __| | __/ _ \ |/ _ \ '_ \| '_ \ / _ \| '_ \ / _ \
 | | | (_) | |  | | | | | | (_| | |_  | ||  __/ |  __/ |_) | | | | (_) | | | |  __/
 |_|  \___/|_|  |_| |_| |_|\__,_|\__|  \__\___|_|\___| .__/|_| |_|\___/|_| |_|\___|
                                                     | |                           
                                                     |_|                           
*/

@media screen and (max-width: 576px) {
  form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
    width: 90%;
  }
  
	section {
		min-height: 65vh;
	}

	nav ul {
		padding-left: 0;
		flex-direction: column;
		align-items: center;
		flex-wrap: wrap;
	}

	nav ul li {
		margin-right: 2vw;
	}

	#carrousel, #container {
		width: 70vw;
	}

	.bouton {
		width: 10vw;
	}

	.icon {
		width: 5vw;
	}

	.modal {
		width: 60%;
		max-height: 60vh;
		padding: 3vw;
		overflow-y: scroll;
	}

	.g-recaptcha {
		transform: scale(0.7);
		transform-origin: 0 0;
	}

	.animal {
		width: 40vw;
	}

	#infos-animal {
		flex-direction: column;
		align-items: center;
	}

	#infos-animal p {
		margin: 0;
	}

	#espace_personnel {
		width: 70vw;
		flex-direction: column;
	}

	#animaux, #infos {
		width: 100%;
	}

	#animaux {
		border-right: none;
		border-bottom: 4px solid gold;
		padding-bottom: 3vh;
	}

	.formulaire {
		width: 80vw;
	}

	#message {
		width: 40vw;
		top: 15vh;
	}

	#commentaires {
		width: 90vw;
	}

	#comment-form {
		padding: 2vw;
	}
}

/* 
  ______                         _     _        _     _      _   _       
 |  ____|                       | |   | |      | |   | |    | | | |      
 | |__ ___  _ __ _ __ ___   __ _| |_  | |_ __ _| |__ | | ___| |_| |_ ___ 
 |  __/ _ \| '__| '_ ` _ \ / _` | __| | __/ _` | '_ \| |/ _ \ __| __/ _ \
 | | | (_) | |  | | | | | | (_| | |_  | || (_| | |_) | |  __/ |_| ||  __/
 |_|  \___/|_|  |_| |_| |_|\__,_|\__|  \__\__,_|_.__/|_|\___|\__|\__\___|
                                                                         
                                                                         
*/

@media screen and (min-width: 577px) and (max-width: 992px) {
	#carrousel, #container {
		width: 60vw;
	}

	.modal {
		width: 30%;
	}

	.g-recaptcha {
		width: 100%;
	}

	#message {
		top: 6vh;
	}

	.formulaire {
		width: 35vh;
	}
	
	input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
    width: 90%;
  }

	#commentaires {
		width: 70%;
	}
}
