.household-signed-in .site-header .header-utility,
.household-signed-in .site-header .mobile-actions,
.household-signed-in .home-public > .welcome { display: none; }
.household-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  order: 2;
  margin-left: auto;
  color: var(--ink);
}
.household-controls > a,
.household-account > summary {
  width: var(--ui-control-min);
  height: var(--ui-control-min);
  display: grid;
  place-items: center;
  border-radius: var(--ui-radius-circle);
  color: inherit;
  cursor: pointer;
}
.household-account { position: relative; }
.household-account > summary { list-style: none; }
.household-account > summary::-webkit-details-marker { display: none; }
.household-account > summary > svg {
  width: 34px;
  height: 34px;
  padding: 6px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--ui-radius-circle);
}
.household-account-panel {
  position: absolute;
  z-index: 60;
  top: 100%;
  right: 0;
  width: min(270px, calc(100vw - var(--space-4)));
  display: grid;
  padding: var(--space-2);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--ui-radius-dropdown);
  box-shadow: var(--shadow);
}
.household-account-panel > strong {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-1);
  overflow-wrap: anywhere;
}
.household-account-panel > :is(a,button) {
  display: flex;
  align-items: center;
  min-height: var(--ui-control-min);
  text-align: left;
  background: transparent;
  border: 0;
  font: var(--font-body);
  color: inherit;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}
.household-account-panel > :is(a,button):hover { text-decoration: underline; }
.household-controls > a:hover,
.household-account > summary:hover { background: var(--soft); }
.household-home :focus-visible,
.household-controls :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.household-home.container {
  margin-inline: auto;
  width: min(calc(100% - 2 * var(--space-4)), 1296px);
  max-width: none;
  padding: var(--space-3) 0 var(--space-4);
}
.household-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.household-home h2 {
  font-size: var(--font-size-section);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading);
  margin: 0;
}
.household-open {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--ui-control-min);
  padding-inline: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--ui-radius-button);
  font-weight: var(--font-weight-semibold);
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.household-cards {
  display: grid;
  grid-template-columns: minmax(0,2.43fr) repeat(4,minmax(0,1fr));
  gap: var(--space-2);
  padding: 4px 3px var(--space-1);
  margin-inline: -3px;
}
.household-cards > a {
  min-width: 0;
  min-height: 156px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius-card);
  background: var(--white);
  box-shadow: var(--hero-download-shadow);
}
.household-cards > a:hover,
.household-open:hover { border-color: var(--cyan); }
.household-identity {
  display: grid;
  grid-template-columns: minmax(0,1fr) 34%;
  overflow: hidden;
}
.household-identity > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2);
}
.household-identity strong { font-size: var(--font-size-subheading); line-height: var(--line-height-heading); }
.household-identity small { color: var(--sub); }
.household-identity > i {
  display: grid;
  place-items: center;
  padding: var(--space-2);
  background: var(--pale);
}
.household-identity > i img { width: 100%; height: auto; max-width: 84px; }
.household-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-2);
  line-height: var(--line-height-heading);
}
.household-stat img { width: 38px; height: 38px; margin-bottom: var(--space-2); }
.household-stat strong { font-size: var(--font-size-input-mobile); }
.household-stat span { margin-top: 3px; font-size: var(--font-size-body); }
.household-recommend { margin-top: var(--space-4); }
.household-trade-filters {
  display: flex;
  gap: var(--space-1);
  padding: 3px;
  margin: var(--space-2) -3px;
  overflow-x: auto;
}
.household-trade-filters button { flex-shrink: 0; min-height: var(--ui-control-min); cursor: pointer; }
.household-trade-filters [aria-pressed="true"] { color: var(--white); background: var(--navy); border-color: var(--navy); }
#household-pro-results { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
#household-pro-results > .household-pro-list { flex: 0 0 100%; min-width: 0; }
.household-stat progress { width: 100%; height: 6px; border: 0; border-radius: var(--ui-radius-button); overflow: hidden; background: var(--line); margin-top: var(--space-1); }
.household-stat progress::-webkit-progress-bar { background: var(--line); }
.household-stat progress::-webkit-progress-value { background: var(--cyan); }
.household-stat progress::-moz-progress-bar { background: var(--cyan); }
.household-pro-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--space-2); }
@media (max-width: 1100px) {
  .household-signed-in .site-header .header-top {
    display: grid;
    grid-template-columns: var(--ui-control-min) minmax(0,1fr) var(--ui-control-min);
    gap: 0;
  }
  .household-signed-in .header-top > .mobile-toggle { grid-column: 1; grid-row: 1; }
  .household-signed-in .header-top > .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .household-controls { grid-column: 3; grid-row: 1; justify-self: end; }
  .household-controls > a { display: none; }
}
@media (max-width: 800px) {
  .household-home.container { width: calc(100% - 2 * var(--space-2)); padding-top: var(--space-2); }
  .household-heading { gap: var(--space-1); }
  .household-home h2 { font-size: var(--font-size-subheading); }
  .household-open { padding-inline: var(--space-1); }
  .household-cards,
  .household-pro-list {
    display: flex;
    overflow-x: auto;
    gap: var(--space-2);
    scroll-snap-type: x proximity;
  }
  .household-cards > a { min-height: 142px; flex: 0 0 148px; scroll-snap-align: start; }
  .household-cards > .household-identity { flex-basis: min(73vw,340px); }
  .household-pro-list > a { flex: 0 0 min(75vw,270px); scroll-snap-align: start; }
}
.household-checking .site-header .header-account,
.household-checking .site-header .mobile-actions,
.household-unavailable .site-header .header-account,
.household-unavailable .site-header .mobile-actions,
.site-header.has-professional-account .household-account-fallback,
.household-signed-in .site-header .professional-account,
.household-signed-in footer a:is([href="/connexion"],[href="/inscription"]) {
  display: none;
}
.household-account-fallback { margin-inline-start: auto; }
@media (max-width: 600px) {
  .household-signed-in .home-hero-home .home-hero-photo {
    order: -1;
    width: 100%;
    height: clamp(150px,46vw,228px);
    min-height: 0;
  }
  .household-signed-in .home-hero-home .home-hero-photo img { height: 100%; object-fit: cover; }
  .household-signed-in .home-hero-home .home-hero-copy { text-align: center; padding-block: var(--space-2); }
  .household-home.container { display: flex; flex-direction: column; }
  .household-heading { display: contents; }
  .household-heading h2 { margin-bottom: var(--space-2); }
  .household-cards { order: 1; }
  .household-heading > .household-open { order: 2; justify-content: center; margin-top: var(--space-1); }
  .household-recommend { order: 3; }
  .household-cards > a,
  .household-cards > .household-identity { flex-basis: clamp(148px,46vw,188px); min-height: 162px; }
  .household-cards > .household-identity {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2);
  }
  .household-identity > span { padding: 0; }
  .household-identity > i { width: 56px; height: 56px; padding: var(--space-1); border-radius: var(--ui-radius-card); }
}

:is(.household-boot,.household-checking) .site-header .header-utility,
:is(.household-boot,.household-checking) .site-header .mobile-actions,
:is(.household-boot,.household-checking) .home-public > .welcome {
  visibility: hidden;
}
