/**
 * Styles pour le menu d'ancrage
 */

#anchor-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    pointer-events: none;
}

#anchor-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

#anchor-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anchor-nav-item {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.anchor-nav-item:hover {
    transform: scale(1.1);
    background-color: white;
}

.anchor-nav-item.active {
    background-color: var(--button);
}

.anchor-nav-item.active a i {
    color: white;
}

.anchor-nav-item a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.anchor-nav-item a i {
    font-size: 16px;
    color: var(--primary);
    transition: color 0.3s;
}

.anchor-nav-item:hover a i {
    color: var(--secondary);
}

/* Tooltip */
.anchor-nav-item .tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background-color: var(--dark);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.anchor-nav-item .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--dark);
}

.anchor-nav-item:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Top button */
.top-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--apple-green);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.top-button.visible {
    opacity: 1;
    pointer-events: auto;
}

.top-button:hover {
    transform: translateY(-5px);
}

.top-button i {
    color: white;
    font-size: 16px;
}

/* Animation d'entrée */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.anchor-nav-item.active {
    animation: pulse 1s ease infinite;
}

/* Responsivité */
@media (max-width: 768px) {
    #anchor-nav {
        right: 10px;
    }
    
    .anchor-nav-item {
        width: 30px;
        height: 30px;
    }
    
    .anchor-nav-item a i {
        font-size: 14px;
    }
    
    .top-button {
        width: 30px;
        height: 30px;
    }
    
    .top-button i {
        font-size: 14px;
    }
} 