/* ============================================
   VILLA AZUR - STYLE UNIQUE "LAGON RÉUNION"
   Design System Custom Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Pacifico&display=swap');

:root {
    /* Palette Lagon Réunion */
    --ocean-light: #00E5FF;
    --ocean: #00A8CC;
    --ocean-dark: #005F73;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --sand: #F5DEB3;
    --sand-dark: #D4A574;
    --emerald: #34D399;
    --emerald-dark: #10B981;

    /* Neutrals */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --white: #FFFFFF;

    /* Spacing rhythm */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

/* Reset custom */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(52, 211, 153, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, #001F2C 0%, #000F1A 100%);
    background-attachment: fixed;
    color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHIE UNIQUE
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    background: linear-gradient(135deg, var(--ocean-light), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--ocean-light);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--emerald);
}

.accent-text {
    font-family: 'Pacifico', cursive;
    color: var(--coral);
    font-weight: 400;
}

/* ============================================
   HERO IMMERSIF
   ============================================ */

.villa-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.villa-hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.villa-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.villa-hero-slide.active {
    opacity: 1;
}

.villa-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
}

/* Overlay océanique (pas noir!) */
.villa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 165, 204, 0.5) 0%,
            rgba(52, 211, 153, 0.4) 50%,
            rgba(255, 107, 107, 0.3) 100%);
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Pattern vagues subtil */
.villa-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 0, 50 10 T 100 10' stroke='rgba(255,255,255,0.05)' fill='none'/%3E%3C/svg%3E");
    background-size: 100px 20px;
    z-index: 2;
    opacity: 0.3;
}

.villa-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reunion-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--ocean), var(--emerald));
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.4);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(0, 229, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(0, 229, 255, 0.6);
    }
}

/* ============================================
   GLASS CARDS UNIQUE
   ============================================ */

.ocean-glass {
    background: linear-gradient(135deg,
            rgba(2, 6, 23, 0.7) 0%,
            rgba(0, 95, 115, 0.4) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ocean-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 229, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
}

.ocean-glass:hover::before {
    left: 100%;
}

.ocean-glass:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--ocean-light);
    box-shadow:
        0 20px 60px rgba(0, 165, 204, 0.3),
        0 0 0 1px rgba(0, 229, 255, 0.1);
}

/* ============================================
   BOUTONS PREMIUM
   ============================================ */

.btn-ocean {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--ocean), var(--emerald));
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 165, 204, 0.4);
}

.btn-ocean::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ocean:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ocean:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 165, 204, 0.6);
}

.btn-coral {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
}

.btn-coral:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.6);
}

/* ============================================
   GALLERY IMMERSIVE
   ============================================ */

.villa-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.villa-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.villa-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.villa-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(0, 165, 204, 0.6) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.villa-gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.villa-gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   ANIMATIONS SCROLL (AOS Ready)
   ============================================ */

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================
   NUMBERS COUNTER STYLE
   ============================================ */

.stats-counter {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--ocean-light), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Syne', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .villa-hero {
        height: 70vh;
        min-height: 500px;
    }

    h1 {
        font-size: 3rem;
    }

    .ocean-glass {
        padding: 1.5rem !important;
        transition: all 0.3s ease;
    }
}

/* ============================================
   TEXTURE OVERLAY GLOBALE
   ============================================ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   VILLA LOGO UNIQUE
   ============================================ */

.villa-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.villa-brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ocean), var(--emerald));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
    transition: transform 0.3s ease;
}

.villa-brand:hover .villa-brand-icon {
    transform: rotate(5deg) scale(1.05);
}

.villa-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.villa-brand-name {
    color: var(--ocean-light);
    font-size: 1.25rem;
}

.villa-brand-location {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sand);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

/* ============================================
   FOOTER VILLA
   ============================================ */

.villa-footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 229, 255, 0.03) 100%);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

.villa-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.villa-footer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ocean-light), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.villa-footer-location {
    color: var(--sand);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.villa-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.villa-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ocean-light);
}

.villa-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ============================================
   OVERRIDES DYNAMIC COMPONENTS (10/10 POLISH)
   ============================================ */

/* Force Review Cards to be Ocean Glass with Better Contrast */
.review-card {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.8) 0%, rgba(0, 60, 80, 0.6) 100%) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.animate-shine {
    animation: shine 1s;
}

.review-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--ocean-light) !important;
    box-shadow: 0 10px 30px rgba(0, 165, 204, 0.2) !important;
}

/* Force Widget Container harmony */
#booking-widget {
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.8), rgba(0, 95, 115, 0.4));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ============================================
   CUSTOM ANIMATIONS (Hero Power)
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    /* Important: start hidden */
}

.animate-fade-down {
    animation: fadeDown 0.8s ease-out forwards;
    opacity: 0;
}

/* End of file */