@import url('https://fonts.googleapis.com/css2?family=Courgette&display=swap');

body{
	font-family: "Trebuchet MS";
}

.fond{
	height: 100vh;
	background-image: url("img/fond.jpg");
	background-size: cover;
	background-repeat: no-repeat;
}

.fond h1{
	text-align: center;
	color: white;
	font-family: 'Courgette', cursive;
	font-size: 60px;
	font-weight: 100;
}

a{
	position: absolute;
	width: 150px;
	top: 2%;
	left: 2%;
	text-align: center;
	padding-top: 2px;
	border-radius: 50px;
	background-color: #ff4d4d;
	color: white;
	font-size: 20px;
	height: 40px;
	border:  #ff4d4d 3px solid;
	transition-duration: 0.5s;
	outline: none;
}

a:hover{
	background-color: rgba(255,255,255,0.01);
	color: white;
	text-decoration: none;
}


form{
	background-color: rgba(255,255,255,0.4);
	width: 60%;
	margin: auto;
	padding-top: 50px;
	padding-bottom: 50px;
	display: flex;
	flex-direction: column;
	border-radius: 60px;
}

form h2{
	font-size: 18px;
	text-align: center;
	color: #ff4d4d;
	margin-bottom: 20px;
}

form .black{
	color: #212529;
	margin-bottom: 30px;
	font-size: 20px;
}

form .mail{
	width: 80%;
	margin: auto;
	background-color: rgba(255,255,255,0.5);
	margin-bottom: 20px;
	height: 45px;
	outline: none;
	border: #ff4d4d solid 2px;
	border-radius: 50px;
	padding-left: 15px;
}

form .div_mdp{
	display: flex;
	width: 80%;
	margin: auto;
}

form .mdp{
	width: 46%;
	background-color: rgba(255,255,255,0.5);
	margin: auto;
	margin-bottom: 40px;
	height: 45px;
	outline: none;
	border: #ff4d4d solid 2px;
	border-radius: 50px;
	padding-left: 15px;
}

input[type='button']{
	background-image: url("img/visible.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-color: transparent;
	border: none;
	width: 40px;
	height: 40px;
	margin-top: 5px;
	margin-left: 10px;
	cursor: pointer;
	outline: none;
}

form div{
	margin: auto;
}

.sexe{
	display: flex;
}

.orientation{
	display: flex
}

form .radio{
	height: 24px;
	width: 24px;
	vertical-align: top;
}

input[type='radio']:after {
    width: 24px;
    height: 24px;
    border-radius: 15px;
    position: relative;
    background-color: white;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 1px solid #ff4d4d;
    outline: none;
}

input[type='radio']:checked:after {
    width: 24px;
    height: 24px;
    border-radius: 15px;
    position: relative;
    background-color: #ff4d4d;
    content: '';
    display: inline-block;
    visibility: visible;
    border: 6px solid white;
    outline: none;
}

form label{
	font-size: 20px;
	margin-bottom: 40px;
	margin-right: 30px;
}

form .submit{
	display: block;
	width: 25%;
	margin: auto;
	text-align: center;
	padding-top: 2px;
	border-radius: 50px;
	background-color: #ff4d4d;
	color: white;
	font-size: 25px;
	height: 50px;
	border:  #ff4d4d 3px solid;
	transition-duration: 0.5s;
	outline: none;
	cursor: pointer;
}

form .submit:hover{
	background-color: rgba(255,255,255,0.2);
	color: #ff4d4d;
	text-decoration: none;
}

.erreur{
	color: red;
	text-align: center;
	font-size: 20px;
	margin-bottom: 20px;
}

@media screen and (min-width: 1600px) {

	h1{
		padding-top: 80px;
	}
	form{
		margin-top: 80px;
	}
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

	form{
		width: 90%;
	}
}

@media screen and (min-width: 360px) and (max-width: 768px) {

	.fond{
		height: auto;
		padding-bottom: 40px;
	}

	.fond h1{
		font-size: 40px;
	}

	a{
		position: static;
		display: block;
		margin: auto;
		margin-bottom: 20px;
	}

	form{
		width: 90%;
	}

	.div_mdp{
		flex-direction: column;
	}

	form .mdp{
		width: 100%;
		margin-bottom: 0px;
		margin-bottom: 20px;
	}

	input[type='button']{
		margin: auto;
	}

	form h2{
		padding-left: 10%;
		padding-right: 10%;
	}

	.sexe, .orientation{
		display: flex;
		flex-direction: column;
	}

	form label{
		margin-bottom: 20px;
	}

	form .submit{
		width: 200px;
		margin-top: 20px;
	}
}
