/* _content/OriaChat.Widget/OriaChatWidget.razor.rz.scp.css */
/* Entièrement autonome : aucune dépendance aux jetons CSS de l'application hôte (elle peut être
   n'importe quelle appli Blazor de l'écosystème, avec ou sans les mêmes variables --accent etc.).
   Couleurs reprises de la charte Oria, en dur. */

.oriachat-widget[b-zsgkn0tfz6] {
    --ocw-accent: #8E6A30;
    --ocw-accent-hover: #705424;
    --ocw-bg: #FFFFFF;
    --ocw-bg-user: #E4E4E9;
    --ocw-text: #1C1C1E;
    --ocw-text-secondary: #6E6E73;
    --ocw-border: rgba(60, 60, 67, 0.12);
    --ocw-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.oriachat-widget *[b-zsgkn0tfz6] {
    box-sizing: border-box;
}

.ocw-lanceur[b-zsgkn0tfz6] {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--ocw-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--ocw-shadow);
    z-index: 2147483000;
    transition: background-color 150ms ease, transform 100ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ocw-lanceur:hover[b-zsgkn0tfz6] {
    background: var(--ocw-accent-hover);
}

.ocw-lanceur:active[b-zsgkn0tfz6] {
    transform: scale(0.93);
}

@media (prefers-reduced-motion: reduce) {
    .ocw-lanceur:active[b-zsgkn0tfz6] {
        transform: none;
    }
}

.ocw-panneau[b-zsgkn0tfz6] {
    position: fixed;
    right: 20px;
    bottom: 86px;
    width: min(380px, calc(100vw - 32px));
    height: min(600px, calc(100vh - 140px));
    background: var(--ocw-bg);
    border-radius: 18px;
    box-shadow: var(--ocw-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2147483000;
    color: var(--ocw-text);
}

.ocw-entete[b-zsgkn0tfz6] {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ocw-border);
}

.ocw-titre[b-zsgkn0tfz6] {
    font-weight: 700;
    font-size: 15px;
}

.ocw-mascotte[b-zsgkn0tfz6] {
    margin-left: auto;
    height: 34px;
    width: auto;
}

.ocw-avatar[b-zsgkn0tfz6] {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(142, 106, 48, 0.12);
    color: var(--ocw-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ocw-fil[b-zsgkn0tfz6] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ocw-msg[b-zsgkn0tfz6] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 92%;
}

.ocw-utilisateur[b-zsgkn0tfz6] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ocw-assistant[b-zsgkn0tfz6] {
    align-self: flex-start;
}

.ocw-colonne[b-zsgkn0tfz6] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ocw-bulle[b-zsgkn0tfz6] {
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 13.5px;
    line-height: 1.45;
}

.ocw-utilisateur .ocw-bulle[b-zsgkn0tfz6] {
    background: var(--ocw-bg-user);
    color: var(--ocw-text);
    border-bottom-right-radius: 4px;
}

.ocw-assistant .ocw-bulle[b-zsgkn0tfz6] {
    background: #F4F1EA;
    border-bottom-left-radius: 4px;
}

.ocw-bulle[b-zsgkn0tfz6]  p {
    margin: 0;
}

.ocw-bulle[b-zsgkn0tfz6]  p + p {
    margin-top: 6px;
}

.ocw-bulle[b-zsgkn0tfz6]  ul,
.ocw-bulle[b-zsgkn0tfz6]  ol {
    margin: 6px 0;
    padding-left: 1.2em;
}

.ocw-bulle[b-zsgkn0tfz6]  a {
    color: var(--ocw-accent-hover);
}

.ocw-reflexion[b-zsgkn0tfz6] {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ocw-text-secondary);
    font-size: 12.5px;
}

.ocw-points[b-zsgkn0tfz6] {
    display: inline-flex;
    align-items: center;
}

.ocw-points i[b-zsgkn0tfz6] {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ocw-text-secondary);
    margin-inline: 2px;
    display: inline-block;
    animation: ocw-pulse-b-zsgkn0tfz6 1.1s ease-in-out infinite;
}

.ocw-points i:nth-child(2)[b-zsgkn0tfz6] {
    animation-delay: 0.15s;
}

.ocw-points i:nth-child(3)[b-zsgkn0tfz6] {
    animation-delay: 0.3s;
}

@keyframes ocw-pulse-b-zsgkn0tfz6 {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ocw-points i[b-zsgkn0tfz6] {
        animation: none;
        opacity: 0.7;
    }
}

.ocw-notation[b-zsgkn0tfz6] {
    display: flex;
    gap: 2px;
}

.ocw-notation button[b-zsgkn0tfz6] {
    width: 22px;
    height: 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 11px;
    cursor: pointer;
}

.ocw-notation button:hover[b-zsgkn0tfz6] {
    background: rgba(120, 120, 128, 0.12);
}

.ocw-notation button.actif[b-zsgkn0tfz6] {
    background: rgba(142, 106, 48, 0.12);
    border-color: var(--ocw-border);
}

.ocw-composer[b-zsgkn0tfz6] {
    flex: none;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0 12px 8px;
    padding: 7px 7px 7px 12px;
    border-radius: 16px;
    background: #F1F1F1;
}

.ocw-composer textarea[b-zsgkn0tfz6] {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    font-size: 13.5px;
    font-family: inherit;
    line-height: 1.4;
    max-height: 90px;
    overflow-y: auto;
    padding: 5px 0;
    color: var(--ocw-text);
}

.ocw-composer textarea[b-zsgkn0tfz6]::placeholder {
    color: var(--ocw-text-secondary);
}

.ocw-envoyer[b-zsgkn0tfz6] {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--ocw-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 150ms ease, transform 100ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ocw-envoyer:hover:not(:disabled)[b-zsgkn0tfz6] {
    background: var(--ocw-accent-hover);
}

.ocw-envoyer:active:not(:disabled)[b-zsgkn0tfz6] {
    transform: scale(0.92);
}

.ocw-envoyer:disabled[b-zsgkn0tfz6] {
    background: #c9c0ae;
    cursor: not-allowed;
}

.ocw-avertissement[b-zsgkn0tfz6] {
    flex: none;
    margin: 0 0 10px;
    text-align: center;
    font-size: 10.5px;
    color: var(--ocw-text-secondary);
}
