/* Custom Animations & Styles for AURA Conciergerie */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loader animation */
.loader-line {
    animation: loaderExpand 1.5s ease-out forwards;
}

@keyframes loaderExpand {
    0% { width: 0; }
    100% { width: 6rem; }
}

.loader-text {
    animation: loaderTextReveal 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes loaderTextReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-tagline {
    animation: loaderTextReveal 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* Loader particles */
.loader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #C9A962;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.loader-particle:nth-child(1) { animation-delay: 0s; }
.loader-particle:nth-child(2) { animation-delay: 0.5s; }
.loader-particle:nth-child(3) { animation-delay: 1s; }
.loader-particle:nth-child(4) { animation-delay: 1.5s; }
.loader-particle:nth-child(5) { animation-delay: 2s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Floating gold line */
.floating-gold-line {
    position: absolute;
    top: 50%;
    left: -100%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A962, transparent);
    animation: floatLine 8s linear infinite;
    opacity: 0.3;
}

@keyframes floatLine {
    0% {
        left: -200px;
        top: 20%;
    }
    25% {
        top: 40%;
    }
    50% {
        top: 60%;
    }
    75% {
        top: 80%;
    }
    100% {
        left: 100%;
        top: 20%;
    }
}

/* Hero animations */
.hero-image {
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero vignette effect */
.hero-vignette {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 26, 0.4) 100%);
}

/* Hero corner decorations */
.hero-corner-tl,
.hero-corner-tr,
.hero-corner-bl,
.hero-corner-br {
    opacity: 0;
    animation: cornerReveal 1s ease-out 1.5s forwards;
}

@keyframes cornerReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero decorative lines */
.hero-line {
    opacity: 0;
    transform: scaleY(0);
    animation: lineRevealV 0.8s ease-out 0.3s forwards;
}

.hero-line-h {
    opacity: 0;
    transform: scaleX(0);
    animation: lineRevealH 0.8s ease-out 1.3s forwards;
}

@keyframes lineRevealV {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes lineRevealH {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Hero letter animation */
.hero-letter {
    opacity: 0;
    transform: translateY(100%);
    animation: letterReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-letter:nth-child(1) { animation-delay: 0.7s; }
.hero-letter:nth-child(2) { animation-delay: 0.75s; }
.hero-letter:nth-child(3) { animation-delay: 0.8s; }
.hero-letter:nth-child(4) { animation-delay: 0.85s; }
.hero-letter:nth-child(5) { animation-delay: 0.95s; }
.hero-letter:nth-child(6) { animation-delay: 1s; }
.hero-letter:nth-child(7) { animation-delay: 1.05s; }
.hero-letter:nth-child(8) { animation-delay: 1.1s; }
.hero-letter:nth-child(9) { animation-delay: 1.15s; }
.hero-letter:nth-child(10) { animation-delay: 1.2s; }
.hero-letter:nth-child(11) { animation-delay: 1.25s; }
.hero-letter:nth-child(12) { animation-delay: 1.3s; }
.hero-letter:nth-child(13) { animation-delay: 1.35s; }
.hero-letter:nth-child(14) { animation-delay: 1.4s; }
.hero-letter:nth-child(15) { animation-delay: 1.45s; }
.hero-letter:nth-child(16) { animation-delay: 1.5s; }

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
    text-align: center;
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Luxury button effect */
.luxury-btn {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-btn:hover {
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.3);
    transform: translateY(-2px);
}

.luxury-btn:hover span:first-child {
    color: #1A1A1A;
}

.luxury-btn:hover svg:first-of-type {
    stroke: #1A1A1A;
}

.hero-subtitle {
    animation: fadeSlideUp 1s ease-out 0.5s forwards;
}

.hero-title {
    animation: fadeSlideUp 1s ease-out 0.7s forwards;
}

.hero-text {
    animation: fadeSlideUp 1s ease-out 0.9s forwards;
}

.hero-cta {
    animation: fadeSlideUp 1s ease-out 1.1s forwards;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax background */
.parallax-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-logo {
    color: #C9A962;
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

/* Image hover effects */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Gold underline effect */
.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C9A962;
    transition: width 0.3s ease;
}

.gold-underline:hover::after {
    width: 100%;
}

/* Button hover effects */
.btn-gold {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #C9A962;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-gold:hover::before {
    left: 0;
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF8F5;
}

::-webkit-scrollbar-thumb {
    background: #C9A962;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A68B4B;
}

/* Selection color */
::selection {
    background-color: #C9A962;
    color: #1A1A1A;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

/* Mobile menu animation */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #C9A962 0%, #D4BC7C 50%, #C9A962 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer effect for gold elements */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.shimmer {
    background: linear-gradient(90deg, #C9A962 0%, #D4BC7C 25%, #C9A962 50%, #D4BC7C 75%, #C9A962 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Pulse glow effect */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(201, 169, 98, 0); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Counter animation */
.counter {
    display: inline-block;
}

.counter::after {
    content: '%';
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Aspect ratio utilities */
.aspect-4-5 {
    aspect-ratio: 4 / 5;
}

.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

/* Text balance for headings */
h1, h2, h3 {
    text-wrap: balance;
}

/* Responsive typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* ===== WAOUW EFFECTS ===== */

/* Stagger animation for grid items - desktop only */
.stagger-item {
    opacity: 1;
    transform: none;
}

@media (min-width: 768px) {
    .stagger-item {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .stagger-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Section transitions - desktop only */
section {
    opacity: 1;
    transform: none;
}

@media (min-width: 768px) {
    section {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    section.section-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section always visible */
#accueil {
    opacity: 1;
    transform: none;
}

/* Elegant card transitions - luxury feel */
.group.relative {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.group.relative::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0) 0%, rgba(201, 169, 98, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.group.relative:hover::before {
    opacity: 1;
}

.group.relative:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Luxury text reveal animation */
.luxury-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-text.text-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Golden line accent on headings */
h2.font-serif::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A962, transparent);
    margin: 1rem auto 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

h2.font-serif.text-revealed::after {
    width: 100px;
}

/* Elegant image reveal */
.group.relative img {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.group.relative:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Subtle golden glow on interactive elements */
a:hover, button:hover {
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
}

/* Premium border animation */
.border-gold {
    position: relative;
    overflow: hidden;
}

.border-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.4), transparent);
    animation: shimmerBorder 3s ease-in-out infinite;
}

@keyframes shimmerBorder {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Smooth content reveal with mask */
.reveal-up.active {
    animation: luxuryReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes luxuryReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Elegant hover state for service cards */
.group.relative .bg-charcoal\/60 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.group.relative:hover .bg-charcoal\/60 {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(12px);
}

/* Golden accent line animation */
.w-16.h-\[1px\].bg-gold {
    position: relative;
    overflow: hidden;
}

.w-16.h-\[1px\].bg-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: goldShine 2s ease-in-out infinite;
}

@keyframes goldShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* Character animation for split text */
.char-animate {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charReveal 0.5s ease forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Float animation */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Glow effect on hover */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.4);
}

/* Shine effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Morphing border */
.morph-border {
    position: relative;
}

.morph-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #C9A962, #D4BC7C, #C9A962, #A68B4B);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: inherit;
    animation: morphBorder 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.morph-border:hover::after {
    opacity: 1;
}

@keyframes morphBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Reveal mask animation */
.reveal-mask {
    clip-path: inset(0 100% 0 0);
    animation: revealMask 1s ease forwards;
}

@keyframes revealMask {
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Scale up on scroll */
.scale-on-scroll {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-on-scroll.active {
    transform: scale(1);
    opacity: 1;
}

/* Blur reveal */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transition: all 0.8s ease;
}

.blur-reveal.active {
    filter: blur(0);
    opacity: 1;
}

/* 3D perspective on images */
.perspective-image {
    perspective: 1000px;
}

.perspective-image img {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.perspective-image:hover img {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: linear-gradient(var(--bg-color, #FAF8F5), var(--bg-color, #FAF8F5)) padding-box,
                linear-gradient(135deg, #C9A962, #D4BC7C, #C9A962) border-box;
    border: 2px solid transparent;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #C9A962;
    white-space: nowrap;
    animation: typing 3s steps(40) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #C9A962 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0);
    opacity: 0.3;
    transition: 0s;
}

/* Smooth image zoom with overlay */
.zoom-overlay {
    position: relative;
    overflow: hidden;
}

.zoom-overlay img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-overlay:hover img {
    transform: scale(1.15);
}

.zoom-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent 60%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.zoom-overlay:hover::after {
    opacity: 1;
}

/* Magnetic button effect */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth underline animation */
.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #C9A962;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.underline-animation:hover::after {
    width: 100%;
}

/* Rotate on hover */
.rotate-hover {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-hover:hover {
    transform: rotate(360deg);
}

/* Bounce on hover */
.bounce-hover {
    transition: transform 0.3s ease;
}

.bounce-hover:hover {
    animation: bounceEffect 0.5s ease;
}

@keyframes bounceEffect {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(-5px); }
    75% { transform: translateY(-8px); }
}
