/* =========================================================================
   BODEZIA — SUPPORT EN DIRECT (bulle « Aide »)
   -------------------------------------------------------------------------
   Emplacement : /css/support-chat.css
   Éléments dessinés par /js/support/support-chat.js. Tout est préfixé
   « bz-support » pour ne rien toucher du reste du site.

   Le panneau :
     - collé au bord droit de l'écran, presque toute la hauteur ;
     - écrans : Accueil, Aide (toutes les questions), Article (une
       question, ouvert en grand), Conversation ;
     - menu du bas : Accueil / Messages / Aide ;
     - sur téléphone : plein écran.

   Le site applique à TOUS les boutons un fond au survol et un fond sombre
   aux boutons « submit » (stylesheet.css, style.css) : chaque bouton de la
   bulle fixe donc ses propres couleurs avec une règle plus précise
   (« .bz-support .xxx »).
   ========================================================================= */

.bz-support {
    --bz-accent: #7440d6;
    --bz-accent-dark: #5b2db8;
    --bz-accent-soft: #f1ebfd;
    --bz-heading: #1f2733;
    --bz-body: #4f5a66;
    --bz-muted: #8a939c;
    --bz-border: #e8ebf0;
    --bz-surface: #f5f6f9;
    --bz-online: #1fa463;
    --bz-radius: 20px;

    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1080;

    font-family: inherit;
}

.bz-support *,
.bz-support *::before,
.bz-support *::after {
    box-sizing: border-box;
}

.bz-support [hidden] {
    display: none !important;
}

.bz-support .bz-icon {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}

/* boutons : aucun fond hérité du site, aucun contour au clic */
.bz-support button {
    font: inherit;
}

.bz-support button:hover,
.bz-support button:active {
    background-color: transparent;
}

.bz-support button:focus,
.bz-support input:focus {
    outline: none;
}

.bz-support button:focus-visible,
.bz-support a:focus-visible {
    outline: 2px solid rgba(116, 64, 214, 0.45);
    outline-offset: 2px;
}

/* les titres du site sont parfois en majuscules : pas dans la bulle */
.bz-support h2,
.bz-support h3,
.bz-support strong {
    text-transform: none;
    letter-spacing: normal;
}

/* le bouton « haut de page » du thème passe au-dessus de la bulle */
body.has-bz-support #back-to-top {
    bottom: 92px !important;
}


/* ---------------------------------------------------------------------
   BULLE
   ------------------------------------------------------------------- */

.bz-support .bz-support-bubble {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;
    margin-left: auto;
    padding: 0;

    color: #fff;
    background: linear-gradient(#7440d6, #7440d6);

    border: 0;
    border-radius: 50%;

    box-shadow: 0 10px 28px rgba(91, 45, 184, 0.38);

    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bz-support .bz-support-bubble:hover {
    background: linear-gradient(#7440d6, #7440d6);

    transform: translateY(-2px);

    box-shadow: 0 14px 32px rgba(91, 45, 184, 0.45);
}

.bz-support-bubble .bz-icon {
    width: 28px;
    height: 28px;
}

.bz-support-bubble .bz-icon-close,
.bz-support.is-open .bz-support-bubble .bz-icon-chat {
    display: none;
}

.bz-support.is-open .bz-support-bubble .bz-icon-close {
    display: block;
}

.bz-support-badge {
    position: absolute;
    top: -2px;
    right: -2px;

    min-width: 22px;
    height: 22px;
    padding: 0 6px;

    color: #fff;
    background: #e5484d;

    border: 2px solid #fff;
    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 18px;

    text-align: center;
}


/* ---------------------------------------------------------------------
   PANNEAU (collé au bord droit)
   ------------------------------------------------------------------- */

.bz-support-panel {
    position: fixed;
    right: 0;
    bottom: 88px;

    display: flex;
    flex-direction: column;

    width: 400px;
    max-width: 100vw;
    height: min(720px, calc(100vh - 100px));

    overflow: hidden;

    background: #fff;

    /* collé au bord droit : arrondi seulement à gauche */
    border-radius: var(--bz-radius) 0 0 var(--bz-radius);

    box-shadow: 0 24px 64px rgba(20, 24, 40, 0.24);

    animation: bz-support-in 0.18s ease-out;

    transition: width 0.25s ease, height 0.25s ease;
}

/* un article s'ouvre en grand */
.bz-support-panel.is-wide {
    width: min(720px, 100vw);
    height: calc(100vh - 100px);
}

@keyframes bz-support-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.bz-support-views {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    min-height: 0;
}

.bz-support-view {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    min-height: 0;
}

/* boutons ronds (fermer, retour, agrandir) */
.bz-support .bz-support-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;
    padding: 0;

    color: inherit;
    background-color: transparent;

    border: 0;
    border-radius: 10px;

    cursor: pointer;
}

.bz-support .bz-support-icon-button:hover {
    background-color: rgba(31, 39, 51, 0.06);
}

.bz-support .bz-support-hero .bz-support-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.16);
}


/* ---------------------------------------------------------------------
   LOGO ET PASTILLES DES CONSEILLERS
   ------------------------------------------------------------------- */

.bz-support-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;
    padding: 7px;

    color: var(--bz-accent);
    background: #fff;

    border-radius: 14px;

    box-shadow: 0 6px 16px rgba(20, 24, 40, 0.16);

    font-size: 1.25rem;
    font-weight: 800;
}

.bz-support-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.bz-support-logo.is-small {
    width: 38px;
    height: 38px;
    padding: 6px;

    border-radius: 12px;

    box-shadow: 0 0 0 1px var(--bz-border);
}

.bz-support-avatars {
    display: flex;
    align-items: center;

    margin-left: auto;
    padding-left: 10px;
}

.bz-support-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: var(--bz-accent-dark);
    background: #fff;

    border: 3px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    font-size: 1rem;
    font-weight: 700;

    background-clip: padding-box;
}

.bz-support-avatars .bz-support-avatar + .bz-support-avatar {
    margin-left: -10px;
}

.bz-support-avatar.is-more {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);

    font-size: 0.8125rem;
}


/* ---------------------------------------------------------------------
   ACCUEIL
   ------------------------------------------------------------------- */

/* tout l'accueil défile d'un bloc ; les cartes chevauchent le bandeau */
.bz-support-home {
    overflow-y: auto;
    overscroll-behavior: contain;

    /* défile à la molette ou au doigt, sans barre visible */
    scrollbar-width: none;
}

.bz-support-home::-webkit-scrollbar {
    display: none;
}

.bz-support-hero {
    flex: 0 0 auto;

    padding: 22px 22px 72px;

    color: #fff;
    background: linear-gradient(#7440d6, #7440d6);
}

.bz-support-hero-top {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 30px;
}

.bz-support-hero-top .bz-support-close {
    margin-left: 6px;

    color: #fff;
}

.bz-support-hello {
    margin: 0;

    color: #fff;

    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.bz-support-title {
    margin: 0 0 14px;

    color: #fff;

    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
}

.bz-support-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    font-size: 0.875rem;
}

.bz-support-hero .bz-support-status {
    color: rgba(255, 255, 255, 0.92);
}

.bz-support-dot {
    width: 8px;
    height: 8px;

    background: #c9ced6;

    border-radius: 50%;
}

.bz-support-status.is-online .bz-support-dot {
    background: var(--bz-online);

    box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.25);
}

.bz-support-home-body {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    margin-top: -44px;
    padding: 0 16px 18px;
}

.bz-support-card {
    width: 100%;
    margin-bottom: 12px;

    background: #fff;

    border: 1px solid var(--bz-border);
    border-radius: 16px;

    box-shadow: 0 8px 24px rgba(20, 24, 40, 0.08);
}

/* carte « Écrire au support » */
.bz-support .bz-support-write {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 18px 20px;

    color: var(--bz-heading);
    background-color: #fff;

    text-align: left;

    cursor: pointer;

    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.bz-support .bz-support-write:hover,
.bz-support .bz-support-write:focus-visible {
    color: var(--bz-heading);
    background-color: var(--bz-accent-soft);

    border-color: #dccdf8;

    box-shadow: 0 10px 24px rgba(116, 64, 214, 0.14);

    transform: translateY(-1px);
}

.bz-support .bz-support-write .bz-icon {
    color: var(--bz-accent);

    transition: transform 0.15s ease;
}

.bz-support .bz-support-write:hover .bz-icon {
    transform: translateX(3px);
}

.bz-support-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bz-support-card-text strong {
    font-size: 1rem;
}

.bz-support-card-text span {
    color: var(--bz-muted);

    font-size: 0.8125rem;
}

.bz-support-faq {
    padding: 8px;
}


/* ---------------------------------------------------------------------
   RECHERCHE ET QUESTIONS
   ------------------------------------------------------------------- */

.bz-support-search {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 4px;
    padding: 0 14px;

    background: var(--bz-surface);

    border: 1px solid transparent;
    border-radius: 12px;

    cursor: text;
}

.bz-support-search:focus-within {
    background: #fff;

    border-color: var(--bz-accent);

    box-shadow: 0 0 0 3px rgba(116, 64, 214, 0.12);
}

.bz-support .bz-support-search input {
    flex: 1 1 auto;

    width: auto;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0;

    color: var(--bz-heading);
    background: transparent !important;

    border: 0 !important;
    border-radius: 0;

    box-shadow: none !important;

    font: inherit;
    font-size: 16px; /* en dessous, iOS zoome au focus */
    font-weight: 600;

    -webkit-appearance: none;
    appearance: none;
}

/* sans la petite croix bleue du navigateur */
.bz-support .bz-support-search input::-webkit-search-cancel-button,
.bz-support .bz-support-search input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.bz-support-search input::placeholder {
    color: var(--bz-heading);

    opacity: 0.85;
}

.bz-support-search .bz-icon {
    color: var(--bz-heading);
}

.bz-support-faq-list {
    display: flex;
    flex-direction: column;
}

.bz-support .bz-support-faq-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    padding: 11px 14px;

    color: var(--bz-body);
    background-color: transparent;

    border: 0;
    border-radius: 10px;

    font-size: 0.9375rem;
    line-height: 1.4;

    text-align: left;

    cursor: pointer;

    transition: background-color 0.15s ease, color 0.15s ease;
}

.bz-support .bz-support-faq-link:hover,
.bz-support .bz-support-faq-link:focus-visible {
    color: var(--bz-accent-dark);
    background-color: var(--bz-accent-soft);
}

.bz-support .bz-support-faq-link .bz-icon {
    width: 16px;
    height: 16px;

    color: var(--bz-heading);
}

.bz-support-faq-empty {
    margin: 0;
    padding: 14px;

    color: var(--bz-muted);

    font-size: 0.875rem;

    text-align: center;
}

.bz-support .bz-support-all-help {
    display: block;

    width: 100%;
    padding: 10px 14px 8px;

    color: var(--bz-accent);
    background-color: transparent;

    border: 0;

    font-size: 0.875rem;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}

.bz-support .bz-support-all-help:hover {
    color: var(--bz-accent-dark);
    background-color: transparent;

    text-decoration: underline;
}

.bz-support-help-center {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 14px;

    color: var(--bz-muted) !important;

    font-size: 0.875rem;

    text-decoration: none;
}

.bz-support-help-center:hover {
    color: var(--bz-accent) !important;
}

.bz-support-help-center .bz-icon {
    width: 16px;
    height: 16px;
}


/* ---------------------------------------------------------------------
   EN-TÊTES BLANCS (aide, article, conversation)
   ------------------------------------------------------------------- */

.bz-support-plain-header {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 0 0 auto;

    min-height: 64px;
    padding: 12px 14px;

    color: var(--bz-heading);
    background: #fff;

    border-bottom: 1px solid var(--bz-border);
}

.bz-support-plain-title {
    flex: 1 1 auto;

    padding-left: 8px;

    font-size: 1.125rem;
}

.bz-support-bar-tools {
    display: flex;
    align-items: center;
    gap: 4px;

    margin-left: auto;
}


/* ---------------------------------------------------------------------
   AIDE
   ------------------------------------------------------------------- */

.bz-support-help-body {
    flex: 1 1 auto;

    min-height: 0;
    padding: 16px 16px 24px;

    overflow-y: auto;
}

.bz-support-help-body .bz-support-search {
    margin-bottom: 10px;
}


/* ---------------------------------------------------------------------
   ARTICLE (une question, en grand)
   ------------------------------------------------------------------- */

.bz-support-article-bar {
    border-bottom: 0;
}

.bz-support-article-body {
    flex: 1 1 auto;

    min-height: 0;
    padding: 8px 40px 32px;

    overflow-y: auto;
}

.bz-support-article-title {
    margin: 12px 0 18px;

    color: var(--bz-heading);

    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
}

.bz-support-article-text p {
    margin: 0 0 14px;

    color: var(--bz-body);

    font-size: 1.0625rem;
    line-height: 1.7;
}

.bz-support-article-more {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 36px;
    padding-top: 24px;

    border-top: 1px solid var(--bz-border);

    text-align: center;
}

.bz-support-article-more p {
    margin: 0 0 12px;

    color: var(--bz-muted);

    font-size: 0.9375rem;
}

.bz-support .bz-support-article-write {
    padding: 11px 24px;

    color: #fff;
    background-color: var(--bz-accent);

    border: 0;
    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;
}

.bz-support .bz-support-article-write:hover {
    background-color: var(--bz-accent-dark);
}


/* ---------------------------------------------------------------------
   CONVERSATION
   ------------------------------------------------------------------- */

.bz-support-chat-avatar {
    display: inline-flex;

    flex: 0 0 auto;
}

.bz-support-chat-avatar .bz-support-avatar {
    width: 38px;
    height: 38px;

    color: #fff;
    background: var(--bz-accent);

    border: 0;

    font-size: 0.875rem;
}

.bz-support-chat-heading {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;

    min-width: 0;
}

.bz-support-chat-heading strong {
    overflow: hidden;

    font-size: 1rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.bz-support-chat-heading .bz-support-status {
    max-width: 100%;

    color: var(--bz-muted);

    font-size: 0.8125rem;
}

/* une seule ligne, coupée par « … » si elle est trop longue */
.bz-support-status-text {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.bz-support-status .bz-support-dot {
    flex: 0 0 auto;
}

.bz-support-thread {
    flex: 1 1 auto;

    min-height: 0;
    padding: 16px 16px 8px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(31, 39, 51, 0.2) transparent;

    background: #fff;
}

.bz-support-security {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin: 0 0 14px;
    padding: 10px 12px;

    color: #6b4a00;
    background: #fff7e0;

    border: 1px solid #f3dfa2;
    border-radius: 12px;

    font-size: 0.75rem;
    line-height: 1.45;
}

.bz-support-security .bz-icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

.bz-support-note {
    margin: 4px 0 12px;

    color: var(--bz-muted);

    font-size: 0.8125rem;

    text-align: center;
}

.bz-support-note-offline {
    padding: 10px 12px;

    color: var(--bz-body);
    background: var(--bz-surface);

    border-radius: 12px;
}

/* sujet de la demande (avant le premier message) */
.bz-support-categories {
    margin: 0 0 14px;

    text-align: center;
}

.bz-support-categories[hidden] {
    display: none;
}

.bz-support-categories-title {
    display: block;

    margin-bottom: 8px;

    color: var(--bz-muted);

    font-size: 0.75rem;
    font-weight: 600;
}

.bz-support-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

/* .bz-support devant : le site colore tous les boutons au survol */
.bz-support .bz-support-category {
    margin: 0;
    padding: 6px 12px;

    color: var(--bz-body);
    background-color: #fff;

    border: 1px solid #e6dcfa;
    border-radius: 999px;
    box-shadow: none;

    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;

    cursor: pointer;
}

.bz-support .bz-support-category:hover,
.bz-support .bz-support-category:focus-visible {
    color: var(--bz-accent-dark);
    background-color: #f1ebfd;

    border-color: #dccdf8;
}

.bz-support .bz-support-category.is-selected,
.bz-support .bz-support-category.is-selected:hover {
    color: #fff;
    background-color: var(--bz-accent);

    border-color: var(--bz-accent);
}

.bz-support-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bz-support-message {
    display: flex;
    flex-direction: column;

    max-width: 82%;
}

.bz-support-message.is-mine {
    align-self: flex-end;
    align-items: flex-end;
}

.bz-support-message.is-agent {
    align-self: flex-start;
    align-items: flex-start;
}

.bz-support-author {
    margin: 0 0 3px 4px;

    color: var(--bz-muted);

    font-size: 0.75rem;
    font-weight: 600;
}

.bz-support-bubble-text {
    padding: 10px 14px;

    color: var(--bz-heading);
    background: var(--bz-surface);

    border-radius: 18px 18px 18px 6px;

    font-size: 0.9375rem;
    line-height: 1.45;

    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.bz-support-message.is-mine .bz-support-bubble-text {
    color: #fff;
    background: var(--bz-accent);

    border-radius: 18px 18px 6px 18px;
}

.bz-support-message.is-pending .bz-support-bubble-text {
    opacity: 0.6;
}

.bz-support-meta,
.bz-support-seen {
    margin: 3px 4px 0;

    color: var(--bz-muted);

    font-size: 0.6875rem;
}

.bz-support-seen {
    color: var(--bz-accent);

    font-weight: 600;
}

.bz-support-system {
    align-self: center;

    margin: 6px 0;
    padding: 5px 12px;

    color: var(--bz-muted);
    background: var(--bz-surface);

    border-radius: 999px;

    font-size: 0.75rem;

    text-align: center;
}

.bz-support-error {
    margin: 0;
    padding: 8px 14px;

    color: #b4232c;
    background: #fdecee;

    font-size: 0.8125rem;
}

.bz-support-composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;

    flex: 0 0 auto;

    padding: 10px 12px 12px;

    background: #fff;

    border-top: 1px solid var(--bz-border);
}

.bz-support-input {
    flex: 1 1 auto;

    min-height: 44px;
    max-height: 50vh;
    padding: 11px 14px;

    overflow-y: hidden;

    color: var(--bz-heading);
    background: var(--bz-surface);

    border: 1px solid var(--bz-border);
    border-radius: 14px;

    font: inherit;
    font-size: 16px; /* en dessous, iOS zoome au focus */
    line-height: 1.4;

    resize: vertical;

    scrollbar-width: thin;
}

.bz-support-input:focus {
    background: #fff;

    border-color: var(--bz-accent);

    box-shadow: 0 0 0 3px rgba(116, 64, 214, 0.12);

    outline: none;
}

/* « .bz-support » devant : le site met les boutons « submit » en gris foncé */
.bz-support .bz-support-send {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 44px;
    height: 44px;
    padding: 0;

    color: #fff;
    background-color: var(--bz-accent);

    border: 0;
    border-radius: 12px;

    cursor: pointer;
}

.bz-support .bz-support-send:hover,
.bz-support .bz-support-send:active {
    background-color: var(--bz-accent-dark);
}

.bz-support .bz-support-send:disabled {
    background-color: var(--bz-accent);

    opacity: 0.55;

    cursor: default;
}

.bz-support-login {
    flex: 0 0 auto;

    padding: 18px 20px 20px;

    background: #fff;

    border-top: 1px solid var(--bz-border);

    text-align: center;
}

.bz-support-login strong {
    display: block;

    margin-bottom: 6px;

    color: var(--bz-heading);

    font-size: 0.9375rem;
}

.bz-support-login p {
    margin: 0 0 14px;

    color: var(--bz-body);

    font-size: 0.8125rem;
}

.bz-support-login-button {
    display: inline-block;

    padding: 11px 26px;

    color: #fff !important;
    background: var(--bz-accent);

    border-radius: 999px;

    font-weight: 600;

    text-decoration: none;
}

.bz-support-login-button:hover {
    background: var(--bz-accent-dark);
}

/* conversation terminée */
/* « Fatou écrit… » */
.bz-support-typing {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 8px 0 2px;

    color: var(--bz-muted);

    font-size: 0.8125rem;
}

.bz-support-typing[hidden] {
    display: none;
}

.bz-support-typing-dots {
    display: inline-flex;
    gap: 3px;

    padding: 9px 12px;

    background: var(--bz-surface);

    border-radius: 14px;
}

.bz-support-typing-dots i {
    width: 6px;
    height: 6px;

    background: #a7afba;

    border-radius: 50%;

    animation: bz-support-typing 1.2s infinite ease-in-out;
}

.bz-support-typing-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.bz-support-typing-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bz-support-typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bz-support-typing-dots i {
        animation: none;
    }
}

/* support fermé : point gris foncé */
.bz-support-status.is-closed .bz-support-dot {
    background: #9aa3ad;
}

/* conversation archivée (façon carte grise, comme les grandes messageries) */
.bz-support-ended {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    margin: 10px 0 4px;
    padding: 14px 16px;

    background: var(--bz-surface);

    border-radius: 14px;
}

.bz-support-ended[hidden] {
    display: none;
}

.bz-support-ended-text {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    color: var(--bz-body);

    font-size: 0.875rem;
}

.bz-support-ended-text svg {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;
}

/* « Votre problème est-il réglé ? » */
.bz-support-resolved {
    margin: 10px 0 4px;
    padding: 14px 16px;

    text-align: center;

    background: #f1fbf4;

    border: 1px solid #cdeed8;
    border-radius: 14px;
}

.bz-support-resolved[hidden] {
    display: none;
}

.bz-support-resolved-question {
    margin: 0 0 10px;

    color: var(--bz-body);

    font-size: 0.875rem;
    font-weight: 600;
}

.bz-support-resolved-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* .bz-support devant : le site colore tous les boutons au survol */
.bz-support .bz-support-resolved-yes,
.bz-support .bz-support-resolved-no {
    margin: 0;
    padding: 8px 14px;

    border-radius: 999px;
    box-shadow: none;

    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;

    cursor: pointer;
}

.bz-support .bz-support-resolved-yes {
    color: #fff;
    background-color: #1f9d55;

    border: 1px solid #1f9d55;
}

.bz-support .bz-support-resolved-yes:hover {
    color: #fff;
    background-color: #18804a;

    border-color: #18804a;
}

.bz-support .bz-support-resolved-no {
    color: var(--bz-body);
    background-color: #fff;

    border: 1px solid #d7dde3;
}

.bz-support .bz-support-resolved-no:hover {
    color: var(--bz-accent-dark);
    background-color: #f1ebfd;

    border-color: #dccdf8;
}

.bz-support .bz-support-resolved-yes:disabled,
.bz-support .bz-support-resolved-no:disabled {
    opacity: 0.6;

    cursor: default;
}

.bz-support .bz-support-new-conversation {
    padding: 8px 16px;

    color: var(--bz-accent-dark);
    background-color: #fff;

    border: 1px solid #dccdf8;
    border-radius: 999px;

    font-size: 0.875rem;
    font-weight: 600;

    cursor: pointer;
}

.bz-support .bz-support-new-conversation:hover {
    color: #fff;
    background-color: var(--bz-accent);

    border-color: var(--bz-accent);
}


/* ---------------------------------------------------------------------
   MENU DU BAS
   ------------------------------------------------------------------- */

.bz-support-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    flex: 0 0 auto;

    padding: 6px 8px 8px;

    background: #fff;

    border-top: 1px solid var(--bz-border);
}

.bz-support .bz-support-nav-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    padding: 8px 4px;

    color: var(--bz-muted);
    background-color: transparent;

    border: 0;
    border-radius: 12px;

    font-size: 0.875rem;

    cursor: pointer;
}

.bz-support .bz-support-nav-item:hover {
    color: var(--bz-heading);
    background-color: transparent;
}

.bz-support .bz-support-nav-item.is-active {
    color: var(--bz-heading);

    font-weight: 700;
}

.bz-support-nav-item .bz-icon {
    width: 26px;
    height: 26px;
}

.bz-support-nav-item.is-active .bz-icon {
    stroke-width: 2.4;
}

.bz-support-nav-badge {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    color: #fff;
    background: #e5484d;

    border-radius: 999px;

    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 18px;
}


/* ---------------------------------------------------------------------
   TÉLÉPHONE : le panneau prend tout l'écran
   ------------------------------------------------------------------- */

@media (max-width: 575.98px) {
    .bz-support {
        right: 16px;
        bottom: 16px;
    }

    .bz-support .bz-support-bubble {
        width: 54px;
        height: 54px;
    }

    .bz-support.is-open .bz-support-bubble {
        display: none;
    }

    .bz-support-panel,
    .bz-support-panel.is-wide {
        inset: 0;

        width: 100%;
        max-width: none;
        height: 100%;

        border-radius: 0;
    }

    .bz-support-article-body {
        padding: 4px 22px 28px;
    }

    /* déjà plein écran : pas de bouton agrandir */
    .bz-support .bz-support-size {
        display: none;
    }

    .bz-support-article-title {
        font-size: 1.5rem;
    }

    body.has-bz-support #back-to-top {
        bottom: 84px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bz-support-panel {
        animation: none;
        transition: none;
    }

    .bz-support .bz-support-bubble {
        transition: none;
    }
}
