/* ═══════════════════════════════════════════════════════════════════════════
   Front-page Marokeys — v3.1
   Palette v0 : Primary #005DAA · Accent #C2B280 · BG #F9F9FB · Muted #8E9294
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --mk-primary:     #005DAA;
    --mk-primary-dk:  #004a88;
    --mk-primary-lt:  #e8f0f8;
    --mk-accent:      #C2B280;
    --mk-accent-dk:   #a89660;
    --mk-accent-lt:   #f5f0e8;
    --mk-bg:          #F9F9FB;
    --mk-muted:       #8E9294;
    --mk-dark:        #111827;
    --mk-mid:         #374151;
    --mk-white:       #ffffff;
    --mk-border:      #e5e7eb;
    --mk-radius:      12px;
    --mk-radius-lg:   20px;
    --mk-shadow:      0 2px 16px rgba(0,0,0,0.07);
    --mk-shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
    --mk-transition:  0.22s ease;
    --mk-container:   1200px;
    --mk-section-py:  96px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP NAVIGATION BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255,255,255,0.0);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    padding: 0 24px;
}
body.admin-bar .mk-topnav { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .mk-topnav { top: 46px !important; }
}
.mk-topnav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.mk-topnav-inner {
    max-width: var(--mk-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}
.mk-topnav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.mk-topnav-logo img {
    height: 64px;
    width: auto;
}
.mk-topnav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mk-white);
}
.mk-topnav.scrolled .mk-topnav-brand {
    color: var(--mk-dark);
}
.mk-topnav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}
.mk-topnav-links a {
    display: block;
    padding: 8px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.mk-topnav-links a:hover {
    color: var(--mk-white);
    background: rgba(255,255,255,0.12);
}
.mk-topnav-links a.active {
    color: var(--mk-white);
    background: rgba(255,255,255,0.18);
    font-weight: 600;
}
/* Scrolled state: dark text */
.mk-topnav.scrolled .mk-topnav-links a {
    color: var(--mk-mid);
}
.mk-topnav.scrolled .mk-topnav-links a:hover {
    color: var(--mk-primary);
    background: var(--mk-primary-lt);
}
.mk-topnav.scrolled .mk-topnav-links a.active {
    color: var(--mk-primary);
    background: var(--mk-primary-lt);
    font-weight: 600;
}
.mk-topnav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.mk-topnav-phone {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-white);
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mk-topnav-phone:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
}
.mk-topnav.scrolled .mk-topnav-phone {
    color: var(--mk-primary);
    border-color: var(--mk-border);
}
.mk-topnav.scrolled .mk-topnav-phone:hover {
    background: var(--mk-primary-lt);
}
.mk-topnav-cta {
    font-size: 0.82rem !important;
    padding: 8px 18px !important;
    gap: 6px !important;
}

/* Burger menu (mobile) */
.mk-topnav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.mk-topnav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mk-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.mk-topnav.scrolled .mk-topnav-burger span {
    background: var(--mk-dark);
}
.mk-topnav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-topnav-burger.open span:nth-child(2) { opacity: 0; }
.mk-topnav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Inner pages: nav starts scrolled (opaque) */
.mk-page .mk-topnav,
.mk-archive-wrap .mk-topnav,
.ie-single-wrap .mk-topnav {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.mk-page .mk-topnav .mk-topnav-links a,
.mk-archive-wrap .mk-topnav .mk-topnav-links a,
.ie-single-wrap .mk-topnav .mk-topnav-links a {
    color: var(--mk-mid);
}
.mk-page .mk-topnav .mk-topnav-links a:hover,
.mk-archive-wrap .mk-topnav .mk-topnav-links a:hover,
.ie-single-wrap .mk-topnav .mk-topnav-links a:hover {
    color: var(--mk-primary);
    background: var(--mk-primary-lt);
}
.mk-page .mk-topnav .mk-topnav-links a.active,
.mk-archive-wrap .mk-topnav .mk-topnav-links a.active,
.ie-single-wrap .mk-topnav .mk-topnav-links a.active {
    color: var(--mk-primary);
    background: var(--mk-primary-lt);
}
.mk-page .mk-topnav .mk-topnav-brand,
.mk-archive-wrap .mk-topnav .mk-topnav-brand,
.ie-single-wrap .mk-topnav .mk-topnav-brand {
    color: var(--mk-dark);
}
.mk-page .mk-topnav .mk-topnav-phone,
.mk-archive-wrap .mk-topnav .mk-topnav-phone,
.ie-single-wrap .mk-topnav .mk-topnav-phone {
    color: var(--mk-primary);
    border-color: var(--mk-border);
}
.mk-page .mk-topnav .mk-topnav-burger span,
.mk-archive-wrap .mk-topnav .mk-topnav-burger span,
.ie-single-wrap .mk-topnav .mk-topnav-burger span {
    background: var(--mk-dark);
}

@media (max-width: 768px) {
    .mk-topnav-inner { height: 60px; gap: 12px; }
    .mk-topnav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        z-index: 9999;
    }
    .mk-topnav-links.open {
        display: flex;
    }
    .mk-topnav-links a {
        color: var(--mk-dark) !important;
        font-size: 1rem;
        padding: 14px 20px;
        border-radius: 12px;
    }
    .mk-topnav-links a.active {
        color: var(--mk-primary) !important;
        background: var(--mk-primary-lt) !important;
    }
    .mk-topnav-actions .mk-topnav-cta { display: none; }
    .mk-topnav-burger { display: flex; }
    .mk-topnav-logo img { height: 48px; }
}

/* Hide Elementor header on our templates */
.mk-home .elementor-location-header,
.mk-page .elementor-location-header,
.mk-archive-wrap ~ .elementor-location-header,
body.single-biens .elementor-location-header {
    display: none !important;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
.mk-home {
    font-family: 'DM Sans', sans-serif;
    color: var(--mk-dark);
    background: var(--mk-bg);
    line-height: 1.6;
}

.mk-home *, .mk-home *::before, .mk-home *::after {
    box-sizing: border-box;
}

.mk-home h1, .mk-home h2, .mk-home h3, .mk-home h4,
.mk-home blockquote {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin: 0;
}

.mk-home p { margin: 0; }
.mk-home ul { margin: 0; padding: 0; list-style: none; }
.mk-home a { text-decoration: none; color: inherit; }
.mk-home img { max-width: 100%; display: block; }

/* ── Container ──────────────────────────────────────────────────────────── */
.mk-container {
    max-width: var(--mk-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography helpers ─────────────────────────────────────────────────── */
.mk-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mk-primary);
    margin-bottom: 12px;
}

.mk-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--mk-dark);
    margin-bottom: 16px;
}

.mk-section-sub {
    font-size: 1.05rem;
    color: var(--mk-muted);
    max-width: 560px;
    text-align: center;
    margin: 0 auto;
}

.mk-section-sub.mk-left { text-align: left; margin: 0; }
.mk-section-title.mk-left { text-align: left; }

.mk-section-head {
    text-align: center;
    margin-bottom: 56px;
}

/* ── Dot ────────────────────────────────────────────────────────────────── */
.mk-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mk-dot-primary { background: var(--mk-primary); }
.mk-dot-accent  { background: var(--mk-accent); }

/* ── Pill buttons ───────────────────────────────────────────────────────── */
.mk-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--mk-transition);
    white-space: nowrap;
}

.mk-btn-pill-primary {
    background: var(--mk-primary);
    color: var(--mk-white);
}
.mk-btn-pill-primary:hover {
    background: var(--mk-primary-dk);
    transform: translateY(-1px);
}

.mk-btn-pill-accent {
    background: var(--mk-accent);
    color: var(--mk-white);
}
.mk-btn-pill-accent:hover {
    background: var(--mk-accent-dk);
    transform: translateY(-1px);
}

.mk-btn-full { width: 100%; justify-content: center; }

.mk-btn-outline-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--mk-primary);
    color: var(--mk-primary);
    background: transparent;
    transition: var(--mk-transition);
    cursor: pointer;
}
.mk-btn-outline-pill:hover {
    background: var(--mk-primary);
    color: var(--mk-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: var(--mk-hero-bg, none);
    background-size: cover;
    background-position: center;
    background-color: #0a1628;
}

.mk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.65) 100%
    );
    z-index: 0;
}

.mk-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--mk-container);
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mk-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Badge pill */
.mk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.mk-hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mk-accent);
    animation: mk-pulse 2s ease infinite;
}

@keyframes mk-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

.mk-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.mk-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    max-width: none;
    margin: 0 auto 32px;
    line-height: 1.7;
    text-align: center;
}

/* Stats — reset glassmorphism from immo-essaouira.css */
.mk-hero-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    box-shadow: none !important;
    flex-wrap: wrap;
}

.mk-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}

.mk-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.mk-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.mk-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.25);
}

/* Search card */
.mk-hero-search {
    width: 100%;
    max-width: var(--mk-container);
}

/* Override search form from plugin to fit hero */
.mk-hero-search .ie-search-wrapper { max-width: 100%; }

.mk-hero-search .ie-search-form,
.mk-hero-search form {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--mk-radius-lg);
    padding: 20px 28px;
    box-shadow: var(--mk-shadow-lg);
}

/* Slimmer inputs inside hero */
.mk-hero-search .ie-field select,
.mk-hero-search .ie-field input[type="number"] {
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
}

.mk-hero-search .ie-search-btn {
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14px;
}

.mk-hero-search .ie-field label {
    font-size: 13px;
    margin-bottom: 6px;
}

.mk-hero-search .ie-top-row {
    gap: 12px;
}

.mk-hero-search .ie-toggle-advanced {
    margin-top: 12px;
    font-size: 14px;
}

.mk-hero-search .ie-currency-switch {
    height: 48px;
}

/* Scroll indicator */
.mk-hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.mk-hero-scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.mk-hero-scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mk-hero-scroll-wheel {
    width: 3px; height: 7px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: mk-scroll 1.6s ease infinite;
}

@keyframes mk-scroll {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPRIÉTÉS
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-props-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-bg);
}

/* Header row : title left + filters right */
.mk-props-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mk-props-header-text { flex: 1; min-width: 220px; }

/* Filter pills */
.mk-props-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mk-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1.5px solid var(--mk-border);
    background: var(--mk-white);
    color: var(--mk-mid);
    cursor: pointer;
    transition: var(--mk-transition);
}

.mk-filter:hover {
    border-color: var(--mk-primary);
    color: var(--mk-primary);
}

.mk-filter.active {
    background: var(--mk-primary);
    border-color: var(--mk-primary);
    color: var(--mk-white);
}

/* Grid */
.mk-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Featured first card */
.mk-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.mk-card-featured > .ie-card-modern {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mk-card-featured > .ie-card-modern > .ie-card-media {
    flex: 1;
    height: auto;
}

.mk-card-featured > .ie-card-modern > .ie-card-body {
    flex-shrink: 0;
}

/* "Voir tout" row */
.mk-props-more {
    text-align: center;
    margin-top: 48px;
}

.mk-no-results {
    text-align: center;
    color: var(--mk-muted);
    padding: 48px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA — Vous vendez / Vous recherchez
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-cta-section {
    padding: var(--mk-section-py) 0;
    background: var(--mk-bg);
}

.mk-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mk-cta-card {
    position: relative;
    border-radius: var(--mk-radius-lg);
    overflow: hidden;
    padding: 0;
}

.mk-cta-sell {
    background: linear-gradient(135deg, var(--mk-primary) 0%, #003f77 100%);
    color: #fff;
}

.mk-cta-buy {
    background: linear-gradient(135deg, #4a3a1a 0%, #2e2310 100%);
    color: #fff;
}

/* Blur decoration */
.mk-cta-blur {
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    top: -60px; right: -60px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.mk-cta-sell .mk-cta-blur {
    background: rgba(255,255,255,0.1);
}

.mk-cta-buy .mk-cta-blur {
    background: rgba(194,178,128,0.2);
}

.mk-cta-body {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.mk-cta-body h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mk-cta-body > div > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Icon circle */
.mk-cta-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.mk-cta-icon--accent {
    background: rgba(194,178,128,0.25);
}

/* List */
.mk-cta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mk-cta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOS EXPERTISES
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-services-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-white);
}

.mk-expertises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mk-expertise-card {
    position: relative;
    background: var(--mk-bg);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    transition: var(--mk-transition);
}

.mk-expertise-card:hover {
    box-shadow: var(--mk-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--mk-primary-lt);
}

.mk-expertise-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--mk-primary-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-primary);
    flex-shrink: 0;
}

.mk-expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mk-dark);
}

.mk-expertise-card > p {
    font-size: 0.9rem;
    color: var(--mk-muted);
    line-height: 1.6;
}

.mk-expertise-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mk-expertise-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--mk-mid);
}

.mk-expertise-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mk-primary);
    transition: gap var(--mk-transition);
}

.mk-expertise-link:hover { gap: 10px; }

/* Watermark number */
.mk-expertise-num {
    position: absolute;
    top: 20px; right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Bottom CTA row */
.mk-expertise-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding: 32px 40px;
    background: var(--mk-primary-lt);
    border-radius: var(--mk-radius-lg);
    flex-wrap: wrap;
}

.mk-expertise-bottom p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mk-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FONDATRICES
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-founders-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-bg);
}

.mk-founders-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Text left */
.mk-founders-text { display: flex; flex-direction: column; gap: 0; }

.mk-founders-text .mk-section-title { margin-bottom: 24px; }

.mk-founders-paras {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.mk-founders-paras p {
    font-size: 0.95rem;
    color: var(--mk-mid);
    line-height: 1.75;
}

/* Values 3-col */
.mk-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--mk-border);
}

.mk-value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mk-dark);
    margin-bottom: 4px;
}

.mk-value-sub {
    font-size: 0.82rem;
    color: var(--mk-muted);
}

/* Card right */
.mk-founders-card-wrap {
    position: relative;
}

.mk-founders-card {
    background: var(--mk-white);
    border-radius: var(--mk-radius-lg);
    padding: 40px;
    box-shadow: var(--mk-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

/* Quote block */
.mk-founders-quote-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mk-quote-icon {
    color: var(--mk-accent);
    opacity: 0.6;
}

.mk-founders-quote-block blockquote {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--mk-mid);
    line-height: 1.7;
    border-left: 3px solid var(--mk-accent);
    padding-left: 20px;
}

/* Info row */
.mk-founders-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mk-founders-avatars {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Overlapping avatars */
.mk-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--mk-white);
    flex-shrink: 0;
}

.mk-avatar-1 {
    background: var(--mk-primary);
    z-index: 2;
}

.mk-avatar-2 {
    background: var(--mk-accent);
    margin-left: -12px;
    z-index: 1;
}

.mk-founders-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mk-dark);
}

.mk-founders-role {
    font-size: 0.82rem;
    color: var(--mk-muted);
}

.mk-founders-desc {
    font-size: 0.88rem;
    color: var(--mk-muted);
    line-height: 1.65;
}

/* Social buttons */
.mk-founders-social {
    display: flex;
    gap: 8px;
}

.mk-social-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--mk-border) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-muted) !important;
    background: var(--mk-white) !important;
    transition: var(--mk-transition);
}
.mk-social-btn svg {
    color: inherit !important;
    stroke: currentColor !important;
}

.mk-social-btn:hover {
    border-color: var(--mk-primary) !important;
    color: var(--mk-primary) !important;
    background: var(--mk-primary-lt) !important;
}

/* Deco elements */
.mk-founders-deco-circle {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 2px solid var(--mk-accent);
    opacity: 0.2;
    bottom: -30px; right: -30px;
    z-index: 0;
    pointer-events: none;
}

.mk-founders-deco-square {
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 16px;
    background: var(--mk-primary-lt);
    top: -20px; left: -20px;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLES
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-articles-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-white);
}

/* Header row */
.mk-articles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mk-articles-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mk-primary);
    white-space: nowrap;
    transition: gap var(--mk-transition);
    flex-shrink: 0;
}
.mk-articles-all-link:hover { gap: 10px; }

/* Articles grid */
.mk-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 24px;
}

.mk-article-card {
    background: var(--mk-bg);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--mk-transition);
}

.mk-article-card:hover {
    box-shadow: var(--mk-shadow-lg);
    transform: translateY(-4px);
}

/* Featured first article */
.mk-article-featured {
    grid-column: span 2;
    grid-row: span 2;
    flex-direction: column;
}

.mk-article-img {
    background-size: cover;
    background-position: center;
    background-color: var(--mk-border);
    position: relative;
    min-height: 200px;
    flex-shrink: 0;
}

.mk-article-featured .mk-article-img {
    min-height: 280px;
    flex: 1;
}

.mk-article-img-empty {
    background: linear-gradient(135deg, var(--mk-primary-lt), var(--mk-accent-lt));
}

.mk-article-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--mk-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
}

.mk-article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mk-article-body-lg { padding: 32px; }

.mk-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mk-article-date,
.mk-article-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--mk-muted);
}

.mk-article-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mk-dark);
    line-height: 1.35;
}

.mk-article-featured .mk-article-title {
    font-size: 1.3rem;
}

.mk-article-excerpt {
    font-size: 0.88rem;
    color: var(--mk-muted);
    line-height: 1.6;
}

.mk-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-contact-section {
    padding: var(--mk-section-py) 0;
    background: rgba(194,178,128,0.06);
}

.mk-contact-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 32px;
    align-items: start;
}

.mk-contact-info-col,
.mk-contact-form-col { display: flex; flex-direction: column; }

/* Info card */
.mk-contact-info-card {
    background: var(--mk-white);
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mk-contact-coords-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mk-dark);
    margin-bottom: 4px;
}

.mk-contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mk-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: inherit;
}

.mk-contact-item-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--mk-primary-lt);
    color: var(--mk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-contact-label {
    font-size: 0.75rem;
    color: var(--mk-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.mk-contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mk-dark);
    line-height: 1.45;
}

.mk-contact-social-block {
    padding-top: 24px;
    border-top: 1px solid var(--mk-border);
}

.mk-contact-social-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mk-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mk-social-row {
    display: flex;
    gap: 8px;
}

/* Form card */
.mk-contact-form-card {
    background: var(--mk-white) !important;
    color: var(--mk-dark) !important;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg);
    padding: 40px;
}

.mk-contact-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mk-dark);
    margin-bottom: 28px;
}

/* Form elements */
.mk-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mk-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mk-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mk-mid) !important;
}

.mk-form-group input,
.mk-form-group select,
.mk-form-group textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--mk-dark) !important;
    background: var(--mk-bg) !important;
    border: 1.5px solid var(--mk-border) !important;
    border-radius: var(--mk-radius);
    padding: 11px 16px;
    width: 100%;
    transition: border-color var(--mk-transition);
    outline: none;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
}

.mk-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px;
}

.mk-form-group input:focus,
.mk-form-group select:focus,
.mk-form-group textarea:focus {
    border-color: var(--mk-primary) !important;
    background: var(--mk-white) !important;
}

.mk-form-group input::placeholder,
.mk-form-group textarea::placeholder {
    color: var(--mk-muted) !important;
    opacity: 0.7;
}

.mk-form-feedback {
    padding: 14px 18px;
    border-radius: var(--mk-radius);
    font-size: 0.9rem;
}

.mk-form-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.mk-form-error {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── ≤ 1024px ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .mk-props-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
    }

    .mk-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .mk-expertises-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mk-expertises-grid .mk-expertise-card:last-child {
        grid-column: span 2;
    }

    .mk-founders-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mk-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mk-article-featured {
        grid-column: span 2;
        grid-row: auto;
        flex-direction: row;
    }

    .mk-article-featured .mk-article-img {
        width: 45%;
        min-height: 100%;
        flex: none;
    }

    .mk-contact-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── ≤ 768px ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --mk-section-py: 64px; }

    .mk-hero-inner { padding: 100px 20px 60px; gap: 32px; }

    .mk-hero-stats {
        gap: 0 !important;
    }

    .mk-stat { padding: 0 16px; }

    .mk-stat-sep { height: 24px; }

    .mk-props-header { flex-direction: column; align-items: flex-start; }

    .mk-props-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .mk-card-featured { grid-column: 1; grid-row: auto; }

    .mk-cta-grid { grid-template-columns: 1fr; }

    .mk-cta-body { padding: 36px 28px; }

    .mk-expertises-grid { grid-template-columns: 1fr; }

    .mk-expertises-grid .mk-expertise-card:last-child { grid-column: 1; }

    .mk-founders-layout { grid-template-columns: 1fr; gap: 40px; }

    .mk-values-grid { grid-template-columns: repeat(3, 1fr); }

    .mk-articles-grid { grid-template-columns: 1fr; }

    .mk-article-featured {
        grid-column: 1;
        grid-row: auto;
        flex-direction: column;
    }

    .mk-article-featured .mk-article-img {
        width: 100%;
        min-height: 220px;
    }

    .mk-contact-layout { grid-template-columns: 1fr; }

    .mk-form-row { grid-template-columns: 1fr; }

    .mk-contact-form-card { padding: 28px 20px; }

    .mk-expertise-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 28px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   INNER PAGES (Services, Qui sommes-nous, Contact)
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-page {
    font-family: 'DM Sans', sans-serif;
    color: var(--mk-dark);
    background: var(--mk-bg);
}

.mk-page h1, .mk-page h2, .mk-page h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    margin: 0;
}

.mk-page-hero-sm {
    padding: 130px 0 48px;
    background: var(--mk-bg);
}

.mk-page-hero-sm .ie-breadcrumb {
    margin-bottom: 24px;
}

.mk-page-photo-section {
    padding: 0 0 var(--mk-section-py);
}

.mk-page-photo-placeholder {
    background: var(--mk-white);
    border: 2px dashed var(--mk-border);
    border-radius: var(--mk-radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: var(--mk-muted);
}

.mk-page-photo-placeholder p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--mk-mid);
}

.mk-page-photo-placeholder span {
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARCHIVE /biens/
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-archive-wrap {
    max-width: var(--mk-container);
    margin: 0 auto;
    padding: 130px 24px 64px;
    font-family: 'DM Sans', sans-serif;
}

.mk-archive-header {
    margin-bottom: 32px;
}

.mk-archive-search {
    margin-bottom: 24px;
}

.mk-archive-search .ie-search-form {
    border-radius: var(--mk-radius-lg);
}

.mk-archive-filters {
    margin-bottom: 28px;
}

.mk-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.mk-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.mk-archive-pagination a,
.mk-archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 3px;
    transition: var(--mk-transition);
}

.mk-archive-pagination a {
    color: var(--mk-mid);
    border: 1px solid var(--mk-border);
    text-decoration: none;
}

.mk-archive-pagination a:hover {
    border-color: var(--mk-primary);
    color: var(--mk-primary);
}

.mk-archive-pagination .current {
    background: var(--mk-primary);
    color: #fff;
    border: 1px solid var(--mk-primary);
}

@media (max-width: 768px) {
    .mk-archive-wrap { padding-top: 100px; }
    .mk-archive-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 1024px) {
    .mk-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ── ≤ 480px ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .mk-hero-title { font-size: 1.85rem; }
    .mk-section-title { font-size: 1.5rem; }
    .mk-stat-num { font-size: 1.4rem; }
    .mk-stat-sep { display: none; }
    .mk-hero-stats { gap: 20px !important; }
    .mk-stat { padding: 0 8px; }
    .mk-cta-body { padding: 28px 20px; }
    .mk-founders-card { padding: 28px 20px; }
    .mk-contact-info-card { padding: 24px 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR — app-like UX
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mk-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--mk-border);
        box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
    }
    .mk-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: var(--mk-muted);
        font-family: 'DM Sans', sans-serif;
        font-size: 10px;
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 8px;
        transition: color var(--mk-transition), background var(--mk-transition);
        -webkit-tap-highlight-color: transparent;
        min-width: 56px;
    }
    .mk-bottom-nav a.active,
    .mk-bottom-nav a:hover {
        color: var(--mk-primary);
    }
    .mk-bottom-nav a.active {
        background: var(--mk-primary-lt);
    }
    .mk-bottom-nav svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.8;
    }
    .mk-bottom-nav .mk-bnav-cta {
        color: var(--mk-white);
        background: var(--mk-primary);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        margin-top: -18px;
        box-shadow: 0 4px 16px rgba(0,93,170,0.35);
        justify-content: center;
        padding: 0;
        min-width: auto;
        font-size: 0;
    }
    .mk-bottom-nav .mk-bnav-cta svg {
        width: 24px;
        height: 24px;
    }
    .mk-bottom-nav .mk-bnav-cta:hover {
        background: var(--mk-primary-dk);
        color: var(--mk-white);
    }

    /* Add bottom padding to body so content isn't hidden */
    body {
        padding-bottom: 72px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-footer {
    background: var(--mk-dark);
    color: rgba(255,255,255,0.7);
    font-family: 'DM Sans', sans-serif;
    padding: 64px 0 0;
}
.mk-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.mk-footer a:hover { color: var(--mk-accent); }
.mk-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mk-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mk-footer-logo { height: 48px; width: auto; max-width: 180px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); opacity: 0.9; display: block; }
.mk-footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--mk-white);
}
.mk-footer-tagline { font-size: 0.88rem; line-height: 1.6; max-width: 300px; }
.mk-footer-social {
    display: flex;
    gap: 10px;
}
.mk-footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.mk-footer-social a:hover {
    border-color: var(--mk-accent);
    background: rgba(255,255,255,0.05);
}
.mk-footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mk-white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mk-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mk-footer-col li { font-size: 0.88rem; }
.mk-footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .mk-footer { padding: 48px 0 0; }
    .mk-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .mk-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .mk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}



/* ── Zellige background motif (discret) ────────────────────────────────── */
.mk-props-section,
.mk-services-section,
.mk-founders-section,
.mk-articles-section,
.mk-archive-wrap,
.ie-single-wrap {
    background-image: url('../img/zellige-pattern.svg');
    background-repeat: repeat;
    background-size: 180px 180px;
    background-position: center top;
}

/* Conserver la couleur de fond en dessous du motif */
.mk-props-section { background-color: var(--mk-bg); }
.mk-founders-section { background-color: var(--mk-bg); }
