/*
 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;

    /*** PMP ********/

    --pmpro--color--accent: var(--global--color-black) !important;
    --pmpro--color--accent--variation:  var(--global--color-black) !important;

}

/* --------------------------------------------
    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 {
  height: 100%;
}
html,
body {
  /* font-family: 'Cheltenham-Normal'; */
  font-family: 'Georgia';
  color: var(--global--color-black);
  scroll-behavior: smooth;
}
body {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  &.no-scroll{
    overflow: hidden;
  }
}
#page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#content {
  flex: 1;
}
#colophon {
  margin-top: auto;
}

@-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;
    color: var(--global--color-dark-gray);
}

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;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--global--color-dark-gray);
}
/* --------------------------------------------
    CSS
-------------------------------------------- */

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

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

.top-bar {
  padding: 0 0 10px 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background: #fff;
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 0) 100%);

  .container {
    position: relative;
    .border-top {
      width:100%;
      height: 3px;
      top: 0;
      left: 0;
      margin-bottom: 10px;
      background-color: var(--global--color-black);
    }

  }
  .logo-site {
    img {
      width: 130px;
      max-width: 130px;
    }
  }

  .bloc-menus {
    width: 100%;
    -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;
    position: relative;
    .menu-desktop {
      margin-bottom: 10px;
      position: relative;
      a {
        color: var(--global--color-gray);
        text-decoration: none;
        font-size: 1.2rem;
      }
      .buttons-member {
        position: absolute;
        right: 0;
        bottom: -70px;
      }
    }
    .menu-burger{
      position: relative;
      width: 36px;
      height: 32px;
      display: block;
      &:before,
      &:after{
        content: '';
        width: 36px;
        height: 4px;
        left: 0;
        top:  0;
        background: var(--global--color-black);
        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-black);
        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;
        }
      }
    }
    &:after {
      content: '';
      width: 100%;
      height: 2px;
      position: absolute;
      left: 0;
      bottom: 0;
      background: var(--global--color-black);
      @media screen and ( max-width: 767px ) {
        display: none;
      }
    }
  }
}
body.menu-open {
  .bloc-menus {
    border-bottom: 5px solid transparent;
  }
}

#bloc-navigation-mobile {
  position: fixed;
  top: 100px;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: 110;
  background: var(--global--color-black);
  -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;
        }
        .bt-espace-membre {
          margin-top: 20px;
        }
      }
      .buttons-member {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
        a {
          color: black !important;
          background: #fff;
        }
      }
    }
  }
}

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

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

.intro-home {
  p {
    font-size: 19px;
    line-height: 21px;
  }
}
.post-mea {
  padding-top: 30px;
  h2 {
    a {
      text-decoration: none;
    }
  }
  .post-mea-img {
    /* img {
      margin-top: 13px;
      width: 78%;
      max-width: 100% !important;
    } */
     height: 100%;
    .image-element {
      height: 100%;
      position: relative;
      a {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
      }
    }
  }
  .mea-excerpt {
    a {
      color: var(--global--color-gray);
    }
  }
}
.cards-items-home {
  margin-top: 70px;
  .item-post-card {
    margin-bottom: 30px;
    /* .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);
      }
    }
  }
}

a.voir-plus {
    background-color: var(--global--color-black);
    color: #fff !important;
    &:hover,
    &:active,
    &:focus {
      background-color: var(--global--color-black) !important;
    }
    border-radius: 4px;
  }

/**************  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 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-black) !important;
      &:hover,
      &:active,
      &:focus {
        outline: none !important;
        background-color: var(--global--color-black) !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: var(--global--color-black);
  }
  .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;
  }
}

div.wpforms-container-full .wpforms-confirmation-container-full {
  background: transparent;
  border: 1px solid var(--global--color-black)
}
div.wpforms-container-full .wpforms-confirmation-container-full,
div.wpforms-container-full pre{
  white-space: normal;
}
.wpforms-confirmation-container-full {
  font-size: 20px;
}
.wpforms-container {
    .wpforms-submit-container {
        padding-top: 10px !important;
    }
}

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

#list-element {
  border-top: 1px solid var(--global--color-dark-gray);
  .element {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 0;
    position: relative;
    border-right: 1px solid var(--global--color-dark-gray);
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 15px;
      right: 15px;
      height: 1px;
      background: var(--global--color-dark-gray);
    }
    &.last-col {
      border-right: none;
    }
    &.last-row::after {
      display: none;
    }
    @media screen and (max-width: 767px) {
      width: 100%;
      border-right: none;
    }
  }
  .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;
      margin-bottom: 20px;
      margin-top: 20px;
      position: relative;
       a {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          color: var(--global--color-dark-gray);
          text-decoration: none;
        }
      /* filter: grayscale(1); */
    }
    .content-element {
      padding: 0 0 20px 0;
      .titre-element {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 15px;
         a {
          color: var(--global--color-dark-gray);
          text-decoration: none;
        }
      }
      .excerpt-element {
        p {
          margin-bottom: 20px;
        }
      }
      .guid-element{
        a {
          color: var(--global--color-dark-gray);
        }
      }
    }
  }
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  a, a:hover, a:active, a:focus {
    font-size: 13px;
    display: inline-block;
    margin-bottom: 4px;
    color: #fff;
    text-decoration: none;
    background: var(--global--color-gray) !important;
    border-radius: 4px;
    padding: 2px 6px;
  }
}
.paginationS {
  text-align: center;
  margin-top: 30px;
}
.paginationS .lds-dual-ring{
    display: none;
}

    .paginationS a{
      background-color: var(--global--color-black);
      color: #fff !important;
      &:hover,
      &:active,
      &:focus {
        background-color: var(--global--color-black) !important;
      }
    }
    .paginationS.loading a {
      display: none;
    }
    .paginationS.loading .lds-dual-ring{
        display: block;
    }


.lds-dual-ring {
  display: inline-block;
  width: 70px;
  height: 70px;
  margin:  0 auto;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 54px;
  height: 54px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--global--color-dark-gray);
  border-color: var(--global--color-dark-gray) transparent var(--global--color-dark-gray) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

/*************  page-revue-de-presse *************/

.page-revue-de-presse {
  a {
    color: var(--global--color-dark-gray);
  }
}
/************* NEWSLETTER *********/
.section-newsletter {
  .content-newsletter {
    border-top: 2px solid var(--global--color-black);
    padding: 30px 0 10px 0;
  }
}

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

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

/**************  BTN ***********/

.btn {
   background-color: var(--global--color-black);
  color: #fff !important;
  &:hover,
  &:active,
  &:focus {
    background-color: var(--global--color-black) !important;
  }
  border-radius: 4px;
  border: none;
}


/**************** PMP  *********/

.wp-block-pmpro-account-links-section {
  ul {
    margin: 0;
    padding: 0;
  }
}
.pmpro-member-navigation {
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
    li {
      margin-bottom: 5px;
      a {
        text-decoration: none;
      }
    }
    .current-menu-item > a {
      font-weight: 700;
    }
    .current-menu-item {
      .sub-menu {
        padding-left: 15px;
      }
    }
  }
}

.pmpro_actions_nav-right {
  display: none;
}

#pmpro_billing-memberships,
#pmpro_order_list {
  h2 {
    display: none;
  }
  .pmpro_section_content {
    h2 {
      display: block;
    }
  }
}

.bt-espace-membre {
  a {
    span {
      border-radius: 4px;
      padding: 5px 10px;
      background-color: var(--global--color-light-gray);
      color: #fff;
    }
  }
}
