/**
 * FAB ROULT - Styles pour le Floating Action Button
 * Ultra professionnel et responsive
 */

/* Container principal */
.fab-roult-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    pointer-events: none;
}

/* Bouton FAB */
.fab-roult-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    background: transparent;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    border: none;
}

.fab-roult-button:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: none;
}

.fab-roult-button:active {
    transform: scale(1.05) translateY(-1px);
}

/* Logo Doctolib */
.fab-roult-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.fab-roult-button:hover .fab-roult-logo {
    transform: scale(1.05);
}

/* Tooltip au survol */
.fab-roult-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1B2A41 0%, #2a3f5f 100%);
    color: #A87C4F;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 42, 65, 0.4);
    pointer-events: none;
    border: 1px solid #A87C4F;
}

/* Flèche du tooltip */
.fab-roult-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #1B2A41;
}

.fab-roult-button:hover .fab-roult-tooltip {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Animation d'apparition au chargement */
@keyframes fabSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fab-roult-container {
    animation: fabSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animation de pulsation subtile */
@keyframes fabPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fab-roult-button {
    animation: fabPulse 3s ease-in-out infinite;
}

/* Désactiver la pulsation au survol */
.fab-roult-button:hover {
    animation: none;
}

/* RESPONSIVE */

/* Tablettes */
@media (max-width: 1024px) {
    .fab-roult-container {
        bottom: 25px;
        right: 25px;
    }
    
    .fab-roult-button {
        width: 78px;
        height: 78px;
    }
    
    .fab-roult-logo {
        width: 54px;
        height: 54px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fab-roult-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-roult-button {
        width: 72px;
        height: 72px;
    }
    
    .fab-roult-logo {
        width: 48px;
        height: 48px;
    }
    
    /* Masquer le tooltip sur mobile (prend trop de place) */
    .fab-roult-tooltip {
        display: none;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .fab-roult-container {
        bottom: 15px;
        right: 15px;
    }
    
    .fab-roult-button {
        width: 66px;
        height: 66px;
    }
    
    .fab-roult-logo {
        width: 43px;
        height: 43px;
    }
}

/* Mode sombre (si activé sur le site) */
@media (prefers-color-scheme: dark) {
    .fab-roult-button {
        background: transparent;
    }
}

/* Accessibilité - Focus pour navigation clavier */
.fab-roult-button:focus {
    outline: 2px solid #A87C4F;
    outline-offset: 5px;
}

.fab-roult-button:focus:not(:focus-visible) {
    outline: none;
}

/* Compatibilité Elementor - S'assure que le FAB reste au-dessus */
.elementor-widget-container {
    z-index: auto;
}

/* Print - Masquer le FAB lors de l'impression */
@media print {
    .fab-roult-container {
        display: none !important;
    }
}
