/* Formulaire Elementor existant des fiches produit (modèle 1815).
   La grille reste lisible même si sa feuille Elementor est chargée tard. */

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element-cc4a95c > .e-con-inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(30px, 5vw, 70px);
  width: min(calc(100% - 48px), 1160px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 46px);
  border: 1px solid #dce4ed;
  border-radius: 18px;
  background: #fff;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element-cc4a95c > .e-con-inner > :is(.elementor-element-4b945b7, .elementor-element-a3eaec4) {
  --width: auto;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro {
  max-width: none;
  margin: 0;
  font-family: inherit;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro .csp-header {
  margin-bottom: 15px;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro h2 {
  font-size: clamp(27px, 2.5vw, 35px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro .csp-text {
  max-width: 48ch;
  margin: 0 0 24px;
  color: #526176;
  font-size: 15px;
  line-height: 1.6;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro .csp-block {
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid #dce4ed;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro .csp-block h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

body.ecoch-fiche-produit .ecop-original-content #contact-side-pro .csp-block li {
  margin-bottom: 5px;
  color: #526176;
  line-height: 1.5;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #f7f9fb;
  box-shadow: none;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 .elementor-form-fields-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  margin: 0;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 .elementor-field-group {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 15px;
  padding: 0;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 :is(.elementor-field-type-textarea, .elementor-field-type-acceptance, .elementor-field-type-submit) {
  grid-column: 1 / -1;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 .elementor-field-group > label {
  margin: 0 0 6px;
  color: #10213c;
  font-size: 13px;
  font-weight: 650;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #cad6e4;
  border-radius: 7px;
  background: #fff;
  color: #10213c;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 textarea {
  min-height: 114px;
  resize: vertical;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 :is(input, select, textarea):focus-visible {
  outline: 2px solid #2e73bd;
  outline-offset: 2px;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 .elementor-field-type-acceptance .elementor-field-subgroup label {
  display: inline;
  color: #526176;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 button[type="submit"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 18px;
  border: 0;
  border-radius: 7px;
  background: #102750;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
  transition: background-color .2s ease;
}

body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 button[type="submit"]:hover {
  background: #204987;
  transform: none;
}

@media (max-width: 850px) {
  body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element-cc4a95c > .e-con-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 600px) {
  body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element-cc4a95c > .e-con-inner {
    width: calc(100% - 28px);
    padding: 22px 18px;
    border-radius: 12px;
  }
  body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 {
    padding: 18px;
  }
  body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 .elementor-form-fields-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ecoch-fiche-produit .ecop-original-content .elementor-1815 .elementor-element.elementor-element-741e69b1 :is(input, select, textarea, button[type="submit"]) {
    transition: none;
  }
}

/* ===== Fiches 0.2.4 : bloc contact en une seule carte, aligné sur l'en-tête ===== */
body.ecoch-fiche-produit .ecop-original-content .e-con-inner:has(> .e-con-full #contact-side-pro) {
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 30px 60px -48px rgba(10, 26, 58, .4);
}
body.ecoch-fiche-produit .ecop-original-content .e-con-inner:has(> .e-con-full #contact-side-pro) .elementor-widget-form {
  border: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 1247px) {
  body.ecoch-fiche-produit .ecop-original-content .e-con-inner:has(> .e-con-full #contact-side-pro) { width: calc(100% - 28px); }
}
@media (max-width: 640px) {
  /* Sur téléphone, le formulaire prend toute la largeur de la carte (moins de marges empilées). */
  body.ecoch-fiche-produit .ecop-original-content .e-con-inner:has(> .e-con-full #contact-side-pro) { width: 100%; padding: 24px 16px !important; }
  body.ecoch-fiche-produit .ecop-original-content .e-con-inner:has(> .e-con-full #contact-side-pro) > .e-con-full { --padding-left: 0px; --padding-right: 0px; padding-left: 0 !important; padding-right: 0 !important; }
  body.ecoch-fiche-produit .ecop-original-content .e-con-inner:has(> .e-con-full #contact-side-pro) .elementor-widget-form { padding: 0 !important; }
}

/* Même sobriété que le haut de fiche : pas de trait décoratif au-dessus du titre « Un expert vous répond ». */
body.ecoch-fiche-produit .ecop-original-content #contact-side-pro .csp-line { display: none; }
