/* Page produit TABIB-OS : même monde « Alger la Blanche » que le site,
   un seul accent (le bleu du site), captures réelles de l'application. */

/* ---------- hero ---------- */
.tb-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 6vw, 72px); }
.tb-ar { display: inline-block; margin-bottom: 14px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--sign-ar); color: var(--blue); }
.tb-hero h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.06; }
.tb-sub { margin: 20px 0 30px; max-width: 42ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.tb-hero-visual { position: relative; margin: 0; padding-bottom: 7%; }
.tb-shot-desk { width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 1px 2px rgba(15, 27, 45, .08), 0 30px 60px -24px rgba(15, 27, 45, .35); outline: 1px solid var(--line); }
.tb-shot-phone { position: absolute; right: -2%; bottom: 0; width: 24%; height: auto; border-radius: 22px; border: 6px solid var(--night); box-shadow: 0 24px 50px -18px rgba(11, 20, 38, .55); }

/* ---------- faits ---------- */
.tb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-facts > div { padding: 22px 20px 22px 0; display: grid; gap: 4px; }
.tb-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.tb-facts b { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-facts span { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- démo ---------- */
.tb-roles { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); width: max-content; max-width: 100%; margin-bottom: 22px; }
.tb-roles button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .25s var(--out), color .25s var(--out), box-shadow .25s var(--out); }
.tb-roles button:hover { color: var(--ink); }
.tb-roles button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 45, .14); }
.tb-roles button[aria-selected="true"] .ico { color: var(--blue); }

.tb-stage { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(18px, 3vw, 36px); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface), var(--canvas)); }
.tb-stage[data-view="sec"], .tb-stage[data-view="doc"], .tb-stage[data-view="tit"] { grid-template-columns: minmax(0, 1fr); }
.tb-stage[data-view="sec"] .tb-phone, .tb-stage[data-view="doc"] .tb-phone, .tb-stage[data-view="tit"] .tb-phone { display: none; }
.tb-stage[data-view="mob"] { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.tb-stage[data-view="mob"] .tb-desktop { display: none; }
.tb-stage[data-view="mob"] .tb-phone { width: min(340px, 100%); }
.tb-device { min-width: 0; }
.tb-desktop { border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 45, .08), 0 24px 48px -24px rgba(15, 27, 45, .3); }
.tb-bezel { display: flex; align-items: center; height: 34px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tb-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tb-phone { width: 270px; border-radius: 34px; padding: 9px; background: var(--night); box-shadow: 0 24px 48px -20px rgba(11, 20, 38, .6); }
.tb-phone .tb-viewport { border-radius: 26px; }
.tb-viewport { position: relative; overflow: hidden; background: #f4f5f2; }
.tb-viewport iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #f4f5f2; }

.tb-guide { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; margin-top: 26px; }
.tb-tasks { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tb-tasks[hidden] { display: none; }
.tb-tasks li { counter-increment: t; position: relative; padding-left: 44px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.tb-tasks li::before { content: counter(t); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 15px; }
.tb-tasks b { color: var(--ink); }
.tb-guide-actions { display: flex; gap: 8px; }
.tb-guide-actions .pill { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.tb-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- profils (bento) ---------- */
.tb-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tb-tile { display: grid; gap: 16px; align-content: start; padding: 14px 14px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 45, .05); }
.tb-tile img { width: 100%; height: auto; border-radius: var(--r-sm); outline: 1px solid var(--line); }
.tb-tile > div { padding: 0 8px; }
.tb-tile h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.tb-tile h3 .ico { color: var(--blue); width: 22px; height: 22px; }
.tb-tile p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 56ch; }
.tb-tile-doc { grid-column: span 7; }
.tb-tile-sec { grid-column: span 5; }
.tb-tile-tit { grid-column: span 5; }
.tb-tile-mob { grid-column: span 7; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 28px; background: var(--night); color: var(--on-night); }
.tb-tile-mob img { outline: 0; border-radius: 20px; border: 5px solid #1c2a44; max-height: 320px; width: auto; justify-self: center; }
.tb-tile-mob p { color: var(--on-night-2); }
.tb-tile-mob h3 .ico { color: var(--amber); }

/* ---------- hors ligne ---------- */
.tb-offline { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.tb-offline h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; }
.tb-offline .lead { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 48ch; }

/* ---------- loi ---------- */
.tb-law { border-radius: var(--r-xl); background: var(--night); color: var(--on-night); padding: clamp(28px, 5vw, 64px); }
.tb-law-head { max-width: 760px; }
.tb-law-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; color: #fff; }
.tb-law-head p { margin: 16px 0 0; font-size: 18px; color: var(--on-night-2); max-width: 60ch; }
.tb-law-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 40px; }
.tb-law h3 { font-size: 19px; color: #fff; margin-bottom: 16px; }
.tb-law .tb-checks li { color: var(--on-night-2); }
.tb-law .tb-checks b { color: #fff; }
.tb-law .tb-checks li::before { background-color: var(--amber); }
.tb-law-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: var(--on-night-2); }

.tb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tb-checks li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.tb-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background-color: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%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 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- installation ---------- */
.tb-setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: st; }
.tb-setup li { counter-increment: st; display: grid; gap: 12px; align-content: start; }
.tb-setup img { width: 100%; height: auto; aspect-ratio: 1366 / 768; object-fit: cover; object-position: top left; border-radius: var(--r); outline: 1px solid var(--line); }
.tb-setup h3 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; }
.tb-setup h3::before { content: counter(st); display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; }
.tb-setup p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tb-kit { margin-top: 34px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--surface); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 40px; align-items: center; }
.tb-kit h3 { font-size: 19px; }
.tb-kit ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.tb-kit li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.tb-kit .ico { color: var(--blue); margin-top: 3px; }

/* ---------- prix ---------- */
.tb-price { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tb-price h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; }
.tb-price > div > p { margin: 16px 0 24px; font-size: 18px; color: var(--muted); max-width: 48ch; }
.tb-price-card { display: grid; justify-items: start; gap: 8px; padding: 32px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.tb-price-name { font-weight: 600; color: var(--ink-2); }
.tb-price-amount { font-size: clamp(40px, 5vw, 56px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tb-price-amount small { font-size: 20px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tb-price-once { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.tb-price-pay { font-size: 14px; color: var(--muted); }

/* ---------- apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--out), transform .7s var(--out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tb-stage { grid-template-columns: minmax(0, 1fr) 240px; }
  .tb-phone { width: 240px; }
  .tb-tasks { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tb-hero, .tb-offline, .tb-price, .tb-law-cols { grid-template-columns: 1fr; }
  .tb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .tb-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tb-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tb-stage[data-view="both"] .tb-desktop { display: none; }
  .tb-stage .tb-desktop { justify-self: stretch; }
  .tb-guide { grid-template-columns: 1fr; }
  .tb-bento { grid-template-columns: 1fr; }
  .tb-tile-doc, .tb-tile-sec, .tb-tile-tit, .tb-tile-mob { grid-column: auto; grid-row: auto; }
  .tb-tile-mob { grid-template-columns: 1fr; }
  .tb-setup { grid-template-columns: 1fr; }
  .tb-kit { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tb-roles { border-radius: var(--r-lg); width: 100%; }
  .tb-roles button { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 14px; }
  .tb-kit ul { grid-template-columns: 1fr; }
  .tb-price-card { padding: 24px; }
  .tb-price-card .pill { width: 100%; }
  .tb-shot-phone { width: 30%; border-width: 4px; border-radius: 16px; }
}
