.bc-ih-widget,.bc-ih-predictions{font-family:inherit;color:#111827;background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:clamp(16px,3vw,32px);box-shadow:0 18px 46px rgba(17,24,39,.08);max-width:1100px;margin:24px auto}.bc-ih-hero h2{font-size:clamp(30px,4vw,46px);margin:3px 0 8px;color:#111827}.bc-ih-kicker{font-weight:800;font-size:11px;letter-spacing:.17em;color:#c0268d}.bc-ih-hero p{color:#4b5563;margin:0 0 18px}.bc-ih-suggest{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.bc-ih-suggest button{border:1px solid #d1d5db;background:#fff;color:#111827;border-radius:10px;padding:9px 13px;cursor:pointer;transition:.2s ease}.bc-ih-suggest button:hover{background:#f9fafb;border-color:#c0268d;color:#7c2d92}.bc-ih-messages{background:#f8fafc;border:1px solid #e5e7eb;border-radius:18px;padding:20px;min-height:230px;max-height:520px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.bc-ih-msg{max-width:88%;padding:14px 16px;line-height:1.62;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px;background:#fff;color:#111827;border:1px solid #e5e7eb}.bc-ih-msg p{margin:.1em 0 0}.bc-ih-msg h1,.bc-ih-msg h2,.bc-ih-msg h3{margin:.35em 0 .45em;color:#111827;line-height:1.3}.bc-ih-msg h1{font-size:1.25rem}.bc-ih-msg h2{font-size:1.14rem}.bc-ih-msg h3{font-size:1.02rem}.bc-ih-msg ul{margin:.45em 0 .2em 1.2em}.bc-ih-msg li{margin:.2em 0}.bc-ih-msg.user{margin-left:auto;background:linear-gradient(135deg,#d946ef,#a855f7);color:#fff;border-color:transparent}.bc-ih-msg.user h1,.bc-ih-msg.user h2,.bc-ih-msg.user h3,.bc-ih-msg.user strong,.bc-ih-msg.user p{color:#fff}.bc-ih-msg.ai{box-shadow:0 4px 12px rgba(17,24,39,.04)}.bc-ih-msg.is-typing .bc-ih-msg-content::after{content:'';display:inline-block;width:8px;height:1.1em;vertical-align:-2px;margin-left:4px;background:#c0268d;animation:bcIHCaret 1s steps(1,end) infinite}.bc-ih-msg.is-thinking .bc-ih-msg-content::after{content:' …';animation:bcIHDots 1s steps(4,end) infinite}.bc-ih-form{margin-top:14px;display:flex;gap:10px;align-items:stretch}.bc-ih-form textarea{flex:1;min-width:0;background:#fff;border:1px solid #d1d5db;color:#111827;border-radius:12px;padding:14px;resize:vertical}.bc-ih-form textarea:focus{outline:none;border-color:#c0268d;box-shadow:0 0 0 3px rgba(217,70,239,.12)}.bc-ih-form button{color:#fff;background:#c0268d;border:0;border-radius:12px;cursor:pointer;padding:10px 22px;font-weight:700}.bc-ih-form button:hover{background:#a21caf}.bc-ih-form button:disabled{opacity:.65;cursor:wait}.bc-ih-bottom{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#6b7280;align-items:center;margin-top:11px}.bc-ih-bottom button{border:0;background:none;color:#a21caf;cursor:pointer}.bc-ih-predictions h3{color:#111827}.bc-ih-predictions p{color:#374151}.bc-ih-scroll{overflow-x:auto}.bc-ih-scroll table{min-width:650px;width:100%;border-collapse:collapse}.bc-ih-scroll th,.bc-ih-scroll td{border-bottom:1px solid #e5e7eb;padding:12px;text-align:left;color:#111827}.bc-ih-scroll th{color:#7c2d92;background:#faf5ff}.bc-ih-scroll details summary{cursor:pointer;color:#7c2d92}.bc-ih-scroll details p{margin-top:8px}.bc-ih-scroll details small{color:#6b7280}@keyframes bcIHCaret{0%,49%{opacity:1}50%,100%{opacity:0}}@keyframes bcIHDots{0%{opacity:.2}50%{opacity:1}100%{opacity:.2}}@media(max-width:620px){.bc-ih-form{flex-direction:column}.bc-ih-msg{max-width:96%}.bc-ih-bottom{flex-direction:column;align-items:flex-start}}

/* V36.9.6 — Historique IA avec même langage visuel que Historique paris. */
.bc-ih-history{--bc-ai-gold:#ffd34d;box-sizing:border-box!important;max-width:none!important;width:100%;padding:0!important;margin:0 0 18px!important;overflow:hidden;background:linear-gradient(180deg,#2d2b63 0%,#1a2048 100%)!important;border:1px solid rgba(176,112,255,.43)!important;box-shadow:0 14px 34px rgba(0,0,0,.22)!important;border-radius:22px!important;color:#fff!important}
.bc-ih-history *, .bc-ih-float-root *{box-sizing:border-box}
.bc-ih-history-heading{padding:17px 18px;background:linear-gradient(135deg,rgba(217,79,174,.12),rgba(143,98,255,.10));border-bottom:1px solid rgba(255,255,255,.10)}
.bc-ih-history-heading>strong{display:block;color:#fff;font-size:19px;font-weight:900;line-height:1.2}
.bc-ih-history-heading>span{display:block;color:rgba(255,255,255,.72);font-size:13px;margin-top:6px}
.bc-ih-history-filter{padding:15px 18px;border-bottom:1px solid rgba(255,255,255,.09)}
.bc-ih-history-filter form{max-width:490px;display:flex;flex-direction:column;gap:8px;margin:0}
.bc-ih-history-filter label{font-weight:850;font-size:13px;color:rgba(255,255,255,.80)}
.bc-ih-history-filter select{display:block;width:100%;max-width:100%;height:48px;background:#171a39!important;border:1px solid rgba(217,79,174,.78)!important;color:#fff!important;border-radius:13px!important;font-weight:850;padding:8px 12px;font-size:15px}
.bc-ih-history-filter button{align-self:flex-start;padding:10px 16px;background:#c0268d;color:white;border:0;border-radius:12px}
.bc-ih-history-content{padding:18px;min-width:0}
.bc-ih-history-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.bc-ih-history .bc-ih-history-title h3{font-size:22px;line-height:1.2;font-weight:800;color:#fff!important;margin:0}
.bc-ih-history-title>span{white-space:nowrap;color:#ffd34d;font-size:12px;font-weight:900;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12)}
.bc-ih-history-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:6px}
.bc-ih-history-metrics>div{min-width:0;background:rgba(17,22,53,.74);border:1px solid rgba(176,112,255,.36);padding:13px 15px;border-radius:16px}
.bc-ih-history-metrics>div.bc-ih-history-metric-accent{background:linear-gradient(130deg,rgba(217,74,167,.86),rgba(143,98,255,.82));border-color:rgba(255,79,192,.50)}
.bc-ih-history-metrics span{display:block;font-size:11px;font-weight:850;color:rgba(255,255,255,.68);margin-bottom:7px}
.bc-ih-history-metrics strong{display:block;overflow-wrap:anywhere;color:#fff;font-size:23px;line-height:1.1;font-weight:950}
.bc-ih-history .bc-ih-history-note{color:rgba(255,255,255,.7)!important;font-size:12px;margin:8px 0 18px}
.bc-ih-history-cards{display:flex;flex-direction:column;gap:15px}
.bc-ih-history-card{position:relative;overflow:hidden;min-width:0;background:radial-gradient(circle at 93% 0%,rgba(167,112,255,.20),transparent 35%),linear-gradient(180deg,#2c2b62 0%,#1b204a 100%);border:1px solid rgba(162,107,255,.51);border-radius:23px;padding:17px;box-shadow:0 10px 24px rgba(0,0,0,.20);color:#fff!important}
.bc-ih-history-card::before{content:"";position:absolute;right:-26px;top:0;width:145px;height:90px;background:linear-gradient(135deg,rgba(157,115,255,.21),transparent);clip-path:polygon(30% 0,100% 0,83% 100%,0 68%);pointer-events:none}
.bc-ih-history-card>*{position:relative}
.bc-ih-history-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.bc-ih-history-rank{font-size:12px;font-weight:950;color:#fff;padding:8px 11px;background:rgba(255,46,166,.16);border:1px solid rgba(255,46,166,.42);border-radius:999px;white-space:nowrap}
.bc-ih-history-card-top>div{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.bc-ih-history-card-top time{font-size:12px;color:rgba(255,255,255,.67);font-weight:700;white-space:nowrap}
.bc-ih-history-state{display:inline-flex;padding:6px 11px;border-radius:999px;font-size:11px;font-weight:950;white-space:nowrap;border:1px solid rgba(255,255,255,.1)}
.bc-ih-history-state--won{color:#c9ff8e;background:rgba(125,211,79,.12);border-color:rgba(166,227,72,.30)}
.bc-ih-history-state--lost{color:#ffb2b2;background:rgba(255,112,112,.12);border-color:rgba(255,112,112,.28)}
.bc-ih-history-state--pending{color:#fff0a8;background:rgba(255,211,77,.10);border-color:rgba(255,211,77,.26)}
.bc-ih-history .bc-ih-history-card h4{font-size:17px;line-height:1.38;font-weight:900;color:#fff!important;margin:0 0 13px;overflow-wrap:anywhere}
.bc-ih-history-card-stats{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px}
.bc-ih-history-stat{min-width:0;padding:12px;border-radius:14px;border:1px solid rgba(181,136,255,.33);background:rgba(14,19,49,.72)}
.bc-ih-history-stat-pick{background:linear-gradient(130deg,rgba(217,74,167,.78),rgba(143,98,255,.70));border-color:rgba(255,79,192,.46)}
.bc-ih-history-stat>span{display:block;font-size:11px;font-weight:850;color:rgba(255,255,255,.68);margin-bottom:7px}
.bc-ih-history-stat strong{display:block;font-weight:900;font-size:15px;color:#fff;overflow-wrap:anywhere;line-height:1.25}
.bc-ih-history-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.bc-ih-history-tags span{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#e6d5ff;font-size:11px;font-weight:700}
.bc-ih-history-explanation{margin-top:13px;border:1px solid rgba(255,255,255,.14);background:rgba(12,15,37,.38);border-radius:13px;overflow:hidden}
.bc-ih-history-explanation summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:850;color:#fff!important;list-style-position:inside}
.bc-ih-history-explanation[open] summary{border-bottom:1px solid rgba(255,255,255,.1)}
.bc-ih-history-explanation div{padding:13px 15px;color:rgba(255,255,255,.88);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.bc-ih-history-empty{padding:25px;color:#e7d9ff}
.bc-ih-history-pagination{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;padding:17px 8px 2px}
.bc-ih-history-pagination a{padding:8px 13px;border:1px solid rgba(255,255,255,.22);border-radius:9px;color:#fff!important;text-decoration:none}
.bc-ih-history-pagination a[aria-current="page"]{background:#ac31a0;color:#fff!important;border-color:#ff74cf}
@media(max-width:790px){.bc-ih-history{border-radius:18px!important}.bc-ih-history-content{padding:12px}.bc-ih-history-heading,.bc-ih-history-filter{padding:13px}.bc-ih-history-metrics{gap:7px}.bc-ih-history-metrics>div{padding:10px}.bc-ih-history-metrics strong{font-size:19px}.bc-ih-history-title h3{font-size:17px!important}.bc-ih-history-card{padding:12px;border-radius:18px}.bc-ih-history-card-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bc-ih-history-stat-pick{grid-column:span 2}.bc-ih-history-card-top{align-items:flex-start}.bc-ih-history-card-top>div{flex-direction:column;gap:4px;align-items:flex-end}.bc-ih-history-card-top time{font-size:10px}.bc-ih-history-stat strong{font-size:14px}.bc-ih-history .bc-ih-history-card h4{font-size:15px}}
@media(max-width:400px){.bc-ih-history-title{align-items:flex-start}.bc-ih-history-title>span{font-size:10px}.bc-ih-history-metrics strong{font-size:17px}.bc-ih-history-metrics span{font-size:10px}}
/* V36.9.6 — bulle IA flottante et refermable inspirée du parcours Pilotia. */
.bc-ih-float-root{position:fixed;right:22px;bottom:22px;z-index:99990;font-family:Inter,"Segoe UI",Arial,sans-serif;max-width:calc(100vw - 24px)}
.bc-ih-float-launcher{border:1px solid rgba(162,107,255,.6);background:linear-gradient(110deg,#22205b,#6423bd 55%,#9d36c7);color:#fff!important;border-radius:18px;padding:10px 12px;display:flex;align-items:center;gap:10px;cursor:pointer;min-height:65px;box-shadow:0 12px 28px rgba(12,6,31,.32);font-family:inherit;transition:transform .18s ease,box-shadow .18s ease}
.bc-ih-float-launcher:hover{transform:translateY(-2px);box-shadow:0 17px 36px rgba(12,6,31,.4)}
.bc-ih-float-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#ff2ea6,#8f62ff);color:white;font-size:16px;font-weight:950}
.bc-ih-float-launcher-copy{text-align:left;display:flex;flex-direction:column;gap:3px;min-width:105px}
.bc-ih-float-launcher-copy strong{font-size:15px;font-weight:950;color:white!important;line-height:1.1}
.bc-ih-float-launcher-copy small{font-size:11px;color:rgba(255,255,255,.85);white-space:nowrap}
.bc-ih-float-launcher-arrow{font-size:18px;font-weight:900;color:#fff}
.bc-ih-floating-panel{position:absolute;bottom:calc(100% + 12px);right:0;display:flex;flex-direction:column;width:min(425px,calc(100vw - 24px));height:min(690px,calc(100dvh - 120px));max-height:calc(100vh - 120px);min-height:300px;background:#fff;border:1px solid #d8d9ee;border-radius:22px;box-shadow:0 22px 65px rgba(6,6,27,.40);overflow:hidden}
.bc-ih-floating-panel[hidden]{display:none!important}
.bc-ih-float-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:13px 15px;background:linear-gradient(120deg,#25235b,#533395);color:#fff}
.bc-ih-float-head .bc-ih-float-avatar{width:35px;height:35px;flex-basis:35px;font-size:13px;border-radius:10px}
.bc-ih-float-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}.bc-ih-float-head strong{font-size:16px;color:#fff!important;font-weight:950}.bc-ih-float-head small{font-size:11px;color:#e8dafb}
.bc-ih-float-close{margin-left:auto;border:0;background:rgba(255,255,255,.12);color:#fff!important;width:36px;height:36px;border-radius:10px;cursor:pointer;font-size:25px;font-weight:600;line-height:1}
.bc-ih-float-root .bc-ih-widget{min-width:0!important;width:100%;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:10px 12px 4px!important;box-shadow:none!important;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;color:#111827}
.bc-ih-float-root .bc-ih-hero{display:none}.bc-ih-float-root .bc-ih-suggest{margin:0 0 9px;flex-wrap:nowrap;gap:5px;overflow-x:auto;flex:0 0 auto}
.bc-ih-float-root .bc-ih-suggest button{white-space:nowrap;padding:7px 10px;font-size:11px}
.bc-ih-float-root .bc-ih-messages{flex:1 1 auto;min-height:80px;max-height:none;height:auto;overflow-y:auto;padding:12px;border-radius:13px;gap:9px}
.bc-ih-float-root .bc-ih-msg{font-size:13px;max-width:96%;padding:10px 12px;line-height:1.55}
.bc-ih-float-root .bc-ih-form{flex:0 0 auto;display:flex;gap:6px;margin-top:8px;flex-direction:row}
.bc-ih-float-root .bc-ih-form textarea{min-height:45px;max-height:110px;font-size:13px;padding:10px;resize:none}
.bc-ih-float-root .bc-ih-form button{font-size:12px;padding:6px 12px;border-radius:10px}
.bc-ih-float-root .bc-ih-bottom{font-size:10px;gap:5px;margin-top:5px;flex:0 0 auto}
.bc-ih-float-root .bc-ih-bottom button{white-space:nowrap;font-size:10px}
.bc-ih-float-fullpage{flex:0 0 auto;text-align:center;border-top:1px solid #eef0f5;padding:7px;background:#fafaff}
.bc-ih-float-fullpage a{color:#7535af;font-size:11px;font-weight:800;text-decoration:none}
.bc-ih-float-root button:focus-visible{outline:3px solid #f5a9de;outline-offset:2px}
@media(max-width:600px){.bc-ih-float-root{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}.bc-ih-float-launcher{min-height:54px;padding:7px 9px;border-radius:15px}.bc-ih-float-launcher .bc-ih-float-avatar{width:38px;height:38px;flex-basis:38px}.bc-ih-float-launcher-copy small{font-size:10px}.bc-ih-floating-panel{width:calc(100vw - 24px);height:min(650px,calc(100dvh - 90px));max-height:calc(100dvh - 90px);min-height:230px;bottom:calc(100% + 8px);border-radius:15px}.bc-ih-float-root .bc-ih-form{flex-direction:row}.bc-ih-float-root .bc-ih-form button{min-height:45px}.bc-ih-float-root .bc-ih-bottom{flex-wrap:wrap}.bc-ih-float-root .bc-ih-bottom button{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.bc-ih-float-launcher{transition:none}}

.bc-ih-history-heading .bc-ih-history-global{margin:12px 0 0!important;font-size:12px;color:rgba(255,255,255,.75)!important;line-height:1.5}.bc-ih-history-heading .bc-ih-history-global b{color:#fff;font-weight:900}
