/* Bareshoes.fr — Réassurance de l'accueil (module bareshoes_reassurance).
   Pastilles : rond rose pâle #fff0f5, pictogramme au trait rose Bareshoes #ff0066.
   Survol (souris) : le titre passe en rose. Détail : panneau latéral ou fenêtre centrale
   (réglage de l'écran d'édition) ; sur téléphone, il remonte toujours depuis le bas. */

.bhs-rea { clear: both; float: left; width: 100%; margin: 28px 0 26px; }
.bhs-rea__liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--bhs-rea-n, 4), minmax(0, 1fr)); gap: 24px;
}
.bhs-rea__case { margin: 0; padding: 0; min-width: 0; }
.bhs-rea__item {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 100%; margin: 0; padding: 14px 8px;
  border: 0; border-radius: 8px; background: none; box-shadow: none;
  font: inherit; color: #141414; text-align: left; text-decoration: none; text-transform: none; letter-spacing: 0;
  cursor: pointer;
}
.bhs-rea__item:hover, .bhs-rea__item:focus { text-decoration: none; color: #141414; background: none; }
.bhs-rea__item--fixe { cursor: default; }
.bhs-rea__item:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }

.bhs-rea__rond {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #fff0f5;
  display: inline-flex; align-items: center; justify-content: center;
}
.bhs-rea__rond svg {
  width: 22px; height: 22px; fill: none; stroke: #ff0066; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bhs-rea__rond--grand { flex-basis: 56px; width: 56px; height: 56px; }
.bhs-rea__rond--grand svg { width: 28px; height: 28px; }

.bhs-rea__textes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bhs-rea__titre { font-size: 15px; font-weight: 600; line-height: 1.3; color: #141414; transition: color .3s; }
.bhs-rea__sous { font-size: 13px; font-weight: 500; line-height: 1.35; color: #5c5c58; }
@media (hover: hover) {
  button.bhs-rea__item:hover .bhs-rea__titre,
  a.bhs-rea__item:hover .bhs-rea__titre { color: #ff0066; }
}
button.bhs-rea__item:focus-visible .bhs-rea__titre,
a.bhs-rea__item:focus-visible .bhs-rea__titre { color: #ff0066; }

@media (max-width: 991px) {
  .bhs-rea { margin: 20px 0; }
  .bhs-rea__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
}
@media (max-width: 575px) {
  .bhs-rea__liste { gap: 4px 10px; }
  .bhs-rea__item { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 10px 4px; text-align: center; }
  .bhs-rea__textes { align-items: center; }
  .bhs-rea__titre { font-size: 14px; }
  .bhs-rea__sous { font-size: 12px; }
}

/* ---------- Détail ---------- */
html.bhs-rea-ouvert { overflow: hidden; }
.bhs-rea-detail {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
  background: transparent; color: #141414; font-family: inherit; overflow: visible;
  text-align: left; /* la home du thème centre ses textes */
}
.bhs-rea-detail::backdrop { background: rgba(20, 20, 20, .45); }
.bhs-rea-detail__boite { background: #ffffff; display: flex; flex-direction: column; max-height: 100%; }

.bhs-rea-detail__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bhs-rea-detail__surtitre { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5c5c58; }
.bhs-rea-detail__fermer {
  flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 50%;
  background: #f4f4f2; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bhs-rea-detail__fermer:hover { background: #ebebe8; }
.bhs-rea-detail__fermer:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }
.bhs-rea-detail__fermer svg { width: 18px; height: 18px; fill: none; stroke: #141414; stroke-width: 2; stroke-linecap: round; }

.bhs-rea-detail__corps { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.bhs-rea-detail__titre { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; color: #141414; text-transform: none; letter-spacing: 0; }
.bhs-rea-detail__texte { font-size: 15px; line-height: 1.65; color: #3d3d3a; }
.bhs-rea-detail__texte p { margin: 0 0 12px; font-size: inherit; line-height: inherit; color: inherit; }
.bhs-rea-detail__texte p:last-child { margin-bottom: 0; }
.bhs-rea-detail__texte strong { font-weight: 700; color: #141414; }
.bhs-rea-detail__texte a { color: #141414; text-decoration: underline; text-decoration-color: #ff0066; text-underline-offset: 3px; }
.bhs-rea-detail__texte a:hover { color: #ff0066; }
.bhs-rea-detail__texte ul, .bhs-rea-detail__texte ol { margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bhs-rea-detail__texte ul { list-style: none; }
.bhs-rea-detail__texte ol { padding-left: 22px; }
.bhs-rea-detail__texte ul > li { position: relative; padding-left: 28px; color: #141414; }
.bhs-rea-detail__texte ul > li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: #ff0066;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bhs-rea-detail__bouton {
  margin-top: 6px; min-height: 48px; padding: 12px 20px; border-radius: 6px; background: #141414; color: #ffffff;
  font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center; transition: background-color .25s;
}
.bhs-rea-detail__bouton:hover, .bhs-rea-detail__bouton:focus { background: #ff0066; color: #ffffff; text-decoration: none; }
.bhs-rea-detail__bouton:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }

.bhs-rea-detail__autres { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #f0f0f0; }
.bhs-rea-detail__autres-titre { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5c5c58; }
.bhs-rea-detail__puces { display: flex; flex-wrap: wrap; gap: 8px; }
.bhs-rea-detail__puce {
  min-height: 40px; padding: 0 14px; border: 1px solid #e4e4e4; border-radius: 999px; background: #ffffff;
  font: inherit; font-size: 13px; font-weight: 600; color: #141414; cursor: pointer;
}
.bhs-rea-detail__puce:hover { border-color: #141414; }
.bhs-rea-detail__puce:focus-visible { outline: 2px solid #141414; outline-offset: 2px; }

/* Panneau latéral (ordinateur et tablette) */
.bhs-rea-detail--panneau { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100%; }
.bhs-rea-detail--panneau .bhs-rea-detail__boite { height: 100%; }
.bhs-rea-detail--panneau .bhs-rea-detail__tete { min-height: 72px; padding: 0 20px 0 28px; border-bottom: 1px solid #f0f0f0; }
.bhs-rea-detail--panneau .bhs-rea-detail__rond-tete { display: none; }
.bhs-rea-detail--panneau .bhs-rea-detail__corps { flex: 1 1 auto; padding: 28px; }
.bhs-rea-detail--panneau .bhs-rea-detail__autres { padding: 18px 28px 24px; }
.bhs-rea-detail--panneau[open] { animation: bhsReaPanneau .35s ease; }
@keyframes bhsReaPanneau { from { transform: translateX(100%); } to { transform: none; } }

/* Fenêtre centrale */
.bhs-rea-detail--fenetre { position: fixed; inset: 0; margin: auto; width: min(540px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 48px); }
.bhs-rea-detail--fenetre .bhs-rea-detail__boite { border-radius: 14px; overflow: hidden; max-height: calc(100vh - 48px); }
.bhs-rea-detail--fenetre .bhs-rea-detail__tete { padding: 26px 28px 0; align-items: flex-start; }
.bhs-rea-detail--fenetre .bhs-rea-detail__surtitre,
.bhs-rea-detail--fenetre .bhs-rea-detail__rond-corps,
.bhs-rea-detail--fenetre .bhs-rea-detail__autres { display: none; }
.bhs-rea-detail--fenetre .bhs-rea-detail__corps { padding: 16px 28px 28px; }
.bhs-rea-detail--fenetre[open] { animation: bhsReaFenetre .25s ease; }
@keyframes bhsReaFenetre { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Téléphone : le détail remonte depuis le bas, quel que soit le réglage */
@media (max-width: 575px) {
  .bhs-rea-detail--panneau, .bhs-rea-detail--fenetre {
    inset: auto 0 0 0; width: 100vw; height: auto; max-height: 88vh; margin: 0;
  }
  .bhs-rea-detail--panneau .bhs-rea-detail__boite, .bhs-rea-detail--fenetre .bhs-rea-detail__boite {
    height: auto; max-height: 88vh; border-radius: 16px 16px 0 0;
  }
  .bhs-rea-detail--panneau .bhs-rea-detail__tete, .bhs-rea-detail--fenetre .bhs-rea-detail__tete {
    min-height: 0; padding: 18px 18px 0; border-bottom: 0; align-items: flex-start;
  }
  .bhs-rea-detail--panneau .bhs-rea-detail__surtitre, .bhs-rea-detail--panneau .bhs-rea-detail__rond-corps { display: none; }
  .bhs-rea-detail--panneau .bhs-rea-detail__rond-tete { display: inline-flex; }
  .bhs-rea-detail--panneau .bhs-rea-detail__corps, .bhs-rea-detail--fenetre .bhs-rea-detail__corps { padding: 12px 18px 22px; gap: 12px; }
  .bhs-rea-detail--panneau .bhs-rea-detail__autres { padding: 14px 18px 20px; }
  .bhs-rea-detail__titre { font-size: 21px; }
  .bhs-rea-detail--panneau[open], .bhs-rea-detail--fenetre[open] { animation: bhsReaBas .3s ease; }
}
@keyframes bhsReaBas { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bhs-rea__titre, .bhs-rea-detail__bouton { transition: none; }
  .bhs-rea-detail[open] { animation: none !important; }
}
