/* =========================================================================
   BienImmobilier.ch - v2 (design test, style éditorial)
   Bricolage Grotesque (display) + Inter (texte) · accent vert BienImmo
   ========================================================================= */

:root {
    --ink: #14171c;
    --ink-2: #232830;
    --paper: #ffffff;
    --cream: #f5f4ef;
    --cream-2: #efeee7;
    --line: #e6e5df;
    --line-dark: rgba(255, 255, 255, .14);

    --green: #6cbf3b;
    --green-dark: #4d9a2a;
    --green-deep: #37711c;
    --green-pale: #eaf6dc;
    --green-bg: #f4faee;

    --muted: #6b7480;
    --muted-2: #8b939c;

    --maxw: 1200px;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 26px;
    --shadow-sm: 0 2px 10px rgba(20, 23, 28, .05);
    --shadow: 0 14px 40px rgba(20, 23, 28, .10);
    --shadow-lg: 0 30px 70px rgba(20, 23, 28, .16);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --display: 'Bricolage Grotesque', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green-pale); color: var(--ink); }

.display {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.02;
}
.display em { font-style: italic; color: var(--green-dark); font-weight: 700; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 15px; cursor: pointer;
    border: 1.5px solid transparent; transition: .2s ease;
    white-space: nowrap;
}
.btn-p { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(108, 191, 59, .32); }
.btn-p:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(108, 191, 59, .4); }
.btn-g { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-g:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn.full { width: 100%; justify-content: center; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.brand span { color: var(--green-dark); }
.main-nav { display: none; gap: 4px; margin-left: 8px; }
.main-nav a {
    padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
    color: var(--ink-2); transition: .15s;
}
.main-nav a:hover { background: var(--cream); color: var(--ink); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; font-size: 14px; }
.burger { margin-left: auto; display: inline-flex; background: none; border: none; color: var(--ink); font-size: 1.5rem; cursor: pointer; }
@media (min-width: 940px) {
    .main-nav { display: flex; }
    .burger { display: none; }
    .header-cta { margin-left: 0; }
    .main-nav { margin-right: auto; }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 55%; height: 140%;
    background: radial-gradient(circle at 60% 40%, rgba(108, 191, 59, .16), transparent 62%);
    pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
    font-size: 13px; font-weight: 600; color: var(--green-deep);
    box-shadow: var(--shadow-sm);
}
.hero-copy h1.display { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 20px 0 18px; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 540px; line-height: 1.62; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-badges .ico { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }
.hero-media { position: relative; }
.hero-media img {
    width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    object-fit: cover; aspect-ratio: 5 / 5.2;
}
.hero-float {
    position: absolute; left: -14px; bottom: 26px;
    background: #fff; border-radius: var(--radius-sm); padding: 14px 18px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.hero-float b { font-family: var(--display); font-size: 1.35rem; display: block; }
.hero-float small { color: var(--muted); font-size: 12.5px; }
.hero-float .dot { width: 42px; height: 42px; border-radius: 12px; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.scrollhint { text-align: center; font-size: 13px; color: var(--muted-2); padding-bottom: 22px; letter-spacing: .05em; }
@media (min-width: 940px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .hero-inner { padding: 80px 24px 90px; }
}

/* ─── Stats ──────────────────────────────────────────────────────────── */
.stats {
    background: var(--ink); color: #fff;
    display: grid; grid-template-columns: repeat(2, 1fr);
}
.stats .stat { padding: 34px 22px; text-align: center; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats .stat b { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; display: block; }
.stats .stat span { color: rgba(255, 255, 255, .6); font-size: 13.5px; letter-spacing: .02em; }
@media (min-width: 780px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stats .stat { border-bottom: none; }
    .stats .stat:last-child { border-right: none; }
}

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--cream); }
.sec-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.tag {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--green-pale); color: var(--green-deep);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag.dark { background: rgba(255, 255, 255, .12); color: var(--green); }
.sec-head h2.display { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 16px 0 12px; }
.sec-sub { color: var(--muted); font-size: 1.08rem; }

/* ─── Services grid ──────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.svc {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; transition: .22s ease; position: relative; overflow: hidden;
}
.svc::after {
    content: '→'; position: absolute; top: 24px; right: 24px; font-size: 1.1rem;
    color: var(--green); opacity: 0; transform: translateX(-6px); transition: .22s;
}
.svc:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.svc:hover::after { opacity: 1; transform: translateX(0); }
.svc .i { width: 52px; height: 52px; border-radius: 14px; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc .i .ico { width: 24px; height: 24px; }
.svc h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ─── Process steps ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding-top: 8px; }
.step .num { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--green); opacity: .5; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ─── Publier / CTA split ────────────────────────────────────────────── */
.split { background: var(--ink); color: #fff; }
.split-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 76px 0; }
.split-intro h2.display { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 16px 0 16px; color: #fff; }
.split-intro p { color: rgba(255, 255, 255, .68); font-size: 1.05rem; line-height: 1.65; max-width: 500px; }
.split-list { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.split-list li { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.split-list .ico { color: var(--green); stroke-width: 2.4; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }

/* ─── Why grid ───────────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.why { display: flex; gap: 16px; align-items: flex-start; }
.why .i { width: 46px; height: 46px; border-radius: 12px; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 5px; }
.why p { color: var(--muted); font-size: 14.5px; line-height: 1.58; }

/* ─── Reviews ────────────────────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.section.alt .review { background: var(--paper); }
.stars { display: flex; gap: 3px; color: #f5a623; margin-bottom: 16px; }
.stars .ico { width: 18px; height: 18px; fill: #f5a623; stroke: #f5a623; }
.review blockquote { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--ink); }

/* ─── Zones ──────────────────────────────────────────────────────────── */
.zones { background: var(--green-deep); color: #fff; padding: 76px 0; text-align: center; }
.zones h2.display { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 16px auto 30px; color: #fff; max-width: 720px; }
.zones .tag.dark { background: rgba(255, 255, 255, .16); color: #fff; }
.zones-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 820px; margin: 0 auto; }
.zones-list span {
    padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18); font-size: 14.5px; font-weight: 500;
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 4px 22px; transition: .2s;
}
.section.alt .faq details { background: var(--paper); }
.faq summary {
    list-style: none; cursor: pointer; font-weight: 600; font-size: 1.02rem;
    padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--green-dark); font-weight: 400; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15px; line-height: 1.65; }

/* ─── Contact ────────────────────────────────────────────────────────── */
.contact { background: var(--cream); padding: 88px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.contact-intro h2.display { font-size: clamp(2rem, 4.6vw, 3rem); margin: 16px 0 16px; }
.contact-intro p { color: var(--muted); font-size: 1.05rem; max-width: 440px; line-height: 1.6; }
.contact-info { display: grid; gap: 14px; margin-top: 26px; }
.contact-info a, .contact-info span { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.contact-info .ico { color: var(--green-dark); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--cream); transition: .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.contact-form textarea { margin-bottom: 16px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
@media (max-width: 520px) { .contact-form .row2 { grid-template-columns: 1fr; } }

/* =========================================================================
   RECHERCHE + DÉTAIL (mini-SPA v2)
   ========================================================================= */

/* ─── Barre de filtres ────────────────────────────────────────────────── */
.v2-search-bar {
    position: sticky; top: 72px; z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.v2-sf-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 24px; }
.v2-sf-search {
    display: flex; align-items: center; gap: 9px; flex: 1 1 220px; min-width: 200px;
    background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px;
}
.v2-sf-search .ico { color: var(--muted); width: 18px; height: 18px; }
.v2-sf-search:focus-within { border-color: var(--green); background: #fff; }
.v2-sf-input { border: none; background: none; font-family: var(--font); font-size: 14.5px; color: var(--ink); padding: 12px 0; width: 100%; outline: none; }
.v2-sf-input.mini { width: 108px; flex: 0 0 auto; background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; }
.v2-sf-input.mini:focus { border-color: var(--green); background: #fff; }
.v2-sf-chips { display: flex; gap: 8px; }
.v2-chip {
    padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-2);
    cursor: pointer; transition: .15s; white-space: nowrap;
}
.v2-chip:hover { border-color: var(--green); color: var(--green-deep); }
.v2-chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.v2-sf-select {
    padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    background: #fff; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--ink-2);
    cursor: pointer; transition: .15s;
}
.v2-sf-select:focus { outline: none; border-color: var(--green); }

/* ─── Corps recherche ─────────────────────────────────────────────────── */
.v2-search-body { display: grid; grid-template-columns: 1fr; gap: 0; }
.v2-search-list { padding: 24px; }
.v2-search-map { display: none; }
.v2-search-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; font-size: 15px; }
.v2-search-summary strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.v2-search-sub { color: var(--muted); font-size: 14px; }
.v2-search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.v2-search-more { text-align: center; margin-top: 30px; }
@media (min-width: 1000px) {
    .v2-search-body { grid-template-columns: 1.15fr .85fr; }
    .v2-search-map { display: block; position: sticky; top: 145px; height: calc(100vh - 145px); }
    .v2-search-results { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
.v2-map-canvas { width: 100%; height: 100%; min-height: 420px; }
.leaflet-div-icon { background: transparent !important; border: none !important; }
.v2-map-toggle { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; box-shadow: var(--shadow); }
@media (min-width: 1000px) { .v2-map-toggle { display: none; } }
.v2-search-body.show-map .v2-search-list { display: none; }
.v2-search-body.show-map .v2-search-map { display: block; height: calc(100vh - 145px); }

/* ─── Cartes annonce ──────────────────────────────────────────────────── */
.v2-card {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: .22s ease; color: inherit;
}
.v2-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.v2-card-img { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; overflow: hidden; }
.v2-card-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .35s ease; }
.v2-card-slide.active { opacity: 1; }
.v2-card-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: #14171c; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; opacity: 0; transition: opacity .18s, background .18s; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.v2-card:hover .v2-card-nav { opacity: 1; }
.v2-card-nav .ico { width: 16px; height: 16px; }
.v2-card-nav.prev { left: 8px; }
.v2-card-nav.next { right: 8px; }
.v2-card-nav.next .ico { transform: rotate(180deg); }
.v2-card-nav:hover { background: #fff; }
.v2-card-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.v2-card-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.v2-card-dot.on { background: #fff; width: 16px; border-radius: 3px; }
@media (hover: none) { .v2-card-nav { display: none; } }
.v2-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.v2-badge { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--ink); }
.v2-badge.pro { background: var(--green-deep); }
.v2-badge.feat { background: #f5a623; color: var(--ink); }
.v2-card-tx { position: absolute; bottom: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12px; font-weight: 700; color: var(--ink); }
.v2-card-body { padding: 16px 18px 18px; }
.v2-card-price { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--green-deep); }
.v2-card-price small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); }
.v2-card-title { font-weight: 600; font-size: 15px; margin: 4px 0 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-card-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.v2-card-loc .ico { width: 15px; height: 15px; color: var(--green); }
.v2-card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.v2-card-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.v2-card-meta .ico { width: 16px; height: 16px; color: var(--muted); }

/* ─── Skeleton / empty ────────────────────────────────────────────────── */
.v2-skel { border-radius: var(--radius); background: linear-gradient(100deg, var(--cream) 30%, var(--cream-2) 50%, var(--cream) 70%); background-size: 200% 100%; animation: v2sh 1.3s infinite; min-height: 300px; }
@keyframes v2sh { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.v2-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }
.v2-empty .ico { width: 40px; height: 40px; color: var(--line); margin: 0 auto 14px; display: block; }

/* ─── Détail ──────────────────────────────────────────────────────────── */
.v2-detail { padding: 32px 24px 80px; }
.v2-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 20px; }
.v2-back:hover { color: var(--green-deep); }
.v2-back .ico { width: 18px; height: 18px; }
.v2-detail-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 940px) { .v2-detail-grid { grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: start; } }
.v2-gallery { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.v2-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.v2-thumb { width: 84px; height: 62px; border-radius: 10px; background-size: cover; background-position: center; cursor: pointer; border: 2px solid transparent; opacity: .75; transition: .15s; }
.v2-thumb:hover, .v2-thumb.active { opacity: 1; border-color: var(--green); }
.v2-detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-top: 24px; }
.v2-detail-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.v2-pill { padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.v2-pill.green { background: var(--green-pale); border-color: transparent; color: var(--green-deep); }
.v2-detail-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 12px; }
.v2-detail-price { font-family: var(--display); font-size: 2.1rem; font-weight: 800; color: var(--green-deep); margin-bottom: 24px; }
.v2-detail-price small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.v2-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin-bottom: 28px; }
.v2-spec { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 14px; text-align: center; }
.v2-spec-ico { width: 22px; height: 22px; color: var(--green-dark); margin: 0 auto 8px; display: block; }
.v2-spec-val { font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.v2-spec-lbl { font-size: 12.5px; color: var(--muted); }
.v2-detail-h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.v2-detail-desc { color: var(--ink-2); line-height: 1.75; white-space: pre-line; }
.v2-detail-map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.v2-detail-map .v2-map-canvas { height: 320px; min-height: 320px; }

/* ─── Carte contact (aside) ───────────────────────────────────────────── */
.v2-detail-aside { position: static; }
@media (min-width: 940px) { .v2-detail-aside { position: sticky; top: 96px; } }
.v2-contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.v2-contact-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.v2-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; flex-shrink: 0; }
.v2-contact-name { font-weight: 700; }
.v2-contact-role { font-size: 13px; color: var(--muted); }
.v2-contact-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.v2-contact-loc .ico { width: 17px; height: 17px; color: var(--green); }
.v2-contact-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand .brand { color: #fff; font-size: 1.6rem; }
.footer-brand .brand span { color: var(--green); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; transition: .15s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: var(--muted-2); }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; } }

/* ═══════════ v2 : ajouts version complète ═══════════ */
/* btn-ghost (icône favoris header) */
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 12px 14px; position: relative; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-ghost .ico { width: 20px; height: 20px; }
.fav-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Coeur favori sur les cartes */
.v2-fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #8a929b; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: .15s; z-index: 2; }
.v2-fav .ico { width: 18px; height: 18px; }
.v2-fav:hover { transform: scale(1.1); color: #e0556b; }
.v2-fav.on { color: #e0556b; }
.v2-fav.on .ico { fill: #e0556b; }
.v2-fav-line.on { border-color: #e0556b; color: #e0556b; }
.v2-fav-line.on .ico { fill: #e0556b; }

/* Bouton + compteur recherche : bandeau alerte */
.v2-search-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v2-search-count { display: flex; flex-direction: column; }
.v2-alert-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--green-pale); color: var(--green-deep); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .15s; }
.v2-alert-btn .ico { width: 16px; height: 16px; }
.v2-alert-btn:hover { background: var(--green); color: #fff; }

/* Modal alerte */
.v2-modal { position: fixed; inset: 0; background: rgba(20,23,28,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.v2-modal-card { background: #fff; border-radius: 20px; max-width: 420px; width: 100%; padding: 32px 28px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.v2-modal-x { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.v2-modal-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.v2-modal-ico .ico { width: 26px; height: 26px; }
.v2-modal-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 800; }
.v2-modal-sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; line-height: 1.5; }
.v2-modal-form label { display: block; font-size: 13px; font-weight: 600; margin: 4px 0 7px; }
.v2-modal-form .v2-sf-input { width: 100%; margin-bottom: 14px; }
.v2-modal-crit { background: var(--green-pale); color: var(--green-deep); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.v2-modal-msg { font-size: 13px; margin-top: 10px; min-height: 16px; }
.v2-modal-msg.err { color: #d14343; }
.v2-modal-msg.ok { color: var(--green-deep); }
.v2-modal-done { text-align: center; padding: 10px 0; }
.v2-modal-done .ico { width: 40px; height: 40px; color: var(--green); }
.v2-modal-done p { margin-top: 8px; font-weight: 600; }

/* Similaires */
.v2-similar { margin: 40px auto 0; }
.v2-similar-h2 { font-family: var(--display); font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.v2-similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }

/* Estimateur */
.v2-est-hero { background: linear-gradient(135deg, var(--ink), #23282e); color: #fff; padding: 56px 0 44px; text-align: center; }
.v2-est-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(108,191,59,.2); color: #a7dd7c; font-size: 13px; font-weight: 700; }
.v2-est-kicker .ico { width: 16px; height: 16px; }
.v2-est-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 16px 0 12px; }
.v2-est-hero p { color: rgba(255,255,255,.72); max-width: 540px; margin: 0 auto; line-height: 1.6; }
.v2-est-body { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 44px 0 72px; }
@media (min-width: 860px) { .v2-est-body { grid-template-columns: 1fr 1fr; align-items: start; } }
.v2-est-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.06)); }
.v2-est-toggle { display: flex; gap: 8px; background: var(--green-pale); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.v2-tog { flex: 1; padding: 11px; border: none; background: none; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--green-deep); cursor: pointer; transition: .18s; }
.v2-tog.active { background: var(--green); color: #fff; }
.v2-est-form label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 7px; }
.v2-est-form .v2-sf-select, .v2-est-form .v2-sf-input { width: 100%; margin-bottom: 18px; }
.v2-est-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v2-est-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.v2-est-result { position: sticky; top: 90px; }
.v2-est-placeholder { background: #fff; border: 1px dashed var(--line); border-radius: 20px; padding: 48px 28px; text-align: center; color: var(--muted); }
.v2-est-placeholder .ico { width: 34px; height: 34px; color: #c7ccd1; margin-bottom: 12px; }
.v2-est-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.06)); }
.v2-est-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.v2-est-value { font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--green-deep); line-height: 1.1; margin: 6px 0 10px; }
.v2-est-value small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.v2-est-range { font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.v2-est-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.v2-est-badge { padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.v2-est-badge.high { background: var(--green-pale); color: var(--green-deep); }
.v2-est-badge.medium { background: #fff3d6; color: #a06a00; }
.v2-est-badge.low { background: #f1f3f5; color: var(--muted); }
.v2-est-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.v2-est-disclaimer { font-size: 11.5px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; }

/* Favoris page */
.v2-fav-page { padding: 40px 0 72px; }
.v2-fav-page > h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 24px; }
.v2-empty .btn { margin-top: 16px; }

/* Badge "bon plan" sur cartes */
.v2-badge.deal { background: #e0556b; display: inline-flex; align-items: center; gap: 4px; }
.v2-badge.deal .ico { width: 13px; height: 13px; }

/* Actions recherche (enregistrer + alerte) */
.v2-search-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-save-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: .15s; }
.v2-save-btn .ico { width: 16px; height: 16px; }
.v2-save-btn:hover { border-color: var(--green); color: var(--green-deep); }
.v2-save-btn.on { border-color: var(--green); background: var(--green-pale); color: var(--green-deep); }
.v2-save-btn.on .ico { fill: var(--green); }

/* Chips recherches récentes */
.v2-recent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.v2-recent-lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.v2-recent-lbl .ico { width: 14px; height: 14px; }
.v2-recent-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink); transition: .15s; }
.v2-recent-chip:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-pale); }

/* Position prix (détail) */
.v2-detail-pos { margin: -12px 0 20px; }
.v2-pos { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; }
.v2-pos .ico { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; }
.v2-pos small { font-weight: 500; font-size: 12.5px; opacity: .85; }
.v2-pos.deal { background: #eafbe8; color: #2f8f2a; }
.v2-pos.fair { background: #f1f3f5; color: var(--muted); }
.v2-pos.high { background: #fff3d6; color: #a06a00; }

/* Carte des prix (heatmap) */
.v2-pricemap-body { padding: 30px 0 72px; }
.v2-pricemap-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.v2-pricemap-controls .v2-sf-select { max-width: 220px; }
.v2-pricemap-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .v2-pricemap-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.v2-pricemap-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.v2-pricemap-map .v2-map-canvas { height: 460px; }
.v2-pricemap-list { display: flex; flex-direction: column; gap: 6px; }
.v2-pricemap-overall { background: var(--green-pale); color: var(--green-deep); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 8px; }
.v2-pricemap-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; transition: .12s; }
.v2-pricemap-row:hover { background: var(--green-bg); }
.v2-pmr-ct { font-weight: 600; font-size: 14px; }
.v2-pmr-bar { height: 8px; background: #eef0f2; border-radius: 999px; overflow: hidden; }
.v2-pmr-fill { display: block; height: 100%; border-radius: 999px; }
.v2-pmr-val { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }

/* Home application */
.v2-apphero { background: linear-gradient(160deg, var(--green-bg), #fff 70%); padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.v2-apphero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 14px 0 10px; }
.v2-apphero-lede { color: var(--muted); font-size: 16px; max-width: 560px; line-height: 1.6; }
.v2-apphero-search { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); max-width: 820px; }
.v2-apphero-search .v2-sf-chips { margin-bottom: 12px; }
.v2-apphero-row { display: flex; flex-wrap: wrap; gap: 10px; }
.v2-apphero-row .v2-sf-search { flex: 1 1 240px; }
.v2-apphero-row .v2-sf-select { flex: 0 0 auto; }
.v2-apphero-row .btn { flex: 0 0 auto; }
.v2-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; max-width: 820px; }
@media (min-width: 720px) { .v2-quick { grid-template-columns: repeat(4, 1fr); } }
.v2-quick-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: .15s; }
.v2-quick-tile:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.v2-quick-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--green-pale); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-quick-ico .ico { width: 20px; height: 20px; }
.v2-quick-txt { display: flex; flex-direction: column; line-height: 1.2; }
.v2-quick-txt b { font-size: 15px; }
.v2-quick-txt small { color: var(--muted); font-size: 12px; }
/* Home split hero : recherche (gauche) + slideshow annonces (droite) */
.v2-hh { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 960px) { .v2-hh { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.v2-hh-left .v2-apphero-search, .v2-hh-left .v2-quick { max-width: none; }
.v2-hh-right { min-height: 420px; }
@media (min-width: 960px) { .v2-hh-right { height: 100%; min-height: 480px; } }
.v2-hh-card { position: relative; display: block; height: 100%; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); animation: hhFade .6s ease; }
@keyframes hhFade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.v2-hh-right .v2-story { aspect-ratio: auto; height: 100%; min-height: 420px; max-height: none; border-radius: 20px; }
.v2-hh-tag { position: absolute; top: 14px; left: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 23, 28, .55); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.v2-hh-tag .ico { width: 14px; height: 14px; }
.v2-hh-cta { position: absolute; bottom: 16px; right: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: .15s; }
.v2-hh-card:hover .v2-hh-cta { background: var(--green-deep); transform: translateY(-1px); }
.v2-hh-cta .ico { width: 15px; height: 15px; }
.v2-home-listings { padding: 44px 0 20px; }
.v2-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.v2-home-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.v2-home-all { color: var(--green-deep); font-weight: 600; font-size: 14.5px; }
.v2-home-all:hover { text-decoration: underline; }
.v2-home-cta { margin: 40px 0 0; }
.v2-home-cta .wrap { background: var(--ink); color: #fff; border-radius: 22px; padding: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.v2-home-cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.v2-home-cta p { color: rgba(255,255,255,.72); margin-top: 8px; max-width: 440px; }
.v2-home-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.v2-home-cta .btn-g { color: #fff; border-color: rgba(255,255,255,.3); }
.v2-home-cta .btn-g:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Mes recherches */
.v2-ss { padding: 40px 0 72px; }
.v2-ss > h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 24px; }
.v2-ss-section { margin-bottom: 32px; }
.v2-ss-h2 { font-family: var(--display); font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.v2-ss-empty { color: var(--muted); font-size: 14px; }
.v2-ss-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.v2-ss-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); flex: 1; min-width: 0; }
.v2-ss-link .ico { width: 18px; height: 18px; color: var(--green-deep); flex-shrink: 0; }
.v2-ss-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-ss-link:hover { color: var(--green-deep); }
.v2-ss-actions { display: flex; gap: 6px; flex-shrink: 0; }
.v2-ss-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; transition: .15s; }
.v2-ss-btn .ico { width: 17px; height: 17px; }
.v2-ss-btn:hover { border-color: var(--green); color: var(--green-deep); }
.v2-ss-btn.del:hover { border-color: #e0556b; color: #e0556b; }

/* ═══════════ Diaporama "story" (détail annonce) ═══════════ */
.v2-story { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 520px; border-radius: 18px; overflow: hidden; background: #14171c; box-shadow: var(--shadow); }
.v2-story-track { position: absolute; inset: 0; }
.v2-story-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; will-change: transform, opacity; }
.v2-story-slide.active { opacity: 1; }
.v2-story.no-anim .v2-story-slide { transition: none; }
.v2-story-slide.active.kb-a { animation: kb-a 6.5s ease-out both; }
.v2-story-slide.active.kb-b { animation: kb-b 6.5s ease-out both; }
.v2-story.paused .v2-story-slide.active { animation-play-state: paused; }
@keyframes kb-a { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.14) translate(-2%,-2%); } }
@keyframes kb-b { from { transform: scale(1.14) translate(2%,1%); } to { transform: scale(1.02) translate(0,0); } }

.v2-story-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 42%, rgba(0,0,0,.78) 100%); pointer-events: none; }

.v2-story-bars { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 6px; z-index: 3; }
.v2-story-bar { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.32); cursor: pointer; overflow: hidden; }
.v2-story-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 999px; }
.v2-story-bar.done i { width: 100%; }
.v2-story-bar.active i { animation: storybar 4.6s linear forwards; }
.v2-story.paused .v2-story-bar.active i { animation-play-state: paused; }
.v2-story.no-anim .v2-story-bar.active i { width: 100%; animation: none; }
@keyframes storybar { from { width: 0; } to { width: 100%; } }

.v2-story-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; z-index: 2; color: #fff; }
.v2-story-cap-title { font-family: var(--display); font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 10px; text-shadow: 0 2px 18px rgba(0,0,0,.5); max-width: 80%; }
.v2-story-cap-kicker { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #a7dd7c; margin-bottom: 4px; }
.v2-story-cap-big { font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 800; line-height: 1; text-shadow: 0 2px 20px rgba(0,0,0,.55); }
.v2-story-cap-big small { font-size: .42em; font-weight: 500; opacity: .85; }
.v2-story-cap-kicker .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }

/* Slide "Points clés" (extraction IA) */
.v2-story-hl { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 88%; }
.v2-story-hl li { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.8vw, 1.6rem); line-height: 1.15; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.55); opacity: 0; transform: translateY(16px); animation: fxUp .55s cubic-bezier(.2,.7,.2,1) both; }
.v2-story.no-anim .v2-story-hl li { opacity: 1; transform: none; animation: none; }
.v2-story-hl .ico { width: 26px; height: 26px; flex-shrink: 0; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.35); }

/* Effets d'entrée (façon slide PowerPoint) */
.v2-story-cap-inner { animation-duration: .7s; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-fill-mode: both; }
.v2-story.no-anim .v2-story-cap-inner { animation: none !important; }
.fx-up { animation-name: fxUp; }
.fx-right { animation-name: fxRight; }
.fx-left { animation-name: fxLeft; }
.fx-zoom { animation-name: fxZoom; }
.fx-fade { animation-name: fxFade; }
@keyframes fxUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes fxRight { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fxLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes fxZoom { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }

.v2-story-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: #14171c; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; opacity: 0; transition: .2s; }
.v2-story:hover .v2-story-nav { opacity: 1; }
.v2-story-nav .ico { width: 20px; height: 20px; }
.v2-story-nav.prev { left: 14px; }
.v2-story-nav.next { right: 14px; }
.v2-story-nav.next .ico { transform: rotate(180deg); }
.v2-story-nav:hover { background: #fff; }
.v2-story-pp { position: absolute; top: 26px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }
.v2-story-pp .ico { width: 16px; height: 16px; }
.v2-story-pp:hover { background: rgba(0,0,0,.65); }
@media (max-width: 640px) { .v2-story { aspect-ratio: 4 / 3; } .v2-story-caption { padding: 20px; } }

/* ═══════════ Typeform publication (/publier) ═══════════ */
.tf { min-height: calc(100vh - 72px); background: linear-gradient(180deg, var(--green-bg), var(--paper) 55%); display: flex; align-items: flex-start; }
.tf-wrap { position: relative; width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(28px, 6vh, 72px) 20px 60px; }
.tf-exit { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; transition: .15s; }
.tf-exit:hover { border-color: var(--ink); color: var(--ink); }
.tf-head { margin-bottom: 26px; }
.tf-step { font-size: 13px; font-weight: 600; color: var(--green-deep); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.tf-bar { height: 5px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.tf-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.tf-card { animation: fxUp .45s cubic-bezier(.2,.7,.2,1) both; }
.tf-body { }
.tf-q { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 4.4vw, 2.3rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 10px; }
.tf-q em { font-style: italic; color: var(--green-deep); }
.tf-help { color: var(--muted); font-size: 15px; margin-bottom: 24px; max-width: 540px; }
.tf-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.tf-row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.tf-lbl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tf-lbl .ico { width: 17px; height: 17px; color: var(--green-deep); }
.tf-input { width: 100%; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font); font-size: 16px; color: var(--ink); background: #fff; transition: .15s; }
.tf-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-pale); }
.tf-input-lg { font-size: 20px; padding: 18px 18px; }
.tf-textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
select.tf-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; cursor: pointer; }
.tf-price { display: flex; align-items: center; gap: 10px; }
.tf-price .tf-input { flex: 1; }
.tf-suffix { font-weight: 700; color: var(--muted); font-size: 15px; white-space: nowrap; }
.tf-check { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; padding: 6px 0; }
.tf-check input { width: 18px; height: 18px; accent-color: var(--green); }
.tf-check .ico { width: 18px; height: 18px; color: #25d366; }
.tf-legal { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }

/* Choix (transaction, type) */
.tf-choices { display: grid; gap: 12px; margin-bottom: 6px; }
.tf-choices-2 { grid-template-columns: 1fr 1fr; }
.tf-choices-grid { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.tf-choice { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; transition: .15s; }
.tf-choice:hover { border-color: var(--green); background: var(--green-bg); transform: translateY(-1px); }
.tf-choice.active { border-color: var(--green); background: var(--green-pale); box-shadow: 0 0 0 3px var(--green-pale); }
.tf-choice-lg { flex-direction: column; align-items: center; gap: 10px; padding: 30px 18px; font-size: 18px; }
.tf-choice-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--green-bg); color: var(--green-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tf-choice-ico .ico { width: 21px; height: 21px; }
.tf-choice-lg .tf-choice-ico { width: 52px; height: 52px; }

/* Photos */
.tf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.tf-photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tf-photo img { width: 100%; height: 100%; object-fit: cover; }
.tf-photo.primary { outline: 2px solid var(--green); outline-offset: -2px; }
.tf-photo-badge { position: absolute; left: 6px; bottom: 6px; background: var(--green-deep); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.tf-photo-rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.tf-photo-rm:hover { background: #e0556b; }
.tf-photo-add { aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--cream); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; transition: .15s; }
.tf-photo-add:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-bg); }
.tf-photo-add .ico { width: 24px; height: 24px; }

/* Actions / navigation */
.tf-err { color: #c23a52; font-size: 14px; font-weight: 500; margin-top: 12px; }
.tf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.tf-cont { font-size: 16px; padding: 13px 26px; }
.tf-cont .ico { width: 18px; height: 18px; margin-left: 4px; }
.tf-skip { background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tf-skip:hover { color: var(--ink); }
.tf-hint { font-size: 13px; color: var(--muted-2); }
.tf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.tf-back { background: none; border: none; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.tf-back .ico { width: 16px; height: 16px; }
.tf-back:hover { color: var(--ink); }
.tf-brand { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--muted-2); }

/* Écran de fin / confirmation */
.tf-done { text-align: center; padding: clamp(30px, 8vh, 80px) 10px; animation: fxUp .5s cubic-bezier(.2,.7,.2,1) both; }
.tf-done-ico { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green-pale); color: var(--green-deep); margin-bottom: 20px; }
.tf-done-ico .ico { width: 34px; height: 34px; }
.tf-done-ico.err { background: #fbe3e7; color: #c23a52; font-size: 34px; font-weight: 800; }
.tf-done .tf-q { margin-bottom: 12px; }
.tf-done .tf-help { margin: 0 auto 6px; }
.tf-done-mail { font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 14px; }
.tf-done .tf-actions { justify-content: center; }

@media (max-width: 560px) {
    .tf-row2 { grid-template-columns: 1fr; }
    .tf-choices-2 { grid-template-columns: 1fr; }
    .tf-foot { margin-top: 26px; }
}

/* ── Mode plein écran split 50/50 (publication) ── */
body.tf-mode .site-header,
body.tf-mode .site-footer { display: none !important; }
body.tf-mode #app-view { min-height: 100vh; }

.tf-split { display: flex; min-height: 100vh; height: 100vh; align-items: stretch; background: var(--paper); }
.tf-logo { position: fixed; top: 22px; left: 26px; z-index: 20; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.tf-logo span { color: var(--green-deep); }
.tf-logo::before { content: '←'; margin-right: 8px; font-size: 16px; opacity: 0; transition: .18s; }
.tf-logo:hover::before { opacity: 1; margin-right: 8px; }

.tf-split .tf-left { width: 50%; height: 100vh; overflow-y: auto; display: flex; align-items: center; background: var(--paper); }
.tf-split .tf-wrap { max-width: 560px; width: 100%; margin: 0 auto; padding: 92px 44px 56px; }
.tf-split .tf-card { min-height: auto; }

.tf-right { width: 50%; height: 100vh; position: sticky; top: 0; background: linear-gradient(160deg, var(--green-bg), var(--cream)); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
.tf-preview { width: 100%; max-width: 420px; }
.tf-preview-lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-deep); margin-bottom: 14px; }
.tf-preview-lbl .ico { width: 15px; height: 15px; }

.tf-pv-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tf-pv-media { position: relative; aspect-ratio: 3 / 2; background: var(--cream-2); }
.tf-pv-media img { width: 100%; height: 100%; object-fit: cover; }
.tf-pv-media.empty { display: flex; align-items: center; justify-content: center; }
.tf-pv-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.tf-pv-ph .ico { width: 30px; height: 30px; }
.tf-pv-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tf-pv-badge { background: rgba(20,23,28,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.tf-pv-badge.alt { background: rgba(255,255,255,.92); color: var(--ink); }
.tf-pv-body { padding: 18px 20px 22px; }
.tf-pv-price { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.tf-pv-title { font-size: 1.05rem; font-weight: 700; margin: 6px 0 8px; line-height: 1.25; color: var(--ink); }
.tf-pv-loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; }
.tf-pv-loc .ico { width: 16px; height: 16px; color: var(--green-deep); }
.tf-pv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tf-pv-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tf-pv-chip .ico { width: 15px; height: 15px; color: var(--green-deep); }
.tf-pv-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tf-pv-contact { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.tf-pv-contact .ico { width: 17px; height: 17px; color: var(--green-deep); }
.tf-pv-phone { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }

@media (max-width: 900px) {
    .tf-split { flex-direction: column; height: auto; min-height: 100vh; }
    .tf-split .tf-left { width: 100%; height: auto; overflow: visible; order: 2; }
    .tf-split .tf-wrap { padding: 40px 22px 48px; }
    .tf-right { width: 100%; height: auto; position: static; order: 1; padding: 74px 22px 26px; border-left: none; border-bottom: 1px solid var(--line); }
    .tf-preview { max-width: 460px; }
    .tf-pv-desc { -webkit-line-clamp: 2; }
}
