:root {
  --primary-color: rgba(13, 110, 139, 0.8);
  --secondary-color: #c3974e;
  --overlay-color: rgba(24, 39, 51, 0.85);
  --menu-speed: 0.75s;
  --primary-font: "Cinzel", serif;
  --secondary-font: "Montserrat", sans-serif;
  --size: 40px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
}

*::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--secondary-font);
  overflow-x: hidden;
}

.bold {
  font-weight: bold;
  font-size: 18px;
  text-decoration: underline;
}

/* start navbar */

.container {
  max-width: 960px;
  margin: auto;
  overflow: hidden;
  padding: 0 3rem;
}

.showcase {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  height: 70vh;
  position: relative;
  font-family: var(--primary-font);
}

.showcase:before {
  content: "";
  background: url("../img/scenic-photo.jpg") no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.showcase .showcase-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.showcase img {
  height: 150px;
  filter: drop-shadow(0px 5px 3px black);
}

.showcase p {
  font-size: 1rem;
  padding: 2rem;
  text-shadow: 4px 4px 2px rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0px 5px 3px black);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  text-decoration: none;
  transition: 0.7s ease-in;
}

.btn:hover {
  filter: drop-shadow(0px 5px 3px black);

}

/* start search */

.search-content {
  width: 200px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.search {
  --size: 30px;
  border: 2px solid var(--secondary-color);
  display: flex;
  justify-content: center;
  border-radius: 100px;
  overflow: hidden;
  font-size: 1.25em;
  position: absolute;
  right: 0;
  width: var(--size);
  height: var(--size);
  -webkit-transition: width 450ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
  transition: width 450ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
  padding: 3px;
}

.search__input {
  border: 0;
  padding: .25em 1em;
  -webkit-box-flex: 1;
  flex-grow: 1;
  outline: 0;
  z-index: 2;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.search__submit {
  margin-left: auto;
  color: var(--secondary-color);
  background: 0;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  -webkit-transition: background 200ms ease-out;
  transition: background 200ms ease-out;
  width: calc(var(--size) - 10px);
  height: calc(var(--size) - 10px);
}

.search:focus-within {
  width: 100%;
}

.search:focus-within .search__input {
  opacity: .5;
  z-index: initial;
  cursor: initial;
  width: calc(100% - var(--size));
}

.search:focus-within .search__submit {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.search:focus-within .search__submit:hover,
.search:focus-within .search__submit:focus {
  outline: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.65);
}


/* end search */

.lang img{
  height: 20px;
  width: 35px;
  margin: 6px;
}

/* end navbar */

/* start small description */

.description {
  line-height: 1.5;
  font-size: 1.2em;
}

.description h1 {
  text-align: center;
  padding: 1.5em;
  font-family: var(--primary-font);
  font-size: 3em;
  font-weight: 500;
}

.description h1::after {
  content: '';
  border: 1px solid var(--secondary-color);
  display: block;
  width: 220px;
  margin: 0 auto;
}

.description p {
  width: 80%;
  margin: 0 auto;
}

.description p::before {
  content: open-quote;
  color: var(--secondary-color);
}

.description p::after {
  content: close-quote;
  color: var(--secondary-color);
}

/* end small description */

/* start cards ex 1 */

.cards {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 3em;
}

.card {
  width: 300px;
  height: 450px;
  position: relative;
  margin: 1em 0;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all .4s ease-in;
}

.card:hover {
  transform: scale(1.05);
  -webkit-transform: scale(1.05);
}

.card.appear {
  opacity: 1;
  -moz-opacity: 1; /* Firefox and Mozilla browsers */
  -webkit-opacity: 1; /* WebKit browser e.g. Safari */
  filter: alpha(opacity=100); /* For IE8 and earlier */
}

.content {
  position: relative;
  bottom: 130px;
  text-align: center;
}

.content h2 {
  font-size: 2.5em;
  color: #fff;
  font-family: var(--primary-font);
}

.header img {
  width: 100%;
}

/* end cards ex 1 */

/* start cards ex 2*/

.articles {
  width: 90%;
  margin: 1em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.article {
  position: relative;
  margin: 1em;
  background-color: #418AA2;
}

.article::before, .article::after {
  content: '';
  position: absolute;
  top: 1.25em;
  bottom: 1.25em;
  right: 1.25em;
  left: 1.25em;
  transition: transform ease-out .25s;
}

.article::before {
  transform: scale(0, 1);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.article::after {
  transform: scale(1, 0);
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}
.article:hover::before {
  transform: scale(1.05, 1);
}
.article:hover::after {
  transform: scale(1, 1.05);
}

.article-image {
  max-width: 400px;
  height: 400px;
  display: block;
  transition: opacity ease-out .25s;
}

.article:hover .article-image {
  opacity: 0.4;
}

.article-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0;
  transition: opacity ease-out .25s;
}

.article:hover .article-text {
  opacity: 1;
}

.article-title {
  font-size: 1.5em;
  margin-bottom: 0;
  color: #fff;
}

/* end cards ex 2 */

/* start accordion */

.accordion {
  padding: 20px;
  margin: 2em auto;
  max-width: 900px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.accordion li {
  margin-left: 15px;
}

.accordion-item {
  border-bottom: 1px solid black;
  padding: 20px 0;
}

.item-header {
  padding: 14px 6px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  align-items: center;
}

.item-header:hover i {
  transition: .2s ease-in-out;
  transform: scale(1.4);
}

.title {
  font-size: 20px;
  font-weight: 600;
}

.item-text {
  color: #888;
  padding: 0 6px;
  max-height: 0;
  overflow: scroll;
}

.accordion-item.active .item-text {
  max-height: 600px;
  transition: .4s linear;
}

.bold {
  font-weight: bold;
  color: #494848;
}

/* end accordion*/

/* start section */

section {
  width: 90%;
  margin: auto;
}

.items {
  overflow-x: hidden;
}

.items p {
  text-align: center;
  margin-bottom: 1em;
}

.item {
  display: flex;
  justify-content: space-between;
  margin: 5em 0;
  background-color: #ecf0f1;
  height: 350px;
  transform: translateX(50%);
  -webkit-transform: translateX(50%);
  opacity: 0;
  transition: all .5s ease-in;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.item:nth-child(even){
  flex-direction: row-reverse;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  opacity: 0;
}

.item.appear {
  opacity: 1;
  -moz-opacity: 1; /* Firefox and Mozilla browsers */
  -webkit-opacity: 1; /* WebKit browser e.g. Safari */
  filter: alpha(opacity=100); /* For IE8 and earlier */
  transform: translateX(0);
  -webkit-transform: translateX(0);
}

.item iframe {
  width: 500px;
  height: 350px;
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 60%;
  height: 100%;
}

.text h4 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 1em;
}

.text p {
  margin: 0 1em;
}

.text a {
  background-color: #95a5a6;
  color: #000;
  text-align: center;
  width: 120px;
  padding: 1em;
  margin: 0 auto;
  border-radius: 10px;
}

.text form {
  display: flex;
  flex-direction: column;
  padding: 1em;
  margin: 0 2em;
  height: 100%;
}

.item-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* end section */

/* start form */

.contact-form {
  display: flex;
  justify-content: space-between;
  margin: 5em auto;
  background-color: #ecf0f1;
}

.contact-header {
  width: 100%;
  max-width: 600px;
}

.contact-header img {
  width: 100%;
  height: 100%;
  opacity: .8;
}

.contact-header [alt="booking"]{
  max-width: 500px;
  opacity: 1;
}

.flex-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 500px;
  width: 100%;
  margin: 1em auto;
  padding: 1em;
  background-color: #ecf0f1;
  font-size: 18px;
}

.flex-form h3 {
  margin: 1em;
  text-align: center;
}

.flex-form h4 {
  display: none;
}

.flex-form label {
  margin: 6px;
}

.flex-form input {
  padding: 6px;
}

.border {
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.choix {
  display: flex;
  justify-content: space-evenly;
}

.reservation {
  padding: 2em 0;
}

/* end form */

/* avis */

.inner-width {
  margin: auto;
  padding: 0 20px;
  height: 400px;
  text-align: center;
}

.section-photos {
  padding: 40px 0;
}

.section-photos img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 20px;
  filter: grayscale(100%);
  transition: 0.3s;
  cursor: pointer;
}

.section-photos img:hover,
.section-photos img.active {
  filter: none;
}

.section-contenu {
  max-width: 600px;
  margin: auto;
}

.avis {
  display: none;
}

.avis.active {
  display: block;
}

.avis p {
  color: #5c5c5c;
  margin-bottom: 20px;
}

.avis .description {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 15px;
}
/* avis */

/* end form contact section */

.features {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  padding: 1em 0;
  margin-bottom: 1em;
}

.features p{
  font-size: 18px;
  margin: 15px;
}

.features li {
  margin: 10px;
}

.features li a {
  color: #000;
  font-size: 18px;
}

/* start iframe */

.map {
  background-color: #ecf0f1;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 1em;
  max-height: 470px;
}

.map header {
  padding-top: 1em;
}

.map iframe {
  width: 100%;
  height: 388px;
  padding-top: 1em;
}

/* end iframe */

/* start footer */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap-reverse;
  background: var(--primary-color);
  padding: 20px;
}

footer img {
  height: 150px;
  filter: drop-shadow(0px 5px 3px black);
}

.left-col {
  width: 30%;
  text-align: center;
}

.left-col a {
  color: #000;
  text-decoration: underline;
}

.social{
  padding: 15px 0;
  font-size: 20px;
}

.social a{
  margin: 15px;
  transition: .3s linear;
  text-decoration: none;
  color: black;
}

.social a:hover {
  color: red;
}

.links {
  width: 30%;
  text-align: center;
}

.links a {
  color: black;
}

.links li {
  padding: 8px;
}

.right-col {
  width: 30%;
}

.right-col form {
  display: flex;
  flex-direction: column;
}
.right-col h4 {
  font-size: 1.3em;
  margin-bottom: 1em;
}
.right-col h4::after {
  content: '';
  border: 2px solid var(--secondary-color);
  display: block;
  width: 90px;
  margin-top: 6px;
}

input[type="email"]{
  border: none;
  border-radius: 50px;
  outline: none;
  font-size: 20px;
  font-weight: 300;
  padding: 10px 20px;
}

form .btn {
  border-radius: 50px;
  font-size: 20px;
  cursor: pointer;
  width: 50%;
  margin: 10px auto;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
}

.shine {
  color: rgba(255,255,255,0);
  background-size: 200%, 100%;
  background-color: #000;
  transition: 1.3s;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(
    -72deg,
    transparent 0,
    transparent 5%,
    rgba(0, 255, 255, 0.884),
    rgba(0, 255, 255, 0.986),
    transparent 10%,
    transparent 100%
  );
}

#topBtn {
  background-color: transparent;
  color: var(--secondary-color);
  border: none;
  font-size: 2.5em;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  outline: none;
  transition: transform .3s ease-in-out;
}

@media screen and (max-width: 960px) {
  .description {
    font-size: 1.1em;
  }

  .description h1 {
    font-size: 2.5em;
  }

  .card {
    justify-content: center;
    margin: 30px;
  }
  
  .inner-width {
    height: 560px;
  }

  .contact-form {
    flex-direction: column;
    width: 60%;
  }

  .contact-content {
    width: 90%;
    padding: 1.5em;
    margin: auto;
  }

  .choix {
    padding: 10px 0;
  }

  .text {
    width: 90%;
  }

  .text h4 {
    font-size: 1.2em;
    margin: 20px auto;
  }

  .text a {
    margin: 20px auto;
  }

  .item iframe {
    width: 400px;
  }

  .right-col{
    margin: auto;
    width: 50%;
  }

  .links {
    width: 40%;
  }

  .left-col {
    width: 40%;
  }
}

@media screen and (max-width: 640px) {
  
  .search {
    top: 5px;
    right: 5px;
  }
  
  .search input {
    padding: 6px;
  }
  
  .search a {
    font-size: 16px;
  }

  .lang img{
    height: 15px;
    width: 25px;
  }
  .description {
    font-size: 1em;
  }
  
  .description h1 {
    padding: 1em;
    font-size: 2.5em;
  }

  .description h1::after{
    width: 120px;
  }

  .description p{
    width: 90%;
  }

  .card {
    margin: 1em 0;
  }

  .contact-form {
    width: 90%;
  }

  .contact-content {
    width: 100%;
    padding: 1em;
    margin: auto;
  }

  .flex-form .btn {
    font-size: 16px;
  }

  .item {
    flex-direction: column-reverse;
    height: 500px;
  }
  
  .item:nth-child(even){
    flex-direction: column-reverse;
  }

  .item iframe {
    width: 100%;
    height: 300px;
  }

  .text {
    width: 100%;
  }

  .text h4 {
    font-size: 1.3em;
    padding: 0;
  }

  .text p {
    margin: 5px;
    font-size: 15px;
  }

  .text span {
    font-size: 16px;
    line-height: 1;
  }

  .text a {
    padding: 12px;
  }

  footer {
    justify-content: center;
    flex-direction: column-reverse;
    padding: 20px;
  }

  .left-col {
    width: 100%;
  }

  .links {
    padding: 10px 0;
  }

  .right-col {
    width: 90%;
    padding-top: 10px
  }
  .features p{
    font-size: 14px;
  }
}

  @media screen and (max-width: 400px){
  .card {
    height: 350px;
    margin-bottom: 80px;
  }

  .content h2 {
    font-size: 1.5em;
  }

  .inner-width {
    height: 900px;
  }

  .section-contenu p{
    font-size: 14px;
  }

  .avis .description {
    font-size: 14px;
  }

  .reservation .flex-form label {
    font-size: 14px;
  }

  .article {
    margin: 1em 0;
  }

  .article img {
    width: 350px;
  }
}
