@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4C84FF;
    --background-color: #f5f5f5;
    --text-primary: #333;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
    min-height: 200vh;
}

.content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.demo-section {
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAB Styles */
.fab {
    position: fixed;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 132, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(76, 132, 255, 0.6);
}

.fab:active {
    transform: scale(0.9);
}

/* FAB Principal */
#mainFab {
    bottom: 3rem;
    right: 3rem;
}

/* FAB Menu */
.fab-menu {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
}

.fab-trigger {
    position: relative;
}

.fab-trigger:hover {
    transform: scale(1.1);
}

.fab-actions {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-menu.active .fab-actions {
    opacity: 1;
    pointer-events: all;
    bottom: 8rem;
}

.fab-menu.active .fab-trigger {
    transform: rotate(90deg);
}

.fab-action {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
    position: relative;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.fab-menu.active .fab-action:nth-child(1) {
    animation-delay: 0.1s;
}

.fab-menu.active .fab-action:nth-child(2) {
    animation-delay: 0.2s;
}

.fab-menu.active .fab-action:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Tooltips */
.fab-action::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fab-action:hover::before {
    opacity: 1;
}

/* Animation de pulsation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(76, 132, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(76, 132, 255, 0.7), 0 0 0 10px rgba(76, 132, 255, 0.2);
    }
}

#mainFab {
    animation: pulse 2s infinite;
}
