/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* SINGLE POST */
.single-post .ct-media-container {
  max-height: 480px;
}
 
/* Stackable image block */
.essential .wp-block-stackable-image figure {
  position: relative;
}

/* .essential .wp-block-stackable-image figure figcaption{
  position: absolute;
  bottom: 0;
  padding: 16px 20px;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
} */

.essential .wp-block-stackable-image figure figcaption a {
  color: #fff !important;
    position: absolute;
  bottom: 0;
  padding: 16px 20px;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}



.essential .wp-block-stackable-image figure figcaption a::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.essential .wp-block-stackable-image figure figcaption a::before {
  content: "→";
  position: absolute;
  bottom: 16px;
  right: 20px;
}

 /* Wrapper général */
#gform_wrapper_1 {
  font-family: inherit;
}

.gform_heading {
  display: none !important;
}

/* Masquer le thème orbital par défaut */
#gform_wrapper_1.gform-theme--orbital {
  --gf-ctrl-border-color: transparent;
  --gf-radius: 0;
}

/* Labels : uppercase + espacement */
#gform_1 .gfield_label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 6px;
  display: block;
}

/* Masquer "(Nécessaire)" */
#gform_1 .gfield_required {
  display: none;
}

/* Inputs et textarea : fond beige, coins arrondis */
#gform_1 input[type="text"],
#gform_1 input[type="email"],
#gform_1 input[type="tel"],
#gform_1 textarea {
  --gf-local-height: 48px;
  background: #f0ebe0 !important;
  border: none !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 12px 16px !important;
  width: 100% !important;
  font-size: 16px;
  line-height: 1.2 !important;
  color: #1a1a1a;
  resize: none;
}

#gform_1 input[type="text"]::placeholder,
#gform_1 input[type="email"]::placeholder,
#gform_1 input[type="tel"]::placeholder,
#gform_1 textarea::placeholder {
  color: #a89f8c;
}

#gform_1 input[type="text"]:focus,
#gform_1 input[type="email"]:focus,
#gform_1 input[type="tel"]:focus,
#gform_1 textarea:focus {
  background: #e8e2d4 !important;
  outline: none !important;
}

/* Espacement entre les champs */
#gform_1 .gform_fields {
  row-gap: 20px !important;
}

#gform_1 .gfield {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Description du champ textarea */
#gform_1 .gfield_description {
  display: none;
}

/* Bouton ENVOYER */
#gform_1 .gform_button {
  background-color: #c8a96a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 16px 24px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  margin-top: 8px;
}

#gform_1 .gform_button::before {
  content: "✉";
  font-size: 16px;
  display: inline-block;
}

#gform_1 .gform_button::after {
  content: none;
}

#gform_1 .gform_button:hover,
#gform_1 .gform_button:focus {
  background-color: #b8933e !important;
  --gf-local-bg-color: #b8933e;
  --gf-local-border-color: transparent;
  --gf-local-color: #fff;
  --gf-local-outline-color: #c8a96a;
  --gf-local-outline-width: 2px;
}

/* Footer du formulaire */
#gform_1 .gform_footer {
  padding: 0 !important;
  margin-top: 8px;
}

/* Checkbox */
#gform_1 input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border: 2px solid #c8a96a !important;
  border-radius: 3px !important;
  background: #fff !important;
  cursor: pointer;
  position: relative !important;
  box-shadow: none !important;
  outline-offset: 2px;
}

#gform_1 input[type="checkbox"]:checked {
  background: #c8a96a !important;
  border-color: #c8a96a !important;
}

#gform_1 input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  display: block;
}

#gform_1 input[type="checkbox"]::before {
  color: #c8a96a !important;
}

#gform_1 input[type="checkbox"]:focus {
  outline: 2px solid #c8a96a !important;
  outline-color: #c8a96a !important;
}


/* ================================================
   Google Reviews — Override plugin styles
   ================================================ */

/* Card */
.wp-gr:not(.wp-dark) .grw-review-inner.grw-backgnd,
.grw-review-inner.grw-backgnd {
  background: #f5f1eb !important;
  border-radius: 12px !important;
  padding: 28px !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* Reorder : étoiles → texte → auteur */
.grw-review-inner .rpi-stars              { order: 1; margin-bottom: 16px; }
.grw-review-inner .rpi-flx.rpi-col4       { order: 2; margin-bottom: 20px; width: 100% !important; }
.grw-review-inner .rpi-flx.rpi-row12-center { order: 3; }
.grw-review-inner > svg                   { display: none !important; }

/* Étoiles — couleur or */
.grw-review .rpi-stars {
  --star-color: #c8a96a;
  color: #c8a96a;
  font-size: 20px;
}

/* Masquer la photo de profil */
.grw-review .grw-img-wrap {
  display: none !important;
}

/* Bloc nom + label */
.grw-review .rpi-flx.rpi-col6 {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

/* Nom de l'auteur */
.grw-review .wp-google-name {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
  line-height: 1.4;
}

/* Remplacer la date par "Avis Google" */
.grw-review .wp-google-time {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}
.grw-review .wp-google-time::before {
  content: "Avis Google";
  font-size: 13px;
  color: #8a8070;
  font-weight: 400;
  line-height: 1.4;
}

/* Zone du texte */
.grw-review .wp-google-feedback.grw-scroll {
  overflow: visible !important;
  max-height: none !important;
}

/* Texte de l'avis — italique */
.grw-review .wp-google-text {
  font-style: italic !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #1a1a1a !important;
}

/* Guillemets français */
.grw-review .wp-google-text::before { content: "« "; }
.grw-review .wp-google-text::after  { content: " »"; }

.wp-gr .wp-google-powered {
  display: none !important;
}

/* Custom review header - homepage */
.widget-review .wp-gr .wp-google-list .grw-header-inner {
  padding: 0px !important;
}

.widget-review .grw-header-inner .rpi-flx{
  display: flex !important;
  flex-direction: row !important;
  justify-content: end;
  padding-right: 40px;
}

.widget-review .wp-block-stackable-column:first-child {
  border-right: 1px solid #2e2e2e !important;
}

@media (max-width: 768px) {
  .widget-review .wp-block-stackable-column:first-child {
    border-right: none !important;
  }

  .widget-review .grw-header-inner .rpi-flx {
    justify-content: center;
    padding-right: 0;
  }
}

/* HEADER */
.ct-header-cta {
  position: relative;
}

.ct-header-cta a {
  padding-left: 40px;
}

.ct-header-cta::before {
  content: "";
  display: inline-block;
  width: 14px;
  position: absolute;
  left: 14px;
  z-index: 1;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%232E2E2E' d='M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}