/* -------------------------------------------------------
   OVERLAY D'AIDE ACTION ROOM
------------------------------------------------------- */

.action-room-wrapper {
    position: relative;
}

/* Icône "?" en haut à droite (masquée par défaut, affichée seulement quand le chat est actif) */
#action-room-help-icon {
    position: absolute;
  z-index: 1;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #c7ccd4;
    background-color: #1f2124;
    color: #f5f5f5;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 5;
    display: none;
}

#action-room-help-icon:hover {
    background-color: #2c3036;
}

/* Overlay général */
#action-room-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9998;
    pointer-events: auto;
    cursor: pointer;
}

/* Éléments mis en avant (passent au-dessus de l'overlay) */
.action-room-help-highlight {
    position: relative;
    z-index: 10000 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    filter: brightness(1.15);
}

/* Tooltips explicatifs */
.action-room-help-tooltip {
    position: absolute; /* lié au wrapper, suit le scroll */
    max-width: 260px;
    background: #ffffff;
    color: #111111;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    cursor: default;
}

/* Pointe par défaut : tooltip au-dessus de la zone (pointe vers le bas) */
.action-room-help-tooltip::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #ffffff transparent transparent transparent;
    bottom: -6px;
    left: 18px;
}

/* Variante quand le tooltip est placé en dessous de l'élément (pointe vers le haut, centrée) */
.action-room-help-tooltip--bottom::after {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ffffff transparent;
    top: -6px;
    bottom: auto;
    left: 18px;
}

/* Variante spécifique : tooltip sous l'élément, pointe vers le haut à droite */
.action-room-help-tooltip--bottom-right::after {
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ffffff transparent;
    top: -6px;
    bottom: auto;
    left: auto;
    right: 18px;
}

/* Texte info en bas de l'écran */
#action-room-help-footer {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #f5f5f5;
    border-radius: 999px;
    font-size: 0.8rem;
    z-index: 9999;
}
