* { margin: 0; padding: 0; box-sizing: border-box; }
 
    :root {
      /* Palette de marque — couleurs principales */
      --brand-noir: #000000;
      --brand-blanc: #FFFFFF;
      --brand-gris-fonce: #595959;
      --brand-gris-moyen: #8F8F8F;
      --brand-gris-clair: #D6D6D6;
      --brand-orange: #FF7900;        /* Pantone 151 */
      --brand-orange-light: #FFA14C;
      --brand-orange-dark: #CC6100;
      /* Palette de marque — couleurs secondaires */
      --brand-cyan: #4BB4E6;          /* Pantone 298 */
      --brand-vert: #50BE87;          /* Pantone 3255 */
      --brand-rose: #FFB4E6;          /* Pantone 2036 */
      --brand-violet: #A885D8;        /* Pantone 2087 */
      --brand-jaune: #FFD200;         /* Pantone 114 */
 
      --bg-app: var(--brand-noir);
      --bg-surface: rgba(255,255,255,0.08);
      --border-color: rgba(89,89,89,0.4);
      --text-primary: var(--brand-blanc);
      --text-secondary: var(--brand-gris-moyen);
      --text-dim: var(--brand-gris-fonce);
      --bubble-bot-bg: rgba(255,255,255,0.08);
      --bubble-bot-text: rgba(255,255,255,0.87);
      --bubble-bot-border: rgba(89,89,89,0.4);
    }
    body.theme-light {
      --bg-app: var(--brand-gris-clair);
      --bg-surface: var(--brand-blanc);
      --border-color: var(--brand-gris-clair);
      --text-primary: var(--brand-noir);
      --text-secondary: var(--brand-gris-fonce);
      --text-dim: var(--brand-gris-moyen);
      --bubble-bot-bg: var(--brand-blanc);
      --bubble-bot-text: var(--brand-noir);
      --bubble-bot-border: var(--brand-gris-clair);
    }
 
    html {
      height: 100%;
      overflow: hidden;
    }
 
    body {
      /* ✅ Police Helvetica */
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      background: var(--bg-app);
      color: var(--text-primary);
      height: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: fixed;
      inset: 0;
      transition: background 0.4s ease, color 0.4s ease;
    }
 
    /* ── Loader ── */
    #auth-loader {
      position: fixed;
      inset: 0;
      background: #000000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.4s ease;
    }
    #auth-loader.hidden {
      opacity: 0;
      pointer-events: none;
    }
    .loader-spinner {
      width: 48px;
      height: 48px;
      border: 4px solid rgba(89,89,89,0.4);
      border-top-color: #FF7900;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin-bottom: 16px;
    }
    .loader-text {
      color: #8F8F8F;
      font-size: 0.85rem;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
 
    /* ── Bandeau utilisateur ── */
    #user-banner {
      display: none;
      align-items: center;
      justify-content: space-between;
      background: rgba(255,255,255,0.08);
      border-bottom: 1px solid rgba(89,89,89,0.4);
      padding: 8px 16px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 0.82rem;
      color: #8F8F8F;
    }
    #user-banner.visible { display: flex; }
 
    .banner-left {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .banner-avatar {
      width: 28px;
      height: 28px;
      background: #FF7900;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      font-weight: 700;
      color: #fff;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    .banner-name { color: #fff; font-weight: 600; }
    .banner-segment {
      background: rgba(89,89,89,0.4);
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 0.72rem;
      color: #FF7900;
    }
    .btn-logout {
      background: none;
      border: 1px solid rgba(89,89,89,0.4);
      color: #8F8F8F;
      padding: 4px 12px;
      border-radius: 8px;
      font-size: 0.78rem;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    .btn-logout:hover {
      border-color: #FF7900;
      color: #FF7900;
    }
 
    /* ── Menu tiroir (swipe droite→gauche) ── */
    #drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 6000;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }
    #drawer-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }
    #side-drawer {
      position: fixed;
      top: 0; right: 0; bottom: 0;
      width: 82%;
      max-width: 340px;
      background: var(--bg-app);
      border-left: 1px solid var(--border-color);
      z-index: 6001;
      transform: translateX(100%);
      transition: transform 0.28s cubic-bezier(.25,.8,.35,1), background 0.4s ease, border-color 0.4s ease;
      display: flex;
      flex-direction: column;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    #side-drawer.open { transform: translateX(0); }
    .drawer-header {
      padding: 22px 18px 18px;
      border-bottom: 1px solid var(--border-color);
      background: var(--bg-surface);
      transition: background 0.4s ease, border-color 0.4s ease;
    }
    .drawer-avatar {
      width: 52px; height: 52px;
      background: #FF7900;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; font-weight: 700; color: #fff;
      margin-bottom: 12px;
    }
    .drawer-name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
    .drawer-badges { display: flex; gap: 6px; flex-wrap: wrap; }
    .drawer-badge {
      background: rgba(255,121,0,0.15);
      border: 1px solid rgba(255,121,0,0.3);
      color: #FF7900;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
    }
    .drawer-section-title {
      padding: 16px 18px 6px;
      font-size: 0.72rem;
      color: var(--text-dim);
      letter-spacing: 0.6px;
      text-transform: uppercase;
    }
    .drawer-body { flex: 1; overflow-y: auto; }
    .drawer-item {
      display: flex; align-items: center; gap: 12px;
      padding: 13px 18px;
      cursor: pointer;
      transition: background 0.15s;
      color: var(--text-primary);
      font-size: 0.9rem;
    }
    .drawer-item:hover, .drawer-item:active { background: rgba(255,121,0,0.08); }
    .drawer-item-emoji { font-size: 1.2rem; width: 26px; text-align: center; }
    .drawer-footer {
      padding: 16px 18px;
      border-top: 1px solid var(--border-color);
    }
    .drawer-logout-btn {
      width: 100%;
      padding: 11px;
      background: none;
      border: 1px solid #FFB4E6;
      color: #FFB4E6;
      border-radius: 10px;
      font-size: 0.88rem;
      font-weight: 700;
      cursor: pointer;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
 
    /* ── Admin tabs ── */
    .admin-tab {
      flex: 1;
      padding: 8px;
      background: var(--bg-app);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      border-radius: 8px;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    .admin-tab.active {
      background: rgba(255,121,0,0.15);
      border-color: #FF7900;
      color: #FF7900;
    }
 
    /* ── Segment buttons ── */
    .seg-btn {
      padding: 6px 14px;
      background: var(--bg-app);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      border-radius: 20px;
      font-size: 0.78rem;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    .seg-btn.active,
    .seg-btn:hover {
      border-color: #FF7900;
      color: #FF7900;
      background: rgba(255,121,0,0.08);
    }
 
    /* ── Navigation en bulles (breadcrumb + bbl) ── */
    .breadcrumb {
      display: flex; align-items: center; gap: 4px;
      padding: 7px 16px;
      background: rgba(255,121,0,0.03);
      border-bottom: 1px solid rgba(255,121,0,0.07);
      flex-shrink: 0; min-height: 34px; flex-wrap: wrap;
    }
    .bc-item {
      font-size: 11px; color: #8F8F8F; cursor: pointer;
      padding: 2px 7px; border-radius: 9px; transition: all .2s;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: .2px;
    }
    .bc-item:hover { color: #FFA14C; background: rgba(255,121,0,0.15); }
    .bc-item.active { color: #FF7900; }
    .bc-sep { color: #595959; font-size: 10px; }
 
    .bubble-nav {
      display: flex; flex-wrap: wrap; gap: 10px;
      padding: 4px 2px 4px 2px;
      animation: fadeUp .3s ease .06s both;
    }
    @keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
    .bbl {
      display: flex; flex-direction: column; align-items: center;
      cursor: pointer;
      transition: transform .18s ease;
      animation: popIn .32s cubic-bezier(.34,1.56,.64,1) both;
    }
    @keyframes popIn { from{opacity:0;transform:scale(0.55)} to{opacity:1;transform:scale(1)} }
    .bbl:nth-child(1){animation-delay:.04s} .bbl:nth-child(2){animation-delay:.09s}
    .bbl:nth-child(3){animation-delay:.14s} .bbl:nth-child(4){animation-delay:.19s}
    .bbl:nth-child(5){animation-delay:.24s} .bbl:nth-child(6){animation-delay:.29s}
    .bbl:hover { transform: scale(1.09); }
    .bbl:active { transform: scale(0.94); }
    .bbl-circle {
      border-radius: 50%;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 3px; text-align: center; padding: 8px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 700;
      line-height: 1.2; transition: box-shadow .2s;
      white-space: pre-line;
    }
    .bbl-emoji { line-height: 1; }
    .bbl-txt   { font-size: 10px; line-height: 1.2; white-space: pre-line; text-align: center; }
    .sz-lg .bbl-circle { width: 92px; height: 92px; }
    .sz-lg .bbl-emoji  { font-size: 26px; }
    .sz-lg .bbl-txt    { font-size: 10.5px; }
    .sz-md .bbl-circle { width: 76px; height: 76px; }
    .sz-md .bbl-emoji  { font-size: 21px; }
    .sz-md .bbl-txt    { font-size: 9.5px; }
    .sz-sm .bbl-circle { width: 68px; height: 68px; }
    .sz-sm .bbl-emoji  { font-size: 18px; }
    .sz-sm .bbl-txt    { font-size: 9px; }
    .c-orange .bbl-circle { background: linear-gradient(140deg,#FF7900,#CC6100); color:#fff; box-shadow: 0 6px 20px rgba(255,121,0,.35); }
    .c-orange:hover .bbl-circle { box-shadow: 0 8px 26px rgba(255,121,0,.5); }
    .c-dark .bbl-circle { background: linear-gradient(140deg,rgba(255,121,0,.22),rgba(255,121,0,.06)); border: 1.5px solid rgba(255,121,0,.3); color: #FFA14C; box-shadow: 0 5px 16px rgba(0,0,0,.4); }
    .c-green .bbl-circle { background: linear-gradient(140deg,rgba(80,190,135,.28),rgba(80,190,135,.07)); border: 1.5px solid rgba(80,190,135,.35); color:#50BE87; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-purple .bbl-circle { background: linear-gradient(140deg,rgba(168,133,216,.28),rgba(168,133,216,.07)); border: 1.5px solid rgba(168,133,216,.35); color:#A885D8; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-blue .bbl-circle { background: linear-gradient(140deg,rgba(75,180,230,.28),rgba(75,180,230,.07)); border: 1.5px solid rgba(75,180,230,.35); color:#4BB4E6; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-yellow .bbl-circle { background: linear-gradient(140deg,rgba(255,210,0,.24),rgba(255,210,0,.06)); border: 1.5px solid rgba(255,210,0,.35); color:#FFD200; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-red .bbl-circle { background: linear-gradient(140deg,rgba(255,180,230,.22),rgba(255,180,230,.06)); border: 1.5px solid rgba(255,180,230,.35); color:#FFB4E6; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-sky .bbl-circle { background: linear-gradient(140deg,rgba(75,180,230,.18),rgba(75,180,230,.05)); border: 1.5px solid rgba(75,180,230,.25); color:#7FC3EC; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-mint .bbl-circle { background: linear-gradient(140deg,rgba(80,190,135,.18),rgba(80,190,135,.05)); border: 1.5px solid rgba(80,190,135,.25); color:#7ACCA3; box-shadow:0 5px 16px rgba(0,0,0,.4); }
    .c-hdm .bbl-circle { background: linear-gradient(140deg,#FF7900,#CC6100); color:#fff; box-shadow:0 5px 16px rgba(255,121,0,.3); }
    .c-mdm .bbl-circle { background: linear-gradient(140deg,rgba(168,133,216,.20),rgba(168,133,216,.05)); border:1.5px solid rgba(168,133,216,.3); color:#A885D8; box-shadow:0 5px 14px rgba(0,0,0,.4); }
    .c-tpe .bbl-circle { background: linear-gradient(140deg,rgba(80,190,135,.20),rgba(80,190,135,.05)); border:1.5px solid rgba(80,190,135,.3); color:#50BE87; box-shadow:0 5px 14px rgba(0,0,0,.4); }
    .c-offer .bbl-circle { background: rgba(255,255,255,0.06); border:1.5px solid rgba(89,89,89,0.4); color:#FFA14C; box-shadow:0 4px 12px rgba(0,0,0,.3); }
    .c-offer:hover .bbl-circle { border-color:#FF7900; background:rgba(255,121,0,.08); }
    .bbl-label { font-size: 9.5px; color:#8F8F8F; text-align:center; margin-top:4px; max-width:80px; line-height:1.3; }
 
    /* ── Variantes lisibles en thème clair (jour) ──
       En mode sombre, les cercles utilisent un fond très transparent + un texte clair :
       lisible sur fond noir, mais illisible sur fond clair (thème jour).
       On fournit donc ici des couleurs plus foncées + fonds pastel opaques pour le jour. */
    body.theme-light .c-dark   .bbl-circle { background: rgba(255,121,0,.16);  border-color: rgba(255,121,0,.4);  color:#CC6100; }
    body.theme-light .c-green  .bbl-circle { background: rgba(80,190,135,.20); border-color: rgba(80,190,135,.45); color:#2E7D52; }
    body.theme-light .c-purple .bbl-circle { background: rgba(168,133,216,.20);border-color: rgba(168,133,216,.45);color:#5C4977; }
    body.theme-light .c-blue   .bbl-circle { background: rgba(75,180,230,.20); border-color: rgba(75,180,230,.45); color:#1F7A9E; }
    body.theme-light .c-yellow .bbl-circle { background: rgba(255,210,0,.24);  border-color: rgba(255,210,0,.5);  color:#7A6300; }
    body.theme-light .c-red    .bbl-circle { background: rgba(255,180,230,.24);border-color: rgba(255,180,230,.5); color:#A3477E; }
    body.theme-light .c-sky    .bbl-circle { background: rgba(75,180,230,.16); border-color: rgba(75,180,230,.4);  color:#1F7A9E; }
    body.theme-light .c-mint   .bbl-circle { background: rgba(80,190,135,.16); border-color: rgba(80,190,135,.4); color:#1F6B4A; }
    body.theme-light .c-mdm    .bbl-circle { background: rgba(168,133,216,.20);border-color: rgba(168,133,216,.45);color:#4A3570; }
    body.theme-light .c-tpe    .bbl-circle { background: rgba(80,190,135,.20); border-color: rgba(80,190,135,.45); color:#1F6B4A; }
    body.theme-light .c-offer  .bbl-circle { background: rgba(89,89,89,.06);   border-color: rgba(89,89,89,.35);  color:#CC6100; }
    body.theme-light .bbl-label { color:#595959; }
    body.theme-light .bc-item { color:#595959; }
    body.theme-light .bc-item:hover { color:#CC6100; background: rgba(255,121,0,0.12); }
    body.theme-light .bc-item.active { color:#FF7900; }
 
    /* ── Adaptation automatique au mode paysage (mobile) ── */
    @media (orientation: landscape) and (max-height: 500px) {
      #app-header {
        padding: 6px 16px !important;
      }
      #header-logo {
        width: 28px !important;
        height: 28px !important;
      }
      #header-subtitle {
        display: none !important;
      }
      .breadcrumb {
        padding: 4px 16px !important;
        min-height: auto !important;
      }
      #app-footer {
        padding: 6px 16px !important;
      }
      #user-input {
        min-height: 36px !important;
      }
      .sz-lg .bbl-circle { width: 68px !important; height: 68px !important; }
      .sz-lg .bbl-emoji  { font-size: 20px !important; }
      .sz-md .bbl-circle { width: 58px !important; height: 58px !important; }
      .sz-md .bbl-emoji  { font-size: 17px !important; }
      .sz-sm .bbl-circle { width: 52px !important; height: 52px !important; }
      .sz-sm .bbl-emoji  { font-size: 15px !important; }
    }
 
    /* ── Carrousel de formules ── */
    .formule-carousel-wrap {
      max-width: 100%;
    }
    .formule-carousel {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding: 4px 2px 10px;
      -webkit-overflow-scrolling: touch;
    }
    .formule-carousel::-webkit-scrollbar { height: 4px; }
    .formule-carousel::-webkit-scrollbar-thumb { background: rgba(255,102,0,0.4); border-radius: 4px; }
    .formule-card {
      scroll-snap-align: start;
      flex: 0 0 auto;
      width: 240px;
      background: var(--bubble-bot-bg);
      border: 1px solid var(--bubble-bot-border);
      border-radius: 14px;
      padding: 14px;
      transition: background 0.4s ease, border-color 0.4s ease;
    }
    .formule-card-nom {
      font-weight: 700;
      font-size: 0.95rem;
      color: #FF6600;
      margin-bottom: 4px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    .formule-card-prix {
      font-weight: 700;
      font-size: 0.88rem;
      color: var(--bubble-bot-text);
      margin-bottom: 10px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }
    .formule-card-carac {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .formule-card-carac li {
      font-size: 0.78rem;
      color: var(--bubble-bot-text);
      display: flex;
      align-items: flex-start;
      gap: 6px;
      line-height: 1.3;
    }
    .formule-card-carac li::before {
      content: '✓';
      color: #FF6600;
      font-weight: 700;
      flex-shrink: 0;
    }
    .formule-indicator {
      text-align: center;
      font-size: 0.72rem;
      color: var(--text-dim);
      margin-top: 2px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    /* ── Scrollbar ── */
    #messages::-webkit-scrollbar { width: 4px; }
    #messages::-webkit-scrollbar-track { background: transparent; }
    #messages::-webkit-scrollbar-thumb {
      background: rgba(89,89,89,0.4);
      border-radius: 2px;
    }
 
    /* ── Input focus ── */
    #user-input:focus {
      border-color: #FF7900 !important;
    }
  
    /* V2.1 UX — accueil commercial compact */
    .bubble-nav.root-nav { display:grid !important; grid-template-columns:repeat(2,minmax(220px,300px)); gap:12px !important; width:min(620px,100%); margin-top:2px; }
    .bubble-nav.root-nav .bbl { width:100% !important; align-items:stretch !important; cursor:pointer; }
    .bubble-nav.root-nav .bbl-circle { width:100% !important; height:auto !important; min-height:104px; border-radius:16px !important; padding:15px 16px !important; display:flex !important; flex-direction:column; align-items:flex-start !important; justify-content:center !important; }
    .bubble-nav.root-nav .bbl-emoji { font-size:1.2rem !important; margin-bottom:5px; }
    .bubble-nav.root-nav .bbl-txt { font-size:.98rem !important; text-align:left !important; font-weight:700 !important; }
    .bubble-nav.root-nav .bbl-desc { font-size:.73rem; line-height:1.35; margin-top:4px; opacity:.86; text-align:left; font-weight:400; }
    .bubble-nav.root-nav .bbl-label { max-width:none !important; text-align:left !important; padding:7px 2px 0 !important; margin:0 !important; font-size:.72rem !important; color:var(--text-secondary) !important; font-weight:600; }
    .quick-actions { display:flex; gap:8px; flex-wrap:wrap; margin:2px 0 4px 38px; max-width:760px; }
    .quick-actions::before { content:'Actions rapides'; flex-basis:100%; font-size:.72rem; font-weight:700; color:var(--text-secondary); margin-bottom:1px; }
    .quick-action { border:1px solid var(--border-color); background:var(--bg-surface); color:var(--text-primary); border-radius:10px; padding:9px 12px; font:600 .78rem 'Helvetica Neue',Helvetica,Arial,sans-serif; cursor:pointer; transition:.2s; }
    .quick-action:hover { border-color:#FF7900; color:#FF7900; transform:translateY(-1px); }
    .documents-offre { align-self:flex-start; margin-left:38px; max-width:720px; background:var(--bg-surface); border:1px solid var(--border-color); border-radius:14px; padding:12px; }
    .documents-offre-title { font-weight:700; font-size:.84rem; color:var(--text-primary); margin-bottom:8px; }
    .document-link { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:8px 10px; border-radius:9px; text-decoration:none; color:var(--text-primary); font-size:.8rem; border:1px solid transparent; }
    .document-link:hover { border-color:#FF7900; color:#FF7900; }
    @media (max-width:700px) { .bubble-nav.root-nav { grid-template-columns:1fr; width:100%; } .bubble-nav.root-nav .bbl-circle { min-height:94px; } .quick-actions,.documents-offre { margin-left:0; } .quick-action { flex:1 1 calc(50% - 8px); } }


    /* ============================================================
       V2.2 UX/UI — Orange Business CI
       Lisibilité, accueil sans scroll, menu contextuel, responsive
       ============================================================ */
    :root {
      --v22-orange:#FF7900; --v22-orange-dark:#C85F00; --v22-black:#111111;
      --v22-white:#FFFFFF; --v22-grey:#666666; --v22-soft:#F5F5F5;
    }
    body.theme-light { --bg-app:#F4F4F4; --bg-surface:#FFFFFF; --text-primary:#111111; --text-secondary:#595959; }
    body:not(.theme-light) { --bg-app:#111111; --bg-surface:#1B1B1B; --text-primary:#FFFFFF; --text-secondary:#D6D6D6; }
    #app-header { flex:0 0 auto; min-height:62px; }
    #messages { min-height:0; }
    #app-footer { flex:0 0 auto; }

    /* Accueil compact : tient dans la hauteur disponible sur desktop */
    #messages.home-mode { overflow-y:hidden !important; justify-content:center; gap:10px !important; padding-top:10px !important; padding-bottom:10px !important; }
    #messages.home-mode .welcome-v22 { flex:0 0 auto; }
    #messages.home-mode .bubble-nav.root-nav { flex:0 0 auto; }
    #messages.home-mode .quick-actions { flex:0 0 auto; }
    .welcome-v22 { display:flex; align-items:flex-start; gap:8px; }
    .welcome-v22 .welcome-card { max-width:760px; background:var(--bubble-bot-bg); color:var(--bubble-bot-text); border:1px solid var(--bubble-bot-border); border-radius:16px; padding:12px 16px; font-size:.9rem; line-height:1.45; }
    .welcome-v22 .welcome-card strong { color:var(--text-primary); }
    .welcome-v22 .welcome-avatar { width:30px;height:30px;border-radius:8px;object-fit:cover;flex-shrink:0;margin-top:3px; }
    .welcome-capabilities { margin-top:7px; color:var(--text-secondary); font-size:.78rem; }

    .bubble-nav.root-nav { grid-template-columns:repeat(2,minmax(220px,290px)) !important; width:min(600px,100%) !important; gap:10px !important; }
    .bubble-nav.root-nav .bbl-circle { min-height:88px !important; padding:12px 14px !important; border-radius:14px !important; }
    .bubble-nav.root-nav .bbl-emoji { font-size:1.05rem !important; margin-bottom:3px !important; }
    .bubble-nav.root-nav .bbl-txt { font-size:1rem !important; color:var(--text-primary); }
    .bubble-nav.root-nav .bbl-desc { font-size:.76rem !important; color:var(--text-secondary); opacity:1 !important; }
    .bubble-nav.root-nav .bbl-label { color:var(--v22-orange) !important; font-size:.74rem !important; padding-top:5px !important; }
    .quick-actions { margin:0 0 0 38px !important; max-width:760px !important; gap:7px !important; }
    .quick-actions::before { color:var(--text-primary) !important; font-size:.74rem !important; }
    .quick-action { min-height:38px; padding:8px 11px !important; font-size:.78rem !important; background:var(--bg-surface) !important; }
    .quick-action:focus-visible, .drawer-item:focus-visible, #user-input:focus-visible, button:focus-visible { outline:3px solid rgba(255,121,0,.38); outline-offset:2px; }

    /* Tiroir V2.2 */
    #side-drawer { width:min(400px,92vw) !important; max-width:400px !important; background:var(--bg-surface) !important; }
    .drawer-header { padding:18px !important; background:var(--bg-surface) !important; }
    .drawer-profile-row { display:flex; gap:12px; align-items:center; padding-right:42px; }
    .drawer-avatar { width:44px !important; height:44px !important; margin:0 !important; border-radius:12px !important; }
    .drawer-name { font-size:1rem !important; margin-bottom:3px !important; }
    .drawer-meta { color:var(--text-secondary); font-size:.78rem; font-weight:600; }
    .drawer-badges { display:none !important; }
    .drawer-body { padding:8px 10px 12px; }
    .drawer-section-title { padding:14px 10px 6px !important; color:var(--text-secondary) !important; font-size:.68rem !important; font-weight:800; letter-spacing:.8px !important; }
    .drawer-item { position:relative; gap:11px !important; padding:11px 12px !important; margin:2px 0; border-radius:10px; font-size:.9rem !important; font-weight:600; min-height:44px; }
    .drawer-item:hover { background:rgba(255,121,0,.08) !important; }
    .drawer-item.active { background:rgba(255,121,0,.12); color:var(--v22-orange); }
    .drawer-item.active::before { content:''; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:3px; background:var(--v22-orange); }
    .drawer-icon { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 22px; font-size:1rem; }
    .drawer-badge-count { margin-left:auto; min-width:22px; height:22px; padding:0 6px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; background:var(--v22-orange); color:#fff; font-size:.7rem; font-weight:800; }
    .drawer-footer { padding:12px 18px 16px !important; }
    .drawer-logout-btn { text-align:left; border:0 !important; color:var(--text-secondary) !important; padding:10px 4px !important; font-weight:600 !important; }
    .drawer-logout-btn:hover { color:var(--v22-orange) !important; }
    .drawer-admin-item { border-top:1px solid var(--border-color); margin-top:8px; padding-top:8px; }

    /* Cartes d'aide à la vente / BCAB prêtes pour données structurées */
    .sales-carousel-wrap { width:min(820px,calc(100% - 38px)); margin-left:38px; }
    .sales-carousel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; }
    .sales-carousel-title { font-size:.9rem; font-weight:800; color:var(--text-primary); }
    .sales-source { font-size:.7rem; color:var(--text-secondary); }
    .sales-carousel { display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 10px; -webkit-overflow-scrolling:touch; }
    .sales-card { flex:0 0 min(330px,86vw); scroll-snap-align:start; background:var(--bg-surface); border:1px solid var(--border-color); border-top:4px solid var(--v22-orange); border-radius:14px; padding:14px; }
    .sales-card-kicker { color:var(--v22-orange); font-size:.68rem; font-weight:800; letter-spacing:.7px; text-transform:uppercase; margin-bottom:5px; }
    .sales-card-title { color:var(--text-primary); font-size:1rem; font-weight:800; margin-bottom:8px; }
    .sales-card-body { color:var(--text-secondary); font-size:.82rem; line-height:1.5; }
    .sales-card-body strong { color:var(--text-primary); }
    .sales-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
    .sales-action { border:1px solid var(--border-color); background:var(--bg-surface); color:var(--text-primary); border-radius:9px; padding:8px 10px; font-size:.75rem; font-weight:700; cursor:pointer; }
    .sales-action.primary { background:var(--v22-orange); color:#fff; border-color:var(--v22-orange); }

    @media (max-width:700px) {
      #messages.home-mode { overflow-y:auto !important; justify-content:flex-start; }
      .welcome-v22 .welcome-card { font-size:.86rem; }
      .bubble-nav.root-nav { grid-template-columns:1fr !important; }
      .bubble-nav.root-nav .bbl-circle { min-height:78px !important; }
      .quick-actions { margin-left:0 !important; }
      .quick-action { flex:1 1 calc(50% - 7px) !important; }
      .sales-carousel-wrap { width:100%; margin-left:0; }
      #side-drawer { width:100% !important; max-width:none !important; }
    }
    @media (max-height:720px) and (min-width:701px) {
      #messages.home-mode { padding-top:6px !important; padding-bottom:6px !important; gap:7px !important; }
      .welcome-v22 .welcome-card { padding:9px 13px; line-height:1.35; }
      .welcome-capabilities { margin-top:4px; }
      .bubble-nav.root-nav .bbl-circle { min-height:76px !important; padding:9px 12px !important; }
      .quick-action { min-height:34px; padding:6px 10px !important; }
    }


    /* V2.2.2 — finition UX/UI */
    #messages.home-mode { align-items:stretch; justify-content:center; }
    #messages.home-mode .welcome-v22,
    #messages.home-mode .bubble-nav.root-nav,
    #messages.home-mode .quick-actions { width:min(920px,100%) !important; margin-left:auto !important; margin-right:auto !important; }
    .welcome-v22 .welcome-card { max-width:760px; font-size:.96rem; }
    .welcome-capabilities { font-size:.82rem; font-weight:500; }
    .bubble-nav.root-nav { grid-template-columns:repeat(2,minmax(260px,1fr)) !important; }
    .bubble-nav.root-nav .bbl-circle { min-height:112px !important; }
    .bubble-nav.root-nav .c-orange .bbl-circle { background:#111111 !important; border:1px solid #111111 !important; box-shadow:0 8px 22px rgba(0,0,0,.16) !important; }
    .bubble-nav.root-nav .c-orange .bbl-emoji,
    .bubble-nav.root-nav .c-orange .bbl-txt { color:#FFFFFF !important; }
    .bubble-nav.root-nav .c-orange .bbl-desc { color:#E6E6E6 !important; }
    .bubble-nav.root-nav .c-orange .bbl-label { color:#FF7900 !important; opacity:1 !important; }
    .bubble-nav.root-nav .c-dark .bbl-circle { background:#FFFFFF !important; border:1.5px solid #FF7900 !important; box-shadow:0 8px 22px rgba(0,0,0,.12) !important; }
    .bubble-nav.root-nav .c-dark .bbl-txt { color:#111111 !important; }
    .bubble-nav.root-nav .c-dark .bbl-desc { color:#595959 !important; }
    .bubble-nav.root-nav .c-dark .bbl-label { color:#C85F00 !important; opacity:1 !important; }
    .quick-actions::before { font-size:.8rem !important; }
    .quick-action { font-size:.82rem !important; font-weight:700 !important; border-color:#D6D6D6 !important; }
    .quick-action:hover { background:#111111 !important; color:#FFFFFF !important; border-color:#111111 !important; }
    .drawer-section-title { color:#595959 !important; }
    .drawer-icon { color:#FF7900; font-weight:900; }
    .drawer-logout-btn { color:#595959 !important; }
    .pwa-v222 { position:fixed; right:18px; bottom:86px; z-index:5000; align-items:center; gap:10px; background:#FFFFFF; color:#111111; border:1px solid #FF7900; border-radius:12px; padding:8px 10px 8px 12px; box-shadow:0 8px 24px rgba(0,0,0,.12); font:600 .78rem 'Helvetica Neue',Helvetica,Arial,sans-serif; }
    .pwa-install { background:#FF7900; color:#FFFFFF; border:0; border-radius:8px; padding:7px 12px; font-weight:800; cursor:pointer; }
    .pwa-close { width:30px;height:30px;background:#FFFFFF;color:#595959;border:1px solid #D6D6D6;border-radius:8px;cursor:pointer; }
    @media (max-width:700px) {
      #messages.home-mode .welcome-v22, #messages.home-mode .bubble-nav.root-nav, #messages.home-mode .quick-actions { width:100% !important; }
      .bubble-nav.root-nav { grid-template-columns:1fr !important; }
      .pwa-v222 { left:12px; right:12px; bottom:78px; justify-content:space-between; }
    }

    /* ============================================================
       V2.2.3 — navigation professionnelle + thèmes cohérents
       ============================================================ */
    :root {
      --v223-bg:#F4F4F4;
      --v223-surface:#FFFFFF;
      --v223-surface-2:#FAFAFA;
      --v223-border:#D6D6D6;
      --v223-text:#111111;
      --v223-muted:#595959;
      --v223-shadow:0 8px 24px rgba(0,0,0,.08);
    }
    body.theme-light {
      --bg-app:#F4F4F4; --bg-surface:#FFFFFF; --border-color:#D6D6D6;
      --text-primary:#111111; --text-secondary:#595959; --text-dim:#767676;
      --bubble-bot-bg:#FFFFFF; --bubble-bot-text:#111111; --bubble-bot-border:#D6D6D6;
      --v223-bg:#F4F4F4; --v223-surface:#FFFFFF; --v223-surface-2:#FAFAFA;
      --v223-border:#D6D6D6; --v223-text:#111111; --v223-muted:#595959;
      --v223-shadow:0 8px 24px rgba(0,0,0,.08);
    }
    body.theme-dark {
      --bg-app:#0F0F0F; --bg-surface:#1B1B1B; --border-color:#343434;
      --text-primary:#FFFFFF; --text-secondary:#CFCFCF; --text-dim:#A6A6A6;
      --bubble-bot-bg:#1B1B1B; --bubble-bot-text:#FFFFFF; --bubble-bot-border:#343434;
      --v223-bg:#0F0F0F; --v223-surface:#1B1B1B; --v223-surface-2:#222222;
      --v223-border:#343434; --v223-text:#FFFFFF; --v223-muted:#CFCFCF;
      --v223-shadow:0 10px 28px rgba(0,0,0,.28);
    }

    /* Navigation : les anciennes bulles deviennent des cartes */
    .bubble-nav:not(.root-nav) {
      display:grid !important;
      grid-template-columns:repeat(auto-fit,minmax(190px,1fr)) !important;
      gap:12px !important;
      width:min(920px,100%) !important;
      padding:4px 0 10px !important;
      align-self:flex-start;
    }
    .bubble-nav:not(.root-nav) .bbl {
      width:100% !important;
      align-items:stretch !important;
      animation:fadeUp .24s ease both !important;
      transform:none !important;
    }
    .bubble-nav:not(.root-nav) .bbl:hover { transform:translateY(-2px) !important; }
    .bubble-nav:not(.root-nav) .bbl:active { transform:translateY(0) !important; }
    .bubble-nav:not(.root-nav) .bbl-circle {
      width:100% !important; height:auto !important; min-height:92px !important;
      border-radius:14px !important; padding:14px 15px !important;
      display:flex !important; flex-direction:row !important;
      align-items:center !important; justify-content:flex-start !important;
      gap:12px !important; text-align:left !important;
      background:var(--v223-surface) !important;
      border:1px solid var(--v223-border) !important;
      color:var(--v223-text) !important;
      box-shadow:var(--v223-shadow) !important;
      position:relative; overflow:hidden;
    }
    .bubble-nav:not(.root-nav) .bbl-circle::before {
      content:''; position:absolute; left:0; top:0; bottom:0; width:4px;
      background:#FF7900;
    }
    .bubble-nav:not(.root-nav) .bbl-emoji {
      width:34px; height:34px; flex:0 0 34px; border-radius:9px;
      display:flex; align-items:center; justify-content:center;
      background:rgba(255,121,0,.10); color:#FF7900 !important;
      font-size:1rem !important;
    }
    .bubble-nav:not(.root-nav) .bbl-txt {
      color:var(--v223-text) !important; font-size:.92rem !important;
      font-weight:800 !important; text-align:left !important; line-height:1.25 !important;
    }
    .bubble-nav:not(.root-nav) .bbl-label {
      max-width:none !important; margin:6px 0 0 !important; padding:0 !important;
      text-align:left !important; color:#C85F00 !important;
      font-size:.72rem !important; font-weight:800 !important;
    }
    body.theme-dark .bubble-nav:not(.root-nav) .bbl-label { color:#FFA14C !important; }

    /* Accueil : deux cartes cohérentes dans les deux thèmes */
    .bubble-nav.root-nav .bbl-circle {
      background:var(--v223-surface) !important;
      border:1px solid var(--v223-border) !important;
      box-shadow:var(--v223-shadow) !important;
      color:var(--v223-text) !important;
    }
    .bubble-nav.root-nav .bbl:first-child .bbl-circle {
      background:#111111 !important; border-color:#111111 !important;
    }
    .bubble-nav.root-nav .bbl:first-child .bbl-txt { color:#FFFFFF !important; }
    .bubble-nav.root-nav .bbl:first-child .bbl-desc { color:#D6D6D6 !important; }
    .bubble-nav.root-nav .bbl:first-child .bbl-label { color:#FF7900 !important; }
    .bubble-nav.root-nav .bbl:not(:first-child) .bbl-txt { color:var(--v223-text) !important; }
    .bubble-nav.root-nav .bbl:not(:first-child) .bbl-desc { color:var(--v223-muted) !important; }
    .bubble-nav.root-nav .bbl:not(:first-child) .bbl-label { color:#C85F00 !important; }
    body.theme-dark .bubble-nav.root-nav .bbl:not(:first-child) .bbl-circle {
      background:#202020 !important; border-color:#FF7900 !important;
    }
    body.theme-dark .bubble-nav.root-nav .bbl:not(:first-child) .bbl-label { color:#FFA14C !important; }

    /* Surfaces et contraste */
    body.theme-dark #app-footer { box-shadow:0 -8px 24px rgba(0,0,0,.22); }
    body.theme-dark #user-input { background:#121212 !important; border-color:#3A3A3A !important; }
    body.theme-dark .quick-action { border-color:#3A3A3A !important; }
    body.theme-dark .quick-action:hover { background:#FF7900 !important; border-color:#FF7900 !important; color:#111 !important; }
    body.theme-dark .pwa-v222 { background:#1B1B1B !important; color:#FFFFFF !important; border-color:#FF7900 !important; }
    body.theme-dark .pwa-close { background:#222 !important; color:#D6D6D6 !important; border-color:#3A3A3A !important; }

    /* Choix du thème dans le menu */
    .theme-switcher {
      margin:8px 10px 4px; padding:10px;
      border:1px solid var(--border-color); border-radius:12px;
      background:var(--bg-surface);
    }
    .theme-switcher-label {
      font-size:.7rem; font-weight:800; letter-spacing:.6px;
      text-transform:uppercase; color:var(--text-secondary); margin-bottom:8px;
    }
    .theme-switcher-options { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
    .theme-choice {
      min-height:36px; border:1px solid var(--border-color); border-radius:9px;
      background:var(--bg-app); color:var(--text-primary);
      font:700 .72rem 'Helvetica Neue',Helvetica,Arial,sans-serif; cursor:pointer;
    }
    .theme-choice.active { background:#FF7900; border-color:#FF7900; color:#111; }
    .theme-choice:focus-visible { outline:3px solid rgba(255,121,0,.38); outline-offset:2px; }

    /* Les futures cartes Argumentaire / BCAB suivent le thème */
    .sales-card, .sales-action {
      background:var(--v223-surface) !important;
      border-color:var(--v223-border) !important;
    }
    .sales-card-body { color:var(--v223-muted) !important; }

    @media (max-width:700px) {
      .bubble-nav:not(.root-nav) {
        display:flex !important; overflow-x:auto !important; flex-wrap:nowrap !important;
        scroll-snap-type:x mandatory; gap:10px !important; padding-bottom:12px !important;
      }
      .bubble-nav:not(.root-nav) .bbl {
        flex:0 0 min(82vw,300px) !important; scroll-snap-align:start;
      }
      .bubble-nav:not(.root-nav) .bbl-circle { min-height:82px !important; }
    }


    /* V2.2.3.1 — navigation propre + scroll */
    #messages { overflow-y:auto !important; overscroll-behavior:contain; scroll-behavior:smooth; }
    #messages.home-mode { overflow-y:auto !important; justify-content:flex-start !important; }
    #messages:not(.home-mode) { justify-content:flex-start !important; padding-top:14px !important; padding-bottom:20px !important; }
    .bubble-nav:not(.root-nav) { margin-top:2px !important; align-self:flex-start !important; }
    .bubble-nav:not(.root-nav) .bbl-circle { min-height:104px !important; padding:14px 16px 34px !important; }
    .bubble-nav:not(.root-nav) .bbl-label { position:absolute !important; left:16px !important; bottom:11px !important; margin:0 !important; padding:0 !important; z-index:2; }
    @media (max-width:700px) {
      #messages { -webkit-overflow-scrolling:touch; }
      .bubble-nav:not(.root-nav) .bbl-circle { min-height:96px !important; }
    }

  
    /* ============================================================
       V2.2.4 UX PREMIUM — Orange Business Bot
       ============================================================ */
    :root{
      --ux-radius-lg:18px; --ux-radius-md:14px;
      --ux-shadow:0 12px 34px rgba(0,0,0,.08);
      --ux-shadow-dark:0 14px 38px rgba(0,0,0,.28);
    }
    #messages{padding-left:clamp(16px,3vw,42px)!important;padding-right:clamp(16px,3vw,42px)!important;}
    #messages.home-mode{gap:14px!important;padding-top:clamp(18px,4vh,44px)!important;}
    #messages.home-mode .welcome-v22,
    #messages.home-mode .bubble-nav.root-nav,
    #messages.home-mode .quick-actions{width:min(980px,100%)!important;}
    .welcome-v22{align-items:center!important;}
    .welcome-v22 .welcome-avatar{width:38px!important;height:38px!important;border-radius:10px!important;}
    .welcome-v22 .welcome-card{
      flex:1;max-width:none!important;border-radius:var(--ux-radius-lg)!important;
      padding:16px 18px!important;box-shadow:var(--ux-shadow);
    }
    body:not(.theme-light) .welcome-v22 .welcome-card{box-shadow:var(--ux-shadow-dark);}
    .bubble-nav.root-nav{gap:14px!important;}
    .bubble-nav.root-nav .bbl{min-width:0!important;}
    .bubble-nav.root-nav .bbl-circle{
      min-height:150px!important;border-radius:var(--ux-radius-lg)!important;
      padding:22px!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
    }
    .bubble-nav.root-nav .bbl-circle:hover{transform:translateY(-3px);box-shadow:var(--ux-shadow);}
    body:not(.theme-light) .bubble-nav.root-nav .bbl-circle:hover{box-shadow:var(--ux-shadow-dark);}
    .bubble-nav.root-nav .bbl-emoji{font-size:28px!important;margin-bottom:10px!important;}
    .bubble-nav.root-nav .bbl-txt{font-size:1.12rem!important;}
    .bubble-nav.root-nav .bbl-desc{font-size:.86rem!important;opacity:.8!important;margin-top:5px!important;}
    .bubble-nav.root-nav .bbl-label{margin-top:auto!important;padding-top:16px!important;font-weight:800!important;}
    .bubble-nav:not(.root-nav){
      width:min(980px,100%)!important;margin:8px auto 0!important;
      display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
      gap:12px!important;overflow:visible!important;
    }
    .bubble-nav:not(.root-nav) .bbl{width:auto!important;min-width:0!important;}
    .bubble-nav:not(.root-nav) .bbl-circle{
      height:100%!important;min-height:118px!important;border-radius:var(--ux-radius-md)!important;
      border-left:4px solid #FF7900!important;padding:16px 16px 38px!important;
      transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
    }
    .bubble-nav:not(.root-nav) .bbl-circle:hover{transform:translateY(-2px);box-shadow:var(--ux-shadow);}
    body:not(.theme-light) .bubble-nav:not(.root-nav) .bbl-circle:hover{box-shadow:var(--ux-shadow-dark);}
    .quick-actions{gap:9px!important;}
    .quick-action{
      min-height:40px!important;border-radius:12px!important;padding:9px 14px!important;
      transition:transform .15s ease,border-color .15s ease,background .15s ease!important;
    }
    .quick-action:hover{transform:translateY(-1px);border-color:#FF7900!important;}
    .pwa-v222{
      max-width:290px!important;opacity:.92!important;border-radius:14px!important;
      box-shadow:0 8px 28px rgba(0,0,0,.14)!important;
    }
    @media(max-width:700px){
      #messages.home-mode{padding-top:14px!important;}
      .bubble-nav.root-nav{grid-template-columns:1fr!important;}
      .bubble-nav.root-nav .bbl-circle{min-height:126px!important;}
      .bubble-nav:not(.root-nav){
        display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;
        padding-bottom:8px!important;
      }
      .bubble-nav:not(.root-nav) .bbl{flex:0 0 82%!important;scroll-snap-align:start!important;}
      .quick-action{flex:1 1 100%!important;}
      .pwa-v222{left:12px!important;right:12px!important;max-width:none!important;}
    }

  
/* V2.2.4.1 MENU GAUCHE + ICONES PRO */
#side-drawer{left:0!important;right:auto!important;transform:translateX(-104%)!important;width:min(360px,92vw)!important;border-left:0!important;border-right:1px solid var(--border-color)!important;box-shadow:18px 0 48px rgba(0,0,0,.16)!important}
#side-drawer.open{transform:translateX(0)!important}
.drawer-section-title{padding:18px 10px 7px!important;font-size:10px!important;font-weight:800!important;letter-spacing:1.15px!important}
.drawer-item{min-height:44px!important;margin:2px 0!important;padding:10px 11px!important;border-radius:10px!important;gap:12px!important;border-left:3px solid transparent!important}
.drawer-item.active{background:rgba(255,121,0,.10)!important;color:#FF7900!important;border-left-color:#FF7900!important}
.drawer-icon{width:20px!important;height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;flex:0 0 20px!important;color:currentColor!important}
.drawer-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){#side-drawer{width:min(330px,90vw)!important}}


    /* ============================================================
       V2.2.5 — FICHE OFFRE COMMERCIALE
       ============================================================ */
    #messages.offer-detail-view{
      display:block!important; overflow-y:auto!important;
      padding:16px 18px 34px!important;
    }
    .offer-sheet{
      width:min(1160px,100%); margin:0 auto 26px;
      background:var(--surface,#fff); border:1px solid var(--border-color,#ddd);
      border-radius:18px; box-shadow:0 10px 28px rgba(0,0,0,.07); overflow:hidden;
    }
    .offer-sheet-head{
      display:flex; justify-content:space-between; align-items:flex-start;
      gap:20px; padding:24px 26px 18px; border-bottom:1px solid var(--border-color,#e5e5e5);
    }
    .offer-kicker{font-size:11px;font-weight:900;letter-spacing:.8px;text-transform:uppercase;color:#FF7900;margin-bottom:7px}
    .offer-sheet h2{font-size:27px;line-height:1.15;margin:0 0 8px}
    .offer-summary{max-width:760px;margin:0;color:var(--text-muted,#666);line-height:1.55}
    .offer-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
    .offer-btn{min-height:40px;padding:9px 14px;border-radius:10px;border:1px solid #FF7900;background:transparent;color:#d96300;font-weight:800;cursor:pointer}
    .offer-btn.primary{background:#FF7900;color:#fff}
    .offer-sheet-body{padding:20px 26px 26px}
    .offer-tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}
    .offer-tag{padding:6px 10px;border-radius:999px;background:rgba(255,121,0,.10);font-size:12px;font-weight:800}
    .offer-section-title{font-size:12px;font-weight:900;letter-spacing:.65px;text-transform:uppercase;margin:22px 0 10px}
    .offer-essentials{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
    .offer-essential{border:1px solid var(--border-color,#e2e2e2);border-radius:13px;padding:14px;background:var(--card-bg,#fff)}
    .offer-essential strong{display:block;font-size:13px;margin-bottom:5px}
    .offer-essential span{font-size:13px;color:var(--text-muted,#666);line-height:1.4}
    .offer-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .offer-benefit{padding:11px 13px;border-radius:11px;border:1px solid var(--border-color,#e7e7e7);font-size:13px}
    .offer-benefit::before{content:"✓";color:#FF7900;font-weight:900;margin-right:8px}
    .offer-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
    .offer-tool{padding:15px;border:1px solid var(--border-color,#ddd);border-radius:13px;background:var(--card-bg,#fff);cursor:pointer;text-align:left;color:inherit}
    .offer-tool:hover{border-color:#FF7900;transform:translateY(-1px)}
    .offer-tool strong{display:block;margin-bottom:4px}
    .offer-tool span{font-size:12px;color:var(--text-muted,#666);line-height:1.4}
    .offer-formulas-zone{margin-top:12px}
    .offer-source-note{margin-top:18px;font-size:11px;color:var(--text-muted,#777)}
    #pwa-install-banner{transform:scale(.90);transform-origin:bottom right}
    @media(max-width:800px){
      #messages.offer-detail-view{padding:10px 9px 28px!important}
      .offer-sheet-head{display:block;padding:18px}
      .offer-head-actions{justify-content:flex-start;margin-top:14px}
      .offer-sheet-body{padding:16px 18px 20px}
      .offer-essentials{grid-template-columns:repeat(2,minmax(0,1fr))}
      .offer-benefits,.offer-tools{grid-template-columns:1fr}
    }
    @media(max-width:480px){.offer-essentials{grid-template-columns:1fr}}

  
    /* Comparateur commercial : indépendant du carrousel des formules */
    .comparateur-offres-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 14px;
      padding: 4px 2px 10px;
      width: 100%;
    }
    .comparateur-offres-grid .comparateur-offre-card {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      flex: initial;
      overflow-wrap: anywhere;
    }

/* BCAB — panneau contextuel dans la fiche */
.offer-sales-panel:empty {
  display: none;
}
.offer-sales-panel:not(:empty) {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
}
.offer-sales-panel .bcab-carousel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.offer-sales-panel .bcab-v2-track {
  min-width: 0;
}
