/* Espace client MagicBeez (D-2026-0014), charte du CDC section 4 :
   fond bleu nuit / bleu electrique avec halos, logo blanc, textes blancs et
   bleu clair, champs bleu fonce a contour bleu clair, CTA jaune avec halo,
   coins arrondis, mobile d'abord (contenu centre et limite en largeur sur
   ordinateur, CDC 15.8). Fichier ecrit a la main, pas de build. */

:root {
  --bo-navy: #061a45;
  --bo-navy-2: #0a2a6b;
  --bo-blue: #1e5eff;
  --bo-blue-glow: rgba(40, 110, 255, 0.55);
  --bo-field: #0d2b66;
  --bo-field-border: #4c7be0;
  --bo-card: rgba(13, 43, 102, 0.55);
  --bo-card-border: rgba(98, 140, 230, 0.45);
  --bo-text: #ffffff;
  --bo-text-2: #9db4e8;
  --bo-yellow: #ffd400;
  --bo-yellow-dark: #e6bf00;
  --bo-yellow-glow: rgba(255, 212, 0, 0.45);
  --bo-green: #1f9d55;
  --bo-red: #ff6b6b;
  --bo-radius: 16px;
  --bo-radius-sm: 12px;
  --bo-max: 480px;
  --bo-nav-height: 74px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.bo {
  margin: 0;
  min-height: 100vh;
  font-family: "Lato", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif;
  color: var(--bo-text);
  background: var(--bo-navy);
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(30, 94, 255, 0.55), transparent 70%),
    radial-gradient(50% 35% at 100% 15%, rgba(30, 94, 255, 0.45), transparent 70%),
    radial-gradient(60% 50% at 80% 100%, rgba(30, 94, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #08215a 0%, #061a45 60%, #04122f 100%);
  background-attachment: fixed;
  line-height: 1.4;
}

a { color: var(--bo-text-2); }
button, input, select, textarea { font: inherit; color: inherit; }

.bo-page {
  max-width: var(--bo-max);
  margin: 0 auto;
  padding: 16px 20px calc(var(--bo-nav-height) + 24px);
}
.bo-page.no-nav { padding-bottom: 32px; }

/* En-tete : fleche retour optionnelle + logo */
.bo-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 8px;
}
.bo-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bo-text);
  text-decoration: none;
  font-size: 26px;
  border-radius: 50%;
}
.bo-back:hover { background: rgba(255, 255, 255, 0.08); }

.bo-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--bo-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.5px;
  text-shadow: 0 0 18px rgba(120, 170, 255, 0.55);
}
.bo-logo .hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  margin: 0 3px;
  background: var(--bo-text);
  color: var(--bo-navy);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: 22px;
  font-weight: 900;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}
.bo-logo.big { font-size: 42px; }
.bo-logo.big .hex { width: 46px; height: 52px; font-size: 30px; }

/* Titres et textes */
.bo-title { font-size: 30px; font-weight: 800; margin: 12px 0 6px; line-height: 1.15; }
.bo-title.center { text-align: center; }
.bo-subtitle { color: var(--bo-text-2); margin: 0 0 20px; font-size: 16px; }
.bo-subtitle.center { text-align: center; }
.bo-section-title { font-size: 20px; font-weight: 800; margin: 24px 0 10px; }
.bo-muted { color: var(--bo-text-2); }
.bo-small { font-size: 13px; }
.bo-center { text-align: center; }
.bo-mt { margin-top: 16px; }

/* Progression "Etape x sur 5" */
.bo-progress { margin: 4px 0 18px; text-align: center; }
.bo-progress .label { font-size: 14px; color: var(--bo-text-2); margin-bottom: 8px; }
.bo-progress .track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 14px;
  margin: 0 8%;
}
.bo-progress .track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(98, 140, 230, 0.5);
  border-radius: 4px;
}
.bo-progress .track .fill {
  position: absolute;
  left: 0; top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--bo-yellow);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--bo-yellow-glow);
}
.bo-progress .dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(98, 140, 230, 0.9);
}
.bo-progress .dot.done { background: var(--bo-yellow); }
.bo-progress .dot.current { width: 18px; height: 18px; background: var(--bo-yellow); box-shadow: 0 0 12px var(--bo-yellow-glow); }

/* Champs */
.bo-field { display: block; margin-bottom: 18px; }
.bo-field > .label { display: block; font-size: 17px; margin-bottom: 8px; color: var(--bo-text); }
.bo-input-wrap { position: relative; display: flex; align-items: center; }
.bo-input-wrap .icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--bo-text-2); pointer-events: none; display: inline-flex;
}
.bo-input {
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  border-radius: var(--bo-radius-sm);
  border: 1.5px solid var(--bo-field-border);
  background: var(--bo-field);
  color: var(--bo-text);
  font-size: 17px;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.bo-input-wrap .icon + .bo-input { padding-left: 52px; }
.bo-input::placeholder { color: var(--bo-text-2); opacity: 0.9; }
.bo-input:focus { border-color: #8fb0ff; box-shadow: 0 0 0 3px rgba(76, 123, 224, 0.35); }
.bo-input.is-invalid { border-color: var(--bo-red); }
.bo-help { font-size: 13px; color: var(--bo-text-2); margin-top: 6px; }
.bo-static { display: flex; align-items: center; gap: 12px; }

/* Saisie du code : 6 cases */
.bo-code {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 6px 0 18px;
}
.bo-code input {
  width: 100%;
  height: 64px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  border-radius: var(--bo-radius-sm);
  border: 1.5px solid var(--bo-field-border);
  background: var(--bo-field);
  color: var(--bo-text);
  outline: none;
  caret-color: var(--bo-yellow);
}
.bo-code input:focus { border-color: #8fb0ff; box-shadow: 0 0 0 3px rgba(76, 123, 224, 0.35); }

/* Boutons */
.bo-cta {
  display: inline-flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--bo-radius-sm);
  background: var(--bo-yellow);
  color: #0b2a6f;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 24px var(--bo-yellow-glow), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s, filter 0.15s, opacity 0.15s;
}
.bo-cta:hover { filter: brightness(1.03); }
.bo-cta:active { transform: translateY(1px); }
.bo-cta[disabled], .bo-cta.is-loading { opacity: 0.7; cursor: progress; box-shadow: none; }
.bo-cta.small { width: auto; min-height: 44px; padding: 8px 18px; font-size: 16px; }
.bo-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--bo-radius-sm);
  border: 1.5px solid var(--bo-field-border);
  background: transparent;
  color: var(--bo-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bo-btn-outline.full { width: 100%; }
.bo-btn-outline.danger { border-color: var(--bo-red); color: var(--bo-red); }
.bo-link { color: var(--bo-text-2); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; }
.bo-link[disabled] { opacity: 0.6; cursor: default; }
.bo-or {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 22px; color: var(--bo-text-2); font-size: 15px;
}
.bo-or::before, .bo-or::after { content: ""; flex: 1; height: 1px; background: rgba(157, 180, 232, 0.5); }

/* Cartes */
.bo-card {
  display: block;
  background: var(--bo-card);
  border: 1px solid var(--bo-card-border);
  border-radius: var(--bo-radius);
  padding: 16px;
  margin-bottom: 12px;
  color: var(--bo-text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.bo-card.row { display: flex; align-items: center; gap: 14px; }
.bo-card .grow { flex: 1; min-width: 0; }
.bo-card .chevron { color: var(--bo-text); font-size: 26px; line-height: 1; opacity: 0.9; }
.bo-card .title { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.bo-card .line { color: var(--bo-text-2); font-size: 15px; margin: 2px 0; }
.bo-card.selectable { cursor: pointer; }
.bo-card.selected { border: 2px solid var(--bo-yellow); box-shadow: 0 0 20px var(--bo-yellow-glow); }

.bo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.bo-kpi {
  background: var(--bo-card);
  border: 1px solid var(--bo-card-border);
  border-radius: var(--bo-radius-sm);
  padding: 12px;
}
.bo-kpi .value { font-size: 26px; font-weight: 800; line-height: 1; display: flex; justify-content: space-between; align-items: center; }
.bo-kpi .name { color: var(--bo-text-2); font-size: 13px; margin-top: 8px; }
.bo-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.bo-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
.bo-dot.yellow { background: var(--bo-yellow); box-shadow: 0 0 8px var(--bo-yellow-glow); }

/* Badges */
.bo-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.bo-badge.green { background: var(--bo-green); color: #fff; }
.bo-badge.grey { background: rgba(157, 180, 232, 0.25); color: var(--bo-text-2); }
.bo-badge.yellow { background: var(--bo-yellow); color: #0b2a6f; }

/* Avatar / icones */
.bo-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bo-blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; flex: none;
}
.bo-icon-box {
  width: 56px; height: 56px; border-radius: var(--bo-radius-sm);
  background: rgba(30, 94, 255, 0.25); border: 1px solid var(--bo-card-border);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* Interrupteur */
.bo-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bo-switch .toggle {
  position: relative; width: 52px; height: 30px; border-radius: 999px;
  background: rgba(157, 180, 232, 0.35); border: 0; cursor: pointer; flex: none;
  transition: background 0.15s;
}
.bo-switch .toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform 0.15s;
}
.bo-switch .toggle.on { background: var(--bo-green); }
.bo-switch .toggle.on::after { transform: translateX(22px); }

/* Etat vide */
.bo-empty {
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--bo-card-border);
  border-radius: var(--bo-radius);
  color: var(--bo-text-2);
  background: rgba(13, 43, 102, 0.3);
}
.bo-empty .icon { font-size: 40px; margin-bottom: 8px; }
.bo-empty p { margin: 0 0 14px; font-size: 16px; }

/* Notifications non bloquantes (CDC 15.2) */
.bo-toasts {
  position: fixed; left: 50%; top: 12px; transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--bo-max)); z-index: 50;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.bo-toast {
  pointer-events: auto;
  padding: 12px 16px; border-radius: var(--bo-radius-sm);
  background: #0d2b66; border: 1px solid var(--bo-field-border);
  color: var(--bo-text); font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex; align-items: flex-start; gap: 10px;
}
.bo-toast.success { border-color: #22c55e; }
.bo-toast.error { border-color: var(--bo-red); }
.bo-toast .close { margin-left: auto; background: none; border: 0; color: var(--bo-text-2); font-size: 18px; cursor: pointer; }

/* Menu inferieur fixe, 4 entrees (CDC 10.1) */
.bo-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: var(--bo-nav-height);
  background: rgba(6, 26, 69, 0.96);
  border-top: 1px solid var(--bo-card-border);
  backdrop-filter: blur(8px);
}
.bo-nav .inner {
  max-width: var(--bo-max); margin: 0 auto; height: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px;
}
.bo-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--bo-text); text-decoration: none; font-size: 13px; font-weight: 600;
  border-radius: var(--bo-radius-sm); border: 1.5px solid transparent;
}
.bo-nav a svg { width: 26px; height: 26px; }
.bo-nav a.is-active { color: var(--bo-yellow); border-color: var(--bo-yellow); box-shadow: 0 0 14px var(--bo-yellow-glow); }

/* Chargement (CDC 15.4) */
.bo-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(11, 42, 111, 0.35); border-top-color: #0b2a6f;
  animation: bo-spin 0.8s linear infinite;
}
@keyframes bo-spin { to { transform: rotate(360deg); } }
.bo-slow-notice { display: none; margin-top: 10px; color: var(--bo-text-2); font-size: 14px; text-align: center; }
.bo-slow-notice.show { display: block; }

/* Formulaire de choix (BO-03) */
.bo-choice { display: block; }
.bo-choice input { position: absolute; opacity: 0; }
.bo-radio {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bo-text-2); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.bo-choice input:checked + .bo-card { border: 2px solid var(--bo-yellow); box-shadow: 0 0 20px var(--bo-yellow-glow); }
.bo-choice input:checked + .bo-card .bo-radio { border-color: var(--bo-yellow); }
.bo-choice input:checked + .bo-card .bo-radio::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--bo-yellow); }

/* --- Chantier activation et compte (CDC 6, 7, 9, 11, 14) --- */

/* Cartes cliquables, titres et lignes aussi en <span> (cartes radio) */
.bo-card.link { cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.bo-card.link:hover { border-color: #8fb0ff; }
.bo-card.link:active { transform: translateY(1px); }
.bo-card .title, .bo-card .line { display: block; }
.bo-card .line.objective { display: flex; align-items: center; gap: 8px; }
.bo-card .line.amount { color: var(--bo-text); font-weight: 800; }

/* Illustrations des ecrans du parcours (SVG en ligne) */
.bo-hero { display: flex; justify-content: center; margin: 4px 0 20px; position: relative; }
.bo-hero svg { max-width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }
.bo-hero.confirm { padding-top: 26px; }
.bo-check {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 72px; border-radius: 50%; background: #22c55e;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.7); z-index: 1;
}

/* BO-03 : icone de la carte de choix */
.bo-choice-icon {
  width: 56px; height: 56px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: var(--bo-text-2);
}
.bo-choice-icon.yellow { color: var(--bo-yellow); }
.bo-choice input:checked + .bo-card .bo-choice-icon { color: var(--bo-yellow); }

/* BO-04 : encart d'aide */
.bo-info {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; margin: 4px 0 20px;
  border: 1.5px solid var(--bo-card-border); border-radius: var(--bo-radius-sm);
  background: rgba(13, 43, 102, 0.35); font-size: 15px;
}
.bo-info p { margin: 0 0 4px; }
.bo-info-icon { color: var(--bo-text-2); flex: none; display: inline-flex; margin-top: 2px; }
.bo-required { color: var(--bo-yellow); }

/* Confirmation (CDC 9) */
.bo-confirm-title { font-size: 26px; margin-top: 16px; }
.bo-confirm-title .hl { color: var(--bo-yellow); }
.bo-rule { border: 0; height: 1px; background: rgba(157, 180, 232, 0.5); margin: 22px 0 18px; }
.bo-question { text-align: center; font-size: 20px; font-weight: 800; margin: 0 0 16px; }
.bo-actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bo-btn-outline.big { min-height: 60px; font-size: 20px; font-weight: 800; border-width: 1.5px; }

/* Onglet Boites (CDC 11) : visuel, statut, bouton Activer */
.bo-box-visual { display: inline-flex; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
.bo-box-card { padding: 12px; gap: 10px; }
.bo-box-card .title { font-size: 17px; white-space: nowrap; }
.bo-box-card .line { font-size: 14px; }
.bo-box-card .bo-badge { flex: none; padding: 4px 10px; font-size: 13px; }
.bo-box-card .chevron { margin-left: -4px; }
.bo-box-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.bo-cta.small.activate { min-width: 0; min-height: 42px; padding: 8px 16px; font-size: 16px; flex: none; }
.bo-obj-dash { width: 14px; }
.bo-obj-inline { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 0; }
.bo-obj-inline .bo-picto { width: 22px; height: 22px; }
.bo-obj-dash { display: inline-block; width: 18px; height: 2px; background: var(--bo-text-2); border-radius: 2px; }
.bo-badge.blue { background: rgba(30, 94, 255, 0.5); color: #fff; }
.bo-badge.red { background: rgba(255, 107, 107, 0.25); color: var(--bo-red); }

/* Mon compte (CDC 14) : entetes de section, entreprise, commandes, fiche */
.bo-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bo-section-head .bo-section-title { margin-bottom: 10px; }
.bo-company { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.bo-company .bo-company-main .title { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.bo-company .bo-company-side { grid-column: 2; padding-top: 10px; border-top: 1px solid rgba(157, 180, 232, 0.3); }
.bo-company .label { color: var(--bo-text-2); font-size: 13px; margin: 6px 0 0; }
.bo-order-card { align-items: flex-start; padding: 12px; gap: 10px; }
.bo-order-card .title { font-size: 17px; }
.bo-order-card .line { font-size: 14px; }
.bo-order-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; max-width: 112px; text-align: right; }
.bo-order-status .bo-badge { padding: 4px 10px; font-size: 13px; }
.bo-order-status .line { font-size: 12px; }
.bo-detail-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid rgba(157, 180, 232, 0.25); font-size: 16px;
}
.bo-detail-row > :last-child { text-align: right; }
.bo-detail-row:last-child { border-bottom: 0; }

@media (min-width: 480px) {
  .bo-company { grid-template-columns: 56px 1fr 1fr; }
  .bo-company .bo-company-side { grid-column: 3; padding-top: 0; border-top: 0; border-left: 1px solid rgba(157, 180, 232, 0.3); padding-left: 14px; }
}

/* Configurateur d'objectif BO-05 (CDC 8) et onglet Objectifs (CDC 12) */
.bo-step-title { font-size: 18px; font-weight: 800; margin: 18px 0 10px; }
.bo-panel .bo-step-title { margin-top: 0; }
.bo-error { color: var(--bo-red); font-size: 14px; margin: 6px 0 0; }
.bo-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bo-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 120px; padding: 16px 10px; text-align: center; cursor: pointer;
  border-radius: var(--bo-radius-sm); border: 1.5px solid var(--bo-card-border);
  background: rgba(13, 43, 102, 0.45); color: var(--bo-text); font-size: 16px; font-weight: 700;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bo-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bo-tile .icons { display: inline-flex; gap: 8px; align-items: center; }
.bo-tile.selected { border: 2px solid var(--bo-yellow); box-shadow: 0 0 20px var(--bo-yellow-glow); color: var(--bo-yellow); }
.bo-tile:focus-within { border-color: #8fb0ff; }
.bo-tile.locked { opacity: 0.45; cursor: not-allowed; }
.bo-picto { display: inline-block; vertical-align: middle; flex: none; }
.bo-select-wrap { position: relative; display: block; }
.bo-select-wrap::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--bo-text-2); border-bottom: 2px solid var(--bo-text-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.bo-select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.bo-select option { color: #0b2a6f; background: #fff; }
.bo-input-action {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--bo-field-border);
  background: rgba(30, 94, 255, 0.35); color: var(--bo-text); font-size: 14px; font-weight: 700; cursor: pointer;
}
.bo-results { display: grid; gap: 8px; margin-top: 10px; }
.bo-result-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--bo-radius-sm); border: 1.5px solid var(--bo-card-border);
  background: rgba(13, 43, 102, 0.6); color: var(--bo-text); cursor: pointer; font-size: 15px;
}
.bo-result-item .name { font-weight: 700; }
.bo-result-item .addr { color: var(--bo-text-2); font-size: 14px; }
.bo-result-item:hover { border-color: #8fb0ff; }
.bo-result { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.bo-result.top { align-items: flex-start; }
.bo-result .grow { flex: 1; min-width: 0; }
.bo-result .title { font-size: 17px; font-weight: 800; margin: 0 0 2px; }
.bo-result .line { color: var(--bo-text-2); font-size: 14px; margin: 2px 0; }
.bo-result .url { word-break: break-all; color: #8fb0ff; }
.bo-result .line:empty { display: none; }
.bo-test {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border-radius: var(--bo-radius-sm); border: 1.5px solid var(--bo-field-border); background: rgba(30, 94, 255, 0.25);
  color: var(--bo-text); font-weight: 700; text-decoration: none; font-size: 15px;
}
.bo-fields-list { margin: 6px 0 0; padding: 0; list-style: none; color: var(--bo-text); font-size: 15px; }
.bo-fields-list li { margin: 3px 0; padding-left: 24px; position: relative; }
.bo-fields-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: #2f7bff; box-shadow: inset 0 0 0 3px #0d2b66, 0 0 0 1.5px #2f7bff;
}
.bo-share-option { cursor: pointer; }
.bo-share-option .grow { display: flex; flex-direction: column; gap: 2px; }
.bo-share-option .title { font-size: 16px; font-weight: 800; }
.bo-share-option .line { color: var(--bo-text-2); font-size: 14px; }
.bo-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bo-switch-input:checked + .toggle { background: var(--bo-yellow); }
.bo-switch-input:checked + .toggle::after { transform: translateX(22px); }
.bo-switch-input:focus-visible + .toggle { box-shadow: 0 0 0 3px rgba(76, 123, 224, 0.5); }
.bo-warning {
  border: 2px solid var(--bo-yellow); border-radius: var(--bo-radius); padding: 16px; margin: 0 0 18px;
  background: rgba(255, 212, 0, 0.1); box-shadow: 0 0 20px var(--bo-yellow-glow);
}
.bo-warning .title { font-weight: 800; font-size: 17px; margin: 0 0 6px; }
.bo-warning p { margin: 0 0 10px; }
.bo-warning .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bo-reuse .bo-select-wrap { margin: 10px 0 12px; }
.bo-objective .grow { display: flex; flex-direction: column; gap: 2px; }
.bo-objective .line { color: var(--bo-text-2); font-size: 14px; }
.bo-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--bo-text-2); font-size: 14px; margin-top: 4px; }
.bo-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bo-configurator .bo-cta { margin-top: 8px; }


/* Onglet Resultats (CDC 13) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bo-results-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bo-results-top .bo-period { margin-top: 14px; }
.bo-results-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.bo-results-head .grow { flex: 1; min-width: 0; }
.bo-results-head .bo-title { margin: 4px 0 2px; font-size: 26px; }
.bo-results-head .context { margin: 0 0 2px; font-size: 16px; color: var(--bo-text-2); display: flex; align-items: center; gap: 8px; }
.bo-results-head .context .bo-obj-icon { width: 22px; height: 22px; border-radius: 6px; }
.bo-results-head .context .bo-obj-icon svg { width: 14px; height: 14px; }
.bo-results-head .bo-muted { margin: 0; font-size: 15px; }
.bo-results-head .bo-period { width: 100%; }
.bo-obj-icon {
  width: 60px; height: 60px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30, 94, 255, 0.25); border: 1px solid var(--bo-card-border);
}
.bo-obj-icon svg { width: 32px; height: 32px; }
.bo-obj-icon.google { background: #ffffff; border-color: #ffffff; }
.bo-obj-icon.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); border-color: transparent; }
.bo-obj-icon.tiktok { background: #010101; border-color: #333; }
.bo-obj-icon.facebook { background: #ffffff; border-color: #ffffff; }
.bo-obj-icon.contacts { background: var(--bo-blue); border-color: transparent; }
.bo-result-card .figures { color: var(--bo-text); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.bo-result-card .figures span { white-space: nowrap; }
.bo-result-card .figures strong { color: var(--bo-yellow); font-weight: 800; }

/* Selecteur de periode (CDC 13.2) */
.bo-period { display: flex; align-items: center; gap: 10px; margin: 0; }
.bo-period-field {
  display: inline-flex; align-items: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 0 14px; border-radius: var(--bo-radius-sm);
  border: 1.5px solid var(--bo-field-border); background: var(--bo-field); color: var(--bo-text);
}
.bo-period-field select {
  flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--bo-text);
  font-size: 16px; font-weight: 600; outline: none; cursor: pointer;
}
.bo-period-field select option { color: #0b2a6f; }

/* KPI des resultats (CDC 13.3) */
.bo-kpis.results { grid-template-columns: repeat(3, 1fr); margin-top: 4px; }
.bo-kpis.results.four { grid-template-columns: repeat(2, 1fr); }
.bo-kpis.results .bo-kpi { text-align: center; padding: 14px 8px 12px; }
.bo-kpis.results .kpi-icon { display: inline-flex; width: 34px; height: 34px; margin-bottom: 6px; }
.bo-kpis.results .kpi-icon svg { width: 100%; height: 100%; }
.bo-kpis.results .value { display: block; font-size: 28px; }
.bo-kpis.results .name { font-size: 14px; color: var(--bo-text); margin-top: 6px; }
.bo-kpi .trend { margin-top: 8px; font-size: 13px; line-height: 1.3; }
.bo-kpi .trend .delta { display: block; font-weight: 800; }
.bo-kpi .trend.up .delta { color: #22c55e; }
.bo-kpi .trend.down .delta { color: var(--bo-red); }
.bo-kpi .trend.flat .delta { color: var(--bo-text-2); }
.bo-kpi .trend .vs { display: block; color: var(--bo-text-2); font-size: 12px; }

/* Graphique (CDC 13.5) */
.bo-chart { padding: 16px 12px 8px; }
.bo-chart-title { font-size: 18px; font-weight: 800; margin: 0 4px 8px; }
.bo-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bo-chart-svg .grid { stroke: rgba(157, 180, 232, 0.28); stroke-width: 1; }
.bo-chart-svg .tick { fill: var(--bo-text-2); font-size: 11px; font-family: inherit; }
.bo-chart-svg .line { fill: none; stroke: var(--bo-yellow); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--bo-yellow-glow)); }
.bo-chart-svg .dot { fill: var(--bo-yellow); stroke: var(--bo-navy); stroke-width: 1.5; }

/* Resultats par boite (CDC 13.6) */
.bo-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bo-box-figures { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 14px; color: var(--bo-text-2); }
.bo-box-figures strong { color: var(--bo-text); font-size: 17px; font-weight: 800; margin-right: 3px; }
.bo-bar { height: 6px; border-radius: 6px; background: rgba(157, 180, 232, 0.25); margin-top: 10px; overflow: hidden; }
.bo-bar span { display: block; height: 100%; border-radius: 6px; background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }

/* Bon a savoir (CDC 13.9) */
.bo-tip { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.bo-tip .bulb { width: 40px; height: 40px; flex: none; display: inline-flex; }
.bo-tip .bulb svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px var(--bo-yellow-glow)); }
.bo-tip .tip-title { margin: 0 0 4px; color: var(--bo-yellow); font-weight: 800; font-size: 16px; }
.bo-tip .tip-text { margin: 0; color: var(--bo-text-2); font-size: 15px; line-height: 1.45; }

@media (min-width: 480px) {
  .bo-results-head .bo-period { width: auto; min-width: 210px; margin-left: auto; }
  .bo-kpis.results.four { grid-template-columns: repeat(4, 1fr); }
}

/* Ordinateur : centre et limite en largeur (CDC 15.8) */
@media (min-width: 768px) {
  :root { --bo-max: 560px; }
  .bo-page { padding-top: 32px; }
}
