/* Persistent public assistant: isolated from captured Oxygen page styles. */
.lr-assistant,
.lr-assistant * { box-sizing: border-box; }

.lr-assistant {
    --lr-ai-red: #d51d3b;
    --lr-ai-dark: #202126;
    --lr-ai-muted: #62646b;
    --lr-ai-blue: #6fd4f0;
    --lr-ai-soft: #f3fafc;
    --lr-ai-border: #e4e6e9;
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 2147483600;
    color: var(--lr-ai-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.lr-assistant button,
.lr-assistant textarea,
.lr-assistant a { font: inherit; }

.lr-assistant__launcher {
    display: flex;
    align-items: center;
    min-width: 205px;
    gap: 11px;
    padding: 10px 15px 10px 10px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--lr-ai-dark);
    box-shadow: 0 14px 38px rgba(24, 27, 34, .2), 0 2px 8px rgba(24, 27, 34, .12);
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lr-assistant__launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(24, 27, 34, .24), 0 3px 10px rgba(24, 27, 34, .12); }
.lr-assistant__launcher:focus-visible,
.lr-assistant button:focus-visible,
.lr-assistant textarea:focus-visible,
.lr-assistant a:focus-visible { outline: 3px solid rgba(111, 212, 240, .65); outline-offset: 2px; }

.lr-assistant__launcher-mark {
    display: block;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    overflow: hidden;
    border-radius: 12px;
    background: #ef2538;
}

.lr-assistant__launcher-mark img { display: block; width: 43px; max-width: 43px; height: 43px; object-fit: cover; }
.lr-assistant__launcher-copy { display: flex; flex: 1; flex-direction: column; line-height: 1.2; }
.lr-assistant__launcher-copy strong { font-size: 14px; font-weight: 700; }
.lr-assistant__launcher-copy small { margin-top: 3px; color: var(--lr-ai-muted); font-size: 11px; }
.lr-assistant__status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3bb273; box-shadow: 0 0 0 3px rgba(59, 178, 115, .15); }

.lr-assistant__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto minmax(155px, 1fr) auto auto auto;
    width: min(390px, calc(100vw - 32px));
    height: min(650px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid rgba(32, 33, 38, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(19, 22, 30, .28), 0 3px 14px rgba(19, 22, 30, .1);
    transform-origin: bottom right;
    animation: lr-assistant-in .22s ease both;
}

.lr-assistant__panel[hidden] { display: none !important; }
#licence-definition,
#intelligence-artificielle,
#catalogue,
#offer-title,
#offer { scroll-margin-top: 96px; }
@keyframes lr-assistant-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

.lr-assistant__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    background: linear-gradient(125deg, #202126, #31333a);
    color: #fff;
}

.lr-assistant__identity { display: flex; align-items: center; gap: 11px; }
.lr-assistant__identity > span:last-child { display: flex; flex-direction: column; }
.lr-assistant__identity strong { color: #fff; font-size: 15px; line-height: 1.2; }
.lr-assistant__identity small { margin-top: 3px; color: rgba(255, 255, 255, .7); font-size: 11px; }
.lr-assistant__avatar { display: block; width: 40px; max-width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.lr-assistant__header-actions { display: flex; align-items: center; gap: 7px; }
.lr-assistant__close,
.lr-assistant__new-conversation { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.lr-assistant__close svg,
.lr-assistant__new-conversation svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lr-assistant__close:hover,
.lr-assistant__new-conversation:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .15); transform: translateY(-1px); }
.lr-assistant__new-conversation:disabled { opacity: .45; cursor: wait; transform: none; }

.lr-assistant__messages { overflow-y: auto; padding: 20px 17px 10px; overscroll-behavior: contain; background: linear-gradient(#fbfcfd, #fff 90px); }
.lr-assistant__message { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 13px; }
.lr-assistant__message--user { align-items: flex-end; }
.lr-assistant__bubble { max-width: 86%; padding: 11px 13px; overflow-wrap: anywhere; border-radius: 16px 16px 16px 5px; background: #f0f2f4; color: #2d2e33; font-size: 14px; line-height: 1.48; white-space: pre-wrap; }
.lr-assistant__message--user .lr-assistant__bubble { border-radius: 16px 16px 5px 16px; background: var(--lr-ai-dark); color: #fff; }
.lr-assistant__message--assistant .lr-assistant__bubble { overflow-x: hidden; white-space: normal; }
.lr-assistant__message--assistant .lr-assistant__bubble--wide { max-width: 100%; }
.lr-assistant__message--assistant .lr-assistant__bubble > :first-child { margin-top: 0; }
.lr-assistant__message--assistant .lr-assistant__bubble > :last-child { margin-bottom: 0; }
.lr-assistant__message--assistant .lr-assistant__bubble p { margin: 0 0 9px; }
.lr-assistant__message--assistant .lr-assistant__bubble h1,
.lr-assistant__message--assistant .lr-assistant__bubble h2,
.lr-assistant__message--assistant .lr-assistant__bubble h3,
.lr-assistant__message--assistant .lr-assistant__bubble h4 { margin: 13px 0 6px; color: var(--lr-ai-dark); line-height: 1.25; }
.lr-assistant__message--assistant .lr-assistant__bubble h1 { font-size: 19px; }
.lr-assistant__message--assistant .lr-assistant__bubble h2 { font-size: 17px; }
.lr-assistant__message--assistant .lr-assistant__bubble h3 { font-size: 15px; }
.lr-assistant__message--assistant .lr-assistant__bubble h4 { font-size: 14px; }
.lr-assistant__message--assistant .lr-assistant__bubble ul,
.lr-assistant__message--assistant .lr-assistant__bubble ol { margin: 5px 0 10px; padding-left: 21px; }
.lr-assistant__message--assistant .lr-assistant__bubble li { margin: 3px 0; }
.lr-assistant__message--assistant .lr-assistant__bubble li > p { margin: 0; }
.lr-assistant__message--assistant .lr-assistant__bubble a { color: var(--lr-ai-red); font-weight: 700; text-underline-offset: 2px; }
.lr-assistant__message--assistant .lr-assistant__bubble blockquote { margin: 9px 0; padding: 3px 0 3px 10px; border-left: 3px solid var(--lr-ai-blue); color: #60636a; }
.lr-assistant__message--assistant .lr-assistant__bubble code { padding: 2px 4px; border-radius: 5px; background: #e3e6e9; font: 12px/1.4 Consolas, Monaco, monospace; }
.lr-assistant__message--assistant .lr-assistant__bubble pre { max-width: 100%; margin: 9px 0; padding: 10px; overflow-x: hidden; border-radius: 9px; background: #23252b; color: #f7f7f8; white-space: pre-wrap; overflow-wrap: anywhere; }
.lr-assistant__message--assistant .lr-assistant__bubble pre code { padding: 0; background: transparent; color: inherit; }
.lr-assistant__message--assistant .lr-assistant__bubble table { width: 100%; max-width: 100%; margin: 9px 0; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.lr-assistant__message--assistant .lr-assistant__bubble th,
.lr-assistant__message--assistant .lr-assistant__bubble td { padding: 6px; border: 1px solid #d5d8dc; overflow-wrap: break-word; word-break: normal; hyphens: auto; text-align: left; vertical-align: top; }
.lr-assistant__message--assistant .lr-assistant__bubble th { background: #e7eaed; }
.lr-assistant__message--assistant .lr-assistant__bubble th:first-child,
.lr-assistant__message--assistant .lr-assistant__bubble td:first-child { width: 36%; }
.lr-assistant__message--assistant .lr-assistant__bubble hr { height: 1px; margin: 12px 0; border: 0; background: #d8dadd; }
.lr-assistant__message--assistant .lr-assistant__bubble img { display: block; max-width: 100%; height: auto; margin: 9px 0; border-radius: 8px; }
.lr-assistant__message--assistant .lr-assistant__bubble del { color: #777a81; }
.lr-assistant__message--pending .lr-assistant__bubble { display: flex; gap: 5px; padding: 14px 16px; }
.lr-assistant__message--pending i { width: 6px; height: 6px; border-radius: 50%; background: #90939a; animation: lr-assistant-dot 1s infinite alternate; }
.lr-assistant__message--pending i:nth-child(2) { animation-delay: .18s; }
.lr-assistant__message--pending i:nth-child(3) { animation-delay: .36s; }
@keyframes lr-assistant-dot { to { opacity: .25; transform: translateY(-2px); } }

.lr-assistant__sources { width: 100%; margin-top: 7px; }
.lr-assistant__sources > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: max-content; max-width: 100%; padding: 7px 11px; border: 1px solid #cde8ef; border-radius: 999px; background: linear-gradient(110deg, #f0fbfd, #fff7f8); color: #3f5960; cursor: pointer; font-size: 11px; font-weight: 700; list-style: none; box-shadow: 0 2px 7px rgba(41, 104, 120, .07); transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.lr-assistant__sources > summary::-webkit-details-marker { display: none; }
.lr-assistant__sources > summary:hover { border-color: var(--lr-ai-blue); background: var(--lr-ai-soft); transform: translateY(-1px); }
.lr-assistant__sources > summary em { color: var(--lr-ai-red); font-style: normal; }
.lr-assistant__sources[open] > summary em { font-size: 0; }
.lr-assistant__sources[open] > summary em::after { content: "Réduire"; font-size: 11px; }
.lr-assistant__source-list { display: grid; gap: 5px; margin-top: 6px; }
.lr-assistant__sources--general { margin-top: 5px; }
.lr-assistant__sources--general > summary { border-color: #d9dde5; background: #f7f8fa; color: #59616d; box-shadow: none; }
.lr-assistant__sources--general > summary:hover { border-color: #b8c0cc; background: #f1f3f6; }
.lr-assistant__sources--general > summary em { color: #59616d; }
.lr-assistant__qualification { width: 100%; margin-top: 8px; padding: 10px 11px; border: 1px solid #dfe7ea; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(28, 49, 58, .05); }
.lr-assistant__qualification p { margin: 0 0 8px; color: #444a52; font-size: 11px; font-weight: 700; line-height: 1.35; }
.lr-assistant__qualification-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lr-assistant__qualification-actions button { max-width: 100%; padding: 6px 9px; border: 1px solid #cde8ef; border-radius: 999px; background: var(--lr-ai-soft); color: #2e5964; cursor: pointer; font-size: 10px; line-height: 1.25; text-align: left; }
.lr-assistant__qualification-actions button:hover { border-color: var(--lr-ai-blue); background: #fff; }
.lr-assistant__source--general strong { font-weight: 650; }
.lr-assistant__source { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--lr-ai-border); border-radius: 10px; background: #fff; color: var(--lr-ai-dark); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.lr-assistant__source:hover { border-color: var(--lr-ai-blue); background: var(--lr-ai-soft); color: var(--lr-ai-dark); }
.lr-assistant__source strong { color: var(--lr-ai-dark); font-size: 11px; line-height: 1.28; }
.lr-assistant__source em { flex: 0 0 auto; color: var(--lr-ai-red); font-size: 15px; font-style: normal; font-weight: 700; }

.lr-assistant__starters { display: flex; gap: 7px; overflow-x: auto; padding: 4px 17px 10px; scrollbar-width: none; }
.lr-assistant__starters:empty,
.lr-assistant__starters[hidden] { display: none; }
.lr-assistant__starters button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #dfe7ea; border-radius: 999px; background: var(--lr-ai-soft); color: #2e5964; cursor: pointer; font-size: 11px; }
.lr-assistant__starters button:hover { border-color: var(--lr-ai-blue); }

.lr-assistant__verification { display: flex; justify-content: center; padding: 0 14px; overflow: hidden; background: transparent; }
.lr-assistant__verification[hidden] { display: none; }
.lr-assistant__verification > div { width: 100%; max-width: 100%; overflow: hidden; border-radius: 12px; }
.lr-assistant__verification iframe { display: block; max-width: 100%; }

.lr-assistant__composer { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px; padding: 7px 7px 7px 13px; border: 1px solid #dcdfe3; border-radius: 17px; background: #fff; box-shadow: 0 3px 10px rgba(25, 28, 35, .05); }
.lr-assistant__composer:focus-within { border-color: var(--lr-ai-blue); box-shadow: 0 0 0 3px rgba(111, 212, 240, .16); }
.lr-assistant__composer textarea { display: block; flex: 1; min-height: 38px; max-height: 104px; padding: 8px 2px; resize: none; overflow-y: auto; border: 0; outline: 0; background: transparent; color: var(--lr-ai-dark); font-size: 14px; line-height: 1.4; }
.lr-assistant__composer textarea::placeholder { color: #8a8c92; }
.lr-assistant__composer button { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border: 0; border-radius: 13px; background: var(--lr-ai-red); color: #fff; cursor: pointer; }
.lr-assistant__composer button:disabled { cursor: wait; opacity: .55; }
.lr-assistant__composer svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lr-assistant__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px 13px; }
.lr-assistant__footer small { color: #909299; font-size: 9px; line-height: 1.25; text-align: right; }
.lr-assistant__contact { padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--lr-ai-red); cursor: pointer; font-size: 11px; font-weight: 700; }
.lr-assistant__contact:hover { background: #fff0f3; }
.lr-assistant__contact--highlight { background: var(--lr-ai-red); color: #fff; animation: lr-assistant-contact .35s ease both; }
.lr-assistant__contact--highlight:hover { background: #b91531; color: #fff; }
@keyframes lr-assistant-contact { from { transform: scale(.94); } to { transform: none; } }

.lr-assistant__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 600px) {
    .lr-assistant { right: 12px; bottom: 12px; }
    .lr-assistant__launcher { min-width: 165px; max-width: calc(100vw - 24px); gap: 8px; padding: 7px 13px 7px 7px; }
    .lr-assistant__launcher-mark { flex-basis: 39px; width: 39px; height: 39px; border-radius: 11px; }
    .lr-assistant__launcher-mark img { width: 39px; max-width: 39px; height: 39px; }
    .lr-assistant__launcher-copy { display: flex; }
    .lr-assistant__launcher-copy strong { font-size: 12px; }
    .lr-assistant__launcher-copy small { margin-top: 2px; font-size: 10px; }
    .lr-assistant__status-dot { position: absolute; right: 5px; top: 5px; border: 2px solid #fff; }
    .lr-assistant__panel { position: fixed; right: 0; bottom: 0; left: 0; width: 100%; height: min(720px, calc(100dvh - 20px)); border-width: 1px 0 0; border-radius: 24px 24px 0 0; transform-origin: bottom center; }
    .lr-assistant__messages { padding-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .lr-assistant *, .lr-assistant *::before, .lr-assistant *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
