/* ============================================
   STYLE PRINCIPAL - WAREsIA
   ============================================ */

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f5f5f5;
    color: #111;
    overflow-x: hidden;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --- COULEURS --- */
:root {
    --primary: #111111;
    --secondary: #1a1a1a;
    --gold: #d4af37;
    --gold-light: #e8c84a;
    --gold-dark: #b8962a;
    --white: #ffffff;
    --gray: #888888;
    --light-gray: #f0f0f0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.logo-text h2 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-text h2 span {
    color: var(--gold);
}

.logo-text p {
    color: var(--gray);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: -2px;
}

nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--white);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.admin-link:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 90vh;
    height: 90vh;
    max-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
    padding-bottom: 30px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.6) 100%),
        url('https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=1920&q=80');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.3) 50%, rgba(17, 17, 17, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo img {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.hero-title {
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-slogan {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-top: 4px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 45px;
    flex-wrap: wrap;
}

.btn-gold {
    background: var(--gold);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    padding: 20px 5% 30px;
    background: var(--light-gray);
    position: relative;
    z-index: 5;
}

.search-section .search-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 25px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-hover);
    max-width: 1200px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 0 15px;
    transition: var(--transition);
}

.search-field:focus-within {
    background: var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}

.search-field i {
    color: var(--gray);
    font-size: 14px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 14px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    color: var(--primary);
}

.search-field select {
    cursor: pointer;
}

.search-field input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: var(--gold);
    color: var(--primary);
    border: none;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ============================================
   PROPERTIES
   ============================================ */
.properties {
    padding: 60px 5% 80px;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--primary);
}

.section-header h2 span {
    color: var(--gold);
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
    margin-top: 10px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- PROPERTY CARD --- */
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.property-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.08);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: var(--gold);
    color: var(--primary);
}

.badge-rent {
    background: #2ecc71;
    color: var(--white);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(231, 76, 60, 0.9);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-card-body {
    padding: 20px 22px;
}

.property-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.property-card-body .location {
    color: var(--gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.property-card-body .location i {
    font-size: 13px;
}

.property-details {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.property-details span {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-details span i {
    color: var(--gold);
    font-size: 14px;
}

.property-card-body .price {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

.property-card-body .price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
}

.property-card-footer {
    padding: 15px 22px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card-footer .btn-details {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.property-card-footer .btn-details:hover {
    background: var(--gold);
    color: var(--primary);
}

.property-card-footer .share-btn {
    color: var(--gray);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}

.property-card-footer .share-btn:hover {
    color: var(--gold);
}

/* --- LOADER --- */
.loader-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-container p {
    color: var(--gray);
    font-size: 16px;
}

/* --- VIEW ALL --- */
.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border: 2px solid var(--gold);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 80px 5%;
    background: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--gold);
}

.about-content p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--light-gray);
    border-radius: 10px;
}

.feature i {
    color: var(--gold);
    font-size: 20px;
    width: 30px;
}

.feature span {
    font-weight: 600;
    font-size: 14px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 80px 5%;
    background: var(--light-gray);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-container > p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-card i {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    color: var(--gray);
    font-size: 15px;
}

.contact-card a:hover {
    color: var(--gold);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 5% 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 13px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--gold);
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 18px;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   WHATSAPP FLOATING
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary);
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        height: 70px;
        padding: 0 4%;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo-text h2 {
        font-size: 18px;
    }

    .logo-text p {
        display: none;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid var(--gold);
    }

    nav.open {
        transform: translateY(0);
    }

    nav a {
        padding: 14px 30px;
        width: 100%;
        text-align: center;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 80vh;
        height: 80vh;
        max-height: 700px;
        padding-top: 70px;
    }

    .hero-logo img {
        width: 70px;
        height: 70px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-slogan {
        font-size: 16px;
        padding: 0 15px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 70px;
    }

    .stat-number {
        font-size: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-gold,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 30px;
        font-size: 15px;
    }

    .search-section {
        padding: 15px 4% 25px;
    }

    .search-section .search-box {
        flex-direction: column;
        padding: 18px;
        gap: 10px;
    }

    .search-field {
        width: 100%;
        min-width: unset;
    }

    .search-btn {
        width: 100%;
        min-width: unset;
        padding: 14px;
    }

    .properties {
        padding: 40px 4% 60px;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 250px;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 10px;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 85px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .property-card-image {
        height: 180px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}