.temoin-visite { margin-block: clamp(.85rem, 2.5vw, 2rem); }

.temoin-bandeau {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.35rem, 4vw, 3.25rem);
  border: 1px solid #466955;
  border-radius: 1.1rem;
  background: #101b20;
  color: #f2f7f4;
}

.temoin-bandeau h1 {
  margin: 0 0 .6rem;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.temoin-bandeau p { margin: 0; color: #c7d9ce; }
.temoin-retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border-radius: .65rem;
  background: #bff06d;
  color: #14251d;
  font-weight: 800;
  text-decoration: none;
}

.temoin-retour:hover { background: #d4ff8e; }
.temoin-retour:focus-visible { outline: 3px solid #f2f7f4; outline-offset: 4px; }

.temoin-reperes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .65rem;
}

.temoin-reperes a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .2rem .45rem;
  padding: .7rem .9rem;
  border: 1px solid #b4caba;
  border-radius: .65rem;
  background: #fff;
  color: #17462b;
  text-decoration: none;
}

.temoin-reperes a > span:first-of-type { grid-column: 1; color: #4b6055; font-size: .88rem; }
.temoin-fleche { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 800; }
.temoin-reperes a:hover { border-color: #267440; background: #ecf4ee; }
.temoin-reperes a:focus-visible { outline: 3px solid #267440; outline-offset: 2px; }
.temoin-visite ~ main .board-row:target { outline: 2px solid #267440; outline-offset: -2px; background: #ecf4ee; }
.temoin-visite ~ main .board-row[id] { scroll-margin-block-start: 1rem; }

.temoin-member-bar {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid #b5caba;
  background: #eaf3ed;
  color: #173a2b;
}
.temoin-member-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  padding-block: .55rem;
}
.temoin-member-details { position: relative; }
.temoin-member-details summary { cursor: pointer; }
.temoin-member-details summary span { display: block; margin-inline-start: 1.15rem; font-size: .9rem; }
.temoin-member-page { color: #164b34; font-weight: 650; }
.temoin-member-panel {
  position: absolute;
  inset-block-start: calc(100% + .55rem);
  inset-inline-start: 0;
  width: min(25rem, calc(100vw - 3rem));
  max-height: 65dvh;
  overflow: auto;
  padding: .9rem 1rem;
  border: 1px solid #b5caba;
  border-radius: .6rem;
  background: #f7fbf8;
  box-shadow: 0 .6rem 1.4rem #203b3233;
}
.temoin-member-panel h2, .temoin-member-panel h3 { margin: .65rem 0 .25rem; font-size: 1rem; }
.temoin-member-panel p { margin: .25rem 0; }
.temoin-member-panel ul { margin-block: .25rem; padding-inline-start: 1.15rem; }
.temoin-member-panel a { color: #164b34; }
.temoin-member-context { font-size: .86rem; }
.temoin-member-badges { display: flex; flex-wrap: wrap; gap: .35rem; padding-inline-start: 0 !important; list-style: none; }
.temoin-member-badges li { padding: .2rem .5rem; border: 1px solid #b5caba; border-radius: .4rem; }
.temoin-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .85rem;
  row-gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
}
.temoin-wallet-credits { display: flex; align-items: center; gap: .35rem; }
.temoin-wallet .temoin-wallet-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  border: 1px solid #947111;
  border-radius: 50%;
  background: #ffda63;
  color: #242014;
  text-decoration: none;
}
.temoin-wallet-link::before,
.temoin-wallet-link::after {
  position: absolute;
  inset: 0;
  margin: auto;
  inline-size: .85rem;
  block-size: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.temoin-wallet-link::after { transform: rotate(90deg); }
.temoin-wallet-link:focus-visible { outline: 2px solid #242014; outline-offset: 3px; }
#contenu .board-row[id] { scroll-margin-block-start: 7rem; }

#temoin-forum { margin: .3rem 0 .8rem; font-size: clamp(2.15rem, 5vw, 4.5rem); line-height: 1; }

@media (max-width: 48rem) {
  .temoin-bandeau { grid-template-columns: 1fr; gap: 1rem; }
  .temoin-retour { justify-self: start; }
}

@media (max-width: 36rem) {
  .temoin-reperes { grid-template-columns: 1fr; }
}
