/* ═════════════════════════════════════════════════════════════════════════
   BienImmo - Design System moderne (gris / vert Houzy)
   ═════════════════════════════════════════════════════════════════════════ */

:root {
    --green: #70be3b;
    --green-dark: #4d9a2a;
    --green-light: #9cd178;
    --green-pale: #eaf6dc;
    --green-bg: #f5faf2;

    --gray-900: #1a1f24;
    --gray-800: #2e3338;
    --gray-700: #4a5258;
    --gray-600: #6b7480;
    --gray-500: #8a929b;
    --gray-400: #b3bac1;
    --gray-300: #d4d9de;
    --gray-200: #e5e8ec;
    --gray-100: #f2f4f6;
    --gray-50: #f8f9fa;

    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(26,31,36,.06), 0 1px 2px rgba(26,31,36,.04);
    --shadow: 0 4px 16px rgba(26,31,36,.08);
    --shadow-lg: 0 12px 40px rgba(26,31,36,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --container: 1240px;
    --header-h: 72px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    font-size: 15px;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { color: var(--gray-900); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
button { font-family: inherit; }
::selection { background: var(--green-pale); color: var(--gray-900); }

/* Container */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ─── Splash ────────────────────────────────────────────────────────────── */
.splash { position: fixed; inset: 0; z-index: 9999; background: var(--white); display: flex; align-items: center; justify-content: center; }
.splash-logo { font-size: 2rem; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.splash-logo span { color: var(--gray-900); }
.splash-bar { width: 120px; height: 4px; background: var(--green-pale); border-radius: 99px; margin-top: 16px; overflow: hidden; }
.splash-bar-fill { height: 100%; width: 35%; background: var(--green); animation: shimmer 1s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(280%); } }

/* ─── Top bar ───────────────────────────────────────────────────────────── */
.topbar {
    background: var(--gray-900);
    color: rgba(255,255,255,.92);
    font-size: 13px;
}
.topbar-inner {
    max-width: var(--container); margin: 0 auto; padding: 10px 24px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.topbar strong { color: var(--green-light); font-weight: 600; }
.topbar-close {
    background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer;
    font-size: 18px; margin-left: auto; padding: 0 4px;
}
.topbar-close:hover { color: #fff; }

/* ─── Header ────────────────────────────────────────────────────────────── */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--gray-200);
}
.header-inner {
    max-width: var(--container); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; min-height: var(--header-h); gap: 32px;
}
.logo {
    font-size: 1.4rem; font-weight: 800; color: var(--green);
    letter-spacing: -.03em; text-decoration: none; flex-shrink: 0;
}
.logo span { color: var(--gray-900); }
.nav { display: none; align-items: center; gap: 4px; flex: 1; }
@media (min-width: 960px) { .nav { display: flex; } }
.nav a {
    padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px;
    font-weight: 500; color: var(--gray-700); text-decoration: none; transition: .15s;
}
.nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav a.active { background: var(--green-pale); color: var(--green-dark); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mobile-btn {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    color: var(--gray-800); font-size: 20px;
}
@media (max-width: 959px) {
    .mobile-btn { display: block; }
    .nav.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
        padding: 12px 16px 16px; border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px;
    border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
    transition: transform .12s, box-shadow .15s, background .15s, color .15s; white-space: nowrap;
    font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; box-shadow: 0 6px 20px rgba(112,190,59,.35); }
.btn-outline { background: #fff; color: var(--gray-900); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }
.btn-dark { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.btn-dark:hover { background: var(--gray-800); border-color: var(--gray-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--gray-700); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 580px;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, #2a3033 100%);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: var(--hero-img, none) center/cover no-repeat;
    opacity: .55;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,31,36,.7) 0%, rgba(26,31,36,.3) 60%, rgba(112,190,59,.15) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: var(--container); margin: 0 auto;
    padding: 80px 24px;
    width: 100%;
}
.hero-eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: var(--radius-pill);
    background: rgba(112,190,59,.18); color: var(--green-light);
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 20px; backdrop-filter: blur(8px);
}
.hero h1 {
    color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
    max-width: 720px; margin-bottom: 16px; letter-spacing: -.025em; line-height: 1.1;
}
.hero p.lead {
    color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 600px; margin: 0 0 32px; line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

/* Hero search box (gros, plein largeur) */
.hero-search {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 8px; max-width: 880px;
    display: grid; gap: 6px;
}
@media (min-width: 768px) {
    .hero-search { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; }
}
.hero-search-tabs {
    display: flex; gap: 4px; margin-bottom: 16px;
    background: rgba(255,255,255,.1); padding: 4px; border-radius: var(--radius-pill);
    width: fit-content; backdrop-filter: blur(10px);
}
.hero-tab {
    padding: 9px 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14px;
    background: transparent; color: rgba(255,255,255,.85); border: none; cursor: pointer;
    transition: .15s;
}
.hero-tab.active { background: var(--green); color: #fff; }
.hero-search-field {
    position: relative; display: flex; align-items: center;
    padding: 0 16px; border-right: 1px solid var(--gray-200);
}
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field i {
    color: var(--green); font-size: 16px; margin-right: 12px;
}
.hero-search-field input,
.hero-search-field select {
    border: none; outline: none; padding: 16px 0; width: 100%;
    font-family: inherit; font-size: 14px; color: var(--gray-900);
    background: transparent;
}
.hero-search-field select { cursor: pointer; appearance: none; padding-right: 24px; }
.hero-search > .btn { margin: 6px; padding: 14px 28px; }
@media (max-width: 767px) {
    .hero-search-field { border-right: none; border-bottom: 1px solid var(--gray-200); }
    .hero-search-field:last-of-type { border-bottom: none; }
}

.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-top: 48px; max-width: 700px;
}
.hero-stats > div { color: #fff; }
.hero-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--green-light); letter-spacing: -.02em; }
.hero-stat-label { font-size: 13px; opacity: .8; }
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--gray-900); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--gray-600); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.eyebrow {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--green-pale); color: var(--green-dark);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 16px;
}

/* ─── Cards / Tools ─────────────────────────────────────────────────────── */
.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.tool-card {
    display: block; padding: 28px 24px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--gray-200);
    text-decoration: none; color: inherit; transition: .2s;
    height: 100%;
}
.tool-card:hover {
    border-color: var(--green-light); box-shadow: var(--shadow-lg);
    transform: translateY(-3px); color: inherit;
}
.tool-icon-wrap {
    width: 56px; height: 56px; border-radius: var(--radius);
    background: var(--green-pale); display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.tool-icon-wrap img { width: 32px; height: 32px; }
.tool-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--gray-900); }
.tool-card p { margin: 0; font-size: 14px; color: var(--gray-600); line-height: 1.5; }

/* ─── Half-grid feature (image + texte) ─────────────────────────────────── */
.feature-split {
    display: grid; gap: 48px; align-items: center;
}
@media (min-width: 900px) {
    .feature-split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .feature-split.reverse > div:first-child { order: 2; }
}
.feature-img {
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/3; background: var(--green-pale) center/cover;
    box-shadow: var(--shadow-lg);
}
.feature-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; margin-bottom: 16px; }
.feature-content p { color: var(--gray-600); font-size: 1rem; margin-bottom: 16px; line-height: 1.7; }
.feature-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-bullets li {
    display: flex; align-items: flex-start; gap: 12px; padding: 8px 0;
    font-size: 15px; color: var(--gray-700);
}
.feature-bullets li::before {
    content: ''; width: 22px; height: 22px; border-radius: 50%;
    background: var(--green-pale) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%234d9a2a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/14px no-repeat;
    flex-shrink: 0; margin-top: 2px;
}

/* ─── Commitments (engagements) ─────────────────────────────────────────── */
.commitments {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px;
}
.commit-card { text-align: center; padding: 24px 16px; }
.commit-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--green-pale); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.commit-icon img { width: 44px; height: 44px; }
.commit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.commit-card p { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* ─── CTA banner ────────────────────────────────────────────────────────── */
.cta-banner {
    position: relative; padding: 80px 24px; text-align: center;
    border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: var(--cta-img, none) center/cover;
    opacity: .25; mix-blend-mode: overlay;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; opacity: .95; margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ─── Listing cards ─────────────────────────────────────────────────────── */
.listings-row {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 4px 16px; margin: 0 -4px; -webkit-overflow-scrolling: touch;
}
.listings-row::-webkit-scrollbar { height: 6px; }
.listings-row::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
.listings-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}

.listing-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    overflow: hidden; text-decoration: none; color: inherit; transition: .2s;
    scroll-snap-align: start;
}
.listings-row > .listing-card { flex: 0 0 300px; }
.listing-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-3px);
    border-color: var(--green-light); color: inherit;
}
.listing-img {
    aspect-ratio: 4/3; background: var(--gray-100) center/cover;
    position: relative;
}
.listing-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4) 100%);
}
.listing-badges {
    position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2;
}
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; letter-spacing: .03em;
    background: #fff; color: var(--gray-800);
}
.badge-pro { background: var(--gray-900); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-tx {
    position: absolute; bottom: 12px; left: 12px; z-index: 2;
    background: rgba(255,255,255,.95); color: var(--gray-900);
    padding: 5px 12px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.listing-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.listing-price {
    font-size: 1.25rem; font-weight: 800; color: var(--gray-900);
    letter-spacing: -.01em; margin-bottom: 6px;
}
.listing-price small { font-size: 12px; font-weight: 500; color: var(--gray-500); }
.listing-title {
    font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px;
}
.listing-meta {
    display: flex; gap: 12px; font-size: 12px; color: var(--gray-600);
    padding-top: 10px; border-top: 1px solid var(--gray-100); margin-top: auto;
}
.listing-meta span { display: inline-flex; align-items: center; gap: 4px; }
.listing-meta i { color: var(--green); font-size: 11px; }
.listing-loc {
    font-size: 12px; color: var(--gray-500); margin-bottom: 10px;
    display: flex; align-items: center; gap: 4px;
}
.listing-loc i { color: var(--green); font-size: 11px; }

/* ─── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
    align-items: stretch;
}
.price-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 32px 24px; display: flex; flex-direction: column;
    transition: .2s; position: relative;
}
.price-card:hover { box-shadow: var(--shadow); }
.price-card.featured {
    border-color: var(--green); border-width: 2px;
    box-shadow: 0 0 0 4px var(--green-pale);
}
.price-card.featured::before {
    content: 'POPULAIRE'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
    padding: 5px 14px; border-radius: var(--radius-pill); letter-spacing: .1em;
}
.price-name { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.price-amount {
    font-size: 2.4rem; font-weight: 800; color: var(--gray-900);
    margin: 16px 0 4px; letter-spacing: -.02em;
}
.price-amount small { font-size: .85rem; font-weight: 500; color: var(--gray-500); margin-left: 4px; }
.price-features { list-style: none; padding: 0; margin: 20px 0 auto; }
.price-features li {
    padding: 8px 0; font-size: 14px; color: var(--gray-700);
    display: flex; align-items: flex-start; gap: 10px;
}
.price-features li::before {
    content: ''; width: 16px; height: 16px; border-radius: 50%;
    background: var(--green-pale) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="%234d9a2a" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/10px no-repeat;
    flex-shrink: 0; margin-top: 3px;
}

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.label {
    display: block; font-size: 12px; font-weight: 600; color: var(--gray-700);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.input, .select, .textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; background: #fff; transition: .15s;
    color: var(--gray-900);
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-pale);
}
.textarea { min-height: 120px; resize: vertical; }
.card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 28px;
}

/* ─── Recherche : split filtres+résultats / map droite ──────────────────── */
.search-page { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); }
.search-toolbar {
    background: #fff; border-bottom: 1px solid var(--gray-200);
    padding: 12px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.search-toolbar .input,
.search-toolbar .select { padding: 9px 12px; font-size: 13px; }
.search-toolbar .quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1; }
.search-body {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    flex: 1; overflow: hidden;
}
@media (max-width: 1024px) {
    .search-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
    .search-map-pane { display: none; }
    .search-body.show-map { grid-template-rows: 50vh 1fr; }
    .search-body.show-map .search-map-pane { display: block; }
    .search-body.show-map .search-list-pane { display: none; }
}
.search-list-pane {
    overflow-y: auto; padding: 20px; background: var(--gray-50);
}
.search-summary {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200);
}
.search-summary strong { font-size: 16px; color: var(--gray-900); }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.search-results .listing-card { height: 100%; }
.search-map-pane {
    position: relative; background: var(--gray-100);
}
.search-map-pane > div { width: 100%; height: 100%; }
.map-toggle-mobile {
    display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
@media (max-width: 1024px) { .map-toggle-mobile { display: inline-flex; } }

.filter-chip {
    padding: 7px 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500;
    background: var(--gray-100); color: var(--gray-700); border: none; cursor: pointer;
    transition: .15s; font-family: inherit;
}
.filter-chip:hover { background: var(--gray-200); }
.filter-chip.active { background: var(--green); color: #fff; }

/* Popover filters (advanced) */
.filters-pop {
    position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 60;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 20px; width: 340px;
}
.filters-pop-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}

/* ─── Detail annonce ────────────────────────────────────────────────────── */
.detail-page { padding: 32px 0 64px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 32px; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-gallery {
    border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10;
    background: var(--gray-100) center/cover; box-shadow: var(--shadow);
}
.detail-thumbs { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; }
.detail-thumb {
    width: 84px; height: 60px; border-radius: var(--radius-sm); background-size: cover;
    background-position: center; cursor: pointer; border: 2px solid transparent; flex-shrink: 0;
    transition: .15s;
}
.detail-thumb.active { border-color: var(--green); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.spec-item { padding: 14px; border-radius: var(--radius-sm); background: var(--gray-50); }
.spec-item i { color: var(--green); display: block; margin-bottom: 6px; font-size: 16px; }
.spec-label { font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; }
.spec-value { font-weight: 700; font-size: 15px; color: var(--gray-900); }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: rgba(255,255,255,.85); padding: 64px 0 24px; }
.footer-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
    max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer .logo { color: var(--green); }
.footer .logo span { color: #fff; }
.footer a {
    display: block; color: rgba(255,255,255,.7); text-decoration: none;
    font-size: 14px; padding: 5px 0; transition: .15s;
}
.footer a:hover { color: var(--green-light); }
.footer-tag { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; margin-top: 12px; }
.footer-bottom {
    max-width: var(--container); margin: 48px auto 0;
    padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 12px;
}

/* ─── Toast / skeletons / empty ─────────────────────────────────────────── */
.toast {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    padding: 14px 22px; border-radius: var(--radius-sm); color: #fff; font-weight: 500;
    box-shadow: var(--shadow-lg);
}
.toast-success { background: var(--green-dark); }
.toast-error { background: #c62828; }
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius);
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { text-align: center; padding: 64px 16px; color: var(--gray-600); }
.empty i { font-size: 2.5rem; opacity: .3; margin-bottom: 16px; display: block; color: var(--gray-400); }

/* ─── Publish stepper ───────────────────────────────────────────────────── */
.steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.step {
    padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
    background: var(--gray-100); color: var(--gray-600);
}
.step.active { background: var(--green); color: #fff; }
.step.done { background: var(--green-pale); color: var(--green-dark); }

/* Map popup customisé */
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 4px; }
.leaflet-popup-content { margin: 8px 12px; font-family: var(--font); font-size: 13px; }
.leaflet-popup-tip { display: none; }

/* Pill / tag */
.pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-pill);
    background: var(--green-pale); color: var(--green-dark);
    font-size: 12px; font-weight: 600;
}

/* Narrow page wrapper */
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ─── Phases roadmap ────────────────────────────────────────────────────── */
.phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.phase {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 28px 24px; transition: .2s;
}
.phase:hover { box-shadow: var(--shadow); border-color: var(--green-light); }
.phase-num {
    display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill);
    background: var(--green); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; margin-bottom: 14px;
}
.phase h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.phase ul { margin: 0; padding-left: 20px; color: var(--gray-600); font-size: 14px; line-height: 1.7; }

/* Logo image style */
.partner-logo { font-size: 1.5rem; font-weight: 800; color: var(--green); letter-spacing: -.02em; }
