/*
Theme Name: Travaux.Alsace
Theme URI: 
Author: Atadisp
Author URI: 
Description: 
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travaux-alsace
Tags: full-site-editing

.picto90 img {
    min-width: 90px !important;
}
.picto160 img {
    min-width: 160px !important;
}

.wp-block-cp-cool-flipbox-block .cfb-block-flip-front .cfb-block-flip-content {
  height: 100%;
}
.wp-block-cp-cool-flipbox-block .cfb-block-flip-front .cfb-block-flip-content .cfb-block-img {
  object-fit: cover;
}
.wp-block-cp-cool-flipbox-block .cfb-block-flip-front .cfb-block-front-title {
  margin: auto 0;
}

/* ---------- Style spécifique par page ---------- */

.picto90 img {
    min-width: 90px !important;
}
.picto160 img {
    min-width: 160px !important;
}

.wp-block-cp-cool-flipbox-block .cfb-block-flip-front .cfb-block-flip-content {
  height: 100%;
}
.wp-block-cp-cool-flipbox-block .cfb-block-flip-front .cfb-block-flip-content .cfb-block-img {
  object-fit: cover;
}
.wp-block-cp-cool-flipbox-block .cfb-block-flip-front .cfb-block-front-title {
  margin: auto 0;
}

/* ---------- Style spécifique par page ---------- */
/* Home */
.page-id-6 .footer_border, .page-id-538 .footer_border {
  background-color: var(--wp--preset--color--light-gray) !important;
}
.home_hero_banner_top img {
  max-width: 100%;
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
}
.home_hero_banner_bottom img {
  max-width: 100%;
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
}

.is-layout-constrained {
  padding: 0 15px;
}

.header-logo img {
  width: 200px;
}

/* a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
} */
.wp-block-tiptip-hyperlink-group-block {
  text-decoration: none !important;
}

.picto_home img {
  width: 90px;
  max-width: 90px;
  min-width: 90px;
}
.mascotte_home img {
  width: 50vw;
}

.gform_required_legend {
  display: none;
}

.card_service figure {
  flex: 0 0 180px;
}
/*
* -------- FORMULAIRE ---------
*/
.gform-theme--framework .gf_page_steps, .gform-theme--framework .gf_progressbar_wrapper {
  justify-content: center;
}
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-style-square.gfield--image-choice-appearance-card .gchoice:where(:has(input:checked))::after {
  inset-block-start: 10px !important;
  inset-inline-end: 10px !important;
}
.gform-theme--framework .gfield--type-image_choice .gfield-choice-image {
  padding: 20px;
}
.gform-theme--framework .gfield--type-choice.field_description_above.gfield--no-description:where(:not(.field_validation_above.gfield_error):not(:has(.gfield_choice_limit_message))) .gform-field-label:where(:not([class*=gform-field-label--type-])), .gform-theme--framework .gfield--type-choice.field_description_below:where(:not(.field_validation_above.gfield_error):not(:has(.gfield_choice_limit_message))) .gform-field-label:where(:not([class*=gform-field-label--type-])),
.gform-theme--framework .gfield_list_group_item::before, .gform-theme--framework .gform-field-label:where(:not([class*=gform-field-label--type-])) {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 30px;
  text-align: center;
  justify-self: center;
}
.gform-theme--framework .gfield--type-image_choice .gfield_checkbox, .gform-theme--framework .gfield--type-image_choice .gfield_radio {
  justify-content: center;
}
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-appearance-card .gfield-image-choice-wrapper-outer {
  background: #e8e9eb;
}
.gform-theme--foundation .gform_footer, .gform-theme--foundation .gform_page_footer {
  justify-content: center;
  margin-block-start: 60px !important;
}

.gform-theme--framework .small_input .gform-field-label:where(:not([class*=gform-field-label--type-])) {
  justify-self: flex-start !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  margin-bottom: 5px !important;
}

.gform_wrapper {
  --gf-ctrl-btn-bg-color-primary: #f0a501 !important;
  --gf-field-pg-steps-number-bg-color-complete: #f0a501 !important;
  --gf-field-pg-steps-number-border-color-complete: #f0a501 !important;
  --gf-field-pg-steps-number-bg-color-active: #e8e9eb !important;
  --gf-field-pg-steps-number-border-color-active: #e8e9eb !important;
  --gf-field-img-choice-card-check-ind-bg-color: #f0a501 !important;
  --gf-ctrl-choice-check-color: #f0a501 !important;
  --gf-ctrl-outline-color-focus: rgba(240, 164, 1, 0.65) !important;
  --gf-ctrl-border-color-focus: #f0a501 !important;
  --gf-ctrl-accent-color: #f0a501 !important;

  --gf-color-primary: #f0a501 !important;
  --gf-color-primary-darker: #feb71b !important;
  --gf-color-primary-lighter: #ffdd94 !important;
}

.wp-block-cover, .wp-block-cover-image {
    padding: 0;
    align-items: normal;
}

@media (max-width: 768px) {
  .header-logo img {
    width: 120px;
  }
  .home_hero_txt {
    margin-top: 30px !important;
  }
  .hp_item {
    flex-direction: column;
  }
  .hp_item p {
    order: 2 !important;
    text-align: center !important;
  }
  .card_service {
    margin-bottom: 30px !important;
  }
  .card_service > div {
    flex-direction: column-reverse;
  }
  .card_service .wp-block-image {
    width: 100%;
  }
  .card_service .wp-block-image img {
    object-fit: cover;
    width: 100%;
    height: 250px;
  }
  .card_service > div > div {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}