/* ============================================================
   WOW EFFECTS CSS — Instant Beauté
   Effets Premium : Preloader · Particules · Tilt · Progress
   ============================================================ */

/* ── 1. SCROLL PROGRESS BAR ───────────────────────────────── */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #aa3a4c, #ab737c, #c4a484, #ab737c, #aa3a4c);
    background-size: 200% 100%;
    z-index: 99999;
    transition: width 0.1s linear;
    animation: progressGlow 3s linear infinite;
    box-shadow: 0 0 8px rgba(170, 58, 76, 0.6);
}

@keyframes progressGlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ── 2. PRELOADER ─────────────────────────────────────────── */

#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #faf0e6 0%, #fff5f0 50%, #fce8ec 100%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #aa3a4c;
    font-style: italic;
    animation: preloaderPulse 1.5s ease-in-out infinite;
    text-align: center;
    line-height: 1.2;
}

.preloader-logo span {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: #ab737c;
    font-style: normal;
    margin-top: 4px;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(0.97); }
}

.preloader-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.preloader-petal {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50% 0 50% 0;
    background: rgba(171, 115, 124, 0.3);
    animation: petalFall linear infinite;
}

.preloader-petal:nth-child(1)  { left:  8%; animation-duration: 3.2s; animation-delay: 0s;    width: 8px;  height: 8px;  background: rgba(196,164,132,0.4); }
.preloader-petal:nth-child(2)  { left: 18%; animation-duration: 4.1s; animation-delay: 0.5s;  width: 12px; height: 12px; }
.preloader-petal:nth-child(3)  { left: 28%; animation-duration: 3.6s; animation-delay: 1.2s;  width: 7px;  height: 7px;  background: rgba(170,58,76,0.2); }
.preloader-petal:nth-child(4)  { left: 42%; animation-duration: 5s;   animation-delay: 0.3s;  width: 14px; height: 14px; background: rgba(196,164,132,0.35); }
.preloader-petal:nth-child(5)  { left: 55%; animation-duration: 3.8s; animation-delay: 1.8s;  width: 9px;  height: 9px;  }
.preloader-petal:nth-child(6)  { left: 65%; animation-duration: 4.5s; animation-delay: 0.9s;  width: 11px; height: 11px; background: rgba(170,58,76,0.25); }
.preloader-petal:nth-child(7)  { left: 78%; animation-duration: 3.3s; animation-delay: 2.1s;  width: 8px;  height: 8px;  background: rgba(196,164,132,0.4); }
.preloader-petal:nth-child(8)  { left: 88%; animation-duration: 4.7s; animation-delay: 0.6s;  width: 13px; height: 13px; }

@keyframes petalFall {
    0%   { transform: translateY(-20px) rotate(0deg);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.preloader-bar-wrapper {
    width: 200px;
    height: 3px;
    background: rgba(171, 115, 124, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #aa3a4c, #ab737c, #c4a484);
    border-radius: 10px;
    transition: width 0.05s linear;
}

/* ── 3. HERO FLOATING PARTICLES ───────────────────────────── */

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0%   { transform: translateY(100%) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-20%) scale(1); opacity: 0; }
}

/* ── 4. HERO TYPING CURSOR ────────────────────────────────── */

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: rgba(255,255,255,0.8);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── 5. STAT COUNTERS ANIMATION ───────────────────────────── */

.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-number.counting {
    animation: countPop 0.15s ease;
}

@keyframes countPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.intro-stat {
    padding: 20px 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 24px rgba(171, 115, 124, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.intro-stat:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 40px rgba(171, 115, 124, 0.22);
    background: rgba(255,255,255,0.92);
}

/* ── 6. 3D TILT CARD EFFECT ───────────────────────────────── */

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(800px);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card-inner {
    transform: translateZ(0px);
    transition: transform 0.1s ease;
}

.tilt-card:hover .tilt-card-inner {
    transform: translateZ(20px);
}

/* ── 7. SERVICE CARDS — SHIMMER EFFECT ────────────────────── */

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255,255,255,0.4) 50%,
        transparent 80%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 5;
    pointer-events: none;
}

.service-card:hover::before {
    left: 160%;
}

/* ── 8. SECTION ENTRY ANIMATIONS ──────────────────────────── */

.wow-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wow-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.wow-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wow-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.wow-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wow-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.wow-delay-1 { transition-delay: 0.1s; }
.wow-delay-2 { transition-delay: 0.2s; }
.wow-delay-3 { transition-delay: 0.3s; }
.wow-delay-4 { transition-delay: 0.4s; }

/* ── 9. TESTIMONIAL CAROUSEL DOTS ─────────────────────────── */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 4px;
    background: rgba(196, 164, 132, 0.9);
}

.carousel-dot:hover {
    background: rgba(196, 164, 132, 0.6);
    transform: scale(1.2);
}

/* Carousel prev/next buttons */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(196,164,132,0.4);
    border-color: rgba(196,164,132,0.6);
    transform: scale(1.1);
}

/* ── 10. CONFETTI CANVAS ──────────────────────────────────── */

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    display: none;
}

/* ── 11. TOAST NOTIFICATIONS ──────────────────────────────── */

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99997;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,248,242,0.98));
    border: 1px solid rgba(171, 115, 124, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #aa3a4c;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    border-left: 3px solid #aa3a4c;
}

.toast.fade-out {
    animation: toastOut 0.4s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ── 12. HERO PARALLAX CONTAINER ──────────────────────────── */

.hero {
    will-change: background-position;
}

/* ── 13. ACTIVE NAV INDICATOR ─────────────────────────────── */

.nav-active-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #ab737c, #aa3a4c);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* ── 14. REEL CARDS — SPARKLE ON HOVER ────────────────────── */

.reel-card::after {
    content: '✨';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0) rotate(-30deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    pointer-events: none;
}

.reel-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ── 15. INTRO SECTION — RIBBON BADGE ────────────────────── */

.badge-experience {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #aa3a4c, #ab737c);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(170, 58, 76, 0.35);
    animation: badgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.3s;
}

@keyframes badgePop {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── 16. HIW STEPS — ICON GLOW ────────────────────────────── */

.hiw-number::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(171, 115, 124, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.hiw-step:hover .hiw-number::before {
    opacity: 1;
    transform: scale(1);
    animation: hiw-ring-pulse 1.5s ease infinite;
}

@keyframes hiw-ring-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.5; }
    50%       { transform: scale(1.2); opacity: 0; }
}

/* ── 17. MAGNETIC BUTTONS ─────────────────────────────────── */

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary .btn-ripple,
.btn-secondary .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── 18. INFO BOX — FLOATING ICON ────────────────────────── */

.info-box h4 i {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-box:hover h4 i {
    transform: rotate(15deg) scale(1.2);
    color: #aa3a4c;
}

/* ── 19. LOGO SUBTLE ANIMATION ───────────────────────────── */

.logo h1 {
    transition: color 0.3s ease;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #aa3a4c, #ab737c);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.logo:hover h1::after {
    width: 100%;
}

/* ── 20. MOBILE OPTIMIZATIONS ─────────────────────────────── */

@media (max-width: 768px) {
    .intro-stat {
        padding: 14px 10px;
    }

    .toast {
        font-size: 0.82rem;
        padding: 12px 20px;
        white-space: normal;
        text-align: center;
    }

    .preloader-logo {
        font-size: 2.2rem;
    }
}
