/* ============================================================================
   Offres — VUE COMPACTE (offres_tableau.php)
   ----------------------------------------------------------------------------
   Colonne étroite, étapes numérotées, options en accordéon. Autonome : cette
   feuille ne dépend plus de offres.css pour la mise en page (seuls les combos
   et le récapitulatif y puisaient auparavant, ce qui rendait les deux vues
   difficiles à faire évoluer séparément).
   ========================================================================== */

.bot-page {
  --bot-ink:     #13294B;
  --bot-muted:   #6B7A90;
  --bot-line:    #E1E7F0;
  --bot-accent:  #184280;
  --bot-accent-soft: #EAF1FB;
  --bot-amber:   #F5B935;

  background: #F6F8FC;
  padding: clamp(24px, 5vw, 44px) 0 72px;
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  color: var(--bot-ink);
}

/* Colonne unique et étroite : le regard descend, rien ne part sur les côtés.
   Un tableau large obligeait à défiler horizontalement sur téléphone. */
.bot-shell {
  width: min(660px, 100% - clamp(28px, 8vw, 48px));
  margin: 0 auto;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.bot-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bot-amber); margin: 0 0 10px;
}
.bot-title  { font-size: clamp(26px, 5.5vw, 36px); font-weight: 800; margin: 0 0 8px; line-height: 1.15; }
.bot-lead   { font-size: 14.5px; line-height: 1.6; color: var(--bot-muted); margin: 0 0 30px; max-width: 46ch; }
.bot-altview {
  display: inline-block; margin-left: 4px; font-weight: 600; color: var(--bot-accent);
  text-decoration: none; border-bottom: 1px solid rgba(24,66,128,.3);
}
.bot-altview:hover { color: #C08A0C; border-bottom-color: #C08A0C; }

.bot-alert {
  background: #FDECEA; border: 1px solid #F5C6C2; color: #B3261E;
  border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-size: 14px;
}

/* ── Bandeau d'état (non connecté / sans infofiche) ──────────────────────── */
.bot-gate {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  background: #FFF8E7; border: 1px solid #F0E0B8; border-radius: 16px;
  padding: 16px 18px; margin: 0 0 26px;
}
.bot-gate__ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: var(--bot-amber); color: var(--bot-ink);
  display: grid; place-items: center; font-size: 21px;
}
.bot-gate__txt { flex: 1 1 240px; min-width: 0; font-size: 14px; line-height: 1.55; color: #6B5417; }
.bot-gate__txt strong { display: block; color: #4A3A0E; font-size: 15px; margin-bottom: 3px; }
.bot-gate__act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.bot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, opacity .15s;
}
.bot-btn--primary { background: var(--bot-ink); color: #fff; }
.bot-btn--primary:hover:not(:disabled) { background: #0E1F3A; color: #fff; }
.bot-btn--primary:disabled { opacity: .4; cursor: not-allowed; }
.bot-btn--ghost { background: transparent; color: var(--bot-accent); border-color: #D6C69A; }
.bot-btn--ghost:hover { background: #fff; color: var(--bot-accent); }
.bot-btn--block { width: 100%; margin-top: 18px; }

.bot-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--bot-accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.bot-link:hover { color: #C08A0C; }

/* ── Étapes numérotées ───────────────────────────────────────────────────── */
.bot-step { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.bot-step__n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bot-ink); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.bot-step__t { margin: 0; font-size: 16px; font-weight: 800; }

.bot-hr { border: 0; border-top: 1px solid var(--bot-line); margin: 32px 0 26px; }

.bot-hint { font-size: 12.5px; color: var(--bot-muted); margin: 10px 0 0; }
.bot-hint.is-warn { color: #B37A00; font-weight: 600; }

/* ── Pastilles d'infofiches (sélection multiple) ─────────────────────────── */
.bot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border: 1.5px solid var(--bot-line); border-radius: 999px;
  background: #fff; cursor: pointer; user-select: none;
  font-size: 13.5px; font-weight: 600; color: var(--bot-ink);
  transition: border-color .15s, background .15s, color .15s;
  max-width: 100%;
}
.bot-chip:hover { border-color: #B9C9E2; }
.bot-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.bot-chip.is-on { background: var(--bot-accent); border-color: var(--bot-accent); color: #fff; }
.bot-chip:focus-within { box-shadow: 0 0 0 3px rgba(24,66,128,.18); }

.bot-chip__av {
  flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(150deg, #1F3A6B, #0F2240);
}
.bot-chip__av--txt {
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800;
}
.bot-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.bot-chip__tick { flex: none; opacity: 0; transition: opacity .15s; }
.bot-chip.is-on .bot-chip__tick { opacity: 1; }

.bot-chips-bar { display: flex; gap: 14px; margin-top: 10px; }

/* ── Combos ──────────────────────────────────────────────────────────────── */
.bot-combos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.bot-combos__lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--bot-muted); margin-right: 2px;
}
.bot-combo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--bot-line); border-radius: 999px;
  background: #fff; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--bot-ink);
  transition: background .15s, color .15s, border-color .15s;
}
.bot-combo:hover:not(:disabled) { border-color: var(--bot-ink); }
.bot-combo.is-on { background: var(--bot-ink); border-color: var(--bot-ink); color: #fff; }
.bot-combo small { font-weight: 800; color: var(--bot-amber); }
.bot-combo.is-on small { color: var(--bot-amber); }
.bot-combo:disabled { opacity: .5; cursor: default; }

/* ── Liste des options ───────────────────────────────────────────────────── */
.bot-list { border-top: 2px solid var(--bot-ink); background: #fff; border-radius: 0 0 4px 4px; }
.bot-row  { border-bottom: 1px solid var(--bot-line); }

.bot-row__head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px; cursor: pointer; transition: background .14s;
}
.bot-row__head:hover  { background: #FAFCFF; }
.bot-row__head:focus-visible { outline: 2px solid var(--bot-accent); outline-offset: -2px; }
.bot-row.is-on  .bot-row__head { background: #F5F9FF; }
.bot-row.is-open .bot-row__head { background: #F1F6FE; }

/* Case dessinée : la case native ne prend pas la couleur de marque et reste
   trop petite pour être visée au doigt. */
.bot-check {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid #C6D3E6; background: #fff;
  display: grid; place-items: center; color: transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.bot-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.bot-row.is-on .bot-check { background: var(--bot-accent); border-color: var(--bot-accent); color: #fff; }
.bot-check:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(24,66,128,.22); }

.bot-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--bot-accent-soft); color: var(--bot-accent);
  display: grid; place-items: center; font-size: 18px;
}

.bot-row__id   { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bot-row__name { font-size: 15px; font-weight: 800; }
.bot-row__tier {
  font-size: 12px; color: var(--bot-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bot-row__price { flex: none; font-size: 14px; font-weight: 800; color: #C5CEDC; }
.bot-row__price.is-on { color: var(--bot-ink); }

.bot-chev { flex: none; color: var(--bot-muted); transition: transform .2s; }
.bot-row.is-open .bot-chev { transform: rotate(180deg); }

.bot-row__body { padding: 0 14px 20px 68px; }
.bot-row__body[hidden] { display: none; }
.bot-row__desc { font-size: 13px; line-height: 1.55; color: #45566E; margin: 0 0 12px; }

.bot-owned {
  display: flex; align-items: flex-start; gap: 6px; margin: 0 0 12px;
  font-size: 12.5px; font-weight: 600; color: #1F9D6B;
}
.bot-owned ion-icon { flex: none; font-size: 15px; margin-top: 1px; }

.bot-tier {
  width: 100%; max-width: 300px;
  padding: 10px 34px 10px 12px;
  border: 1.5px solid var(--bot-line); border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 13.5px; color: var(--bot-ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A90' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.bot-tier:focus { outline: none; border-color: var(--bot-accent); box-shadow: 0 0 0 3px rgba(24,66,128,.12); }
.bot-tier:disabled { background-color: #F6F8FC; color: #9BA8B5; cursor: default; }

/* ── Total ───────────────────────────────────────────────────────────────── */
.bot-total { border-top: 2px solid var(--bot-ink); background: #fff; padding: 18px 14px 20px; }
.bot-total__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bot-total__lbl { font-size: 16px; font-weight: 800; }
.bot-total__sub { font-size: 12px; color: var(--bot-muted); margin-top: 2px; }
.bot-total__val { flex: none; font-size: 24px; font-weight: 800; color: var(--bot-accent); }

.bot-lines { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bot-lines:empty { display: none; }
.bot-lines li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #45566E;
}
.bot-lines li span:last-child { flex: none; font-weight: 600; }
.bot-lines li.is-combo { color: #1F7A4D; font-weight: 600; }
.bot-lines li.is-mult  { color: var(--bot-accent); font-weight: 600; }

.bot-save { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: #1F7A4D; }
.bot-save[hidden] { display: none; }

/* Formulaire verrouillé : le catalogue reste lisible, mais rien ne laisse
   croire qu'on peut cocher. */
#botForm.is-locked .bot-row__head { cursor: default; }
#botForm.is-locked .bot-row__head:hover { background: transparent; }

/* ── Petits écrans ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .bot-row__head  { gap: 11px; padding: 14px 10px; }
  .bot-ico        { width: 32px; height: 32px; font-size: 16px; }
  .bot-row__body  { padding: 0 10px 18px 10px; }
  .bot-row__price { font-size: 13.5px; }
  .bot-chip__name { max-width: 130px; }
  .bot-tier       { max-width: none; }
  .bot-gate       { flex-direction: column; }
  .bot-gate__act  { width: 100%; }
  .bot-gate__act .bot-btn { flex: 1 1 auto; }
  .bot-page{margin-top: 5%;}
}
