/* ===================================
   FLOATING MENU - CSS Module
   Extracted from reservation.html
   =================================== */

/* Floating Menu Trigger */
.floating-menu-trigger {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2000;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 
        0 10px 30px rgba(175, 207, 186, 0.3),
        0 0 0 1px rgba(175, 207, 186, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatGently 4s ease-in-out infinite;
}

.floating-menu-trigger:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 
        0 20px 40px rgba(175, 207, 186, 0.4),
        0 0 0 1px rgba(175, 207, 186, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 30px rgba(175, 207, 186, 0.3);
}

.floating-menu-trigger:active {
    cursor: grabbing;
}

.floating-menu-trigger.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow:
        0 25px 50px rgba(175, 207, 186, 0.5),
        0 0 0 2px rgba(175, 207, 186, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: none;
    animation: none;
}

.trigger-butterfly {
    width: 50px;
    height: 50px;
    fill: var(--sage-green);
    transition: all 0.4s ease;
    animation: butterflyWings 2s ease-in-out infinite;
}

.floating-menu-trigger:hover .trigger-butterfly {
    fill: var(--dark-green);
    transform: rotate(10deg) scale(1.1);
}

.trigger-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--sage-green);
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
}

@keyframes floatGently {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

@keyframes butterflyWings {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Portal Menu */
.portal-menu {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    z-index: 3000;
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(175, 207, 186, 0.2);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}

.portal-menu.open {
    right: 0;
}

.portal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.portal-glow {
    position: absolute;
    top: 20%;
    left: -50%;
    width: 200%;
    height: 60%;
    background: radial-gradient(ellipse at center, 
        rgba(175, 207, 186, 0.1) 0%, 
        rgba(175, 207, 186, 0.05) 40%, 
        transparent 70%);
    animation: portalGlow 8s ease-in-out infinite;
}

@keyframes portalGlow {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

.portal-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--sage-green);
    border-radius: 50%;
    opacity: 0.6;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: floatParticle 6s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 40%;
    right: 30%;
    animation: floatParticle 8s ease-in-out infinite reverse;
}

.particle:nth-child(3) {
    top: 60%;
    left: 40%;
    animation: floatParticle 7s ease-in-out infinite;
}

.particle:nth-child(4) {
    top: 80%;
    right: 20%;
    animation: floatParticle 9s ease-in-out infinite reverse;
}

.particle:nth-child(5) {
    top: 30%;
    left: 60%;
    animation: floatParticle 5s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    33% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
    66% { transform: translateY(10px) translateX(-5px); opacity: 0.5; }
}

.close-portal-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.close-portal-btn:hover {
    transform: rotate(90deg);
}

.close-portal-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--dark-green);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.close-portal-btn span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-portal-btn span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.portal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
    perspective: 1000px;
}

.portal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.portal-menu.open .portal-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.portal-link {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--dark-green);
    text-decoration: none;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    transform-origin: center bottom;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portal-link.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.portal-link:hover {
    transform: translateY(0) rotateX(0deg) translateX(10px);
    color: var(--sage-green);
}

.link-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sage-green), var(--dark-green));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-link:hover .link-underline {
    width: 100%;
}

.portal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(175, 207, 186, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.portal-link:hover::before {
    left: 100%;
}

/* Styles spéciaux pour le bouton Réservation */
.portal-link.reservation-highlight {
    background: linear-gradient(135deg, var(--sage-green), var(--dark-green));
    color: white !important;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    margin: 0.5rem 0;
    box-shadow: 
        0 8px 25px rgba(175, 207, 186, 0.3),
        0 4px 12px rgba(175, 207, 186, 0.2);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portal-link.reservation-highlight::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
}

.portal-link.reservation-highlight:hover {
    transform: translateY(0) rotateX(0deg) translateX(10px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(175, 207, 186, 0.4),
        0 6px 18px rgba(175, 207, 186, 0.3);
}

.portal-link.reservation-highlight .link-text {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portal-link.reservation-highlight .link-underline {
    background: rgba(255, 255, 255, 0.3);
    height: 3px;
}

/* Animation de pulsation pour le bouton Réservation */
.portal-link.reservation-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.portal-link.reservation-highlight:hover::after {
    transform: translateX(100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-menu-trigger {
        right: 1rem;
        width: 70px;
        height: 70px;
        top: 40%;
        display: none !important; /* Caché par défaut sur mobile, JS l'affichera après le hero */
    }

    .portal-menu {
        width: 100vw;
        right: -100vw;
    }

    .portal-link {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }

    .portal-link.reservation-highlight {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
    }
}

