/* Layout changes for the captured WordPress homepage. */
#ea-accueil.home2 {
  --home2-ink: #42392c;
  --home2-gold: #735323;
  --home2-rule: #d8c7a6;
}

#ea-accueil.home2 #info-dialog[data-dialog-kind="guides"] h3 {
  margin: 18px 0 5px;
  color: #765727;
  font: 500 17px/1.4 EAHomeCinzel, Georgia, serif;
}

#ea-accueil.home2 .home-banner-slogan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  align-items: end;
  gap: 3px 28px;
}

#ea-accueil.home2 .home2-slogan-copy {
  display: contents;
}

#ea-accueil.home2 .home2-slogan-copy h1 {
  grid-column: 1 / -1;
  min-width: 0;
}

#ea-accueil.home2 .home2-slogan-copy p {
  margin: 0;
  color: #fffaf0;
  font: 550 clamp(16px, 1.6vw, 22px)/1.45 var(--sans);
  text-shadow: 0 2px 10px #172719;
  text-wrap: pretty;
}

#ea-accueil.home2 .home2-jumps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-block: 16px 0;
  border-block: 1px solid var(--home2-rule);
  padding-block: 7px;
  color: #485d4b;
  font: 550 13px/1.45 var(--sans);
}

#ea-accueil.home2 .home2-jumps a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 7px;
  padding: 6px 5px;
  text-align: center;
}

#ea-accueil.home2 .home2-jumps a + a {
  border-left: 1px solid #b7a27340;
}

#ea-accueil.home2 .home2-jumps a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#ea-accueil.home2 .home2-jumps svg {
  flex: none;
  width: 12px;
  height: 12px;
  color: #967846;
}

#ea-accueil.home2 main :is(h2, h3) { text-wrap: balance; }
#ea-accueil.home2 main p { text-wrap: pretty; }

#ea-accueil.home2 .home2-products {
  padding-block: clamp(28px, 4vw, 50px);
}

#ea-accueil.home2 .home2-products .section-heading {
  align-items: baseline;
}

#ea-accueil.home2 .home2-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 18px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--home2-rule);
}

#ea-accueil.home2 .home2-product-tabs button {
  min-height: 44px;
  padding: 8px 4px;
  color: var(--home2-ink);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: 650 15px/1.4 var(--sans);
}

#ea-accueil.home2 .home2-product-tabs [aria-selected="true"] {
  border-bottom-color: var(--home2-gold);
  color: var(--home2-gold);
}

#ea-accueil.home2 .home2-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
}

#ea-accueil.home2 .home2-product-grid[hidden] {
  display: none;
}

#ea-accueil.home2 .home2-product a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: clamp(12px, 2.2vw, 22px) 9px;
  color: var(--home2-ink);
  border: 1px solid var(--home2-rule);
  border-radius: 20px 7px;
  background: #fbf8f0;
  text-align: center;
}

#ea-accueil.home2 .home2-product a:hover {
  border-color: #8b6c3c;
}

#ea-accueil.home2 .home2-product img {
  display: block;
  width: min(100%, 132px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #bea777;
  border-radius: 50%;
  margin-bottom: 4px;
}

#ea-accueil.home2 .home2-product span {
  color: #645740;
  font: 550 13px/1.35 var(--sans);
  text-wrap: balance;
}

#ea-accueil.home2 .home2-product h3 {
  margin: 0;
  color: var(--home2-gold);
  font: 550 clamp(16px, 1.6vw, 21px)/1.25 EAHomeCinzel, Georgia, serif;
}

#ea-accueil.home2 .service-grid > .service-card {
  align-self: stretch;
  min-width: 0;
}

#ea-accueil.home2 .service-learning .learning-path-button > b svg,
#ea-accueil.home2 .learning-dialog-actions .button svg {
  display: block;
  width: 14px;
  height: 14px;
}

#ea-accueil.home2 .patient-portal :is(small, em) {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  #ea-accueil.home2 .home-photo-banner { height: 276px; }
  #ea-accueil.home2 .home-banner-slogan {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 28px;
  }
  #ea-accueil.home2 .home2-slogan-copy { display: block; }
  #ea-accueil.home2 .home2-slogan-copy p { margin-top: 7px; }
  #ea-accueil.home2 .home2-products .section-heading { display: block; }
  #ea-accueil.home2 .home2-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  #ea-accueil.home2 .home2-jumps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #ea-accueil.home2 .home2-jumps a:nth-child(4n + 1) { border-left: 0; }
  #ea-accueil.home2 .home2-jumps a:nth-child(n + 5) { border-top: 1px solid #b7a27340; }
}

@media (max-width: 540px) {
  #ea-accueil.home2 .home2-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ea-accueil.home2 .home2-jumps a:nth-child(2n + 1) { border-left: 0; }
  #ea-accueil.home2 .home2-jumps a:nth-child(n + 3) { border-top: 1px solid #b7a27340; }
  #ea-accueil.home2 .collection-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  #ea-accueil.home2 .collection-card > :is(.collection-picture, .collection-visual),
  #ea-accueil.home2 .collection-card h3,
  #ea-accueil.home2 .collection-card > .home2-family-intro,
  #ea-accueil.home2 .home2-forms { grid-area: auto; }
  #ea-accueil.home2 .collection-card > :is(.collection-picture, .collection-visual) {
    justify-self: start;
    margin: 0 0 6px;
  }
}
