/* BigTime Conseil - styles des composants. Charge apres tokens.css. */

.bt-root {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
}

.bt-stack { display: flex; flex-direction: column; }
.bt-row { display: flex; align-items: center; flex-wrap: wrap; }

/* --- Focus commun --- */
.bt-btn:focus-visible,
.bt-link:focus-visible,
.bt-input:focus-visible,
.bt-check input:focus-visible + .bt-check-box,
.bt-nav-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- Button --- */
.bt-btn {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-none);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}
.bt-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.bt-btn--sm { font-size: 16px; }
.bt-btn--md { font-size: 19px; }
.bt-btn--lg { font-size: 25px; }

/* Style du site : fond transparent, libelle rouge, filet rouge de 4px */
.bt-btn--ghost {
  background: transparent;
  color: var(--brand);
  border-bottom: var(--rule-strong) solid var(--brand);
  padding: 0 0 var(--space-2) 0;
}
.bt-btn--ghost:hover { background: var(--surface); color: var(--brand); border-bottom-color: var(--ink); }

.bt-btn--solid {
  background: var(--surface-invert);
  color: var(--ink-invert);
  padding: var(--space-3) var(--space-5);
}
.bt-btn--solid:hover { background: var(--brand); color: var(--on-brand); }

.bt-btn--brand {
  background: var(--brand);
  color: var(--on-brand);
  padding: var(--space-3) var(--space-5);
}
.bt-btn--brand:hover { background: var(--surface-invert); color: var(--ink-invert); }

.bt-btn--quiet {
  background: transparent;
  color: var(--ink);
  padding: var(--space-2) 0;
  border-bottom: 2px solid var(--border);
}
.bt-btn--quiet:hover { border-bottom-color: var(--brand); }

/* --- Link --- */
.bt-link {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-sans);
}
.bt-link:hover { color: var(--ink); }
.bt-link--quiet { color: var(--ink); border-bottom-color: var(--border); }
.bt-link--quiet:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* --- Field --- */
.bt-field { display: flex; flex-direction: column; gap: var(--space-1); }
.bt-label {
  font-size: 12px; line-height: 12px; font-weight: 700;
  text-transform: uppercase; color: var(--ink-muted);
}
.bt-input {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 21px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  width: 100%;
  box-sizing: border-box;
}
.bt-input::placeholder { color: var(--ink-muted); }
.bt-input:hover { border-color: var(--ink-muted); }
.bt-input[aria-invalid="true"] { border-color: var(--danger); }
.bt-input[disabled] { background: var(--surface-sunken); color: var(--ink-muted); cursor: not-allowed; }
.bt-help { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.bt-help--error { color: var(--danger); font-style: normal; }

.bt-check { display: flex; align-items: flex-start; gap: var(--space-2); cursor: pointer; }
.bt-check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.bt-check-box {
  width: 18px; height: 18px; flex: none; margin-top: 2px;
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.bt-check input:checked + .bt-check-box { background: var(--brand); border-color: var(--brand); }
.bt-check-tick { width: 10px; height: 10px; display: none; }
.bt-check input:checked + .bt-check-box .bt-check-tick { display: block; }
.bt-check-text { font-size: 14px; line-height: 21px; color: var(--ink); }

/* --- NavBar --- */
.bt-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-height);
  padding: 0 var(--space-4);
  background: var(--surface);
  box-shadow: var(--shadow-header);
  box-sizing: border-box;
}
.bt-nav-links { display: flex; align-items: center; gap: var(--space-5); }
.bt-nav-link {
  font-size: 16px; line-height: 16px; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 2px solid transparent;
}
.bt-nav-link:hover { color: var(--brand); }
.bt-nav-link[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.bt-nav-lang { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.bt-nav-lang b { color: var(--ink); font-weight: 700; }

/* --- Card --- */
.bt-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-none);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.bt-card--panel { background: var(--surface-invert); color: var(--ink-invert); border: 0; box-shadow: var(--shadow-panel); }
.bt-card--panel .bt-card-title, .bt-card--panel .bt-card-body { color: var(--ink-invert); }
.bt-card--flat { border: 0; border-top: var(--rule-strong) solid var(--brand); padding-left: 0; padding-right: 0; }
.bt-card-title { font-size: 16px; line-height: 22px; font-weight: 700; text-transform: uppercase; color: var(--ink); margin: 0; }
.bt-card-body { font-size: 16px; line-height: 24px; color: var(--ink); margin: 0; }
.bt-card-media { display: flex; }

/* --- Tag --- */
.bt-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; line-height: 12px; font-weight: 700; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.bt-tag--neutral { background: var(--surface-sunken); color: var(--ink); }
.bt-tag--brand { background: var(--surface-invert); color: var(--ink-invert); }
.bt-tag--success { background: var(--success-surface); color: var(--success); }
.bt-tag--warning { background: var(--warning-surface); color: var(--warning); }
.bt-tag--danger { background: var(--danger-surface); color: var(--danger); }
.bt-tag--info { background: var(--info-surface); color: var(--info); }
.bt-tag-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none; }

/* --- SlashList --- */
.bt-slashlist { list-style: none; margin: 0; padding: 0; }
.bt-slashlist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 16px; line-height: 24px; color: inherit;
}
.bt-slashlist li:last-child { margin-bottom: 0; }
.bt-slashlist li::before {
  content: "/";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 900;
}

/* --- SlashHeading --- */
.bt-slashhead { display: flex; align-items: flex-start; gap: var(--space-3); }
.bt-slashhead-mark { flex: none; display: block; }
.bt-slashhead-text { margin: 0; text-transform: uppercase; color: inherit; }
.bt-slashhead-sub { margin: 5px 0 0; font-size: 12px; line-height: 12px; font-weight: 700; text-transform: uppercase; color: var(--ink-muted); }

/* --- Stat --- */
.bt-stat { display: flex; flex-direction: column; align-items: flex-start; }
.bt-stat-value { font-size: 69px; line-height: 69px; font-weight: 600; color: inherit; }
.bt-stat-label { font-size: 19px; line-height: 21px; text-transform: uppercase; margin-top: var(--space-4); color: inherit; }
.bt-stat-rule { width: 100%; height: var(--rule-strong); background: currentColor; margin-top: var(--space-4); }
.bt-stat--sm .bt-stat-value { font-size: 40px; line-height: 40px; }
.bt-stat--sm .bt-stat-label { font-size: 14px; line-height: 18px; margin-top: var(--space-2); }

/* --- Slides --- */
.bt-slide {
  width: 1280px; height: 720px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
}
.bt-slide--dark { background: var(--surface-invert); color: var(--ink-invert); }
.bt-slide-pad { padding: var(--space-8); display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.bt-slide-mark { position: absolute; opacity: 0.12; pointer-events: none; }
.bt-slide-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; line-height: 21px; color: inherit; opacity: 0.7;
}
/* L eyebrow herite de la couleur de la slide : en `brand` a 12px il ne tiendrait
   que 4.4:1 sur clair et 3.6:1 sur sombre. Le rouge de la slide est porte par
   `.bt-slide-rule`, a 4px, ou le seuil est 3:1. */
.bt-slide-eyebrow { font-size: 12px; line-height: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: inherit; }
.bt-slide-title { font-size: 45px; line-height: 52px; font-weight: 700; text-transform: uppercase; margin: var(--space-4) 0 0; }
.bt-slide-rule { width: 120px; height: var(--rule-strong); background: var(--brand); margin-top: var(--space-4); }
.bt-slide-lede { font-size: 24px; line-height: 36px; margin: var(--space-5) 0 0; max-width: 820px; }
.bt-slide-grid { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
