/*
Theme Name: EasyHomeRelax Child
Theme URI: https://easyhomerelax.ch
Description: Thème enfant Divi pour EasyHomeRelax — massage à domicile dans le canton de Vaud.
Author: EasyHomeRelax
Template: Divi
Version: 1.1.5
*/

:root {
  --ehr-coral: #EE5843;
  --ehr-coral-d: #D2442F;
  --ehr-teal: #30998D;
  --ehr-bg: #FAF7F4;
  --ehr-ink: #2B2B2B;
  --ehr-muted: #6B6560;
  --ehr-line: #E7E1DB;
  --ehr-footer: #1E1E1E;
}

body,
.et_pb_css_mix_blend_mode_passthrough {
  background: #fff;
  color: var(--ehr-ink);
}

body,
body p,
.et_pb_text,
.et_pb_text p,
.et_pb_blurb,
.et_pb_blurb p,
.et_pb_toggle,
.et_pb_contact_form,
.et_pb_contact_field input,
.et_pb_contact_field textarea,
.et_pb_pricing_table,
input, textarea, select, button {
  font-family: "Source Sans 3", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.et_pb_button,
.et_pb_menu,
.et_pb_menu li a,
.et-menu li a,
.et_pb_module .et_pb_button,
.eyebrow,
.ehr-num,
.ehr-step-num,
.ehr-price-list .nm,
.ehr-price-list .pr,
.ehr-cities span,
.et-l--header,
.et-l--footer h4 {
  font-family: "Nunito", system-ui, sans-serif;
}

h1, h2 { font-weight: 800; line-height: 1.18; color: #222; }
h3 { font-weight: 700; color: #222; }
h1 em { font-style: normal; color: var(--ehr-teal); }

a { color: var(--ehr-teal); }
.et_pb_text a,
.et-l--footer a { text-decoration: none; }

/* Buttons */
.et_pb_button,
.et_pb_module .et_pb_button,
.et_pb_contact_submit {
  font-family: "Nunito", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
}
.et_pb_button:hover,
.et_pb_module .et_pb_button:hover {
  background-color: var(--ehr-coral-d) !important;
  border-color: var(--ehr-coral-d) !important;
  color: #fff !important;
}

.ehr-ctas .et_pb_button_module_wrapper {
  display: inline-block;
  margin: 0 16px 12px 0 !important;
}

/* Header */
.et-l--header .et_pb_section {
  background: rgba(255, 255, 255, 0.96);
}
.et-l--header .ehr-logo img,
.et-l--header .et_pb_image img {
  height: 34px !important;
  width: auto !important;
  max-height: 34px;
}
.et-l--header .et_pb_menu .et-menu li a,
.et-l--header .et_pb_menu .et-menu-nav li a {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #3A3A3A;
}
.et-l--header .et_pb_menu .et-menu li a:hover,
.et-l--header .et_pb_menu .current-menu-item a {
  color: var(--ehr-teal) !important;
}
.ehr-header-phone {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ehr-ink);
  white-space: nowrap;
}
.ehr-header-phone a { color: inherit; }

/* Hero image */
.ehr-hero-img img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center 40%;
}

/* Trust */
.ehr-trust-title {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  display: block;
}
.ehr-trust-sub { color: var(--ehr-muted); font-size: 14px; line-height: 1.4; display: block; }

/* Cards / numbers */
.ehr-num {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--ehr-coral);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.ehr-step-num {
  font-weight: 800;
  font-size: 56px;
  color: var(--ehr-teal);
  line-height: 1;
  margin-bottom: 18px;
}

/* About */
.ehr-portrait img {
  width: 220px;
  height: 220px;
  max-width: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px var(--ehr-line);
}
.ehr-quote,
blockquote.ehr-quote {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: #333;
  border-left: 2px solid var(--ehr-coral);
  padding-left: 26px;
  margin: 28px 0;
}
.ehr-facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}
.ehr-facts li {
  padding-left: 22px;
  position: relative;
  font-size: 16px;
}
.ehr-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--ehr-coral);
}

/* Cities */
.ehr-cities { margin-top: 26px; }
.ehr-cities span {
  display: inline-block;
  border: 1px solid var(--ehr-line);
  padding: 7px 16px;
  font-weight: 700;
  font-size: 15px;
  background: #fff;
  margin: 0 10px 10px 0;
  color: var(--ehr-ink);
}
.ehr-cities span.main {
  border-color: var(--ehr-teal);
  color: var(--ehr-teal);
}

/* Prices */
.ehr-price-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ehr-price-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ehr-line);
}
.ehr-price-list .nm { font-weight: 700; font-size: 19px; color: #222; }
.ehr-price-list .nm small {
  display: block;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ehr-muted);
  font-size: 15px;
  margin-top: 2px;
}
.ehr-price-list .dots { flex: 1; border-bottom: 1px dotted var(--ehr-line); min-width: 20px; }
.ehr-price-list .pr {
  font-weight: 800;
  font-size: 22px;
  color: var(--ehr-teal);
  white-space: nowrap;
}

.ehr-perks { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.ehr-perk { display: flex; gap: 16px; align-items: flex-start; }
.ehr-perk i {
  flex: none;
  font-family: "Nunito", system-ui, sans-serif;
  font-style: normal;
  font-weight: 800;
  color: var(--ehr-coral);
  font-size: 18px;
  min-width: 52px;
}
.ehr-fine { color: var(--ehr-muted); font-size: 14px; margin-top: 16px; }

.ehr-gift img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 8px;
}

/* Contact band typography already set in modules */
.ehr-contact a { color: #fff; }

/* Footer */
.et-l--footer,
.et-l--footer p,
.et-l--footer li {
  color: #cfc8c2;
  font-size: 15px;
}
.et-l--footer h4 {
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.et-l--footer a { color: #fff; }
.et-l--footer a:hover { color: var(--ehr-teal); }
.et-l--footer .ehr-logo-white img {
  height: 34px !important;
  width: auto !important;
}
.ehr-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 13px;
  color: #9a938d;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.ehr-legal a { color: #cfc8c2; }

.ehr-placeholder {
  border: 1px dashed var(--ehr-line);
  background: var(--ehr-bg);
  padding: 36px 28px;
  text-align: center;
}
.ehr-placeholder h3 { margin-bottom: 8px; }

/* Woo coming-soon must stay untouched; this only polishes logged-in views */

@media (max-width: 980px) {
  .ehr-hero-img img { height: 420px; }
  .ehr-facts { grid-template-columns: 1fr; }
  .ehr-header-phone { display: none; }
}
@media (max-width: 767px) {
  .ehr-hero-img img { height: 300px; }
  .ehr-portrait img { width: 180px; height: 180px; max-width: 180px; }
  .ehr-step-num { font-size: 44px; }
  .ehr-legal { flex-direction: column; }
}


/* Header logo (ehr-header-logo): size stays stable when the lockup file is swapped. */
#ehr-header-logo img,
.et-l--header .ehr-logo img,
.et-l--header #ehr-header-logo img {
  height: 34px !important;
  width: auto !important;
  max-height: 34px;
  max-width: 260px;
  object-fit: contain;
}

/* Draft gift product is hidden — do not show Divi's empty shop "no results". */
.ehr-woo-area .entry,
.ehr-woo-area .not-found-title {
  display: none !important;
}


/* Kill default white module boxes so typography shows on teal, charcoal and beige. */
.et_pb_text,
.et_pb_image,
.et_pb_blurb,
.et_pb_button_module_wrapper,
.et-l--footer .et_pb_module,
.ehr-contact-band .et_pb_module {
  background-color: transparent !important;
}

/* Footer typography on charcoal */
.et-l--footer .et_pb_text,
.et-l--footer .et_pb_text_inner,
.et-l--footer p,
.et-l--footer li {
  color: #cfc8c2 !important;
  background-color: transparent !important;
}
.et-l--footer h4,
.et-l--footer h4 span,
.et-l--footer .et_pb_text_inner h4 {
  color: #fff !important;
}
.et-l--footer a {
  color: #fff !important;
}
.et-l--footer a:hover {
  color: var(--ehr-teal) !important;
}
.et-l--footer ul,
.et-l--footer ol,
.et-l--footer li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.et-l--footer .ehr-legal,
.et-l--footer .ehr-legal-mod {
  background: transparent !important;
}

/* Contact band on teal */
.ehr-contact-band h1,
.ehr-contact-band h2,
.ehr-contact-band .et_pb_text_inner h1,
.ehr-contact-band .et_pb_text_inner h2 {
  color: #fff !important;
}
.ehr-contact-band p,
.ehr-contact-band .et_pb_text_inner,
.ehr-contact-band .et_pb_text {
  color: #F4FFFC !important;
}
.ehr-contact-band a,
.ehr-contact a {
  color: #fff !important;
}

/* Facts: only the coral dash, no default bullets */
.ehr-facts,
.et_pb_text_inner ul.ehr-facts,
.ehr-facts li {
  list-style: none !important;
  padding-left: 0;
}
.ehr-facts li {
  padding-left: 22px;
}

/* Steps / section headings should sit on the section background, not a white card */
.ehr-step,
.ehr-head-c {
  background: transparent !important;
}


/* Footer rows/columns and the contact-band row were painting default white cards. */
footer.et-l--footer .et_pb_row,
footer.et-l--footer .et_pb_column,
footer.et-l--footer .et_pb_module,
footer.et-l--footer .et_pb_text,
footer.et-l--footer .et_pb_text_inner,
footer.et-l--footer .et_pb_image,
.ehr-contact-band .et_pb_row,
.ehr-contact-band .et_pb_column,
.ehr-contact-band .et_pb_module,
.ehr-contact-band .et_pb_text,
.ehr-contact-band .et_pb_text_inner {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Mobile header: logo + menu toggle + CTA on one row when possible */
@media (max-width: 980px) {
  .et-l--header .et_pb_row_1-4_1-2_1-4 {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .et-l--header .et_pb_column_1_4,
  .et-l--header .et_pb_column_1_2 {
    width: auto !important;
  }
}


/* Beat Divi's teal link color on the teal band and charcoal footer. */
body #page-container .ehr-contact-band a,
body #page-container .ehr-contact-band .et_pb_text_inner a,
body #page-container .ehr-contact a {
  color: #ffffff !important;
}
body #page-container footer.et-l--footer a,
body #page-container footer.et-l--footer .et_pb_text_inner a {
  color: #ffffff !important;
}
body #page-container footer.et-l--footer a:hover {
  color: #30998D !important;
}


/* ========== EHR polish v2 ========== */

/* 1. Align desktop content with a 1200px / 40px container (v5).
      Hero stays full-bleed so the photo reaches the right edge;
      only the text column is inset to the header logo edge. */
@media (min-width: 981px) {
  .et-l--header .et_pb_row,
  .et-l--footer .et_pb_row,
  #page-container .et_pb_row {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .ehr-hero > .et_pb_row,
  .ehr-hero .et_pb_row {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .ehr-hero .et_pb_column_0,
  .ehr-hero .et_pb_column_1_2:first-child {
    padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px)) !important;
    padding-right: 40px !important;
  }

  /* 2. Header: phone + Réserver on one line, vertically centered */
  .et-l--header .et_pb_column_2_tb_header,
  .et-l--header .et_pb_column_2_tb_header.et_pb_column {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px;
  }
  .et-l--header .et_pb_text_0_tb_header,
  .et-l--header .ehr-header-phone-mod {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }
  .et-l--header .et_pb_button_0_tb_header_wrapper {
    margin: 0 !important;
  }
}

/* 3. Mobile header: logo + hamburger + compact Réserver, one row */
@media (max-width: 980px) {
  .et-l--header .et_pb_section,
  .et-l--header .et_pb_row,
  .et-l--header .et_pb_row_0_tb_header,
  .et-l--header .et_pb_row_1-4_1-2_1-4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    gap: 8px;
  }
  .et-l--header .et_pb_column,
  .et-l--header .et_pb_column_1_4,
  .et-l--header .et_pb_column_1_2,
  .et-l--header .et_pb_column_0_tb_header,
  .et-l--header .et_pb_column_1_tb_header,
  .et-l--header .et_pb_column_2_tb_header {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
  }
  .et-l--header .et_pb_column_1_tb_header {
    margin-left: auto !important;
  }
  .et-l--header .et_pb_text_0_tb_header,
  .et-l--header .ehr-header-phone-mod,
  .et-l--header .ehr-header-phone {
    display: none !important;
  }
  .et-l--header .et_pb_button,
  .et-l--header .et_pb_button_0_tb_header,
  body #page-container .et-l--header .et_pb_section .et_pb_button_0_tb_header {
    padding: 8px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }
  .et-l--header .et_pb_menu,
  .et-l--header .et_mobile_nav_menu,
  .et-l--header .mobile_nav {
    margin: 0 !important;
    padding: 0 !important;
  }
  .et-l--header .ehr-logo img,
  .et-l--header #ehr-header-logo img,
  .et-l--header .et_pb_image img {
    height: 26px !important;
    max-height: 26px !important;
  }
}

/* 4. Trust row: coral line icons (decorative; text stays editable in Divi) */
.ehr-trust .et_pb_text_inner {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  text-align: left;
}
.ehr-trust .et_pb_text_inner::before {
  content: "";
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  background-size: 34px 34px;
  background-position: center;
}
.ehr-trust .et_pb_column:nth-child(1) .et_pb_text_inner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23EE5843' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3l11 4v8c0 7-5 12-11 14C10 27 5 22 5 15V7z'/%3E%3Cpath d='M11 16l4 4 7-8'/%3E%3C/svg%3E");
}
.ehr-trust .et_pb_column:nth-child(2) .et_pb_text_inner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23EE5843' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15L16 5l12 10'/%3E%3Cpath d='M8 13v14h16V13'/%3E%3Cpath d='M13 27v-8h6v8'/%3E%3C/svg%3E");
}
.ehr-trust .et_pb_column:nth-child(3) .et_pb_text_inner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23EE5843' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='24' height='17' rx='2'/%3E%3Cpath d='M4 13h24M9 20h6'/%3E%3C/svg%3E");
}
.ehr-trust .et_pb_column:nth-child(4) .et_pb_text_inner::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23EE5843' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='10' r='4'/%3E%3Ccircle cx='22' cy='10' r='4'/%3E%3Cpath d='M4 27c0-5 3-9 7-9s7 4 7 9M15 27c0-5 3-9 7-9s7 4 7 9'/%3E%3C/svg%3E");
}

/* 5. Tighter mobile vertical rhythm, closer to v5 (70px sections, tighter hero) */
@media (max-width: 980px) {
  #page-container article .et_pb_section:not(.ehr-hero):not(.ehr-trust):not(.ehr-contact-band),
  #page-container article .ehr-massages,
  #page-container article .ehr-about {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
  #page-container .ehr-contact-band,
  #page-container .et_pb_section.ehr-contact-band,
  #page-container .et_pb_section_7 {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
  .ehr-hero .et_pb_column_0,
  .ehr-hero .et_pb_column_1_2:first-child {
    padding: 46px 22px 56px 22px !important;
  }
  .ehr-hero-img img {
    height: 340px !important;
  }
  .ehr-trust .et_pb_text,
  .ehr-trust .et_pb_text_4,
  .ehr-trust .et_pb_text_5,
  .ehr-trust .et_pb_text_6,
  .ehr-trust .et_pb_text_7 {
    padding: 22px 10px !important;
  }
  .ehr-hero h1,
  .ehr-hero .et_pb_text_inner h1 {
    font-size: 36px !important;
  }
  #page-container h2,
  .et_pb_text_inner h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 767px) {
  .ehr-hero-img img {
    height: 300px !important;
  }
  .ehr-step-num {
    font-size: 42px !important;
    margin-bottom: 10px !important;
  }
  .ehr-card,
  .et_pb_text_10,
  .et_pb_text_11,
  .et_pb_text_12 {
    padding: 28px 4px !important;
  }
}
