@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,900&display=swap");



.container {
  max-width: 1060px;
  margin: auto;
}
.d-flex {
  display: flex;
}
.justify-space-between {
  justify-content: space-between;
}
.text-center {
  text-align: center;
}

.btn {
  background: rgb(124, 40, 99);
  padding: 10px 15px;
  color: white;
}

body {
  font-family: "Montserrat", sans-serif;
}

header {
  background-image: linear-gradient(
      to right,
      rgba(124, 40, 99, 0.4),
      rgba(0, 0, 0, 0.363)
    ),
    url(../img/fitness.jpg);
  background-size: cover;
  background-position: center;
  padding: 20px;
  color: white;
}

header nav{
	align-items: center;
}

header img {
  height: 50px;
}

header ul li {
  margin-left: 30px;
}

header > div {
  text-align: center;
  padding: 100px 0 200px;
}
header h1 {
  font-weight: 900;
  font-style: italic;
  font-size: 70px;
  line-height: 70px;
  text-transform: uppercase;
  margin-bottom: 0;
}
header h2 {
  font-size: 18px;
}

header input[type="checkbox"]{
	display: none;
}

/* desktop  and tablet */
@media only screen and (min-width: 768px){
	header i{
		display: none !important; 
	}
}

/* phone */
@media only screen and (max-width: 767px){
	header{
		padding: 0;
	}

	header nav{
		background-color: rgb(124, 40, 99);
		padding: 20px;
	}
	/* <i class="fas fa-bars"></i> */
	header i.fas{ /* ciblage plus précis = pas besoin de !important */
		display: block;
		font-size: 50px;
		line-height: 40px;
		margin: 0 20px;
	}
	header ul{
		display: none !important;
		flex-direction: column;
		justify-content: space-around;
		align-items: center;
		position: absolute;
		top: 70px;
		height: 100px;
		background: white;		
	}
	header input:checked ~ label ~ ul{
		display:flex !important;
	}
	header ul li{
		margin-left: 0;
	}
}

header nav div{
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
}


/* desktop  and tablet */
@media only screen and (min-width: 768px){
	#fitclub {
	  background-image: linear-gradient(
		  to right,
		  rgba(124, 40, 99, 0.4),
		  rgba(124, 40, 99, 0.2) 55%,
		  black 45%
		),
		url("../img/crossfit.jpg");
	  background-size: cover;
	  background-position: center;
	  padding: 100px 0 130px;
	  color: white;
	}
	#fitclub article {
	  width: 38%;
	}
	#fitclub h2 {
	  margin-left: -100px;
	}
}

/* phone */
@media only screen and (max-width: 767px){
	#fitclub {
	  background-color: black;
	  padding: 40px;
	  color: white;
	}	
	#fitclub article {
	  width: 80%;
	  
	}
	#fitclub h2 {
	  margin-left: 0px;
	}
}

#fitclub .container {
  justify-content: flex-end;
}
#fitclub a.btn {
  margin-top: 20px;
  display: inline-block;
}

#fonctionnalites {
  flex-wrap: wrap;
  margin: 0;
}

/* desktop */
@media only screen and (min-width: 993px){
	#fonctionnalites li {
	  width: calc(100% / 3);
	  text-align: center;
	  padding: 40px 20px;
	}
	#fonctionnalites li:nth-of-type(odd) {
	  background: rgba(128, 128, 128, 0.15);
	}
}

/* tablet */
@media only screen and (min-width: 768px) and (max-width: 992px){
	#fonctionnalites li {
	  width: calc(100% / 2);
	  text-align: center;
	  padding: 40px 20px;
	}
	#fonctionnalites li:nth-of-type(3n), #fonctionnalites li:nth-of-type(2) {
	  background: rgba(128, 128, 128, 0.15);
	}
}

/* phone */
@media only screen and (max-width: 767px){
	#fonctionnalites li {
	  width: 100%;
	  text-align: center;
	  padding: 40px 20px;
	}
	#fonctionnalites li:nth-of-type(odd) {
	  background: rgba(128, 128, 128, 0.15);
	}
}

#fonctionnalites li img {
  width: 48px;
}

footer {
  border-top: 10px solid rgb(124, 40, 99);
  background: black;
  color: white;
  font-size: 12px;
  margin-top: -10px;
  padding: 20px 0;
}

/* desktop and tablet */
@media only screen and (min-width: 768px){
	footer form {
	  background: white;
	  color: black;
	  padding: 30px 30px 50px;
	  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
	  margin-top: -100px;
	  position: relative;
	  width: 45%;
	  display: flex;
	  flex-direction: column;
	  text-align: center;
	  align-items: center;
	}
	footer article {
	  width: 25%;
	  text-align: right;
	}
	footer aside {
	  width: 25%;
	}
}

/* phone */
@media only screen and (max-width: 767px){
	footer .container {
	   flex-direction: column;
	}
	footer form {
	  order: -1;
	  background: white;
	  color: black;
	  padding: 30px 30px 50px;
	  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
	  margin: -50px auto 40px;
	  position: relative;
	  width: 90%;
	  display: flex;
	  flex-direction: column;
	  text-align: center;
	  align-items: center;
	}
	footer article {
	  margin: 0 auto;
	  width: 90%;
	  text-align: center;
	}
	footer aside {
	  width: 90%;
	  margin-left: 5%;
	  margin-top: 40px;
	}
}
footer .container {
  justify-content: space-between;
}
footer i {
  font-size: 20px;
}

footer article i {
  margin-left: 15px;
}
footer article img {
  width: 50px;
}

footer aside li {
  display: flex;
}
footer aside li h3 {
  text-transform: uppercase;
  margin-top: 0;
  font-size: 11px;
}
footer aside i {
  color: rgb(124, 40, 99);
  margin-right: 15px;
}


footer form h2 {
  text-transform: uppercase;
}
footer form p {
  margin-bottom: 30px;
}
footer form input:not([type="submit"]) {
  width: 100%;
  border: none;
  border-bottom: 1px solid black;
  margin-bottom: 50px;
  padding: 5px;
}
footer form input:not([type="submit"])::placeholder {
  color: black;
}
footer form input[type="submit"] {
  border: none;
}
iframe {
  width: 100%;
}

#info {
  margin: 100px auto;
}

#plus {
  margin: 0;
}
/* desktop and tablet */
@media only screen and (min-width: 768px){
	#plus li {
	  border-top: 1px solid rgba(128, 128, 128, 0.294);
	  border-right: 1px solid rgba(128, 128, 128, 0.294);
	  padding: 50px 10px;
	  width: 25%;
	}
}
/* phone */
@media only screen and (max-width: 767px){
	#plus li {
	  border-top: 1px solid rgba(128, 128, 128, 0.294);
	  border-right: 1px solid rgba(128, 128, 128, 0.294);
	  padding: 50px 10px;
	  width: 50%;
	}
	#plus {
	  flex-wrap: wrap;
	}
}
#plus li:last-of-type {
  border-right: none;
}
#plus li img {
  width: 48px;
}

/* desktop and tablet */
@media only screen and (min-width: 769px){
	#presentation article {
	  width: 50%;
	  text-align: center;
	  background-size: cover;
	  padding: 80px 30px;
	  color: white;
	  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
	  margin-top: -100px;
	}
}

/* phone */
@media only screen and (max-width: 768px){
	#presentation{
		flex-direction: column;
	}
	#presentation article {
	  width: 90%;
	  text-align: center;
	  background-size: cover;
	  background-position: center;
	  padding: 50px 30px;
	  color: white;
	  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
	  margin: 0 auto;
	}
	#presentation article:first-of-type{
		margin-top: -100px;
	}
}

#presentation article:first-of-type {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../img/fitnessman.jpg);
}
#presentation article:last-of-type {
  background-image: linear-gradient(
      rgba(124, 40, 99, 0.6),
      rgba(124, 40, 99, 0.6)
    ),
    url(../img/fitnesswoman.jpg);
}

#presentation h2 {
  text-transform: uppercase;
}
