/* ============================================================
   presentation.css — châssis + composants des decks de présentation
   (ThinkBox & Analiz). À charger APRÈS skb-shared.css : réutilise ses
   tokens (thème clair/sombre). Scope global : .skb-page.deck
   - .deck        → base + pont de variables + châssis + typo (COMMUN)
   - .deck-tb {}  → composants propres au deck ThinkBox (nesting)
   - .deck-az {}  → composants propres au deck Analiz  (nesting)
   ============================================================ */

/* ── Plein écran (page /presentation/) ── */
html, body { height: 100%; margin: 0; overflow: hidden; }

/* ── Coquille du deck ── */
.deck {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: 'Geist', system-ui, sans-serif;
  z-index: 1; overflow: hidden;
}

/* ============================================================
   1. PONT DE VARIABLES — alias des noms locaux des decks vers
   les tokens de skb-shared. Les valeurs sombres de skb-shared
   SONT déjà celles qu'utilisait le deck ThinkBox → 0 changement
   en sombre, et le thème clair devient géré automatiquement.
   ============================================================ */
.deck {
  --indigo:      var(--accent);
  --indigo-dim:  var(--accent-dim);
  --indigo-glow: var(--hero-glow);
  --surface2:    var(--surface-2);
  --surface3:    var(--surface-3);
  --border2:     var(--line-2);
  --muted2:      var(--muted-2);
  --orange:      var(--amber);
  --green-dim:   color-mix(in oklab, var(--green)    15%, transparent);
  --orange-dim:  color-mix(in oklab, var(--amber)    15%, transparent);
  --cyan-dim:    color-mix(in oklab, var(--cyan)     13%, transparent);
  --rose:        var(--accent-2);
  --rose-dim:    color-mix(in oklab, var(--accent-2) 13%, transparent);
  --slide-accent: var(--accent);
  /* bordures translucides (remplacent les rgba(x,~0.3) d'origine) */
  --bd-accent: color-mix(in oklab, var(--accent)   34%, transparent);
  --bd-green:  color-mix(in oklab, var(--green)    34%, transparent);
  --bd-amber:  color-mix(in oklab, var(--amber)    34%, transparent);
  --bd-cyan:   color-mix(in oklab, var(--cyan)     34%, transparent);
  --bd-rose:   color-mix(in oklab, var(--accent-2) 34%, transparent);
}

/* ============================================================
   2. CHÂSSIS COMMUN (nav haute, piste de slides, barre basse)
   ============================================================ */
.deck .topnav {
  flex-shrink: 0; display: flex; align-items: stretch;
  height: 60px; padding: 0 8px; gap: 2px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.deck .topnav::-webkit-scrollbar { display: none; }
.deck .nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 8px; margin-right: 4px; flex-shrink: 0;
  border-right: 1px solid var(--border); text-decoration: none;
  position: sticky; left: 0; z-index: 3; background: var(--surface);
}
.deck .nav-tab {
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
  font-size: 0.76rem; font-weight: 600; color: var(--muted);
  cursor: pointer; background: none; border: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
  flex-shrink: 0; font-family: 'Geist', sans-serif;
  transition: color .2s, border-color .2s;
}
.deck .nav-tab:hover { color: var(--text); }
.deck .nav-tab.active { color: var(--text); border-bottom-color: var(--slide-accent); }
.deck .tab-icon { font-size: 0.9rem; }

.deck .slides-outer { flex: 1; overflow: hidden; position: relative; }
.deck .slides-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(0.4,0,0.2,1); }
.deck .slide {
  flex-shrink: 0; width: 100%; height: 100%; overflow-y: auto;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.deck .slide-inner {
  max-width: 1120px; width: 100%; margin: 0 auto;
  padding: 44px 40px 92px; flex: 1;
}

.deck .bottombar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 24px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.deck .nav-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-hover); background: var(--surface2); color: var(--muted);
  font-family: 'Geist', sans-serif; transition: all 0.15s;
}
.deck .nav-btn:hover { color: var(--text); border-color: var(--accent); }
.deck .nav-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.deck .nav-btn:disabled { opacity: 0.35; cursor: default; }
.deck .nav-btn:disabled:hover { border-color: var(--border-hover); color: var(--muted); }
.deck .dots { display: flex; gap: 8px; align-items: center; }
.deck .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-hover); cursor: pointer; transition: all .2s; }
.deck .dot.active { background: var(--accent); width: 20px; border-radius: 3px; }

/* ── Typographie de slide (les 2 decks : classes distinctes, non conflictuelles) ── */
.deck .eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slide-accent); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.deck .eyebrow::before { content:''; display:block; width:20px; height:1px; background: var(--slide-accent); }
.deck .slide-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.7rem,3.4vw,2.5rem); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 12px;
}
.deck .slide-title em { font-style: normal; color: var(--slide-accent); }
.deck .slide-subtitle { font-size: 0.93rem; color: var(--muted); max-width: 560px; line-height: 1.6; margin-bottom: 32px; }
.deck .ttl { font-family: var(--font-display); font-size: clamp(1.8rem,3.4vw,2.6rem); margin-bottom: 14px; }
.deck .ttl em { font-style: normal; color: var(--accent-light); }
.deck .sub { font-size: 0.95rem; margin-bottom: 30px; }
.deck .sep { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Grille de cartes générique (utilisée par ThinkBox) ── */
.deck .cards { display: grid; gap: 12px; }
.deck .cards-2 { grid-template-columns: 1fr 1fr; }
.deck .cards-3 { grid-template-columns: 1fr 1fr 1fr; }
.deck .cards-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
@media(max-width:640px) { .deck .cards-2,.deck .cards-3,.deck .cards-4 { grid-template-columns:1fr; } }

/* ── Responsive mobile (commun) ── */
@media(max-width:600px){
  .deck .slide-inner{ padding:28px 18px 80px; }
  .deck .topnav{ height:54px; }
  .deck .bottombar{ padding:0 12px; }
  .deck .nav-btn{ padding:8px 12px; font-size:0.75rem; }
}

/* ── Keyframes (au niveau racine : non imbricables) ── */
@keyframes mIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@keyframes tb { 0%,60%,100%{transform:translateY(0);opacity:.4;} 30%{transform:translateY(-5px);opacity:1;} }
@keyframes tbmp { 0%{box-shadow:0 0 0 0 var(--indigo-dim)} 60%{box-shadow:0 0 0 10px transparent} 100%{box-shadow:0 0 0 0 transparent} }

/* ============================================================
   3. DECK THINKBOX — composants propres (scopés .deck-tb)
   ============================================================ */
.deck-tb {
  /* marque + onglet devis */
  & .nav-brand img { height: 30px; width: auto; display: block; }
  & .nav-brand-label { font-size: 0.95rem; font-weight: 700; line-height: 1; color: var(--text); white-space: nowrap; }
  & .nav-devis { margin-left:auto; position:sticky; right:0; z-index:3; align-self:center; display:inline-flex; align-items:center; gap:6px; margin-right:4px; padding:8px 16px; border-radius:8px; background:var(--accent); color:#fff; font-size:0.75rem; font-weight:700; font-family:'Geist',sans-serif; text-decoration:none; white-space:nowrap; flex-shrink:0; transition:background .2s; }
  & .nav-devis:hover { background:var(--accent-hover); }

  /* cartes génériques (slide technique) */
  & .card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; transition: border-color 0.2s, background 0.2s; }
  & .card:hover { border-color: var(--slide-accent); background: var(--surface3); }
  & .card-icon { font-size: 1.3rem; margin-bottom: 10px; }
  & .card h3 { font-size: 0.86rem; font-weight: 700; margin-bottom: 5px; font-family: 'Geist', sans-serif; }
  & .card p { font-size: 0.77rem; color: var(--muted); line-height: 1.5; }
  & .tag { display: inline-block; margin-top: 10px; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
  & .tag-indigo { background: var(--indigo-dim); color: var(--indigo); border: 1px solid var(--bd-accent); }
  & .tag-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid var(--bd-green); }
  & .tag-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--bd-amber); }
  & .tag-cyan   { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid var(--bd-cyan); }
  & .tag-rose   { background: var(--rose-dim);   color: var(--rose);   border: 1px solid var(--bd-rose); }

  /* info-box */
  & .info-box { border-radius: 8px; padding: 13px 16px; font-size: 0.81rem; display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; line-height: 1.5; }
  & .info-box.indigo { background: var(--indigo-glow); border: 1px solid var(--bd-accent); }
  & .info-box.green  { background: var(--green-dim);   border: 1px solid var(--bd-green); }
  & .info-box.orange { background: var(--orange-dim);  border: 1px solid var(--bd-amber); }
  & .info-box.cyan   { background: var(--cyan-dim);    border: 1px solid var(--bd-cyan); }
  & .info-box.warn   { background: var(--orange-dim);  border: 1px solid var(--bd-amber); }
  & .info-box .ib-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
  & .info-box .ib-text { color: var(--text); }
  & .info-box.indigo strong { color: var(--indigo); }
  & .info-box.green  strong { color: var(--green); }
  & .info-box.orange strong { color: var(--orange); }
  & .info-box.cyan   strong { color: var(--cyan); }
  & .info-box.warn   strong { color: var(--orange); }

  /* accent de slide → toujours l'accent du site */
  & [data-accent] { --slide-accent: var(--accent); }

  /* slide 0 — souveraineté */
  & .sovereignty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  & .sov-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; transition: border-color 0.2s; }
  & .sov-card:hover { border-color: var(--indigo); }
  & .sov-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
  & .sov-body strong { display: block; font-size: 0.84rem; font-weight: 700; font-family:'Geist', sans-serif; margin-bottom: 4px; }
  & .sov-body span { font-size: 0.75rem; color: var(--muted); line-height: 1.45; }
  & .eu-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-dim); border: 1px solid var(--bd-green); border-radius: 8px; padding: 10px 16px; font-size: 0.8rem; font-weight: 600; color: var(--green); margin-bottom: 20px; }
  & .feature-highlight { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 6px; }
  & .fh-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 14px 16px; text-align: center; }
  & .fh-item .fh-val { font-family: 'Geist', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--indigo); line-height: 1; margin-bottom: 5px; }
  & .fh-item .fh-label { font-size: 0.72rem; color: var(--muted); line-height: 1.3; }
  @media(max-width:580px) { & .sovereignty-grid, & .feature-highlight { grid-template-columns:1fr; } }

  /* slide 2 — espaces génériques */
  & .ws-generic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  & .ws-g-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
  & .ws-g-card:hover { border-color: var(--slide-accent); }
  & .ws-g-header { padding: 11px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); font-size: 0.82rem; font-weight: 700; font-family: 'Geist', sans-serif; }
  & .ws-g-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  & .ws-g-body { padding: 12px 14px; }
  & .ws-g-body p { font-size: 0.76rem; color: var(--muted); line-height: 1.45; margin-bottom: 10px; }
  & .ws-g-tags { display: flex; flex-wrap: wrap; gap: 5px; }
  & .ws-g-tag { font-size: 0.67rem; padding: 3px 8px; border-radius: 4px; background: var(--surface3); border: 1px solid var(--border2); color: var(--muted); }
  & .rule-box { background: var(--surface2); border: 1px solid var(--border2); border-radius: 9px; padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
  & .rule-item { display: flex; gap: 10px; align-items: flex-start; }
  & .rule-item .ri-icon { font-size: 1.1rem; flex-shrink: 0; margin-top:1px; }
  & .rule-item strong { display: block; font-size: 0.8rem; margin-bottom: 2px; font-family:'Geist', sans-serif; }
  & .rule-item span { font-size: 0.74rem; color: var(--muted); line-height: 1.4; }
  @media(max-width:580px) { & .ws-generic { grid-template-columns:1fr; } }
  @media(max-width:560px) { & .rule-box { grid-template-columns:1fr; } }

  /* slide 3 — ingestion */
  & .ingestion-hero { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  & .ing-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 11px; padding: 20px 18px; position: relative; overflow: hidden; transition: border-color 0.2s; }
  & .ing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
  & .ing-card.ic-drop::before { background: var(--indigo); }
  & .ing-card.ic-crawl::before { background: var(--green); }
  & .ing-card.ic-sync::before { background: var(--orange); }
  & .ing-card:hover { border-color: var(--slide-accent); }
  & .ing-card .ic-emoji { font-size: 1.8rem; margin-bottom: 12px; }
  & .ing-card h3 { font-size: 0.9rem; font-weight: 700; font-family:'Geist', sans-serif; margin-bottom: 6px; }
  & .ing-card p { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
  & .ing-card .ic-badge { margin-top: 12px; display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; }
  & .ic-drop .ic-badge  { background: var(--indigo-dim); color: var(--indigo); border: 1px solid var(--bd-accent); }
  & .ic-crawl .ic-badge { background: var(--green-dim);  color: var(--green);  border: 1px solid var(--bd-green); }
  & .ic-sync .ic-badge  { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--bd-amber); }
  & .format-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
  & .fmt-chip { background: var(--surface3); border: 1px solid var(--border2); border-radius: 5px; padding: 5px 11px; font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; color: var(--muted); }
  & .sync-flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 8px; margin-top: 10px; }
  & .sf-node { background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; padding: 8px 14px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
  & .sf-node.accent { border-color: var(--orange); background: var(--orange-dim); color: var(--orange); }
  & .sf-node.green  { border-color: var(--green);  background: var(--green-dim);  color: var(--green); }
  & .sf-arrow { padding: 0 8px; color: var(--muted2); font-size: 0.9rem; }
  @media(max-width:580px) { & .ingestion-hero { grid-template-columns:1fr; } }

  /* slide 5 — chat client */
  & .chat-demo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
  & .chat-panel { background: var(--surface2); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
  & .cp-header { padding: 13px 16px; background: linear-gradient(135deg, var(--accent-dim), var(--indigo-glow)); border-bottom: 1px solid var(--bd-accent); display: flex; align-items: center; gap: 11px; }
  & .cp-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--indigo); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
  & .cp-header .cp-name { font-size: 0.84rem; font-weight: 600; }
  & .cp-header .cp-status { font-size: 0.68rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
  & .cp-header .cp-status::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }
  & .cp-messages { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
  & .cpm { max-width: 86%; }
  & .cpm.bot { align-self: flex-start; }
  & .cpm.user { align-self: flex-end; }
  & .cpm .bbl { padding: 8px 12px; border-radius: 9px; font-size: 0.78rem; line-height: 1.45; }
  & .cpm.bot .bbl { background: var(--surface3); border: 1px solid var(--border2); color: var(--text); }
  & .cpm.user .bbl { background: var(--indigo); color: white; }
  & .cpm .src { font-size: 0.63rem; color: var(--indigo); margin-top: 4px; opacity: 0.8; }
  & .cp-input { padding: 10px; border-top: 1px solid var(--border); display: flex; gap: 7px; }
  & .cp-input input { flex:1; background: var(--surface); border: 1px solid var(--border2); border-radius: 6px; padding: 7px 10px; font-size: 0.77rem; color: var(--muted); font-family: 'Geist', sans-serif; }
  & .cp-input button { background: var(--indigo); border: none; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; color: white; font-size: 0.8rem; }
  & .channel-list { display: flex; flex-direction: column; gap: 8px; }
  & .ch-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; transition: border-color 0.15s; }
  & .ch-item:hover { border-color: var(--indigo); }
  & .ch-icon { font-size: 1.3rem; flex-shrink: 0; }
  & .ch-info strong { display: block; font-size: 0.82rem; margin-bottom: 2px; }
  & .ch-info span { font-size: 0.74rem; color: var(--muted); }
  & .ch-tag { margin-left: auto; flex-shrink: 0; }
  @media(max-width:600px) { & .chat-demo-grid { grid-template-columns:1fr; } }

  /* slide 6 — répondeur */
  & .phone-flow { display: flex; flex-direction: column; gap: 0; }
  & .pf-step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; transition: border-color 0.15s; }
  & .pf-step:hover { border-color: var(--slide-accent); }
  & .pf-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
  & .pf-body strong { display: block; font-size: 0.83rem; font-family:'Geist', sans-serif; margin-bottom: 3px; }
  & .pf-body span { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
  & .pf-connector { width: 2px; height: 14px; background: var(--border2); margin: 3px 0 3px 19px; }

  /* slide 7 — onboarding rh */
  & .onb-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
  & .onb-timeline::before { content:''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(to bottom, var(--indigo), var(--green)); }
  & .onb-item { display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; position: relative; }
  & .onb-dot { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; position: relative; z-index: 1; }
  & .onb-item:nth-child(1) .onb-dot { background: var(--indigo-dim); border: 1px solid var(--bd-accent); }
  & .onb-item:nth-child(2) .onb-dot { background: var(--cyan-dim); border: 1px solid var(--bd-cyan); }
  & .onb-item:nth-child(3) .onb-dot { background: var(--green-dim); border: 1px solid var(--bd-green); }
  & .onb-item:nth-child(4) .onb-dot { background: var(--orange-dim); border: 1px solid var(--bd-amber); }
  & .onb-item:nth-child(5) .onb-dot { background: var(--green-dim); border: 1px solid var(--bd-green); }
  & .onb-body { padding-top: 8px; }
  & .onb-body strong { display: block; font-size: 0.86rem; font-family:'Geist', sans-serif; margin-bottom: 3px; }
  & .onb-body span { font-size: 0.77rem; color: var(--muted); line-height: 1.45; }
  & .onb-example { margin-top: 6px; background: var(--indigo-glow); border: 1px solid var(--bd-accent); border-radius: 6px; padding: 7px 10px; font-size: 0.74rem; color: var(--text); font-style: italic; }

  /* slide 8 — technique */
  & .tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  & .tech-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; transition: border-color 0.2s; }
  & .tech-card:hover { border-color: var(--slide-accent); }
  & .tc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  & .tc-head .tc-icon { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
  & .tc-head strong { font-size: 0.86rem; font-family:'Geist', sans-serif; }
  & .tech-card p { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
  & .tech-card ul { list-style: none; }
  & .tech-card ul li { font-size: 0.76rem; color: var(--muted); padding: 3px 0; display: flex; gap: 7px; align-items: flex-start; line-height: 1.4; }
  & .tech-card ul li::before { content:"·"; color: var(--slide-accent); flex-shrink: 0; font-weight: 700; }
  & .code-block { background: var(--surface); border: 1px solid var(--border2); border-radius: 9px; overflow: hidden; margin-top: 6px; }
  & .code-bar { padding: 8px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; background: var(--surface2); }
  & .code-bar .cb-dot { width: 8px; height: 8px; border-radius: 50%; }
  & .code-bar .cb-title { font-size: 0.7rem; color: var(--muted); margin-left: 4px; font-family:'JetBrains Mono',monospace; }
  & .code-content { padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; line-height: 1.7; color: var(--muted); }
  & .code-content .kw { color: var(--indigo); }
  & .code-content .cm { color: var(--green); }
  & .code-content .str { color: var(--orange); }
  & .code-content .ok { color: var(--green); font-weight: 600; }
  & .proto-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 10px; }
  & .proto-item { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 10px; text-align: center; }
  & .proto-item .pi-icon { font-size: 1.3rem; margin-bottom: 6px; }
  & .proto-item .pi-name { font-size: 0.74rem; font-weight: 600; margin-bottom: 3px; }
  & .proto-item .pi-desc { font-size: 0.66rem; color: var(--muted); line-height: 1.3; }
  @media(max-width:600px) { & .tech-grid { grid-template-columns:1fr; } }
  @media(max-width:580px) { & .proto-grid { grid-template-columns:1fr 1fr; } }

  /* slide 9 — démo live */
  & .live-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: start; }
  & .live-box { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 400px; }
  & .lb-header { padding: 13px 17px; background: linear-gradient(135deg, var(--accent-dim), var(--indigo-glow)); border-bottom: 1px solid var(--bd-accent); display: flex; align-items: center; gap: 12px; }
  & .lb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
  & .lb-name { font-size: 0.86rem; font-weight: 600; }
  & .lb-status { font-size: 0.68rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
  & .lb-status::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }
  & #lc-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  & .lm { max-width: 88%; animation: mIn 0.2s ease; }
  & .lm.bot { align-self: flex-start; }
  & .lm.user { align-self: flex-end; }
  & .lm .bbl { padding: 9px 13px; border-radius: 10px; font-size: 0.79rem; line-height: 1.5; }
  & .lm.bot .bbl { background: var(--surface3); border: 1px solid var(--border2); color: var(--text); }
  & .lm.user .bbl { background: var(--indigo); color: white; }
  & .lm .typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; background: var(--surface3); border: 1px solid var(--border2); border-radius: 10px; width: fit-content; }
  & .td { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tb 1.2s infinite; }
  & .td:nth-child(2) { animation-delay: 0.2s; }
  & .td:nth-child(3) { animation-delay: 0.4s; }
  & .lb-footer { padding: 10px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
  & #lc-input { flex:1; background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 9px 12px; font-size: 0.82rem; color: var(--text); font-family: 'Geist', sans-serif; transition: border-color 0.15s; }
  & #lc-input:focus { outline: none; border-color: var(--indigo); }
  & #lc-send { background: var(--indigo); border: none; border-radius: 8px; width: 38px; height: 38px; cursor: pointer; color: white; font-size: 0.85rem; transition: background 0.15s; display: flex; align-items: center; justify-content: center; }
  & #lc-send:hover { background: var(--accent-hover); }
  & #lc-send:disabled { opacity: 0.5; cursor: default; }
  & .live-side h3 { font-family: 'Geist', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
  & .live-side p { font-size: 0.81rem; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
  & .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
  & .chip { background: var(--surface2); border: 1px solid var(--border2); border-radius: 20px; padding: 6px 12px; font-size: 0.74rem; color: var(--muted); cursor: pointer; transition: all 0.15s; }
  & .chip:hover { border-color: var(--indigo); color: var(--text); background: var(--indigo-glow); }
  @media(max-width:640px) { & .live-wrap { grid-template-columns:1fr; } }

  /* badges de tier (Solo / PME / SAV) */
  & .tierb { display:inline-flex; align-items:center; font-family:'JetBrains Mono',monospace; font-size:0.6rem; font-weight:700; letter-spacing:0.04em; padding:2px 7px; border-radius:4px; text-transform:uppercase; white-space:nowrap; }
  & .t-solo { background:var(--green-dim); color:var(--green); border:1px solid var(--green); }
  & .t-pme  { background:var(--indigo-dim); color:var(--indigo); border:1px solid var(--accent); }
  & .t-sav  { background:var(--orange-dim); color:var(--orange); border:1px solid var(--amber); }
  & .tier-legend { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin-top:16px; font-size:0.74rem; color:var(--muted); }
  & .tier-legend span { display:inline-flex; align-items:center; gap:7px; }

  /* slide 1 — « Le modèle » (composant interactif tbm) */
  & .tbm-wrap{margin-top:6px}
  & .tbm-lv{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}
  & .tbm-lvl{flex:1;min-width:170px;border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:9px 12px;cursor:pointer;transition:.18s}
  & .tbm-lvl:hover{border-color:var(--indigo)}
  & .tbm-lvl.on{border-color:var(--indigo);box-shadow:0 0 0 3px var(--indigo-dim);background:var(--surface2)}
  & .tbm-lvl .n{font-size:.66rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
  & .tbm-lvl .t{font-weight:700;font-size:.88rem;margin-top:1px}
  & .tbm-cap{font-size:.9rem;color:var(--muted);margin:6px 2px 14px}
  & .tbm-cap b{color:var(--indigo)}
  & .tbm-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:14px}
  & .tbm-stack{border-radius:14px;border:1px solid var(--border);background:var(--surface);padding:12px}
  & .tbm-layer{border-radius:12px;padding:11px 13px;cursor:pointer;transition:.22s;border:1.5px solid var(--border2);background:var(--surface2)}
  & .tbm-layer .lab{display:flex;align-items:center;gap:8px;font-weight:700;font-size:.95rem}
  & .tbm-layer .tech{font-size:.68rem;color:var(--muted);font-weight:500;margin-left:auto}
  & .tbm-layer .role{font-size:.8rem;color:var(--muted);margin-top:3px}
  & .tbm-layer .em{font-size:1.1rem}
  & .tbm-base{border-color:var(--indigo)}
  & .tbm-copi{border-color:var(--green)}
  & .tbm-auto{border-color:var(--cyan)}
  & .tbm-nest{padding:11px;border-radius:12px;margin-top:9px;border:1px dashed var(--border2);background:var(--surface3)}
  & .tbm-dim{opacity:.32;filter:saturate(.5)}
  & .tbm-pulse{animation:tbmp 1s ease}
  & .tbm-detail{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px;min-height:200px}
  & .tbm-detail .kick{font-size:.66rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
  & .tbm-detail h3{margin:2px 0 0;font-size:1.2rem;font-weight:800}
  & .tbm-detail dl{margin:9px 0 0}
  & .tbm-detail dt{font-size:.66rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-top:9px}
  & .tbm-detail dd{margin:2px 0 0;font-size:.88rem}
  & .tbm-ex{margin-top:10px;background:var(--surface2);border-left:3px solid var(--indigo);border-radius:8px;padding:8px 11px;font-size:.82rem}
  & .tbm-ex b{color:var(--indigo)}
  & .tbm-diff{margin-top:8px;background:var(--green-dim);border-left:3px solid var(--green);border-radius:8px;padding:8px 11px;font-size:.82rem}
  & .tbm-diff b{color:var(--green)}
  & .tbm-demo{margin-top:18px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px 14px}
  & .tbm-demo .h{font-weight:700;font-size:.9rem;margin-bottom:9px}
  & .tbm-strip{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap}
  & .tbm-step{flex:1;min-width:148px;border:1px solid var(--border2);border-radius:11px;padding:9px 11px;background:var(--surface2);transition:.22s}
  & .tbm-step .sh{font-weight:700;font-size:.82rem;display:flex;align-items:center;gap:6px}
  & .tbm-step .sd{font-size:.74rem;color:var(--muted);margin-top:3px}
  & .tbm-step.lit{border-color:var(--indigo);box-shadow:0 0 0 3px var(--indigo-dim)}
  & .tbm-arrow{align-self:center;color:var(--muted)}
  & .tbm-play{margin-top:11px;border:1px solid var(--indigo);background:transparent;color:var(--indigo);border-radius:9px;padding:7px 13px;cursor:pointer;font-size:.8rem;font-weight:700}
  & .tbm-play:hover{background:var(--indigo-dim)}
  @media(max-width:820px){ & .tbm-grid{grid-template-columns:1fr} }
  @media(max-width:660px){ & .tbm-arrow{transform:rotate(90deg)} }
}

/* ============================================================
   4. DECK ANALIZ — composants propres (scopés .deck-az)
   ============================================================ */
.deck-az {
  & .nav-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--sur-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); font-size: 1rem; }
  & .nav-brand b { font-size: 0.95rem; color: var(--text); }

  & .card { padding: 20px 22px; border-radius: 12px; }
  & .card-icon { font-size: 1.5rem; margin-bottom: 12px; }
  & .card-title { font-size: 0.92rem; margin-bottom: 7px; }
  & .card-desc { font-size: 0.8rem; line-height: 1.55; }
  & .g3, & .g4 { gap: 12px; margin-top: 30px; }
  @media(max-width:820px){ & .g4 { grid-template-columns:1fr 1fr; } }
  @media(max-width:560px){ & .g3, & .g4 { grid-template-columns:1fr; } }

  & .step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-dim); border: 1px solid var(--bd-accent); color: var(--accent-light); font-weight: 700; font-size: 0.82rem; margin-bottom: 11px; }
  & .deck-num { font-family: 'Geist', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--accent-light); letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
  & .deck-cap { font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
  & .note { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; padding: 13px 16px; border-radius: 10px; background: var(--accent-dim); border: 1px solid var(--border-hover); font-size: 0.84rem; color: var(--text); line-height: 1.5; }
  & .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
  & .chip { font-size: 0.72rem; font-weight: 600; padding: 6px 13px; border-radius: 20px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
  & .chip.on { color: var(--text); background: var(--accent-dim); border-color: var(--accent); }
  & .tag { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-left: 8px; }
  & .tag.now { background: var(--accent-dim); color: var(--accent-light); border: 1px solid var(--bd-accent); }
  & .tag.soon { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

  /* maquette tableau de bord */
  & .mock { margin: 4px 0 18px; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--surface); }
  & .mock-bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: var(--bg); border-bottom: 1px solid var(--border); }
  & .mock-dot { width: 9px; height: 9px; border-radius: 50%; }
  & .mock-url { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--muted); margin-left: 10px; }
  & .mock-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
  & .mock-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
  & .mock-kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; }
  & .mock-kpi b { font-size: 1.1rem; display: block; }
  & .mock-kpi span { font-size: 0.64rem; color: var(--muted); }
  & .mock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; font-size: 0.74rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DECK THINKBOX EN MOBILE — corrige le 04/08/2026 (audit UX, finding Major)

   Mesure a 390 px AVANT correction : `.nav-brand` occupait 266 px des 390
   disponibles ; le premier onglet commencait a x=280 et les neuf autres etaient
   hors ecran. Les pastilles de position, elles, etaient masquees des 560 px.
   Resultat : le deck le plus riche du site (10 diapositives, 3 180 mots) se
   parcourait au seul bouton « Suivant », sans sommaire et SANS SAVOIR OU L'ON
   EN ETAIT. Son jumeau Analiz n'avait pas le defaut : sa marque tient en 100 px.

   ⚠️ CES REGLES SONT ICI, ET PAS DANS LE <style> DE LA PAGE. Mesure faite : la
   version scopee de la page perdait l'arbitrage de specificite contre
   `.deck-tb { & .nav-brand-label }` ci-dessus, et n'avait aucun effet. Une regle
   qui ne s'applique pas est pire qu'une regle absente : elle fait croire au
   correctif. Elles vivent donc dans la meme feuille, apres la regle qu'elles
   surchargent.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Le mot « ThinkBox » rend les ~166 px qui ecrasaient la barre d'onglets.
     Le monogramme reste : la marque est toujours identifiee et cliquable. */
  .deck-tb .nav-brand-label { display: none; }
  .deck-tb .nav-brand { padding: 0 8px 0 6px; gap: 0; }
  /* ⚠️ LA LARGEUR VENAIT DE L'IMAGE, PAS DU MOT. Le logo est horizontal (500x93) :
     a 30 px de haut il en fait 161 de large, et masquer le libelle ne rendait que
     70 px sur les 266. A 18 px de haut il tombe a ~97 px, marque complete comprise
     — c'est ce qui rend la barre d'onglets utilisable. Mesure, pas estimation. */
  .deck-tb .nav-brand img { height: 18px; }
  /* Le bouton de devis passe a l'icone seule : il prenait 144 px de plus. */
  .deck-tb .nav-devis { padding: 8px 10px; font-size: 0.7rem; }
}

/* Les pastilles ne sont plus masquees qu'a 340 px : 10 cibles de 24 px font
   240 px, qui tiennent dans une barre de 390. Sous 340, elles ne tiendraient
   plus — c'est la seule largeur ou le compteur textuel reste necessaire. */
@media (max-width: 400px) { .deck-tb .bottombar .dots { display: flex; } }
@media (max-width: 340px) { .deck-tb .bottombar .dots { display: none; } }
