/**
Theme Name: Agir Energy
Author: Artefact Design
Author URI: https://artefactdesign.fr/
Description: Designed for Agir Energy
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agir-energy
Template: astra
*/

/********************************==============   
============= HEADER
==============*******************************/

.site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container {
  max-width: none;
}
/********************************==============   
============= GENERAL
==============*******************************/

a.wp-block-button__link:hover,
a.uagb-buttons-repeater:hover,
button:hover {
  transform: scale(1.05);
}

.wp-block-gallery img:hover {
  transition: all ease 0.5s;
  transform: scale(1.05);
}

.uagb-post-grid .uagb-post__image img{
  height: 270px!important;
  object-fit: cover;
}

.uagb-post__inner-wrap > h4.uagb-post__text {
  font-size: 1.1em;
}

/********************************==============   
============= HELPERS
==============*******************************/

.prefix-tag {
  display: inline-block;
  width: auto !important;
}

.ast-header-button-1 .ast-custom-button {
  display: flex;
  align-items: center;
}

.ast-header-button-1 .ast-custom-button::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url(./assets/img/Icon-eclair.png) center no-repeat;
  background-size: contain;
  display: inline-block;
}

.ast-header-button-1:hover .ast-custom-button::before {
  width: 0;
}

.wp-block-uagb-image-gallery.partners img {
    max-height: 120px;
    object-fit: contain;
}

/********************************==============   
============= ARCHIVE PROJETS
==============*******************************/
p.rounded-prefix {
  display: inline-block;
  width: auto !important;
  margin-bottom: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.archive .ast-article-post .ast-article-inner,
.blog .ast-article-post .ast-article-inner,
.archive .ast-article-post .ast-article-inner:hover,
.blog .ast-article-post .ast-article-inner:hover {
  border-radius: 0;
}

.agir-projet-types {
  position: absolute;
  margin-top: -90%;
}

.agir-projet-type-tag {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 2px;
  background-color: #fce5d3;
  color: var(--ast-global-color-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/****** FILTERS WPC *****/
/*Chips container*/
.post-type-archive-projet
  .wpc-filters-main-wrap
  .wpc-filters-section:not(.wpc-filter-terms-count-0)
  ul.wpc-filters-labels {
  justify-content: center;
}

/*chips*/
.post-type-archive-projet
  .wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-item
  label,
.post-type-archive-projet
  .wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-item
  label
  span.wpc-filter-label-wrapper {
  border-radius: 0;
  background-color: var(--ast-global-color-7);
  border-color: var(--ast-global-color-7);
  color: var(--ast-global-color-2);
}

.post-type-archive-projet
  .wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-item
  label
  span.wpc-filter-label-wrapper {
  padding: 10px 18px;
}

.wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item label a {
  color: inherit;
}

body.post-type-archive-projet
  .wpc-filters-main-wrap
  .wpc-filters-labels
  li.wpc-term-item
  input
  + label:hover
  a {
  color: var(--ast-global-color-1);
}

body.post-type-archive-projet
  .wpc-filters-main-wrap
  input.wpc-label-input:checked
  + label {
  border-color: var(--ast-global-color-2);
}

body.post-type-archive-projet
  .wpc-filters-main-wrap
  input.wpc-label-input:checked
  + label
  span.wpc-filter-label-wrapper {
  background-color: var(--ast-global-color-2);
}

.post-type-archive-projet
  .wpc-filters-labels
  li.wpc-term-count-0:not(.wpc-has-not-empty-children)
  label,
body.post-type-archive-projet
  .wpc-filters-main-wrap
  li.wpc-term-count-0:not(.wpc-has-not-empty-children)
  label {
  opacity: 0.9;
}

/*selected chips*/
.post-type-archive-projet .wpc-custom-selected-terms ul.wpc-filter-chips-list {
  justify-content: center;
}

/********************************==============   
============= SINGLE PROJET
==============*******************************/

.single-projet .taxonomy-type_projet.has-link-color {
  display: inline-block;
  width: auto !important;
  margin: 2px;
  z-index: 2;
}

.projet-metas {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.projet-metas .meta {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1 calc(50% - 15px);
  min-width: 90px;
  gap: 6px;
  font-size: 13px;
}

.projet-metas svg,
.projet-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--ast-global-color-0);
}

@media screen and (min-width: 910px) {
  .projet-metas .meta {
    font-size: 14px;
  }
}

/********************************==============   
============= third parties
==============*******************************/
/*forminator*/

.forminator-ui.forminator-custom-form[data-design="material"]:not(
    .forminator-size--small
  ) {
  margin: 0;
}

.forminator-ui.forminator-custom-form[data-design="material"]
  .forminator-input--wrap
  input {
  background: rgba(255, 255, 255, 0.7) !important;
}

.forminator-design--material .forminator-label[class*="forminator-floating-"] {
  z-index: 99;
  position: relative;
}

/*spectra adjustements*/

.uagb-post__inner-wrap .uagb-post__text {
  position: relative;
}

span.uagb-post__taxonomy.highlighted {
  position: absolute;
  top: -280px;
}

span.uagb-post__taxonomy.highlighted a {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

.uagb-post-grid .uagb-post__title {
  padding-top: 20px;
}

.uagb-post-grid.uagb-post__items.is-carousel .projet-metas {
  margin-left: 20px;
  margin-right: 20px;
}

.uagb-post-grid .uagb-post__image {
  overflow: hidden;
}
.uagb-post-grid .uagb-post__image:hover img {
  transform: scale(1.05);
  transition: all ease 0.5s;
}

/********************************==============   
============= 
==============*******************************/

/**Patch CSS Safari mobile bg fixed*/
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    [style*="background-position: fixed"] {
      background-attachment: scroll !important;
    }

    @media screen and (min-width: 320px) and (max-width: 768px) {
      [style*="background-position: fixed"] {
        background-attachment: scroll !important;
      }

      /* Pour les déclarations directes en CSS */
      * {
        background-attachment: scroll !important;
      }
    }
  }
}
