*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bs-orange: #f97316;
  --bs-orange-strong: #ef6c00;
  --bs-orange-soft: #fb8c2e;
  --bs-ink: #16181d;
  --bs-grey: #8b8f98;
  --bs-page: #f2f3f5;
  --bs-card: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #dfe2e6;
  color: var(--bs-ink);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

button {
  font-family: inherit;
}

/* ---------- shell ---------- */
.bs-screen {
  width: 100%;
  max-width: 482px;
  min-height: 100vh;
  background: var(--bs-page);
  position: relative;
  padding-bottom: 104px;
  overflow-x: hidden;
}

.bs-topline {
  height: 6px;
  background: #0b5ed7;
}

/* ---------- header ---------- */
.bs-header {
  height: 64px;
  background: var(--bs-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}

.bs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bs-brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--bs-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.32);
  flex: 0 0 auto;
}

.bs-brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--bs-ink);
  white-space: nowrap;
}

.bs-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bs-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #e6e8ec;
  background: #fff;
  color: #3b3f46;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.bs-icon-btn:active {
  background: #f4f5f7;
}

.bs-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bs-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  border: 2px solid #fff;
}

/* ---------- main ---------- */
.bs-main {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- hero ---------- */
.bs-hero {
  position: relative;
  margin-top: 0;
  height: 196px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
  background: #1b1d21;
}

.bs-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bs-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 11, 13, 0.82) 0%,
    rgba(10, 11, 13, 0.55) 48%,
    rgba(10, 11, 13, 0.15) 100%
  );
}

.bs-hero-body {
  position: relative;
  padding: 10px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.bs-hero-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.bs-hero-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: #f1f2f4;
  max-width: 300px;
}

.bs-hero-btn {
  margin-top: 6px;
  min-height: 46px;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  background: var(--bs-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.bs-hero-btn-arrow {
  display: inline-flex;
  align-items: center;
}

/* ---------- notice ---------- */
.bs-notice {
  background: var(--bs-card);
  border-radius: 16px;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(16, 18, 22, 0.06);
}

.bs-notice-icon {
  color: var(--bs-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-left: 4px;
}

.bs-notice-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--bs-ink);
  white-space: nowrap;
}

.bs-notice-text {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-grey);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-notice-chevron {
  color: #b7bbc2;
  flex: 0 0 auto;
}

/* ---------- quick actions ---------- */
.bs-actions {
  background: var(--bs-card);
  border-radius: 16px;
  padding: 16px 10px 14px;
  box-shadow: 0 2px 10px rgba(16, 18, 22, 0.06);
}

.bs-actions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bs-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.bs-action-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--bs-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.3);
}

.bs-action-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #2a2d33;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bs-action {
  min-width: 0;
}

/* ---------- balance cards ---------- */
.bs-balance {
  background: var(--bs-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 118px;
  box-shadow: 0 2px 10px rgba(16, 18, 22, 0.06);
}

.bs-balance--alt {
  background: var(--bs-card);
  border: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 2px 10px rgba(16, 18, 22, 0.07);
}

.bs-balance-side {
  flex: 0 0 142px;
  background: linear-gradient(135deg, var(--bs-orange-soft), var(--bs-orange-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-balance-side--alt {
  background: linear-gradient(135deg, #fde79a, #fbd25f);
  color: var(--bs-orange-strong);
}

.bs-balance-body {
  flex: 1 1 auto;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.bs-balance-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #6b7079;
}

.bs-balance-label--cut {
  color: #a9adb5;
}

.bs-balance-value {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  color: var(--bs-orange);
  line-height: 1.1;
}

.bs-cur {
  font-size: 15px;
  font-weight: 800;
  color: var(--bs-orange);
}

.bs-balance-rule {
  display: block;
  width: 122px;
  height: 4px;
  border-radius: 999px;
  background: var(--bs-orange);
}

.bs-balance-split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bs-split-item {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #4b4f57;
}

.bs-split-item strong {
  font-size: 21px;
  font-weight: 800;
  color: var(--bs-orange);
  margin-left: 4px;
}

/* ---------- category ---------- */
.bs-cat {
  padding: 4px 2px 0;
}

.bs-cat-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  color: #9aa0a8;
}

.bs-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bs-cat-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: var(--bs-ink);
}

.bs-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-orange);
  text-decoration: none;
}

/* ---------- product teaser ---------- */
.bs-product {
  background: var(--bs-card);
  border-radius: 16px;
  overflow: hidden;
  height: 96px;
  box-shadow: 0 2px 10px rgba(16, 18, 22, 0.06);
}

.bs-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- bottom tab bar ---------- */
.bs-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 482px;
  height: 78px;
  background: var(--bs-orange);
  border-radius: 20px 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 6px 8px;
  gap: 4px;
  z-index: 20;
}

.bs-tab {
  min-height: 60px;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  cursor: pointer;
}

.bs-tab {
  text-decoration: none;
  min-width: 0;
}

.bs-tab-label {
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bs-tab--active {
  background: #fff;
  color: var(--bs-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

@media (min-width: 520px) {
  .bs-screen {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.14);
  }
}


/* ===== Page Équipe ===== */
.bs-team-page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px 96px;
  box-sizing: border-box;
  background: var(--bs-page, #f2f3f5);
  color: var(--bs-ink, #16181d);
}

.bs-team-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bs-team-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22, 24, 29, 0.12);
  background: var(--bs-card, #ffffff);
  color: var(--bs-ink, #16181d);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(22, 24, 29, 0.06);
}

.bs-team-back:hover {
  border-color: var(--bs-orange, #f97316);
  color: var(--bs-orange-strong, #ef6c00);
}

.bs-team-hero {
  background: var(--bs-card, #ffffff);
  border: 1px solid rgba(22, 24, 29, 0.08);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 10px 28px rgba(22, 24, 29, 0.08);
}

.bs-team-sub {
  margin: 10px 0 0;
  color: var(--bs-grey, #8b8f98);
  font-size: 15px;
  line-height: 1.55;
}

.bs-team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.bs-team-stat {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.bs-team-stat strong {
  font-size: 20px;
  line-height: 1.1;
  color: var(--bs-orange-strong, #ef6c00);
}

.bs-team-stat span {
  font-size: 12px;
  color: var(--bs-grey, #8b8f98);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bs-team-section {
  margin-top: 26px;
}

.bs-team-grid {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bs-team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bs-card, #ffffff);
  border: 1px solid rgba(22, 24, 29, 0.08);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(22, 24, 29, 0.07);
}

.bs-team-photo {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: rgba(22, 24, 29, 0.06);
}

.bs-team-body {
  padding: 14px 16px 16px;
}

.bs-team-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--bs-ink, #16181d);
}

.bs-team-role {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-orange-strong, #ef6c00);
}

.bs-team-city {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--bs-grey, #8b8f98);
}

.bs-team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bs-team-tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bs-ink, #16181d);
  background: rgba(22, 24, 29, 0.06);
  border: 1px solid rgba(22, 24, 29, 0.08);
}

.bs-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 24, 29, 0.08);
}

.bs-team-row-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-grey, #8b8f98);
}

.bs-team-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(22, 24, 29, 0.14);
  border-radius: 999px;
  background: var(--bs-card, #ffffff);
  color: var(--bs-ink, #16181d);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.bs-team-btn:hover {
  border-color: var(--bs-orange, #f97316);
  color: var(--bs-orange-strong, #ef6c00);
}

.bs-team-btn-primary {
  background: var(--bs-orange, #f97316);
  border-color: var(--bs-orange, #f97316);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.bs-team-btn-primary:hover {
  background: var(--bs-orange-strong, #ef6c00);
  border-color: var(--bs-orange-strong, #ef6c00);
  color: #ffffff;
}

.bs-team-cta {
  margin-top: 26px;
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--bs-card, #ffffff);
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: 0 10px 28px rgba(22, 24, 29, 0.08);
}

.bs-team-cta-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--bs-ink, #16181d);
}

.bs-team-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .bs-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bs-team-page {
    padding: 24px 24px 96px;
  }
}

@media (min-width: 960px) {
  .bs-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Corrections de débordement page Équipe ===== */
.bs-team-page {
  overflow-x: hidden;
}

.bs-team-top {
  flex-wrap: wrap;
  min-width: 0;
}

.bs-team-page .bs-badge {
  position: static;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--bs-orange-strong, #ef6c00);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.bs-team-page .bs-brand-badge {
  width: auto;
  height: auto;
  min-height: 34px;
  max-width: 100%;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 12px;
}

.bs-team-page .bs-hero-title {
  color: var(--bs-ink, #16181d);
  text-shadow: none;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.bs-team-page .bs-cat-title,
.bs-team-page .bs-team-name,
.bs-team-page .bs-team-cta-title,
.bs-team-page .bs-team-sub {
  overflow-wrap: anywhere;
}

.bs-team-card,
.bs-team-body,
.bs-team-row {
  min-width: 0;
}

.bs-team-row {
  flex-wrap: wrap;
}

.bs-team-btn,
.bs-team-back {
  max-width: 100%;
  overflow-wrap: anywhere;
}
