@import url('https://fonts.googleapis.com/css?family=Advent+Pro|Dancing+Script&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Advent Pro', sans -serif;
  padding: 0;
  margin: 0;
}

ul {
  padding: 0;
  margin: 0;
}

li {
  list-style-type: none;
}

h2 {
  text-transform: uppercase;
  text-align: center;
  padding-top: 30px;
  font-size: 2em;
}

a {
  text-decoration: none;
  color: #eb811ed8;
}

/**************************  NAVBAR  ***************************/
nav {
  overflow: hidden;
  background-color: aliceblue;
  position:fixed;
  width: 100%;
  opacity: 0.9;
}
header li {
  float: right;
  font-size: 1.2em;
}
header li a {
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 18px 16px;
}
#logo {
  font-family: 'Dancing Script', cursive;
  font-weight: bold;
  float: left;
}

/**************************  IMAGE PRINCIPALE  ***************************/
#imagePrincipale {
  padding-top: 60px;
  background: url(media/image-principale.JPG) no-repeat  fixed 50% 50%;
  background-size: cover;
  height: 799px;
}
h1 {
  font-family: 'Dancing Script', cursive;
  text-align: center;
  color: aliceblue;
  font-size: 5.4em;
  margin-top: 100px;
  text-shadow: 1px 3px 2px black;
}
#premierTrait {
  height: 1.4px;
  width: 30%;
  margin: -25px auto;
  background-color: aliceblue;
  text-shadow: 1px 3px 2px black;
}
h3 {
  text-align: center;
  color: aliceblue; 
  font-size: 3em;
  font-family: 'Dancing Script', cursive; 
  text-shadow: 1px 3px 2px black;
}

/**************************  Presentation  ***************************/
#presentation {
  background-color: aliceblue;
  padding: 10px 0px 100px 0;
}
#texteIntro {
  padding: 0px 20%;
}
#prestations {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 30px 10%;
}
.imagesPrestations h4 {
  font-family: 'Dancing Script', cursive;
  text-align: center;
  font-size: 1.8em;
  margin: 15px;
  font-weight: 300;
}
.imagesPrestations img {
  border-radius: 10px;
  box-shadow: 5px 5px 3px 1px rgba(0,0,0,0.7);
}
.imagesPrestations img:hover {
  /* opacity: 0.5; */
  transform: scale(1.05);
  transition: 0.6s ease-in-out;
}
/**************************  TOURISME  ***************************/
#tourisme {
  height: 700px;
  background-color: rgb(248,248,248);
  padding: 1px 2%;
}
#tourisme h2 {
  padding-top: 60px;
}
.container {
  display: grid;
  grid-template-columns: repeat(4 , 1fr);
  max-width:85vw;
  grid-gap:20px;
  justify-items:center;
}

.container > div {
  background-color: white;
  text-align: center;
  border-radius: 5px;
  height: 300px;
  box-shadow: 5px 5px 3px 1px rgba(0,0,0,0.7);
  transition: all 300ms 50ms ease-in-out;
  color: white;
  position: relative;
  width: 300px;
  max-width:200px;
  min-width:150px;
  overflow: hidden;
}

.content {
  position: absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  transition: all 0.6s ease-in-out;
  /* z-index: 2; */
}

.container > div:first-of-type .content{
  background-image:url("media/ocean2.jpg");
  background-size: cover;

}

.container > div:nth-of-type(2) .content{
  background-image:url("media/Degustations2.jpg");
  background-size: cover;
}

.container > div:nth-of-type(3) .content{
  background-image:url("media/Phare2.jpg");
  background-size: cover;
}

.container > div:last-of-type .content{
  background-image:url("media/ChienTraineau2.jpg");
  background-size: cover;
}

.container > div .content::after{
  content: '';
  position: absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  z-index:0;
  background-image: linear-gradient(to bottom,
                    rgba(0,0,0,.01),
                    rgba(0,0,0,.8)
  );
  opacity: .1;
  transition: all 300ms 50ms ease-in-out;
  border-radius:5px;
}

.container > div img {
  border-radius: 5px;
  width: 100%;
  height: 100%;
  transition: all 300ms 50ms ease-in-out;
}

.container > div h3{
  font-family: 'Dancing Script', cursive;
  font-size: 21px;
  text-transform: uppercase;
  margin-bottom:20px;
  transform: scale(1.05);
  transition: 0.6s ease-in-out;
}

.container > div p{
  font-family: 'Dancing Script', cursive;
  font-size: 17px;
  margin-top: 10px;
  line-height: 1;
  transform: scale(1.05);
  transition: 0.6s ease-in-out;
  color: transparent;
  opacity: 0;
  width:90%;
  margin:auto;
}

.container > div p ,
.container > div h3{
  position: relative;
  top:250px;
  z-index:1;
}

.container > div:hover{
  box-shadow: 0 20px 15px 10px rgba(0,0,0,.15);
  transform: translateY(-10px);
  cursor: pointer;
}

.container > div:hover .content{
  transform:scale(1.1)
}

.container > div:hover h3,
.container > div:hover p{
  transform: translateY(-200px)
}

.container > div:hover p{
  opacity:1;
  color: white;
}

.container > div .content:hover:after{
  opacity:1;
}

@media(max-width: 1000px) {
  body{
    height:150vh;
  }
  
  .container {
  display: grid;
  grid-template-columns: repeat(2 , 1fr);
  max-width:85vw;
  grid-gap:40px 100px;
  justify-items:center;
  justify-content: center;
  margin-left:0
}
}

@media(max-width: 590px) {
  body{
    height: 300vh;
  }
    .container {
  display: grid;
  grid-template-columns: repeat(1 , 1fr);
  width:80vw;
/*   grid-gap:40px 100px; */
  justify-items:center;
      
}
  
  .container > div{
    min-width: 300px
  }
}

@media(max-height:450px){
  body{
    height: 200vh;
  }
}

@media(max-height:300px){
  body{
    height: 300vh;
  }
}

@media(max-height:200px){
  body{
    height: 300vh;
  }
}

@media(max-height:100px){
  body{
    height: 300vh;
  }
}


@media(max-width: 720px){
	.box {
		width: 80%;
	}
}
/* #ocean {
  background: url(media/ocean.jpg);
}
#degustations {
  background: url(media/sirop.jpg);
}
#phare {
  background: url(media/phare.JPG);
}
#chiens{
  background: url(media/ChienTraineau.jpg);
}
#tourisme li {
  margin: 65px 100px 0 100px;
  height: 226px;
  width: 55%;
  max-width: 550px;
  min-width: 480px;
  float: left;
  border-radius: 5px;
  box-shadow: 6px 6px 28px -1px rgba(0,0,0,0.75);
}
#tourisme p {
  height:29px;
  width: 200px;
  background-color: rgba(235, 129, 30, 0.70);
  float:right;
  margin: 50px -170px 0 0;
  font-size: 1em;
  text-align: center;
  padding-top: 15px;
  box-shadow: 6px 6px 28px -1px rgba(0,0,0,0.75);
  border-radius: 10px;
}
#tourisme #degustations, #tourisme #chiens {
  float: right;
}
#degustations p, #chiens p {
  float: left;
  margin-left: -170px;
  box-shadow: -6px 6px 28px -1px rgba(0,0,0,0.75);
} */

/**************************  FOOTER  ***************************/
footer {
background: rgb(174,238,221);
background: radial-gradient(circle, rgba(174,238,221,1) 0%, rgba(148,187,233,1) 16%);
  color: aliceblue;
  padding: 20px 0 10px 0;
  text-align: center;
}
/* form {
  margin: 0 auto;
  max-width: 900px;
  min-width: 300px;
}
input {
  border: none;
  width: 40%;
  padding: 5px 5px;
  margin: 1px 0;
  font-size: 1.1em;
  font-family: 'Advent Pro', sans-serif;
  border-radius: 10px;
}
textarea {
  border: none;
  width: 82.5%;
  font-family: 'Advent Pro', sans-serif;
  border-radius: 10px;
  margin: 1.5px 0;
  font-size: 1.1em;
  height: 120px;
}
button {
  border: none;
  width: 45%;
  font-family: 'Advent Pro', sans-serif;
  border-radius: 10px;
  margin: 1px 0;
  font-size: 1.3em;
  background-color: aliceblue;
}
button:hover {
  background-color: #e55039;
  color: #FFFAE1;
  cursor: pointer;
  transition: 0.3s ease-in-out;
} */
.box {
	width: 30%;
  margin: 15px auto;
	padding: 40px;
	background: rgba(0,0,0,.4);
	box-sizing: border-box;
	box-shadow: 5px 5px 3px 1px rgba(0,0,0,0.7);
	border-radius: 10px;
}
.box h2 {
	margin: 0 0 30px;
	padding: 0;
	color: #FFF;
	text-align: center;
}
.box .inputBox {
	position: relative;
}
.box .inputBox input {
	width: 100%;
	padding: 10px 0;
	font-size: 16px;
	color: #FFF;
	letter-spacing: 1px;
	margin-bottom: 30px;
	border: none;
	border-bottom: 1px solid #FFF;
	outline: none;
	background: transparent;
}
.box .inputBox label {
	position: absolute;
	top: 0;
	left: 0;
	padding: 10px 0;
	font-size: 16px;
	color: #FFF;
	pointer-events: none;
	transition: .5s;
	animation: LabelOnLoad 1s forwards 0s ease;
}
.inputBox textarea {
  border: none;
  outline: none;
  width: 100%;
  margin-bottom: 5px;
  background: transparent;
	color: #FFF;
  border-bottom: 1px solid #FFF;
  pointer-events: none;
	transition: .5s;
	animation: LabelOnLoad 1s forwards 0s ease;
}
@keyframes LabelOnLoad{
    0%{
        transform: rotate(0) translateY(-19px);
        opacity: 0;
        }
    100%{
        transform: rotate(0) translateY(0);
        opacity: 1;
        }
}
.box .inputBox input:focus ~ label, 
.box .inputBox input:valid ~ label {
	top: -19px;
	left:0;
	color: #03A9F4;
	font-size: 12px;
}
.box input[type='submit'] {
	background: transparent;
	border: none;
	outline: none;
	color: #FFF;
	background: #03A9F4;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 5px;
	font-size: 14px;
}
.box input[type='submit']:hover {
	background-color: rgba(3, 169, 244, 0.7);
}
#deuxiemeTrait {
  height: 1px;
  width: 75%;
  background-color: #FFFAE1;
  margin: 60px auto;
}
#copyrightEtIcons {
  display: flex;
  margin-bottom: 20px;
  padding: 0 10%;
}
#copyright {
  width: 50%;
  text-align: left;
  color: #eb811ed8;
}
#icons {
  width: 50%;
  text-align: right;
}
#icons a {
  display: inline-block;
  padding: 0 15px;
  font-size: 1.3em;
  color: #eb811ed8;
}
#icons a:hover {
  transform: scale(1.5);
  transition: 0.1s;
}
