/* ====================================
   SCROLL NAVIGATION BUTTONS
   Glassmorphism styled buttons for smooth navigation
   ==================================== */

/* --- SHARED GLASSMORPHISM VARIABLES --- */
:root {
    --glass-button-bg: rgba(255, 255, 255, 0.05);
    --glass-button-border: rgba(255, 255, 255, 0.15);
    --glass-button-hover-bg: rgba(255, 255, 255, 0.1);
    --glass-button-hover-border: rgba(255, 255, 255, 0.25);
    --button-glow: rgba(59, 130, 246, 0.3);
}

/* --- 1. DÉCOUVRIR BUTTON (HERO SECTION) --- */
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    margin-top: 32px;

    /* Glassmorphism styling */
    background: var(--glass-button-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-button-border);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Typography */
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    letter-spacing: 0.02em;

    /* Animation */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;

    /* Subtle glow */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-cta-button:hover {
    background: var(--glass-button-hover-bg);
    border-color: var(--glass-button-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.2),
                0 0 40px var(--button-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.hero-cta-button:active {
    transform: translateY(0);
}

/* Arrow icon in Découvrir button */
.hero-cta-button .arrow-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s ease;
}

.hero-cta-button:hover .arrow-icon {
    transform: translateY(3px);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* --- 2. FLOATING ARROW NAVIGATION (STORYTELLING) --- */
.floating-arrow-nav {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;

    /* Circular glassmorphism button */
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--glass-button-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-button-border);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);

    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Initially hidden */
    opacity: 0;
    pointer-events: none;

    /* Subtle bounce animation */
    animation: floatingBounce 2s ease-in-out infinite;
}

.floating-arrow-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.floating-arrow-nav:hover {
    background: var(--glass-button-hover-bg);
    border-color: var(--glass-button-hover-border);
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.3),
                0 0 40px var(--button-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.floating-arrow-nav:active {
    transform: translateX(-50%) translateY(-1px);
}

@keyframes floatingBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Chevron icon inside floating arrow */
.floating-arrow-nav .chevron-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* --- 3. CONTINUER BUTTON (AFTER STORYTELLING) --- */
.continuer-button {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;

    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;

    /* Glassmorphism styling */
    background: var(--glass-button-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-button-border);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);

    /* Typography */
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    letter-spacing: 0.02em;

    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Initially hidden - will fade in */
    opacity: 0;
    pointer-events: none;
}

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

.continuer-button:hover {
    background: var(--glass-button-hover-bg);
    border-color: var(--glass-button-hover-border);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.25),
                0 0 40px var(--button-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.continuer-button:active {
    transform: translateX(-50%) translateY(0);
}

/* Arrow icon in Continuer button */
.continuer-button .arrow-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.continuer-button:hover .arrow-icon {
    transform: translateY(2px);
}

/* --- RESPONSIVE ADJUSTMENTS --- */

/* Tablet */
@media (max-width: 900px) {
    .hero-cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }

    .floating-arrow-nav {
        width: 52px;
        height: 52px;
        bottom: 32px;
    }

    .floating-arrow-nav .chevron-icon {
        width: 22px;
        height: 22px;
    }

    .continuer-button {
        bottom: 50px;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-cta-button {
        padding: 12px 24px;
        font-size: 14px;
        gap: 10px;
    }

    .hero-cta-button .arrow-icon {
        width: 18px;
        height: 18px;
    }

    .floating-arrow-nav {
        width: 48px;
        height: 48px;
        bottom: 24px;
    }

    .floating-arrow-nav .chevron-icon {
        width: 20px;
        height: 20px;
    }

    .continuer-button {
        bottom: 40px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .continuer-button .arrow-icon {
        width: 16px;
        height: 16px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .hero-cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }

    .floating-arrow-nav {
        width: 44px;
        height: 44px;
        bottom: 20px;
    }

    .floating-arrow-nav .chevron-icon {
        width: 18px;
        height: 18px;
    }

    .continuer-button {
        bottom: 32px;
        padding: 9px 18px;
        font-size: 12px;
    }
}
