/* ==========
   Base
   ========== */

:root {
    --bg: #faf5ef;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --accent: #10b981;
    --accent-soft: #d1fae5;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-subtle: #e5e7eb;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, .06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Liens */
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ==========
   Layout
   ========== */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-main {
    padding: 32px 0 48px;
}

/* ==========
   Header + nav
   ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 245, 239, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 12px;
}

/* Logo */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, #60a5fa, #22c55e);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .4);
    position: relative;
}
.brand-logo::before {
    content: "";
    position: absolute;
    inset: 7px 6px 8px 6px;
    border-radius: 12px 12px 8px 8px;
    background: #fff;
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 1.1rem;
}
.brand-name span {
    color: var(--primary);
}
.brand-tagline {
    font-size: .8rem;
    color: var(--text-muted);
}

/* Nav desktop */

.nav-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-main a {
    font-size: .9rem;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background .15s ease, color .15s ease, transform .1s ease;
}

.nav-main a:hover {
    background: rgba(148, 163, 184, .15);
    color: var(--text-main);
    transform: translateY(-1px);
}

.nav-main a.nav-active {
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .45);
}

/* Bouton burger (mobile) */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}

/* ==========
   Hero / sections
   ========== */

.hero {
    padding: 40px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(2.1rem, 3.3vw, 2.7rem);
    line-height: 1.2;
    margin: 0 0 10px 0;
}

.hero-lead {
    font-size: .98rem;
    color: var(--text-muted);
    max-width: 36rem;
}

/* Carte « services » sur la home */

.section-block {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 20px 18px 22px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    margin: 0 0 6px 0;
}

.section-subtitle {
    font-size: .95rem;
    color: var(--text-muted);
    margin: 0 0 14px 0;
}

/* Boutons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .45);
    border: none;
    cursor: pointer;
}
.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .55);
}

/* ==========
   Listings (rentals / lands)
   ========== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
}

.card-thumb-strip {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    height: 54px;
    overflow: hidden;
}
.card-thumb-strip img {
    flex: 1;
    width: 100%;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: #e5e7eb;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-subtitle {
    font-size: .86rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.card-price {
    font-weight: 600;
    font-size: .94rem;
    margin-bottom: 4px;
}

/* ==========
   Footer
   ========== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: #fdf7f1;
    padding: 20px 0 14px;
    margin-top: 32px;
    font-size: .85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

/* ==========
   Responsive
   ========== */

@media (max-width: 768px) {
    .header-inner {
        align-items: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-main {
        position: absolute;
        right: 0;
        top: 100%;
        margin-top: 6px;
        background: var(--bg-card);
        border-radius: 18px;
        box-shadow: var(--shadow-soft);
        padding: 10px;
        flex-direction: column;
        align-items: flex-start;
        min-width: 180px;
        display: none;
    }

    .nav-main.is-open {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}
