:root {
    --ink: #121812;
    --ink-2: #243024;
    --muted: #5f6b5c;
    --line: rgba(26, 46, 20, .12);
    --paper: #f7f9f4;
    --panel: #ffffff;
    --green: #6cbf3b;
    --green-dark: #4d9a2a;
    --green-deep: #2f5a1a;
    --green-pale: #e4f3d4;
    --warn: #b86b14;
    --font: "DM Sans", system-ui, sans-serif;
    --display: "Bricolage Grotesque", "DM Sans", sans-serif;
    --max: 1120px;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(18, 24, 18, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--green-pale); color: var(--ink); }

.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.display {
    font-family: var(--display);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.02;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(247, 249, 244, .82);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background .2s, color .2s;
}
.nav.scrolled { border-color: var(--line); background: rgba(247, 249, 244, .94); }
.nav.nav-over {
    position: absolute; left: 0; right: 0; top: 0;
    background: transparent; backdrop-filter: none;
    color: #fff;
}
.nav.nav-over .brand-text em { color: rgba(255,255,255,.72); }
.nav.nav-over .btn-g {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}
.nav.nav-over .btn-g:hover { background: rgba(255,255,255,.2); }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--green), var(--green-deep));
    color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px;
    box-shadow: 0 8px 18px rgba(77, 154, 42, .32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; border-radius: 999px;
    padding: 12px 20px; font-weight: 650; font-size: 14.5px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-p {
    background: var(--green); color: #fff;
    box-shadow: 0 10px 24px rgba(77, 154, 42, .28);
}
.btn-p:hover { background: var(--green-dark); box-shadow: 0 14px 28px rgba(77, 154, 42, .36); }
.btn-g {
    background: rgba(18, 24, 18, .06); color: var(--ink);
}
.btn-g:hover { background: rgba(18, 24, 18, .1); }
.btn-light {
    background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn .ico { width: 18px; height: 18px; }

/* ── Hero = slider plein cadre (style story fiche bien) ─────────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: min(62dvh, 560px);
    height: min(62dvh, 560px);
    color: #fff;
    background: #101610;
    overflow: hidden;
}
.hero-story {
    position: absolute; inset: 0;
    z-index: 1;
    border-radius: 0;
    background: #101610;
}
/* Doit gagner sur .v2-story { aspect-ratio } - sinon caption hors hero */
.v2-story.hero-story {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    border-radius: 0;
}
.hero > .nav { z-index: 5; }
.hero-story .v2-story-bars {
    top: 78px;
    left: max(20px, calc((100% - var(--max)) / 2));
    right: max(64px, calc((100% - var(--max)) / 2 + 44px));
}
.hero-story .v2-story-pp {
    top: 70px;
    right: max(20px, calc((100% - var(--max)) / 2));
}
.hero-story .v2-story-nav {
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.hero-story .v2-story-nav.prev { left: 18px; }
.hero-story .v2-story-nav.next { right: 18px; }
.hero-story .v2-story-grad {
    background:
        linear-gradient(180deg, rgba(8,12,8,.5) 0%, rgba(8,12,8,.08) 32%, rgba(8,12,8,.35) 58%, rgba(6,10,6,.92) 100%);
}
.hero-story .v2-story-caption {
    left: max(18px, 3vw);
    right: max(18px, 3vw);
    bottom: 0;
    padding: 56px 0 26px;
    max-width: none;
    z-index: 4;
    pointer-events: none;
    display: flex;
    justify-content: center;
    text-align: center;
}
.hero-story .v2-story-caption .btn,
.hero-story .v2-story-caption a { pointer-events: auto; }
.hero-story .v2-story-cap-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-story .v2-story-cap-kicker {
    font-size: 13px;
    margin-bottom: 14px;
    color: #b8e88a;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
    justify-content: center;
}
.hero-adv {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 4px;
    text-align: center;
}
.hero-adv-one .hero-adv-item {
    opacity: 0;
    transform: translateY(14px);
    animation: fxUp .55s cubic-bezier(.2,.7,.2,1) both;
}
.v2-story.no-anim .hero-adv-item { opacity: 1; transform: none; animation: none; }
.hero-adv-item b {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.85rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 22px rgba(0,0,0,.6);
}
.hero-adv-item span {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 550;
    color: rgba(255,255,255,.92);
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    line-height: 1.35;
}
.hero-cta {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    justify-content: center;
    margin-top: 18px;
}
.hero-price {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* Story slider base */
.v2-story {
    position: relative; width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 20px; overflow: hidden;
    background: #14171c;
}
.v2-story-track { position: absolute; inset: 0; }
.v2-story-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity .85s 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 7s ease-out both; }
.v2-story-slide.active.kb-b { animation: kb-b 7s ease-out both; }
.v2-story.paused .v2-story-slide.active { animation-play-state: paused; }
@keyframes kb-a { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%,-1.5%); } }
@keyframes kb-b { from { transform: scale(1.12) translate(1.5%,1%); } to { transform: scale(1.02); } }

.v2-story-grad {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 40%, rgba(0,0,0,.82) 100%);
}
.v2-story-bars {
    position: absolute; top: 12px; left: 14px; right: 54px;
    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 5.2s 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: 24px 26px; z-index: 2; color: #fff;
}
.v2-story-cap-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #a7dd7c; margin-bottom: 6px;
}
.v2-story-cap-kicker .ico { width: 14px; height: 14px; }
.v2-story-cap-big {
    font-family: var(--display);
    font-size: clamp(1.55rem, 3.8vw, 2.35rem);
    font-weight: 800; line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.v2-story-cap-big small {
    display: block; margin-top: 8px;
    font-size: .42em; font-weight: 550; opacity: .88;
    letter-spacing: 0;
}
.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 rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
@keyframes fxUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fxRight { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes fxLeft { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes fxZoom { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }

.v2-story-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.92); color: #14171c;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; opacity: 1; transition: .2s;
}
.v2-story-nav .ico { width: 20px; height: 20px; }
.v2-story-nav.prev { left: 12px; }
.v2-story-nav.next { right: 12px; }
.v2-story-nav.next .ico { transform: rotate(180deg); }
.v2-story-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.v2-story-pp {
    position: absolute; top: 22px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.42); color: #fff; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
}
.v2-story-pp:hover { background: rgba(0,0,0,.65); }
@media (max-width: 720px) {
    .hero {
        min-height: min(58dvh, 460px);
        height: min(58dvh, 460px);
    }
    .hero-story .v2-story-bars { top: 72px; left: 16px; right: 56px; }
    .hero-story .v2-story-pp { top: 64px; right: 14px; }
    .hero-story .v2-story-caption { left: 14px; right: 14px; padding: 48px 0 20px; }
    .hero-adv-item b { font-size: clamp(1.55rem, 7vw, 2.2rem); }
    .hero-adv-item span { font-size: 1rem; }
    .hero-story .v2-story-nav { width: 40px; height: 40px; }
    .hero-story .v2-story-nav.prev { left: 10px; }
    .hero-story .v2-story-nav.next { right: 10px; }
}

/* ── Landing visual sections ─────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-h {
    margin-bottom: 28px;
}
.section-h h2 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.8vw, 2.4rem);
    letter-spacing: -.03em;
    line-height: 1.05;
}

/* Personas - 3 profils */
.persona {
    background:
        radial-gradient(70% 80% at 100% 0%, rgba(108,191,59,.14), transparent 55%),
        linear-gradient(180deg, #eef5e6 0%, var(--paper) 70%);
    border-block: 1px solid var(--line);
}
.persona-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.persona-head .persona-kicker { margin-bottom: 14px; }
.persona-lead {
    margin-top: 10px; color: var(--muted);
    font-size: 1.05rem; font-weight: 550; line-height: 1.4;
}
.profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}
.profile-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 28px rgba(18, 24, 18, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(18, 24, 18, .1);
}
.profile-photo {
    margin: 0; position: relative;
    aspect-ratio: 4 / 5; background: #dfe8d4; overflow: hidden;
}
.profile-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.persona-badge {
    position: absolute; left: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(18,24,18,.82); color: #fff;
    backdrop-filter: blur(8px);
    padding: 7px 11px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
}
.persona-badge .ico { width: 13px; height: 13px; color: #a7dd7c; }
.profile-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.profile-body h3 {
    font-family: var(--display);
    font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.1;
    margin: 0 0 4px;
}
.persona-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--green-deep);
    background: var(--green-pale); padding: 6px 10px; border-radius: 999px;
    margin-bottom: 12px;
}
.persona-meta {
    color: var(--muted); font-size: .86rem; font-weight: 600;
    margin: 0 0 12px;
}
.persona-quote {
    font-family: var(--display);
    font-size: 1.02rem;
    font-weight: 650; letter-spacing: -.015em;
    line-height: 1.3; color: var(--ink);
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--green);
}
.persona-points {
    list-style: none; display: grid; gap: 7px;
    margin: auto 0 0; padding: 0;
}
.persona-points li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: .88rem; font-weight: 600; color: var(--ink-2);
    line-height: 1.3;
}
.persona-points .ico {
    flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px;
    padding: 3px; border-radius: 50%;
    background: var(--green); color: #fff; stroke-width: 2.2;
}
.persona-points b { color: var(--ink); font-weight: 750; }
.persona-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.persona-cta-center {
    justify-content: center; margin-top: 28px;
}
.persona-cta .note { font-size: 13px; color: var(--muted); font-weight: 600; }

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.benefit {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 16px 16px;
    display: flex; flex-direction: column; gap: 12px;
    min-height: 132px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.benefit:hover {
    transform: translateY(-3px);
    border-color: rgba(77, 154, 42, .35);
    box-shadow: 0 14px 30px rgba(18, 24, 18, .08);
}
.benefit-ico {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--green-pale);
    color: var(--green-deep);
}
.benefit-ico .ico { width: 24px; height: 24px; stroke-width: 1.9; }
.benefit-ico.dark {
    background: linear-gradient(145deg, var(--green), var(--green-deep));
    color: #fff;
}
.benefit strong {
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: -.02em;
    line-height: 1.15;
    font-weight: 750;
}
.benefit span {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 550;
    line-height: 1.3;
}

.section-lead {
    margin-top: 10px;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 550;
    line-height: 1.4;
    max-width: 42ch;
}
.how-head { text-align: center; max-width: 520px; margin: 0 auto 36px; }
.how-head .section-lead { margin-left: auto; margin-right: auto; }
.how-head .persona-kicker { margin-bottom: 14px; }

.how {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}
.how-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.how-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(18, 24, 18, .08);
}
.how-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.how-num {
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--green);
}
.how-ico {
    width: 42px; height: 42px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--green-pale);
    color: var(--green-deep);
}
.how-ico .ico { width: 20px; height: 20px; }
.how-step h3 {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.how-step p {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 550;
    line-height: 1.45;
    margin: 0;
}
.how-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.band {
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(108,191,59,.16), transparent 50%),
        linear-gradient(180deg, #eef5e6 0%, var(--paper) 100%);
    border-block: 1px solid var(--line);
}

.offer {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: stretch;
}
.incl .section-h { margin-bottom: 22px; }
.incl .persona-kicker { margin-bottom: 12px; }
.incl-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin: 0 0 22px;
    padding: 0;
}
.incl-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
}
.incl-ico {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--green-pale);
    color: var(--green-deep);
}
.incl-ico .ico { width: 18px; height: 18px; }
.incl-item b {
    display: block;
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}
.incl-item p {
    margin: 0;
    font-size: .88rem;
    font-weight: 550;
    color: var(--muted);
    line-height: 1.35;
}

.soft-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: 28px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.offer-price {
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(108,191,59,.18), transparent 55%),
        #fff;
    justify-content: flex-start;
}
.offer-price-kicker {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-deep);
    margin-bottom: 8px;
}
.soft-panel .price-line {
    font-family: var(--display);
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: .95;
}
.soft-panel .price-line small {
    display: block;
    font-size: .28em;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
    margin-top: 10px;
}
.price-perks {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 22px 0 24px;
    padding: 0;
}
.price-perks li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink-2);
}
.price-perks .ico {
    width: 18px; height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    stroke-width: 2.2;
}
.soft-panel .btn { width: 100%; }
.price-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

.proof {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-top: 22px;
}
.proof-lbl {
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}
.proof i {
    font-style: normal;
    font-size: 12.5px; font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
}

/* ── App shell (profil / compte) ─────────────────────────────────────── */
.app-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 28px 0 64px; }
.app-head {
    display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
    gap: 16px; margin-bottom: 28px;
}
.app-head h1 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    letter-spacing: -.03em;
}
.app-head p { color: var(--muted); margin-top: 6px; }

.progress {
    display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap;
}
.progress i {
    height: 4px; flex: 1; min-width: 36px; border-radius: 999px;
    background: rgba(18,24,18,.1);
    transition: background .25s ease, transform .25s ease;
}
.progress i.on { background: var(--green); }
.progress i.done { background: var(--green-dark); }

.form-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 720px;
    animation: rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.form-panel h2 {
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.form-panel .help { color: var(--muted); margin-bottom: 22px; font-size: .96rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field input, .field select, .field textarea {
    border: 1px solid var(--line);
    background: #fbfcf9;
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(108, 191, 59, .18);
    background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Autocomplete NPA (même pattern que bienimmobilier.ch) */
.npa-block { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.npa-ac-wrap { position: relative; }
.npa-ac-wrap input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fbfcf9;
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
}
.npa-ac-wrap input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(108, 191, 59, .18);
    background: #fff;
}
.v2-ac {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 6px; max-height: 280px; overflow-y: auto;
}
.v2-ac-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    cursor: pointer; font-size: 14.5px; transition: background .12s;
}
.v2-ac-item:hover, .v2-ac-item.active { background: var(--green-pale); }
.v2-ac-npa { font-weight: 700; color: var(--green-deep); min-width: 42px; }
.v2-ac-loc { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-ac-ct {
    font-size: 12px; font-weight: 700; color: var(--muted);
    background: rgba(18,24,18,.06); padding: 2px 8px; border-radius: 999px;
}
.place-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.place-empty { font-size: 13px; color: var(--muted); }
.place-chip {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid rgba(77, 154, 42, .35);
    background: var(--green-pale);
    color: var(--green-deep);
    border-radius: 999px;
    padding: 7px 10px 7px 12px;
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
}
.place-chip b { font-weight: 800; }
.place-chip em {
    font-style: normal; font-size: 11px; font-weight: 700;
    opacity: .7; margin-left: 2px;
}
.place-chip .place-x {
    width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(18,24,18,.08);
    font-size: 14px; line-height: 1;
}
.place-chip:hover { border-color: var(--green-dark); }
.chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    transition: .15s;
}
.chip.on {
    background: var(--green-pale);
    border-color: rgba(77, 154, 42, .45);
    color: var(--green-deep);
}
.form-actions {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 26px; flex-wrap: wrap;
}

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dash {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: start;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}
.stat b {
    display: block;
    font-family: var(--display);
    font-size: 1.55rem;
    letter-spacing: -.03em;
    line-height: 1;
}
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.meter {
    height: 8px; border-radius: 999px;
    background: rgba(18,24,18,.08);
    overflow: hidden; margin: 10px 0 6px;
}
.meter > i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    border-radius: inherit;
    transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.status-pill.ok { background: var(--green-pale); color: var(--green-deep); }
.status-pill.wait { background: #fff3df; color: var(--warn); }
.status-pill.off { background: rgba(18,24,18,.06); color: var(--muted); }

.match-list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.match-list li {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.match-list strong { display: block; font-size: .98rem; }
.match-list small { color: var(--muted); font-size: 12.5px; }
.match-list em {
    font-style: normal; font-size: 12px; font-weight: 700;
    color: var(--green-deep); background: var(--green-pale);
    padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-back {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(12, 18, 12, .48);
    display: grid; place-items: center;
    padding: 20px;
    animation: fade .2s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    animation: rise .35s cubic-bezier(.2,.7,.2,1) both;
}
.modal h3 {
    font-family: var(--display);
    font-size: 1.4rem;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}
.modal p { color: var(--muted); margin-bottom: 18px; }
.modal .form-actions { margin-top: 18px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 40px;
    color: var(--muted);
    font-size: 13.5px;
}
.footer-inner {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    align-items: center;
}
.footer a:hover { color: var(--ink); }

.toast {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff;
    padding: 12px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 600; z-index: 90;
    box-shadow: var(--shadow);
    animation: rise .3s ease both;
}

@media (max-width: 960px) {
    .profiles { grid-template-columns: 1fr 1fr; }
    .profiles .profile-card:last-child { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; width: 100%; }
    .how { grid-template-columns: 1fr; }
    .how-step { min-height: 0; }
    .offer { grid-template-columns: 1fr; }
    .incl-list { grid-template-columns: 1fr 1fr; }
    .benefits { grid-template-columns: 1fr 1fr; }
    .benefits .benefit:nth-child(n+7) { display: none; }
}
@media (max-width: 720px) {
    .profiles, .offer, .incl-list, .benefits, .dash, .stat-row, .grid-2 { grid-template-columns: 1fr; }
    .profiles .profile-card:last-child { grid-column: auto; max-width: none; }
    .benefits .benefit:nth-child(n+7) { display: flex; }
    .section { padding: 48px 0; }
    .nav-actions .btn-g { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .form-panel, .modal, .toast,
    .v2-story-slide.active.kb-a, .v2-story-slide.active.kb-b { animation: none !important; }
}
