        /* ══════════════════════════════
           CHAT BUBBLE — SOMMELIER IA
        ══════════════════════════════ */

        /* ── Disclaimer overlay ── */
        #chat-disclaimer {
            position: fixed; inset: 0; z-index: 1000;
            background: rgba(0,0,0,0.65); backdrop-filter: blur(10px);
            display: flex; align-items: flex-end; justify-content: flex-end;
            padding: 0 28px 100px;
            opacity: 0; pointer-events: none;
            transition: opacity 0.25s;
        }
        #chat-disclaimer.show { opacity: 1; pointer-events: all; }
        .disclaimer-card {
            width: 370px; background: #0d0f13;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 22px; padding: 26px 24px;
            box-shadow: 0 24px 70px rgba(0,0,0,0.7);
            animation: discIn 0.3s cubic-bezier(.34,1.56,.64,1);
        }
        @keyframes discIn { from{transform:translateY(24px) scale(.97);opacity:0} to{transform:none;opacity:1} }
        body.light .disclaimer-card { background: #f5f0eb; border-color: rgba(0,0,0,0.1); }
        .disclaimer-title {
            font-family:'Cormorant Garamond',serif; font-size:17px; font-style:italic;
            color:var(--text); margin-bottom:16px; display:flex; align-items:center; gap:9px;
        }
        .disclaimer-title i { font-size:13px; color:var(--wine-light); }
        .disclaimer-item {
            display:flex; gap:10px; align-items:flex-start;
            margin-bottom:11px; font-size:12px; color:var(--muted); line-height:1.6;
        }
        .disclaimer-item i { font-size:10px; color:var(--wine-light); margin-top:3px; flex-shrink:0; }
        .disclaimer-actions { display:flex; gap:8px; margin-top:18px; }
        .disc-btn-ok {
            flex:1; padding:11px; border-radius:11px; background:var(--wine);
            color:white; border:none; font-family:'DM Sans',sans-serif;
            font-size:12px; font-weight:600; letter-spacing:.06em;
            text-transform:uppercase; cursor:pointer; transition:all .2s;
        }
        .disc-btn-ok:hover { background:#a02346; }
        .disc-btn-cancel {
            padding:11px 16px; border-radius:11px; background:transparent;
            color:var(--muted); border:1px solid var(--border);
            font-family:'DM Sans',sans-serif; font-size:12px; cursor:pointer; transition:all .2s;
        }
        .disc-btn-cancel:hover { color:var(--text); }

        /* ── Problem modal ── */
        #chat-problem-overlay {
            position:fixed; inset:0; z-index:1100;
            background:rgba(0,0,0,0.65); backdrop-filter:blur(8px);
            display:none; align-items:center; justify-content:center; padding:20px;
        }
        #chat-problem-overlay.show { display:flex; }
        .problem-modal {
            background:#0d0f13; border:1px solid rgba(255,255,255,0.1);
            border-radius:20px; padding:28px; width:340px; max-width:100%;
            box-shadow:0 20px 60px rgba(0,0,0,0.8);
        }
        body.light .problem-modal { background:#f5f0eb; }
        .problem-modal h3 { font-family:'Cormorant Garamond',serif; font-size:18px; font-style:italic; color:var(--text); margin-bottom:8px; }
        .problem-modal p  { font-size:12px; color:var(--muted); margin-bottom:16px; line-height:1.65; }
        .problem-modal textarea {
            width:100%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
            border-radius:10px; padding:10px 12px; font-family:'DM Sans',sans-serif;
            font-size:12px; color:var(--text); resize:vertical; min-height:80px; outline:none;
            transition:border-color .2s;
        }
        body.light .problem-modal textarea { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.12); }
        .problem-modal textarea:focus { border-color:rgba(139,29,61,0.5); }
        .problem-actions { display:flex; gap:8px; margin-top:14px; }
        .problem-send {
            flex:1; padding:10px; border-radius:10px; background:var(--wine); color:white;
            border:none; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:600;
            letter-spacing:.06em; text-transform:uppercase; cursor:pointer; transition:all .2s;
        }
        .problem-send:hover { background:#a02346; }
        .problem-cancel {
            padding:10px 16px; border-radius:10px; background:transparent;
            border:1px solid var(--border); color:var(--muted);
            font-family:'DM Sans',sans-serif; font-size:12px; cursor:pointer; transition:all .2s;
        }
        .problem-cancel:hover { color:var(--text); }

        /* ── FAB ── */
        #chat-fab {
            position:fixed; bottom:28px; right:28px; z-index:900;
            width:56px; height:56px; border-radius:18px;
            background:linear-gradient(135deg,#8b1d3d,#6b1030);
            border:none; cursor:pointer;
            box-shadow:0 8px 32px rgba(139,29,61,0.45);
            display:none; align-items:center; justify-content:center;
            color:white; font-size:20px; transition:transform .2s,box-shadow .2s;
        }
        #chat-fab:hover { transform:translateY(-2px) scale(1.05); box-shadow:0 12px 40px rgba(139,29,61,0.6); }
        #chat-fab .fab-badge {
            position:absolute; top:-5px; right:-5px;
            width:18px; height:18px; border-radius:50%;
            background:#34d399; border:2px solid var(--bg);
            font-size:9px; font-weight:700; color:#000;
            display:flex; align-items:center; justify-content:center;
        }

        /* ── Panel ── */
        #chat-panel {
            position:fixed; bottom:96px; right:28px; z-index:900;
            width:390px; max-height:600px;
            background:#0d0f13; border:1px solid rgba(255,255,255,0.08);
            border-radius:22px; overflow:hidden;
            box-shadow:0 24px 80px rgba(0,0,0,0.6);
            display:flex; flex-direction:column;
            transform:translateY(20px) scale(0.97);
            opacity:0; pointer-events:none;
            transition:transform .25s cubic-bezier(.34,1.56,.64,1),opacity .2s;
        }
        #chat-panel.open { transform:translateY(0) scale(1); opacity:1; pointer-events:all; }
        body.light #chat-panel { background:#f5f0eb; border-color:rgba(0,0,0,0.1); }

        /* ── Header ── */
        .chat-header {
            padding:13px 14px;
            background:linear-gradient(135deg,rgba(139,29,61,0.18),rgba(100,15,35,0.1));
            border-bottom:1px solid rgba(255,255,255,0.06);
            display:flex; align-items:center; gap:10px; flex-shrink:0;
        }
        body.light .chat-header { border-bottom-color:rgba(0,0,0,0.07); }
        .chat-avatar {
            width:34px; height:34px; border-radius:11px;
            background:linear-gradient(135deg,#8b1d3d,#6b1030);
            display:flex; align-items:center; justify-content:center;
            font-size:14px; color:white; flex-shrink:0;
        }
        .chat-header-info { flex:1; }
        .chat-header-name { font-family:'Cormorant Garamond',serif; font-size:15px; font-style:italic; color:var(--text); line-height:1.2; }
        .chat-header-sub  { font-size:9px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--wine-light); margin-top:1px; }
        .chat-header-btns { display:flex; gap:6px; align-items:center; }
        .chat-hbtn {
            height:27px; padding:0 9px; border-radius:8px;
            background:rgba(255,255,255,0.06); border:none;
            font-family:'DM Sans',sans-serif; font-size:10px; font-weight:500;
            cursor:pointer; display:flex; align-items:center; gap:5px;
            transition:all .15s; white-space:nowrap; color:var(--muted);
        }
        .chat-hbtn:hover { background:rgba(255,255,255,0.12); color:var(--text); }
        .chat-hbtn.warn  { color:#fbbf24; }
        .chat-hbtn.warn:hover { background:rgba(251,191,36,0.1); color:#fbbf24; }
        .chat-hbtn.close { color:var(--muted); }

        /* ── Messages ── */
        .chat-messages {
            flex:1; overflow-y:auto; padding:14px 14px 6px;
            display:flex; flex-direction:column; gap:8px;
            scroll-behavior:smooth;
        }
        .chat-messages::-webkit-scrollbar { width:3px; }
        .chat-messages::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:2px; }

        .chat-msg { display:flex; flex-direction:column; animation:msgIn .2s ease; }
        @keyframes msgIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
        .chat-msg.user  { align-items:flex-end; }
        .chat-msg.agent { align-items:flex-start; }

        .chat-bubble {
            max-width:90%; padding:9px 13px; border-radius:14px;
            font-size:13px; line-height:1.6;
        }
        .chat-msg.user .chat-bubble {
            background:var(--wine); color:white; border-bottom-right-radius:4px;
        }
        .chat-msg.agent .chat-bubble {
            background:rgba(255,255,255,0.06); color:var(--text);
            border-bottom-left-radius:4px; border:1px solid rgba(255,255,255,0.07);
        }
        body.light .chat-msg.agent .chat-bubble { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.08); }

        /* ── Markdown SANS sauts de ligne parasites ── */
        .chat-bubble p          { margin:0 0 4px; }
        .chat-bubble p:last-child{ margin-bottom:0; }
        .chat-bubble strong     { font-weight:600; }
        .chat-bubble em         { font-style:italic; }
        .chat-bubble ul         { margin:3px 0 3px 16px; padding:0; }
        .chat-bubble ol         { margin:3px 0 3px 18px; padding:0; }
        .chat-bubble li         { margin:0; padding:0; line-height:1.55; }
        .chat-bubble h3         { font-size:13px; font-weight:600; margin:5px 0 2px; }

        /* ── Typing ── */
        .chat-typing {
            display:flex; align-items:center; gap:5px; padding:9px 13px;
            background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.07);
            border-radius:14px; border-bottom-left-radius:4px; width:fit-content;
        }
        body.light .chat-typing { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.08); }
        .chat-typing span {
            width:5px; height:5px; border-radius:50%; background:var(--wine-light);
            display:block; animation:typingDot 1.2s infinite;
        }
        .chat-typing span:nth-child(2){animation-delay:.2s}
        .chat-typing span:nth-child(3){animation-delay:.4s}
        @keyframes typingDot{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}

        /* ── Indicateur d'action ── */
        .chat-action-badge {
            display:inline-flex; align-items:center; gap:5px; padding:3px 9px;
            border-radius:20px; width:fit-content; margin-bottom:4px;
            background:rgba(139,29,61,0.08); border:1px solid rgba(139,29,61,0.18);
            font-size:10px; color:var(--wine-light); font-family:'DM Sans',sans-serif;
            letter-spacing:.02em; animation:msgIn .2s ease;
        }
        .chat-action-badge i { font-size:9px; }

        /* ── Follow-ups ── */
        .chat-followups {
            display:flex; flex-wrap:wrap; gap:5px; margin-top:6px;
        }
        .chat-followup {
            font-size:11px; padding:4px 10px; border-radius:20px;
            background:rgba(139,29,61,0.08); border:1px solid rgba(139,29,61,0.18);
            color:var(--wine-light); cursor:pointer; transition:all .15s;
            font-family:'DM Sans',sans-serif; text-align:left;
        }
        .chat-followup:hover { background:rgba(139,29,61,0.18); border-color:rgba(139,29,61,0.35); }

        /* ── Suggestions initiales ── */
        .chat-suggestions {
            padding:0 12px 10px; display:flex; flex-wrap:wrap; gap:6px; flex-shrink:0;
        }
        .chat-suggestion {
            font-size:11px; padding:5px 11px; border-radius:20px;
            background:rgba(139,29,61,0.1); border:1px solid rgba(139,29,61,0.2);
            color:var(--wine-light); cursor:pointer; transition:all .15s;
            font-family:'DM Sans',sans-serif;
        }
        .chat-suggestion:hover { background:rgba(139,29,61,0.2); border-color:rgba(139,29,61,0.4); }

        /* ── Footer ── */
        .chat-footer {
            padding:10px 12px; border-top:1px solid rgba(255,255,255,0.06);
            display:flex; gap:7px; align-items:flex-end; flex-shrink:0;
        }
        body.light .chat-footer { border-top-color:rgba(0,0,0,0.07); }
        #chat-input {
            flex:1; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
            border-radius:11px; padding:9px 13px;
            font-family:'DM Sans',sans-serif; font-size:13px; color:var(--text);
            resize:none; outline:none; max-height:100px; line-height:1.5; transition:border-color .2s;
        }
        #chat-input::placeholder { color:var(--muted); }
        #chat-input:focus { border-color:rgba(139,29,61,0.5); }
        body.light #chat-input { background:rgba(0,0,0,0.05); border-color:rgba(0,0,0,0.12); }
        #chat-send {
            width:36px; height:36px; border-radius:10px; background:var(--wine);
            border:none; cursor:pointer; color:white; font-size:12px; flex-shrink:0;
            display:flex; align-items:center; justify-content:center;
            transition:all .2s; align-self:flex-end;
        }
        #chat-send:hover { background:#a02346; transform:translateY(-1px); }
        #chat-send:disabled { opacity:.4; cursor:not-allowed; transform:none; }

        @media (max-width:900px) {
            #chat-panel { width:calc(100vw - 32px); right:16px; bottom:88px; max-height:70vh; }
            #chat-fab { right:16px; bottom:16px; }
            #chat-disclaimer { padding:0 16px 90px; }
            .disclaimer-card { width:100%; }
        }