:root {
    --bg: #F4F3EC;
    --bg-2: #ECEAE0;
    --ink: #12182B;
    --ink-soft: #5C6072;
    --blue: #2747DC;
    --blue-deep: #1A2E8C;
    --blue-soft: #E7EBFB;
    --amber: #FFB22E;
    --amber-deep: #C8821A;
    --amber-soft: #FFF0D4;
    --line: #E3E0D5;
    --white: #FFFFFF;
    --shadow: 0 24px 60px -28px rgba(18, 24, 43, .4);
    --shadow-sm: 0 10px 30px -18px rgba(18, 24, 43, .5);
    --radius: 20px;
    --red-soft: #fdeaea;
    --red-deep: #a61b1b;
    --red: #e53935;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Figtree', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

h1, h2, h3, .display {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em
}

/* ---- LOGO ---- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    text-decoration: none
}

.logo .tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--blue);
    display: grid;
    place-items: center;
    transition: transform .4s;
    box-shadow: 0 6px 16px -8px var(--blue)
}

.logo:hover .tile {
    transform: rotate(-8deg)
}

.logo .wm {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.04em;
    color: var(--ink)
}

.logo .wm b {
    color: var(--blue);
    font-weight: 800
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 60px);
    /*background: rgba(244, 243, 236, .82);*/
    backdrop-filter: blur(14px);
    /*border-bottom: 1px solid var(--line)*/
}

.mode-toggle {
    display: flex;
    background: var(--bg-2);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--line)
}

.mode-toggle button {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: .25s
}

.mode-toggle button.on {
    background: var(--white);
    color: var(--blue-deep);
    box-shadow: var(--shadow-sm)
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px)
}

.screen {
    display: none;
    animation: fade .5s ease both
}

.screen.active {
    display: block
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(14px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

/* HERO */
.hero {
    position: relative;
    padding: clamp(48px, 9vw, 104px) 0 56px;
    text-align: center
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 999px;
    /*margin-bottom: 26px*/
}

.badge .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 0 rgba(39, 71, 220, .5);
    animation: pulse 2s infinite
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 9px rgba(39, 71, 220, 0)
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 71, 220, 0)
    }
}

.hero h1 {
    font-size: clamp(40px, 7.4vw, 78px);
    margin-bottom: 20px
}

.hero h1 em {
    font-style: normal;
    color: var(--blue);
    position: relative
}

.hero h1 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 10px;
    background: var(--amber);
    z-index: -1;
    border-radius: 3px;
    opacity: .65
}

.hero p.lead {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(22px);
    opacity: .5;
    z-index: -1
}

.blob.a {
    width: 300px;
    height: 300px;
    background: var(--amber-soft);
    top: 30px;
    left: -60px
}

.blob.b {
    width: 360px;
    height: 360px;
    background: var(--blue-soft);
    bottom: -50px;
    right: -80px
}

.choice {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 22px;
    max-width: 760px;
    margin: 42px auto 0
}

@media (max-width: 680px) {
    .choice {
        grid-template-columns:1fr
    }
}

.choice-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    text-align: left;
    cursor: pointer;
    transition: .35s cubic-bezier(.2, .8, .2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden
}

.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--blue)
}

.choice-card .ico {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 18px
}

.choice-card.particulier .ico {
    background: var(--amber-soft);
    color: var(--amber-deep)
}

.choice-card.pro .ico {
    background: var(--blue-soft);
    color: var(--blue)
}

.choice-card h3 {
    font-size: 24px;
    margin-bottom: 8px
}

.choice-card p {
    color: var(--ink-soft);
    font-size: 15px;
    margin-bottom: 18px
}

.choice-card .go {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: var(--blue-deep);
    font-size: 14.5px
}

.choice-card .go svg {
    transition: transform .3s
}

.choice-card:hover .go svg {
    transform: translateX(5px)
}

.trust {
    display: flex;
    gap: 34px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 60px auto 84px;
    max-width: 760px
}

.trust div {
    text-align: center
}

.trust .n {
    font-family: 'Bricolage Grotesque';
    font-size: 34px;
    color: var(--blue);
    font-weight: 700
}

.trust .l {
    font-size: 13.5px;
    color: var(--ink-soft)
}

/* WIZARD */
.wizard {
    max-width: 680px;
    margin: 0 auto;
    padding: 44px 0 80px
}

.steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 38px
}

.steps .st {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-2);
    overflow: hidden;
    position: relative
}

.steps .st span {
    position: absolute;
    inset: 0;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 999px;
    transition: transform .5s ease
}

.steps .st.done span, .steps .st.active span {
    transform: scaleX(1)
}

.steps .st.active span {
    background: linear-gradient(90deg, var(--blue), var(--amber))
}

.step-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px
}

.step {
    display: none
}

.step.active {
    display: block;
    animation: fade .45s ease both
}

.step h2 {
    font-size: clamp(27px, 4vw, 38px);
    margin-bottom: 10px
}

.step .sub {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 30px
}

.grid-types {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px
}

@media (max-width: 560px) {
    .grid-types {
        grid-template-columns:1fr
    }
}

.type {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 15px;
    padding: 18px;
    cursor: pointer;
    transition: .25s;
    font-weight: 600;
    font-size: 16px
}

.type .e {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--bg-2);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0
}

.type:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm)
}

.type.sel {
    border-color: var(--blue);
    background: var(--blue-soft)
}

.type.sel .e {
    background: var(--blue);
    color: #fff
}

.field {
    margin-bottom: 18px
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 7px
}

.field input {
    width: 100%;
    font-family: inherit;
    font-size: 15.5px;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    transition: .2s;
    color: var(--ink)
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft)
}

.field-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px
}

@media (max-width: 560px) {
    .field-row {
        grid-template-columns:1fr
    }
}

.reassure {
    background: var(--blue-soft);
    border: 1px solid #cdd7f7;
    border-radius: 15px;
    padding: 20px 22px;
    display: flex;
    gap: 14px
}

.reassure .ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--blue);
    display: grid;
    place-items: center;
    flex-shrink: 0
}

.reassure h4 {
    font-family: 'Bricolage Grotesque';
    font-size: 19px;
    margin-bottom: 4px;
    color: var(--blue-deep)
}

.reassure p {
    font-size: 14.5px;
    color: #3a4360
}

.letter {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 30px 32px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #3a3f4d;
    box-shadow: var(--shadow-sm);
    position: relative
}

.letter::before {
    content: "APERÇU";
    position: absolute;
    top: 16px;
    right: 18px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .15em;
    color: var(--amber-deep);
    background: var(--amber-soft);
    padding: 4px 9px;
    border-radius: 6px
}

.letter .ph {
    color: var(--blue);
    font-weight: 600;
    background: var(--blue-soft);
    padding: 1px 5px;
    border-radius: 4px
}

.sign-box {
    margin-top: 18px;
    border: 1.5px dashed var(--line);
    border-radius: 13px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap
}

.sign-box .sig {
    font-family: 'Bricolage Grotesque';
    font-style: italic;
    font-size: 21px;
    color: var(--ink-soft)
}

.sign-box.signed .sig {
    color: var(--blue)
}

.success {
    text-align: center;
    padding: 14px 0
}

.check-big {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both
}

@keyframes pop {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

.timeline {
    max-width: 420px;
    margin: 34px auto 0;
    text-align: left
}

.tl {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative
}

.tl:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -4px;
    width: 2px;
    background: var(--line)
}

.tl.done:not(:last-child)::before {
    background: var(--blue)
}

.tl .node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--bg-2);
    color: var(--ink-soft);
    z-index: 1
}

.tl.done .node {
    background: var(--blue);
    color: #fff
}

.tl.cur .node {
    background: var(--amber);
    color: #3a2a00;
    animation: pulse2 1.8s infinite
}

@keyframes pulse2 {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 178, 46, .55)
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 178, 46, 0)
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 178, 46, 0)
    }
}

.tl h5 {
    font-size: 15.5px;
    font-weight: 700
}

.tl span {
    font-size: 13px;
    color: var(--ink-soft)
}

.nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px
}

/*.btn {*/
/*    font-family: inherit;*/
/*    font-weight: 700;*/
/*    font-size: 15.5px;*/
/*    padding: 15px 30px;*/
/*    border-radius: 12px;*/
/*    cursor: pointer;*/
/*    border: none;*/
/*    transition: .25s;*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 9px*/
/*}*/

/*.btn-primary {*/
/*    background: var(--blue);*/
/*    color: #fff;*/
/*    box-shadow: var(--shadow-sm)*/
/*}*/

/*.btn-primary:hover {*/
/*    background: var(--blue-deep);*/
/*    transform: translateY(-2px)*/
/*}*/

/*.btn-primary:disabled {*/
/*    opacity: .4;*/
/*    cursor: not-allowed;*/
/*    transform: none*/
/*}*/

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--line)
}

.btn-ghost:hover {
    border-color: var(--ink-soft);
    color: var(--ink)
}

.btn-amber {
    background: var(--amber);
    color: #3a2a00
}

.btn-amber:hover {
    filter: brightness(.96);
    transform: translateY(-2px)
}

/* PRO DASHBOARD */
.dash {
    padding: 40px 0 80px
}

.dash-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 30px
}

.dash-head h2 {
    font-size: clamp(28px, 4vw, 40px)
}

.dash-head p {
    color: var(--ink-soft)
}

.stats {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px
}

@media (max-width: 740px) {
    .stats {
        grid-template-columns:1fr 1fr
    }
}

.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px
}

.stat .n {
    font-family: 'Bricolage Grotesque';
    font-size: 32px;
    font-weight: 700;
    line-height: 1
}

.stat .n.b {
    color: var(--blue)
}

.stat .n.a {
    color: var(--amber-deep)
}

.stat .l {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-top: 6px
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line)
}

.panel-top h3 {
    font-size: 19px
}

table {
    width: 100%;
    border-collapse: collapse
}

th {
    text-align: left;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 14px 24px;
    font-weight: 700;
    border-bottom: 1px solid var(--line)
}

td {
    padding: 16px 24px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--bg-2)
}

tr:last-child td {
    border-bottom: none
}

tr.row {
    cursor: pointer;
    transition: background .2s
}

tr.row:hover {
    background: var(--bg)
}

.tag {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.tag.sent,
.tag.deposit {
    background: var(--blue-soft);
    color: var(--blue-deep)
}

.tag.sending {
    background: var(--amber-soft);
    color: var(--amber-deep)
}

.tag.accepted,
.tag.acceptance {
    background: #DFF3E6;
    color: #1c7a45
}

.tag.draft {
    background: #EDE9E4;
    color: #6B655B
}

.tag.refused,
.tag.failed,
.tag.refusal {
    background: var(--red-soft);
    color: var(--red-deep)
}

.tag i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 9px
}

/* ---- CHARTE ---- */
.charte {
    background: var(--ink);
    color: #fff;
    padding: 64px 0 70px;
    margin-top: 30px
}

.charte .wrap {
    max-width: 1000px
}

.charte .eyebrow {
    color: var(--amber);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px
}

.charte h2 {
    font-size: clamp(28px, 4.5vw, 42px);
    color: #fff;
    margin-bottom: 42px
}

.ch-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px
}

@media (max-width: 760px) {
    .ch-grid {
        grid-template-columns:1fr
    }
}

.ch-card {
    background: #1B2237;
    border: 1px solid #2A3350;
    border-radius: 18px;
    padding: 26px
}

.ch-card h4 {
    font-family: 'Bricolage Grotesque';
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8A91A8;
    margin-bottom: 20px;
    font-weight: 700
}

.logo-row {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.lk {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 18px;
    border-radius: 12px
}

.lk.on-light {
    background: #fff
}

.lk.on-amber {
    background: var(--amber)
}

.lk .wm {
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.04em;
    color: var(--ink)
}

.lk .wm b {
    color: var(--blue)
}

.lk.on-amber .wm, .lk.on-amber .wm b {
    color: var(--ink)
}

.swatches {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.sw {
    border-radius: 12px;
    padding: 16px;
    height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 12px;
    font-weight: 600
}

.sw .hex {
    font-family: 'Bricolage Grotesque';
    font-weight: 700;
    font-size: 15px
}

.type-spec p {
    margin-bottom: 6px
}

.type-spec .big {
    font-family: 'Bricolage Grotesque';
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -.02em;
    color: #fff;
    line-height: 1.1
}

.type-spec .lbl {
    color: #8A91A8;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 14px 0 4px;
    font-weight: 700
}

.type-spec .body-spec {
    font-family: 'Figtree';
    font-size: 15px;
    color: #C9CDDA
}

.tone-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chip {
    background: #2A3350;
    color: #C9CDDA;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px
}

/* NAV EXTRAS */
.btn-account {
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    transition: .25s
}

.btn-account:hover {
    background: var(--blue-deep)
}

.nav-link {
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 9px 8px
}

.nav-link:hover {
    color: var(--ink)
}

/* AUTH OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(18, 24, 43, .55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade .3s ease
}

.overlay.open {
    display: flex
}

.auth-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 34px;
    box-shadow: var(--shadow);
    position: relative;
    max-height: 92vh;
    overflow: auto
}

.auth-card .x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-2);
    cursor: pointer;
    font-size: 18px;
    color: var(--ink-soft);
    display: grid;
    place-items: center
}

.auth-view {
    display: none
}

.auth-view.on {
    display: block;
    animation: fade .3s ease
}

.auth-card h3 {
    font-size: 25px;
    margin-bottom: 6px
}

.auth-card .desc {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin-bottom: 22px
}

.auth-link {
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px
}

.auth-foot {
    margin-top: 18px;
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center
}

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

.profile-pick {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 6px
}

.pp {
    display: flex;
    gap: 13px;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: .25s;
    background: var(--white)
}

.pp:hover {
    border-color: var(--blue);
    transform: translateY(-2px)
}

.pp .ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 20px
}

.pp h5 {
    font-size: 16px;
    font-weight: 700
}

.pp p {
    font-size: 13px;
    color: var(--ink-soft)
}

.code-row {
    display: flex;
    gap: 9px;
    justify-content: center;
    margin: 6px 0
}

.code-row input {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Bricolage Grotesque';
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink)
}

.code-row input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft)
}

.code-note {
    text-align: center;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 12px
}

.mock-mail {
    background: var(--amber-soft);
    border: 1px dashed var(--amber);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--amber-deep);
    text-align: center;
    margin-bottom: 18px
}

/* PRICING */
.pricing {
    padding: 46px 0 80px
}

.pricing .head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 38px
}

.pricing h2 {
    font-size: clamp(30px, 5vw, 46px);
    margin-bottom: 12px
}

.pricing .head p {
    color: var(--ink-soft);
    font-size: 17px
}

.calc {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    max-width: 900px;
    margin: 0 auto 34px;
    box-shadow: var(--shadow-sm)
}

.calc .qty {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4px
}

.calc .qty .big {
    font-family: 'Bricolage Grotesque';
    font-size: 42px;
    font-weight: 800;
    line-height: 1
}

.calc input[type=range] {
    width: 100%;
    accent-color: var(--blue);
    height: 6px;
    margin: 16px 0 4px;
    cursor: pointer
}

.tiers {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-bottom: 24px
}

.calc-out {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 22px
}

.calc-out .o {
    background: var(--bg);
    border-radius: 14px;
    padding: 15px;
    text-align: center
}

.calc-out .o .v {
    font-family: 'Bricolage Grotesque';
    font-size: 23px;
    font-weight: 700
}

.calc-out .o.save .v {
    color: var(--blue)
}

.calc-out .o .k {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 3px
}

.tierbadge {
    display: inline-block;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-weight: 700;
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 6px
}

.packs {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto
}

@media (max-width: 780px) {
    .packs {
        grid-template-columns:1fr 1fr
    }
}

.pack {
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
    position: relative
}

.pack:hover {
    border-color: var(--blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm)
}

.pack.pop {
    border-color: var(--amber)
}

.pack .flag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: #3a2a00;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px
}

.pack .pq {
    font-family: 'Bricolage Grotesque';
    font-size: 32px;
    font-weight: 800
}

.pack .pl {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 12px
}

.pack .pu {
    font-weight: 700;
    color: var(--blue);
    font-size: 16px
}

.pack .pt {
    font-size: 12.5px;
    color: var(--ink-soft)
}

/* CREDIT BAR */
.credit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--blue-soft);
    border: 1px solid #cdd7f7;
    border-radius: 16px;
    padding: 15px 22px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-size: 14.5px
}

.credit-bar strong {
    font-family: 'Bricolage Grotesque';
    font-size: 20px
}

.credit-bar .ic {
    font-size: 17px
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14.5px;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    box-shadow: var(--shadow)
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

/* WIZARD STEPPER & FORMS */
.stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 520px;
    margin: 4px auto 42px
}

.stepper::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 45px;
    right: 45px;
    height: 3px;
    background: var(--bg-2);
    z-index: 0
}

.sg {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 90px
}

.sg .dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: 'Bricolage Grotesque';
    color: var(--ink-soft);
    border: 4px solid var(--bg);
    transition: .3s
}

.sg.active .dot {
    background: var(--amber);
    color: #3a2a00;
    box-shadow: 0 0 0 4px var(--amber-soft)
}

.sg.done .dot {
    background: var(--blue);
    color: #fff
}

.sg .lbl {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft)
}

.sg.active .lbl, .sg.done .lbl {
    color: var(--ink)
}

.cat-radio {
    display: flex;
    gap: 12px;
    margin-bottom: 20px
}

.cat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    background: var(--white);
    transition: .2s
}

.cat.on {
    border-color: var(--blue);
    background: var(--blue-soft)
}

.cat input {
    accent-color: var(--blue)
}

.field select {
    width: 100%;
    font-family: inherit;
    font-size: 15.5px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer
}

.field select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft)
}

.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    resize: vertical
}

.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft)
}

.addco {
    margin-top: 4px;
    background: var(--amber);
    color: #3a2a00;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.addco:hover {
    filter: brightness(.96)
}

.ins-search {
    width: 100%;
    font-family: inherit;
    font-size: 15.5px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    margin-bottom: 12px
}

.ins-search:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft)
}

.ins-list, .ctype-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow: auto;
    padding: 2px
}

.ins-item, .ctype-item {
    text-align: center;
    background: var(--blue);
    color: #fff;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 14.5px;
    padding: 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s
}

.ins-item:hover,
.ctype-item:hover,
.ctype-item.active {
    background: var(--blue-deep);
    transform: translateY(-2px)
}

.motif-list {
    display: flex;
    flex-direction: column
}

.motif {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 4px;
    cursor: pointer;
    font-size: 14.5px;
    border-bottom: 1px solid var(--bg-2);
    transition: .15s
}

.motif:last-child {
    border-bottom: none
}

.motif input {
    margin-top: 3px;
    accent-color: var(--blue);
    flex-shrink: 0
}

.motif:hover {
    color: var(--blue-deep)
}

/* DÉTAIL RÉSILIATION */
.det-banner {
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.45
}

.det-banner.ok {
    background: #DFF3E6;
    color: #1c7a45;
    border: 1px solid #b3dfc2
}

.det-banner.sent {
    background: var(--blue-soft);
    color: var(--blue-deep);
    border: 1px solid #cdd7f7
}

.det-banner.signed {
    background: var(--ink-soft);
    color: var(--er-white);
    border: 1px solid #e3e0d5
}

.det-banner.wait {
    background: var(--amber-soft);
    color: var(--amber-deep);
    border: 1px solid var(--amber)
}

.det-banner.refused {
    background: var(--red-soft);
    color: var(--red-deep);
    border: 1px solid var(--red)
}

.preuves-tbl {
    width: 100%;
    border-collapse: collapse
}

.preuves-tbl th {
    text-align: left;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 9px 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--line)
}

.preuves-tbl td {
    padding: 10px 12px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--bg-2)
}

.preuves-tbl tr:last-child td {
    border-bottom: none
}

.det-empty {
    font-size: 13.5px;
    color: var(--ink-soft);
    padding: 4px 0;
    line-height: 1.6
}

/* RÉCAP & LETTER LAYOUT */
.recap-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
    align-items: start
}

@media (max-width: 860px) {
    .recap-grid {
        grid-template-columns:1fr
    }
}

.recap-col, .letter-col {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.rsec {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px
}

.rsec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.rsec-head h4 {
    font-family: 'Bricolage Grotesque';
    font-size: 15px;
    font-weight: 700
}

.btn-mod {
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--blue-deep);
    cursor: pointer;
    transition: .2s
}

.btn-mod:hover {
    border-color: var(--blue);
    background: var(--blue-soft)
}

.rrow {
    display: flex;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 5px;
    align-items: baseline
}

.rrow .rl {
    color: var(--ink-soft);
    min-width: 80px;
    flex-shrink: 0;
    font-weight: 500
}

.rrow .rv {
    font-weight: 600;
    color: var(--ink);
    word-break: break-word
}

.letter-doc {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 82px
}

.letter-top {
    background: var(--bg);
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.letter-top span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft)
}

.letter-page {
    padding: 30px 32px;
    font-size: 11.5px;
    line-height: 1.7;
    color: #3a3f4d;
    min-height: 460px
}

.letter-sender {
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 3px
}

.letter-recipient {
    text-align: right;
    margin-bottom: 18px;
    font-size: 11.5px
}

.letter-date {
    text-align: right;
    font-size: 11px;
    color: var(--ink-soft);
    margin-bottom: 16px
}

.letter-title {
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 14px;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px
}

.letter-page .ph {
    color: var(--blue);
    font-weight: 600;
    background: var(--blue-soft);
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 11px
}

.piece-block {
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    transition: .2s
}

.piece-block.signed {
    background: var(--blue-soft);
    border-color: var(--blue)
}

.piece-block .pl {
    font-weight: 600;
    font-size: 13.5px
}

.piece-block .ps {
    font-size: 12px;
    color: var(--ink-soft)
}

.piece-block .sig {
    font-family: 'Bricolage Grotesque';
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-soft)
}

.piece-block.signed .sig {
    color: var(--blue)
}

/* CREDIT BANNER + PDF */
.cred-banner {
    max-width: 900px;
    margin: 0 auto 20px;
    background: var(--amber-soft);
    border: 1px solid var(--amber);
    border-radius: 14px;
    padding: 13px 20px;
    text-align: center;
    font-size: 14.5px;
    color: var(--amber-deep)
}

.cred-banner strong {
    font-family: 'Bricolage Grotesque';
    font-size: 18px;
    color: var(--ink)
}

.btn-pdf {
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 13px;
    border-radius: 9px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--blue-deep);
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.btn-pdf:hover {
    border-color: var(--blue);
    background: var(--blue-soft)
}

.foot-note {
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 20px 50px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-soft)
}

.foot-note span {
    background: var(--bg-2);
    padding: 3px 8px;
    border-radius: 6px
}

.btn-nav {
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: none;
    transition: .25s;
    display: inline-block
}

.btn-nav.on, .btn-nav:hover {
    background: var(--white);
    color: var(--blue-deep);
    box-shadow: var(--shadow-sm)
}

.flash {
    padding: 12px 20px;
    margin: 8px auto 0;
    max-width: 1100px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px
}

.flash-success {
    background: #DFF3E6;
    color: #1c7a45;
    border: 1px solid #b3dfc2
}

.flash-error {
    background: #FDEAEA;
    color: #9b1c1c;
    border: 1px solid #f5c6c6
}

.flash-info {
    background: var(--blue-soft);
    color: var(--blue-deep);
    border: 1px solid #cdd7f7
}

.btn {
    border-radius: 999px;
    font-size: 13.5px;
    padding: 9px 18px;
    font-weight: 700;
}

/* 1. Contour global pointillé */
.filepond--root {
    border: 2px dashed #ffb22e !important;
    border-radius: 8px !important;
    background-color: #fffdf8 !important;
    padding: 15px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Survol de la zone */
.filepond--root:hover {
    background-color: #fff8eb !important;
    border-color: #e69d19 !important;
}

/* 2. On retire UNIQUEMENT la boîte grise de fond par défaut (qui faisait la double bordure) */
.filepond--panel-root {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Zone de drop nettoyée */
.filepond--drop-label {
    border: none !important;
    background-color: transparent !important;
    min-height: 80px !important;
}

.filepond--drop-label label {
    color: #495057 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.filepond--label-action {
    color: #ffb22e !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-decoration-color: #ffb22e !important;
}

.btn-delete {
    font-family: inherit;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 13px;
    border-radius: 9px;
    border: var(--red) solid 1px;
    background: var(--white);
    color: var(--red-deep);
    cursor: pointer;
    transition: .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.btn-delete:hover {
    border-color: var(--red);
    background: var(--red-soft);
}

.table-scroll-container {
    max-height: 400px;
    overflow-y: auto;
}

.table-scroll-container table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
}

.hl-field-error {
    padding: 0 !important;
}

.hl-field-error ul {
    list-style: none;
    margin: 0;
    padding: 12px 18px;
}

.hl-field-error:empty,
.hl-alert-danger:empty,
.hl-alert-success:empty{
    display: none !important;
}

.hl-alert-danger {
    background: #fdeceb;
    color: #a32d2d;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
}

.hl-alert-success {
    background: #DFF3E6;
    color: #1c7a45;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
}