/* RESET */
*{
  all: unset;
  display: revert;
}

/* FONT */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* SETUP CONTAINER */
.container{
  margin: 0 auto;
}

/* GRID VIEW */


/* SETUP BASE */
body{
  color: #272727;
}
a{
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}
P{
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}
h1, h2, h3, h4, h5, h6{
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
h1{
  font-size: 3rem;
}
h2{
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #D2AA7E;
}
.btn{
  background-color: #D2AA7E;
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-radius: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  display: inline-block;
}
.btn:hover{
  animation-name: btn-animation;
  animation-duration: 2s;
}
@keyframes btn-animation {
  from {background-color: #D2AA7E;}
  to {background-color: #907656;}
}
.link{
  color: #907656;
}
.link:hover{
  color: #D2AA7E;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding-top: 2rem;
}
.nav__logo {
  font-size: 1.5rem;
  margin: auto 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
.nav__menu ul {
  margin: 0;
  padding: 0;
  display: flex;
}
.nav__menu ul li {
  list-style: none;
}
.nav__menu ul li a {
  text-decoration: none;
  color: #fff;
  padding: 1rem;
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}
.nav__menu li:hover {
  transition: background-color 2s;
}
.nav__menu li:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.nav__hamburger {
  width: 1.875rem;
  height: 1.313rem;
  display: none;
  flex-direction: column;
  justify-content: space-around;
  position: absolute;
  top: 2.5rem;
  right: 1rem;
}
.nav__hamburger__line {
  height: 0.188rem;
  width: 100%;
  background-color: #fff;
  border-radius: 0.625rem;
  transition: all ease-in-out 0.2s;
}

/* PAGE HEADER */
.page-header{
  background: url(../images/header-bg.jpg), rgba(0, 0, 0, .5);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-title{
  padding: 4rem 0 4rem 0;
  text-align: center;
  color: #fff;
}

/* FOOTER */
footer{
  padding-top: 3rem;
  margin-bottom: 3rem;
}

/* SECTION HERO */
.section-header{
  position: relative;
  height: 100vh;
}
.hero-container {
  position: absolute;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  z-index: -2;
}
.hero{
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#background-video {
  bottom: 0;
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: -1;
  overflow: hidden;
}
.hero-content{
  text-align: center;
  color: #fff;
}
.hero-legend{
  font-size: 1.5rem;
}

/* SECTION CONTENT */
.section{
  display: flex;
  gap: 2rem;
  margin-top: 6.25rem;
  justify-content: center;
  align-items: center;
}
.section .img{
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: auto;
  min-height: 350px;
  border-radius: .5rem;
}
.section .youtube-video{
  width: 100%;
  height: auto;
  min-height: 350px;
  border-radius: .5rem;
}
.section .content{
  padding: 2rem 0 2rem 0;
  width: 100%;
}
.section .content .btn{
  margin-top: 1.5rem;
}

/* SECTION A PROPOS */
.section-a-propos .img{
  background-image: url(../images/a-propos.png);
}

/* SECTION PORTFOLIO */
.section-portfolio{
  flex-direction: row-reverse;
}
.section-portfolio .img{
  background-image: url(../images/portfolio.png);
}

/* PAGE GALERIE */
.galerie{
  margin-top: 6.25rem;
}
.galerie h2{
  display: none;
}
table{
  display: flex;
  justify-content: center;
  padding-left: .5rem;
  padding-right: .5rem;
}
tbody{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
}
.galerie-row-1{
  grid-area: 1 / 1 / 2 / 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem; 
}
.galerie-row-2{
  grid-area: 2 / 1 / 3 / 2; 
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem; 
}
.galerie-row-3{
  grid-area: 3 / 1 / 4 / 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
}
img.galerie-img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  overflow: hidden;
}

/* PAGE CONTACT */
.contact{
  margin-top: 6.25rem;
}
.contact p{
  margin-bottom: 1rem;
}
form{
  margin-top: 4.5rem;
}
input{
  border: 1px solid #D2AA7E;
  border-radius: .25rem;
  padding: .5rem;
}
.nom-container{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.prenom, .nom, .message{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.message{
  margin-bottom: 1.5rem;
}
textarea{
  border: 1px solid #D2AA7E;
  border-radius: .25rem;
  min-height: 8rem;
  padding: .5rem;
}
.submit{
  background-color: #D2AA7E;
  color: #fff;
  padding: 1rem 1.5rem 1rem 1.5rem;
  border-radius: 1rem;
  cursor: pointer;
}
.submit:hover{
  background-color: #907656;
}

/* MEDIA QUERIES */
@media screen and (max-width: 576px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__menu {
    display: none;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav__menu ul {
    flex-direction: column;
    width: 100%;
    padding: 5rem 0 0.6rem;
  }
  .nav__menu ul li {
    text-align: center;
  }
  .nav__menu ul li a {
    padding: 0.5rem;
    font-size: 1.5rem;
  }
  .nav__menu {
    z-index: -1;
  }
  .nav__menu.active {
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #D2AA7E;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
  }
  .nav__hamburger.active{
    z-index: 5;
  }
  .nav__hamburger.active :nth-child(1) {
    transform: rotate(45deg) translate(0.45rem, 0.1875rem);
  }
  .nav__hamburger.active :nth-child(2) {
    opacity: 0;
  }
  .nav__hamburger.active :nth-child(3) {
    transform: rotate(-45deg) translate(0.45rem, -0.1875rem);
  }
  .section .img{
    border-radius: 0;
  }
  .section .content h2, .section .content p{
    padding: 0 .5rem 0 .5rem;
  }
  .btn{
    margin-left: .5rem;
  }
  .contact{
    padding-left: .5rem;
    padding-right: .5rem;
  }
}
@media only screen and (min-width: 576px){
  .container{
      max-width: 540px;
  }
  tbody{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
  }
  .galerie-row-1{
    grid-area: 1 / 1 / 2 / 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem; 
  }
  .galerie-row-2{
    grid-area: 2 / 1 / 3 / 2; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem; 
  }
  .galerie-row-3{
    grid-area: 3 / 1 / 4 / 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
  }
  .galerie-coll-1{
    grid-area: 1 / 1 / 2 / 2;
  }
  .galerie-coll-2{
    grid-area: 1 / 2 / 2 / 3;
  }
  .galerie-coll-3{
    grid-area: 1 / 3 / 2 / 4;
  }
  img.galerie-img{
    height: 100%;
  }
}
@media screen and (max-width: 768px) {
  footer{
    margin-bottom: 2rem;
  }
  .section{
    margin-top: 4.5rem;
  }
  .section-a-propos{
    flex-direction: column-reverse;
  }
  .section-portfolio{
    flex-direction: column-reverse;
  }
  .section-services{
    flex-direction: column-reverse;
  }
  .galerie{
    margin-top: 4.5rem;
  }
  .contact{
    margin-top: 6.25rem;
  }
}
@media only screen and (min-width: 768px){
  .container{
      max-width: 720px;
  }
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
  [class*="col-"] {
    float: left;
    padding: 15px;
  }
  .contact{
    display: flex;
  }
  form{
    margin-top: 0;
  }
}
@media only screen and (min-width: 992px){
  .container{
      max-width: 960px;
  }
}
@media only screen and (min-width: 1200px){
  .container{
      max-width: 1140px;
  }
}
@media only screen and (min-width: 1400px){
  .container{
      max-width: 1320px;
  }
}
