/* Conteneur pour les boutons flottants */
.floating-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacement entre les boutons */
}

.floating-btn {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 18px 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 18px;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    overflow: hidden;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

/* Bouton de contact */
.floating-btn.contact {
    background: linear-gradient(135deg, #f68a1e 0%, #ea580c 100%);
    top: -40px;
    right: 0;
    width: 60px;
    min-width: 60px;
    border-radius: 15px 0 0 15px;
}

.floating-btn.contact:hover {
    width: 280px;
    border-radius: 15px 0 0 15px;
    justify-content: flex-start;
    padding-left: 20px;

}

.floating-btn.contact .btn-text {
    margin-left: 15px;
    opacity: 0;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s ease 0.1s;
}

.floating-btn.contact:hover .btn-text {
    opacity: 1;
}

/* Bouton job */
.floating-btn.job {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    top: 25px;
    right: 0;
    width: 60px;
    min-width: 60px;
    border-radius: 15px 0 0 15px;
    font-size: 20px;
}

.floating-btn.job:hover {
    width: 260px;
    border-radius: 15px 0 0 15px;
    justify-content: flex-start;
    padding-left: 20px;
}

.floating-btn.job .btn-text {
    margin-left: 15px;
    opacity: 0;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s ease 0.1s;
}

.floating-btn.job:hover .btn-text {
    opacity: 1;
}

.floating-btn:active {
    transform: scale(0.95);
}

/* Style pour les icônes SVG toujours visibles */
.floating-btn .btn-icon-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.floating-btn .btn-icon-fixed svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    display: block;
    transition: all 0.3s ease;
}

/* État normal - icônes toujours visibles */
.floating-btn:not(:hover) .btn-icon-fixed svg {
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* État hover - icônes plus raffinées */
.floating-btn:hover .btn-icon-fixed svg {
    stroke-width: 2;
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Responsive */
@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
        border-radius: 12px 0 0 12px;
    }

    .floating-btn.contact {
        top: -35px;
        width: 50px;
        min-width: 50px;
        border-radius: 12px 0 0 12px;
    }

    .floating-btn.contact:hover {
        width: 200px;
        padding-left: 15px;
        border-radius: 12px 0 0 12px;
    }

    .floating-btn.contact .btn-text {
        font-size: 14px;
        margin-left: 10px;
    }

    .floating-btn.job {
        top: 20px;
        width: 50px;
        min-width: 50px;
        font-size: 16px;
        border-radius: 12px 0 0 12px;
    }

    .floating-btn.job:hover {
        width: 180px;
        padding-left: 15px;
        border-radius: 12px 0 0 12px;
    }

    .floating-btn.job .btn-text {
        font-size: 14px;
        margin-left: 10px;
    }
}
