/*
Theme Name: Aponem
Version: 1.0
Description: Thème créé pour Gîte Aponem.
Author: Maxime Van De Plassche
*/

/* -------------------- RESET -------------------- */

body{font-size:62.5%;}
body,h1,h2,h3,p{margin:0;}
a{text-decoration:none;}
ul,ol{margin:0;padding:0;list-style:none;}
h1,h2,h3{font-weight:normal;}
img{width:100%;height:auto;}
input,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-border-radius:0px;-moz-border-radius:0px;border-radius:0px;border:none;resize:none;outline:none;}
a {color:#000;}

/* -------------------- LAYOUT -------------------- */

.content {
    margin-left: 230px;
}
html, body, .fullscreen {
    height: 100%;
}
.grid {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px 40px 40px;
}
.grid:after {
  content: "";
  display: table;
  clear: both;
}
*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
[class*='col-'] {
  float: left;
  padding-right: 20px;
}
.col-1-4 {
  width: 25%;
}

/* -------------------- ELEMENTS -------------------- */

.btn {
    display: block;
    width: 185px;
    height: 55px;
    line-height: 55px;
    vertical-align: center;
    text-align: center;
    background-color: #fff;
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    color: #48393D;
    margin: auto;
    border: 1px solid #4D3300;
    position: relative;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}
.btn:before {
    content: '';
    height: 2px;
    width: 0;
    position: absolute;
    left: 0;
    bottom: -1px;
    display: block;
    background-color: #4D3300;
    -webkit-transform: 50% 50%;
    -moz-transform: 50% 50%;
    -ms-transform: 50% 50%;
    transform: 50% 50%;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}
.btn:hover {
    background-color: transparent;
    border-color: transparent;
}
.btn:hover:before {
    width: 100%;
}
.left-block {
    width: 440px;
    position: relative;
    top: 15%;
    left: -17%;
    background-color: #fff;
    padding: 40px 40px;
}
.right-block {
    width: 440px;
    position: relative;
    top: 15%;
    right: -20%;
    float: right;
    background-color: #fff;
    padding: 40px 40px;
}
.contact-img,
.review-img,
.tarifs-img,
.visite-img {
    width: 100%;
    height: 72px;
    background-size: cover;
}
.contact-img {
    background: url('/wp-content/themes/aponem/images/home.jpg') no-repeat center center;
}
.review-img {
    background: url('/wp-content/themes/aponem/images/home.jpg') no-repeat center center;
}
.tarifs-img {
    background: url('/wp-content/themes/aponem/images/home.jpg') no-repeat center center;
}
.visite-img {
    background: url('/wp-content/themes/aponem/images/home.jpg') no-repeat center center;
}

/* -------------------- TEXT -------------------- */

.left-block h2,
.right-block h2,
.page-txt h1 {
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 2.6em;
    font-weight: 500;
    color: #4D3300;
    line-height: 32px;
    margin: 0 20px 25px 0;
}
.page-txt h1 {
    margin-top: 65px;
    max-width: 852px;
}
.left-block p,
.right-block p,
.page-txt p {
    font-family: 'Cardo', arial, sans-serif;
    font-size: 2em;
    color: #4A4A4A;
    line-height: 27px;
    margin: 0 20px 25px 0;
}
.page-txt p {
    max-width: 852px;
}
.page-txt a {
    color: #4D3300;
    -webkit-transition: all .2s;
    -moz-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s;
}
.page-txt a:hover {
    color: #4A4A4A;
}

/* -------------------- SIDEBAR -------------------- */

.logo {
    font-family: 'Great Vibes', arial, sans-serif;
    font-size: 5em;
    text-align: center;
    margin: 80px 0 40px 0;
}
.logo a {
    color: #4D3300;
}
.logo .stars {
    font-size: 0.5em;
}
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 230px;
    background: #fff;
    z-index: 888;
    -webkit-transition: opacity .25s ease-in-out;
    -moz-transition: opacity .25s ease-in-out;
    -o-transition: opacity .25s ease-in-out;
    transition: opacity .25s ease-in-out;
}
.sidebar .nav ul {
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.8em;
    text-align: center;
    line-height: 40px;
}
.sidebar .nav li {
    margin-bottom: 15px;
}

/* -------------------- HOME -------------------- */

.home-base {
    height: 100%;
    width: 100%;
    background: url('/wp-content/themes/aponem/images/home.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
}
.home-base h1 {
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 4.2em;
    font-weight: 500;
    text-align: center;
    color: #fff;
    position: relative;
    top: 50%;
    width: 100%;
}
.home-base a {
    position: absolute;
    bottom: 10px;
}
.home-visit {
    height: 100%;
    margin-left: 17%;
    background: url('/wp-content/themes/aponem/images/salon.jpg') no-repeat center center;
    background-size: cover;
}
.home-plus {
    height: 210px;
}
.home-plus img {
    vertical-align: middle;
    width: auto;
}
.home-plus p {
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.6em;
    color: #A6874B;
    line-height: 20px;
    margin-left: 20px;
    vertical-align: middle;
    display: inline-block;
}
.home-plus .col-1-4 {
    height: 210px;
    line-height: 210px;
}
.home-tourism {
    height: 100%;
    width: 83%;
    background: url('/wp-content/themes/aponem/images/st-leon.jpg') no-repeat center center;
    background-size: cover;
}

/* -------------------- VISITE DES LIEUX -------------------- */

.wp-block-image {
    padding-right: 20px;
    padding-bottom: 20px;
    aspect-ratio: 4/3;
}

/* -------------------- TARIFS -------------------- */

.rates-and-availability {
    display: flex;
    justify-content: flex-start;
}
.wpsbc-container {
    max-width: 300px;
    margin: 0 0 0 80px;
}
.rates {
    max-width: 400px;
    margin: 40px 0 0 20px;
    border-collapse: collapse;
}
.rates td,
.rates th {
    border-bottom: 1px solid black;
    padding: 10px 20px 10px 20px;
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.4em;
    color: #4A4A4A;
    text-align: left;
}
.rates tr:last-of-type td {
    border: 0;
}
.rates th,
.rates tr:last-of-type td {
    font-weight: 500;
}

/* -------------------- REVIEWS -------------------- */

.comments-container {
    margin: 0 0 60px 0;
    font-family: 'Cardo', arial, sans-serif;
    color: #4A4A4A;
}
.comments-container .comments-number {
    margin: 0 0 30px 0;
    font-size: 2em;
}
.comments-container .comment-meta {
    font-size: 1.5em;
}
.comments-container .comment-text {
    font-size: 1.8em;
}
.comments-container .comment-body {
    margin: 0 0 20px 0;
}
.comment-respond h2 {
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 2em;
    color: #4D3300;
    font-weight: 500;
    margin: 0 0 30px 0;
}

/* -------------------- CONTACT -------------------- */

.contact-form,
.reviews {
    max-width: 680px;
    margin: 0 40px 0 100px;
    padding-left: 40px;
}
.contact-form p:first-of-type {
    font-family: 'Cardo', arial, sans-serif;
    font-size: 1.5em;
    color: #4A4A4A;
    line-height: 27px;
    margin-bottom: 30px;
}
.contact-form label,
.reviews label {
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.4em;
    color: #48393D;
    display: block;
}
.contact-form p:nth-of-type(2),
.contact-form p:nth-of-type(3) {
    display: inline-block;
}
.contact-form p:nth-of-type(2) {
    margin-right: 20px;
}
.contact-form p:nth-of-type(3) {
    float: right;
}
.contact-form input,
.reviews input {
    width: 100%;
    max-width: 283px;
    height: 40px;
    background-color: #F3F3F3;
    margin: 10px 0 40px 0;
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    color: #4A4A4A;
    padding: 0 20px 0 20px;
}
.contact-form textarea,
.reviews textarea {
    width: 100%;
    max-width: 638px;
    height: 250px;
    background-color: #F3F3F3;
    margin: 10px 0 40px 0;
    font-family: 'Montserrat', arial, sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    color: #4A4A4A;
    padding: 25px 25px 25px 25px;
}
.contact-form .wpcf7-submit,
.reviews #submit {
    cursor: pointer;
    height: 60px;
    width: 186px;
    text-transform: uppercase;
    font-weight: 500;
    background-color: #fff;
    border: 1px solid #4D3300;
    display: block;
    margin: auto auto;
    color: #48393D;
}
.wpcf7-not-valid {
    border: 1px solid #FF0000;
}
.wpcf7-not-valid-tip {
    font-family: 'Cardo', arial, sans-serif;
    color: #FF0000;
    font-size: 15px !important;
    position: relative;
    bottom: 30px;
}
.wpcf7 form .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    margin: 0 0 0 230px;
    padding: 0 0 0 80px;
    line-height: 72px;
    vertical-align: center;
    font-family: 'Montserrat', arial, sans-serif;
    font-weight: 400;
    font-size: 1.6em;
    color: #fff;
    background-color: #00A969;
    border: none;
    z-index: 999;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background-color: #FF0000;
    border: none;
}
.contact-map {
    margin-top: 80px;
}
#map {
    width: 100%;
    height: 355px;
}

/* -------------------- 404 -------------------- */

.error {
    margin-top: 20%;
    text-align: center;
    padding: 0 40px 0 40px;
}
.error h1,
.error p {
    max-width: 100%;
    margin-right: 0;
}

/* -------------------- MENU ICON -------------------- */

.menu-icon-container {
    position: fixed;
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    background: #fff;
    z-index: 999;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}
.menu-icon {
    width: 33px;
    height: 30px;
    position: relative;
    margin: 50px auto;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}
.menu-icon span {
    display: block;
    position: absolute;
    height: 7px;
    width: 100%;
    background: #000;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
.menu-icon span:nth-child(1) {
    top: 0px;
}
.menu-icon span:nth-child(2),
.menu-icon span:nth-child(3) {
    top: 12px;
}
.menu-icon span:nth-child(4) {
    top: 24px;
}
.menu-icon.open span:nth-child(1) {
    top: 12px;
    width: 0%;
    left: 50%;
}
.menu-icon.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}
.menu-icon.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.menu-icon.open span:nth-child(4) {
    top: 12px;
    width: 0%;
    left: 50%;
}

/* -------------------- MEDIA QUERIES -------------------- */

@media screen and (max-width: 1100px) {

    .sidebar {
       visibility: hidden;
       opacity: 0;
       width: 100%;
    } 
    .logo {
       margin: 80px 0 30px 0;
    }
    .sidebar.toggled {
       visibility: visible;
       opacity: 1;
    }
    .menu-icon-container {
       display: flex;
    }
    .content {
       margin-left: 0px;
    }
    .wpcf7 form .wpcf7-response-output,
    .wpcf7 form.failed .wpcf7-response-output,
    .wpcf7 form.aborted .wpcf7-response-output {
        margin: 0 0;
    }
    .contact-form,
    .reviews {
        margin: 0 40px 0 15px;
    }

}
@media screen and (max-width: 900px) {

    .home-plus .col-1-4 {
        height: 105px;
        line-height: 105px;
        width: 50%;
    }
    .contact-form p:nth-of-type(3) {
        float: none;
    }
    .rates-and-availability {
        display: block;
    }
    .wpsbc-container {
    margin: 40px 0 0 20px;
    }

}
@media screen and (max-width: 500px) {

    .home-visit {
        margin-left: 0;
        height: auto;
    }
    .home-tourism {
        width: 100%;
    }
    .left-block {
        width: 100%;
        position: relative;
        left: 0;
    }
    .right-block {
        width: 100%;
        position: relative;
        right: 0;
    }
    .home-plus {
        display: none;
    }
    .gallery-item {
        width: 100%;
    }
    .rates {
        margin: 40px 20px 0 0;
    }
    .contact-form p:nth-of-type(2) {
        margin-right: 0;
    }

}
