/* ========================================
   COMMON STYLES - SHARED ACROSS ALL PAGES
   ======================================== */

/* ============ ANIMATIONS & KEYFRAMES ============ */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ============ PREMIUM CARD COMPONENT ============ */
.premium-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(32px);
    border: 1px solid rgb(226, 232, 240);
    border-radius: 1rem;
    transition: all 500ms ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.dark .premium-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 500ms ease;
    pointer-events: none;
}

.premium-card:hover {
    border-color: rgb(203, 213, 225);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 40px rgba(124, 58, 237, 0.05);
}

.dark .premium-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
}

.premium-card:hover::before {
    opacity: 1;
}

/* ============ TYPOGRAPHY GRADIENTS ============ */
.text-gradient-premium {
    background: linear-gradient(to bottom right, rgb(15, 23, 42), rgb(51, 65, 85), rgb(71, 85, 99));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient-premium {
    background: linear-gradient(to bottom right, white, white, rgba(255, 255, 255, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
    background: linear-gradient(to right, rgb(0, 102, 204), rgb(96, 165, 250));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(to right, rgb(124, 58, 237), rgb(168, 85, 247));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ BUTTON COMPONENTS ============ */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 300ms ease;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: -1;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.btn-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-outline-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: rgb(51, 65, 85);
    background: transparent;
    border: 1px solid rgb(203, 213, 225);
    border-radius: 0.75rem;
    transition: all 300ms ease;
    cursor: pointer;
    backdrop-filter: blur(12px);
    position: relative;
}

.dark .btn-outline-premium {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-premium:hover {
    background: rgb(241, 245, 249);
    border-color: rgb(226, 232, 240);
}

.dark .btn-outline-premium:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ============ GLOW ORBS ============ */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: normal;
}

.dark .glow-orb {
    opacity: 0.5;
    mix-blend-mode: screen;
}

/* Animation assignments */
.animate-blob {
    animation: blob 10s infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ============ NAVIGATION LINKS ============ */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(71, 85, 105);
    transition: color 300ms ease;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.dark .nav-link {
    color: rgb(209, 213, 219);
}

.nav-link:hover {
    color: rgb(0, 102, 204);
}

.dark .nav-link:hover {
    color: rgb(255, 255, 255);
}

.nav-link.active {
    color: rgb(124, 58, 237);
    font-weight: 600;
}

.nav-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066CC, #7C3AED);
    transition: width 300ms ease;
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
    width: 100%;
}

/* ============ PRENDRE RDV CTA BUTTON ============ */
.nav-cta-rdv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 300ms ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-cta-rdv:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-cta-rdv i {
    transition: transform 300ms ease;
}

.nav-cta-rdv:hover i {
    transform: rotate(-8deg) scale(1.1);
}

/* ============ HAMBURGER TOGGLE (3 bars → X) ============ */
.hamburger-toggle {
    position: relative;
    width: 20px;
    height: 14px;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-toggle .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 350ms cubic-bezier(0.65, 0, 0.35, 1), opacity 250ms ease, top 250ms ease 150ms;
    transform-origin: center;
}

.hamburger-toggle .bar:nth-child(1) { top: 0; }
.hamburger-toggle .bar:nth-child(2) { top: 6px; }
.hamburger-toggle .bar:nth-child(3) { top: 12px; }

/* Open state: morph to X */
body.menu-open .hamburger-toggle .bar:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
    transition: top 250ms ease, transform 350ms cubic-bezier(0.65, 0, 0.35, 1) 150ms;
}

body.menu-open .hamburger-toggle .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open .hamburger-toggle .bar:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
    transition: top 250ms ease, transform 350ms cubic-bezier(0.65, 0, 0.35, 1) 150ms;
}

/* ============ RESPONSIVE UTILITIES ============ */
@media (max-width: 1023px) {
    #navbar > div {
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 640px) {
    .btn-premium,
    .btn-outline-premium {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
        max-width: 320px;
    }

    #navbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 1rem;
    }

    #navbar > div {
        padding: 0.5rem 0.875rem;
    }

    .nav-cta-rdv {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .premium-card {
        border-radius: 1.25rem;
    }
}

/* Responsive icon sizes for hero background */
@media (max-width: 767px) {
    .hero-icon-1 { width: 40px; height: 40px; top: 12%; left: 6%; }
    .hero-icon-2 { width: 46px; height: 46px; top: 20%; right: 6%; }
    .hero-icon-3 { display: none; }
    .hero-icon-4 { width: 42px; height: 42px; bottom: 18%; right: 8%; }
    .hero-icon-5 { display: none; }
}
