/* --- FAB global --- */
.fab-container {
    position: fixed;
    z-index: 1000;
    display: none;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
}

.fab-main {
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

/* Actions cachées par défaut */
.fab-actions {
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

/* Bouton d’action */
.fab-action {
    /* margin: 8px 0;
    background-color: #1e293b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s; */
    margin-top: 8px;
}

.fab-action:hover {
    background-color: #334155;
}

.fab-right {
    right: 10px;
    align-items: flex-end;
}

.fab-right .fab-actions{
    align-items: flex-end;
}

.fab-left {
    left: 10px;
    align-items: flex-start;
}

.fab-left .fab-actions{
    align-items: flex-start;
}

/* --- FAB du haut --- */

.fab-top {
    top: 10px;
}

.fab-top .fab-main{
    width: 47px;
    height: 45px;
    font-size: 23px;
}

.fab-top .fab-actions {
    /* margin-top: 10px; */
    transform: translateY(-10px);
}

.fab-top.open .fab-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- FAB du bas --- */
.fab-bottom {
    bottom: 20px;
    flex-direction: column-reverse;
}

.fab-bottom .fab-actions {
    margin-bottom: 10px;
    transform: translateY(10px);
}

.fab-bottom.open .fab-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fab-bottom .fab-main:hover {
    transform: rotate(90deg);
}

/* --- Bouton étendu (comme ton image) --- */
.fab-extended {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px; /* forme pilule */
    padding: 0 16px;
    width: unset;
    height: 44px;
    /* background: #e5e7eb; */
    /* color: #111827; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    transition: background 0.2s, box-shadow 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.fab-extended:hover {
    /* background: #d1d5db; */
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.fab-extended .fab-icon {
    font-size: 18px;
    margin-right: 8px;
}
