/*
 Theme Name:   MUAB - ET
 Theme URI:    https://muab.fr
 Description:  Description child thème
 Author:       Abdou
 Author URI:   https://muab.fr
 Template:     twentytwentyone
 Version:      1.0.0
*/

/* --------------------------------------------
    VARIABLES
-------------------------------------------- */

:root {
    /* COLOR */
    --global--color-black: #000;
    --global--color-dark-gray: #28303d;
    --global--color-gray: #39414d;
    --global--color-light-gray: #7a7878;
    --global--color-ocre: #c53f00;

    /* Font Size */
    --global--font-size-base: 16px;
    --global--font-size-xs: 14px;
    --global--font-size-sm: 16px;
    --global--font-size-md: 17px;
    --global--font-size-lg: 18px;
    --global--font-size-xl: 2.25rem;
    --global--font-size-xxl: 4rem;
    --global--font-size-xxxl: 5rem;
    --global--font-size-page-title: var(--global--font-size-xxl);
    --global--letter-spacing: normal;

    --latest-posts--title-font-size: 14px;

}

/* --------------------------------------------
    BASE CHILD THEME GLOBAL CSS
-------------------------------------------- */

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* font-size: 62.5%; */
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  /* font-family: 'Cheltenham-Normal'; */
  font-family: 'Georgia';
  color: var(--global--color-black);
  scroll-behavior: smooth;
}
body.no-scroll{
    overflow: hidden;
}
@-moz-document url-prefix() {
  html {
    scroll-behavior: auto;
  }
}

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

img {
  border: 0;
  -ms-interpolation-mode: bicubic;
  image-rendering: optimizeQuality;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  max-width: 100%;
  height: auto !important;
}

a {
    outline: none !important;
    cursor: pointer;
    text-underline-offset: none;
    text-decoration-skip-ink: all;
}

a:hover {
    text-decoration: none;
    text-decoration-style: inherit;
    text-decoration-skip-ink: none;
}
a:active {
    outline: none;
}
a:focus {
    -moz-outline-style: none;
    outline: none;
    text-decoration: none;
    background: none;
}
a:active, a:focus, li:focus, li:active {
    outline: none !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    user-select: none;
    background: none;
    background-color: transparent;
}


a:focus:not(.wp-block-button__link):not(.wp-block-file__button) {

    /* Only visible in Windows High Contrast mode */
    outline: none;
    text-decoration: none;
    text-decoration-skip-ink: none;
    background: none;
}

.grecaptcha-badge { visibility: hidden; }


.wrapper{
    overflow: auto;
    overflow-x: hidden;
}

/* --------------------------------------------
    CSS
-------------------------------------------- */

#breadcrumbs {
  a {
    color: var(--global--color-dark-gray);
  }
}

/************** TOP BAR **********/

.top-bar {
  padding: 10px 0;
  .logo-site {
    img {
      width: 130px;
      max-width: 130px;
    }
  }
  .bloc-menus {
    width: 100%;
    border-bottom: 5px solid var(--global--color-ocre);
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    .menu-desktop {
      a {
        color: var(--global--color-gray);
        text-decoration: none;
        font-size: 1.5rem;
      }
    }
    .menu-burger{
      position: relative;
      width: 36px;
      height: 32px;
      display: block;
      margin-top: 9px;
      &:before,
      &:after{
        content: '';
        width: 36px;
        height: 4px;
        left: 0;
        top:  0;
        background: var(--global--color-ocre);
        display: block;
        position: absolute;
        -webkit-transition: all 0.3s linear;
        -moz-transition: all 0.3s linear;
        -ms-transition: all 0.3s linear;
        -o-transition: all 0.3s linear;
        transition: all 0.3s linear;
      }
      &:after{
        top: inherit;
        bottom: 0;
      }
      span {
        content: '';
        width: 100%;
        height: 4px;
        left: 0;
        top:  50%;
        margin-top: -2.5px;
        background: var(--global--color-ocre);
        display: block;
        position: absolute;
        -webkit-transition: all 0.3s linear;
        -moz-transition: all 0.3s linear;
        -ms-transition: all 0.3s linear;
        -o-transition: all 0.3s linear;
        transition: all 0.3s linear;
        opacity: 1;
      }
      &.active {
        span {
          opacity: 0;
        }
        &:before{
          -webkit-transform: rotate(45deg);
          -moz-transform: rotate(45deg);
          -o-transform: rotate(45deg);
          transform: rotate(45deg);
          top: 12px;
          border-radius: 3px;
        }
        &:after{
          -webkit-transform: rotate(-45deg);
          -moz-transform: rotate(-45deg);
          -o-transform: rotate(-45deg);
          transform: rotate(-45deg);
          top: 12px;
          border-radius: 3px;
        }
      }
    }
  }
}
body.menu-open {
  .bloc-menus {
    border-bottom: 5px solid transparent;
  }
}

#bloc-navigation-mobile {
  position: fixed;
  top: 85px;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: 110;
  background: var(--global--color-ocre);
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  -ms-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  transition: all 0.3s linear;
  &.active {
    left: 0;
  }
  .content-menu-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    height: 100%;
    overflow: hidden;
    .scroll{
      overflow: scroll;
      height: 100%;
      padding: 40px 20px 20px 20px;
      #site-navigation {
        a {
          color: #fff;
          text-decoration: none;
          font-size: 1.5rem;
        }
      }
    }
  }
}

/********* page-content *****************/

.page-content {
  padding: 50px 0;
}

.post-mea {
  .post-mea-img {
    img {
      filter: grayscale(1);
    }
  }
  .mea-excerpt {
    a {
      color: var(--global--color-gray);
    }
  }
}
.cards-items-home {
  margin-top: 70px;
  .item-post-card {
    .post-media {
      filter: grayscale(1);
      min-height: 300px;
      margin-bottom: 15px;
    }
    h3 {
      a {
        color: var(--global--color-dark-gray);
        text-decoration: none;
      }
    }
    .post-excerpt {
      a {
        color: var(--global--color-gray);
      }
    }
  }
}

/**************  content-single-page *******/

.content-single-page{
  padding: 50px 0;
  .post-title {
    margin-bottom: 20px;
    h1 {
      color: var(--global--color-dark-gray);
    }
    .post-date {
      font-size: .9rem;
      color: var(--global--color-light-gray);
    }
  }
}

/************** PAGE SIMPLE *************/

.page-simple {
  img {
    filter: grayscale(1);
  }
}


/************* PAGE CONTACT  **************/

.page-template.page-contact .content-post h2{
    color: #ffb601;
}

.wpforms-container {
  .wpforms-field{
    margin-bottom: 10px;
  }
  .wpforms-submit-container {
    padding-top: 30px !important;
    button[type=submit] {
      background-color: var(--global--color-ocre) !important;
      &:hover,
      &:active,
      &:focus {
        outline: none !important;
        background-color: var(--global--color-ocre) !important;
        &:after {
          border: none !important;
        }
      }
    }
  }
  input[type=text],
  input[type=email],
  textarea {
    font-size: 24px;
    line-height: 28px;
    border-radius:  10px;
    border:  none;
    padding: 30px 34px;
    color: #000;
  }
  .wpforms-form .choices .choices__inner,
  .wpforms-field.wpforms-field-select-style-classic select{
    border-radius:  10px;
    border:  none;
    padding: 18px 34px;
    font-size: 24px;
    line-height: 28px;
    color: #000;
    height: 60px;
  }
  input[type=text]::placeholder,
  input[type=email]::placeholder,
  textarea::placeholder{
    color: #000 !important;
    opacity: 1;
    font-weight: normal;
  }
  input[type=text]::-webkit-input-placeholder,
  input[type=email]::-webkit-input-placeholder,
  textarea::-webkit-input-placeholder{
    color: #000 !important;
    opacity: 1;
    font-weight: normal;
  }
  input[type=text]:-moz-placeholder,
  input[type=email]:-moz-placeholder,
  textarea:-moz-placeholder{
    color: #000 !important;
    opacity: 1;
    font-weight: normal;
  }
  input[type=text]:-moz-placeholder,
  input[type=email]:-moz-placeholder,
  textarea:-moz-placeholder{
    color: #000 !important;
    opacity: 1;
    font-weight: normal;
  }
  input[type=text]:-ms-input-placeholder,
  input[type=email]:-ms-input-placeholder,
  textarea:-ms-input-placeholder{
    color: #000 !important;
    opacity: 1;
    font-weight: normal;
  }
  input[type=text]::-ms-input-placeholder,
  input[type=email]::-ms-input-placeholder,
  textarea::-ms-input-placeholder{
    color: #000 !important;
    opacity: 1;
    font-weight: normal;
  }
  .wpforms-confirmation-container-full,
  div[submit-success]>.wpforms-confirmation-container-full {
    color: #fff;
    margin: 0;
    padding: 0;
    font-size: 24px;
    line-height: 28px;
    background: none;
    border: none;
    text-align: center;
  }
}

/************** PAGE ACTUALITES ***********/

#list-element {
  .element {
    margin-bottom: 20px;
  }
  .item-element {
    background: #fff;
    /* -webkit-box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.36);
    box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.36); */
    height: 100%;
    width: 100%;
    .image-element{
      height: 315px;
      filter: grayscale(1);
    }
    .content-element {
      padding: 20px;
      .titre-element {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 20px;
      }
      .excerpt-element {
        margin-bottom: 20px;
        p {
          margin-bottom: 20px;
        }
      }
      .guid-element{
        a {

        }
      }
    }
  }
}

.content-image-element{
     padding: 25px;
}

.row-flex {
  display: flex;
  flex-wrap: wrap;
}

/************* NEWSLETTER *********/
.section-newsletter {
  .content-newsletter {
    border-top: 5px solid var(--global--color-ocre);
    padding: 30px 0 10px 0;
  }
}

.page-contact {
  .section-newsletter {
    display: none;
  }
}
/**************  FOOTER ***********/

.footer-page {
  .content-footer {
    border-top: 5px solid var(--global--color-ocre);
    padding: 30px 0;
    .bloc-logo {
      img {
        width: 100px;
      }
    }
    .links {
      a {
        color: var(--global--color-dark-gray);
      }
    }
    .copyright {
      font-size: .9rem;
      color: var(--global--color-dark-gray);
    }
  }
}

