/*
Theme Name:  Thème enfant de Hello Elementor
Theme URI:  https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Description:  Theme to support tutsplus tutorial. Child theme for the Hello Elementor theme.
Author:  Ideo Point Com
Textdomain:  ideopointcom
Author URI:  https://www.ideopoint.com/
Template:  hello-elementor
Version:  1.0
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html                 
*/

/*  styles reset  */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
  height: 100%;
  width: 100%;
}

button:active,
button:focus,
button:focus-visible {
  background-color: var(--blue) !important;
}

/*  variables  */
:root {
  --blue: #14396D;
  --text: #4C7F9F;
  --yellow: #FEE023;
  --form-grey-field: #F7F7F7;
  --grey-text-block: #EBEBEB;
  --footer-bg-color: #E8FAFF;
  --footer-text: rgb(112,112,112);
  --font: 'Barlow';

  --nav-text: #FFFFFF;
  --nav-hover: #0d2444;
}

/*  font  */
body {
  font-family: var(--font);
  font-weight: normal;
  height: 100%;
}

/* ### navbar ### */
.nav-menu {
  display: flex;
}

.nav-menu {
  position: fixed;
  width: 100%;
  list-style-type: none;
  background-color: var(--blue);
  z-index: 99;
}

.nav-menu li a {
  display: block;
  color: var(--nav-text);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: 0.5s;
}

.nav-menu li a:hover, .burger:hover {
  background-color: var(--nav-hover);
}

.burger {
  border: none;
  border-radius: 0 !important; 
  font-size: 16px;
  cursor: pointer;
  padding: 14px 16px;
  width: 100%;
  display: none;
  z-index: 99;
}

/* ### structure ### */
.container {
  padding: 0 15px 166px 15px;
}

.content {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  max-width: 1390px;
  padding-top: 36px;
}

/* ### hero ### */
.hero {
  flex: 0.5;
  padding-right: 30px;
}

.hero .logo {
  margin-top: 38px;
  margin-left: 15px;
  width: 218px;
  height: auto;
}

.hero h1 {
  color: var(--blue);
  max-width: 630px;
  font-weight: bolder;
  text-transform: uppercase;
  font-size:42px;
  margin-top:50px;
  margin-bottom:30px;
}

.hero p {
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  width:100%;
  max-width:500px;
}

.hero .img-hero {
  height: 350px;
  max-width: 85%;
  margin: 36px 0;
  position: relative;
  right: 100px;
  object-fit: cover;
}

/* ### form ### */
.form {
    flex: 0.5;
    background-color:white;
    padding:40px 80px;
    border-radius:10px;
    margin-top:115px;
    max-width: 665px;

}

.form .title {
    color:var(--blue);
    text-transform:uppercase;
    font-size:26px;
    line-height:29px;
    display:block;
    width:100%;
    max-width:200px;
}

form {
    margin-top:30px;
}

.form label {
    display: block;
    color:var(--blue);
    margin:5px;
}

.field-wrapper {
  display: flex;
  gap: 4%
}

.form-group {
  margin-bottom: 20px;
}

.field-wrapper .form-group {
  flex: 0.5;
  margin-bottom: 0;
}

input[type="text"], input[type="tel"], input[type="number"], input[type="email"] {
    width: 100%;
    height: 45px;
    background-color: var(--form-grey-field);
    color: black;
    font-size: 16px;
    border: none !important;
    padding-left: 10px;
    border-radius:5px;
}

textarea {
    background-color: var(--form-grey-field);
    color:black;
    width:100%;
    font-size: 16px;
    border: none !important;
    padding-left: 10px;
    padding-top:10px;
    border-radius:5px;
    resize: vertical;
}

.form button {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--yellow);
    color: var(--blue);
    padding: 16px 30px;
    margin-top: 15px;
    border: none;
    float:right;
    cursor: pointer;
    transition: 0.5s;
}

.form button:hover {
    background: var(--blue);
    color: white;
}

/* ### prestation ### */
#prestation .content {
  flex-direction: column;
}

#prestation h2 {
  color: var(--blue);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 28px;
  margin-top: 70px;
}

.horizontal-line-decoration {
  display: block;
  height: 4px;
  width: 95px;
  background-color: #FEE023;
  margin-top: 10px;
}

.grid-prestation {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 40px;
  align-items: stretch;
}

.bloc-prestation {
  min-height: 180px;
  padding: 30px;
  display: flex;
  justify-content: center;
}
 
#bloc-prestation-0 { 
  grid-column: 3 / span 2; 
  grid-row: 1;
}

#bloc-prestation-1 { 
  grid-column: 5 / span 2; 
  grid-row: 1;
}

#bloc-prestation-2 { 
  grid-column: 2 / span 2;
  grid-row: 2;
}

#bloc-prestation-3 { 
  grid-column: 4 / span 2;
  grid-row: 2;
}

#bloc-prestation-4 { 
  grid-column: 6 / span 2;
  grid-row: 2; 
}

.bloc-prestation-img {
  width: 100px;
  align-content: center;
}

.bloc-prestation-img img {
  width: 100%;
  max-width: 95px;
  min-width: 55px;
  height: auto;
}

.bloc-prestation-text {
  display: flex;
  text-align: center;
  align-items: center;
  background-color: var(--grey-text-block);
  box-shadow: 0px 2px 6px #00000029;
  min-width: 130px;
  width: 180px;
}

.bloc-prestation-text h3 {
  color:var(--blue);
  font-size:18px;
  font-weight: 600;
  width: 100%;
}

#bloc-prestation-1 h3 {
  font-size:16px;
}

/* ### footer ### */
footer {
  background-color: var(--footer-bg-color);
}

footer .content {
  flex-direction: column;
  text-align: center;
  padding-bottom: 60px;
}

footer .logo {
  width: 218px;
  height: auto;
  margin: 30px auto 22px;
}

footer p {
  color: var(--footer-text);
  width:100%;
  font-size:14px;
  text-align:center;
  margin-bottom: 5px;
}

/* ### responsiveness ### */
@media screen and (max-width:1599px) {
  
  .hero .img-hero {
    position: block;
    right: 0;
  }
}

@media screen and (max-width:991px) {

  .content {
    flex-direction: column;
  }

  .field-wrapper {
    display: block;
    
  }

  .form {
    min-width: 100%;
    padding: 40px 15px;
    margin-top: 20px;
  }

  .hero {
    flex: 1;
  }

  .hero h1 {
    font-size:36px;
    margin-top:40px;
    margin-bottom:20px;
    max-width: 100%;
  }

  .hero p {
    font-size:20px;
  }

  .hero .img-hero {
    max-width: 100%;
    height: auto;
  }

  .grid-prestation {
    display: grid;
    grid-template-columns: repeat(2, 3fr);
    gap: 0;
    margin-top: 20px;
    max-width: 100%;
  }

  #bloc-prestation-0 { 
    grid-column: auto; 
    grid-row: 1;
  }

  #bloc-prestation-1 { 
    grid-column: auto; 
    grid-row: 1;
  }
  #bloc-prestation-2 { 
    grid-column: auto;
    grid-row: 2;
  }

  #bloc-prestation-3 { 
    grid-column: auto;
    grid-row: 2;
  }

  #bloc-prestation-4 { 
    grid-column: auto;
    grid-row: 3; 
  }

  .bloc-prestation {
    justify-content:start;
  }

  .bloc-prestation-img {
    width: 150px;
    align-content: center;
  }

  .bloc-prestation-img img {
    width: 100%;
    min-width: 120px;
    height: auto;
  }

  .bloc-prestation-text {
    width: 100%;
    text-align: start;
    padding: 20px;
  }
}

@media screen and (max-width:767px) {

  .burger {
    position: fixed;
    display: block;
    background-color: var(--blue);
    color: white;
    text-align: end;
  }

  .menu-item {
    display: none;
  }

  .open {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 46px;
  }

  .open li {
    display: block;
  }

  #prestation {
    padding-right: 0;
  }

  .grid-prestation {
    display: grid;
    grid-template-columns: repeat(1, 3fr);
    gap: 0;
    margin-top: 20px;
    max-width: 100%;
  }

  #bloc-prestation-0 { 
    grid-column: auto; 
    grid-row: 1;
    padding-right: 15px;
  }

  #bloc-prestation-1 { 
    grid-column: auto; 
    grid-row: 2;
    padding-right: 15px;
  }
  #bloc-prestation-2 { 
    grid-column: auto;
    grid-row: 3;
    padding-right: 15px;
  }

  #bloc-prestation-3 { 
    grid-column: auto;
    grid-row: 4;
    padding-right: 15px;
  }

  #bloc-prestation-4 { 
    grid-column: auto;
    grid-row: 5;
    padding-right: 15px;
  }

  .bloc-prestation-img {
    width: 100%;
  }

  .bloc-prestation-img img {
    width: 100%;
    max-width: 120px;
    min-width: 15px;
    height: auto;
  }

  .bloc-prestation-text {
    width: 100%;
    text-align: start;
    padding: 20px;
  }
}