/* ============================================ */
/* BOUTON DOCUMENTATION - HEADER */
/* Fichier: css/17.documentation-button.css */
/* ============================================ */

/* Dropdown documentation dans le header */
.doc-dropdown {
    position: relative;
    display: inline-block;
}

.doc-dropdown .header-action-btn {
    position: relative;
}

/* Menu déroulant documentation */
.doc-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--modal-bg, #ffffff);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid var(--border-color, #e0e0e0);
}

.doc-dropdown.open .doc-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.doc-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    color: var(--text-color, #333);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.doc-option:hover {
    background: var(--hover-bg, #f0f4ff);
    color: var(--primary-color, #667eea);
}

.doc-option .doc-flag {
    font-size: 1.2em;
}

.doc-option .doc-name {
    font-weight: 500;
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .doc-dropdown-menu {
        right: -20px;
        min-width: 160px;
    }
}

/* Badge "Nouveau" optionnel sur le bouton */
.doc-badge-new {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    pointer-events: none;
}

/* Animation au survol */
.doc-dropdown .header-action-btn:hover {
    transform: translateY(-1px);
}

/* Icône avec rotation lors de l'ouverture */
.doc-dropdown.open .header-action-btn i {
    transform: rotate(15deg);
    transition: transform 0.2s ease;
}
